diff --git a/locust/html.py b/locust/html.py index 7ba8e0b6fe..6990c3bba3 100644 --- a/locust/html.py +++ b/locust/html.py @@ -1,5 +1,6 @@ from jinja2 import Environment, FileSystemLoader import os +import glob import pathlib import datetime from itertools import chain @@ -9,6 +10,10 @@ from html import escape from json import dumps from .runners import MasterRunner, STATE_STOPPED, STATE_STOPPING +from flask import render_template as flask_render_template + + +PERCENTILES_FOR_HTML_REPORT = [0.50, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99, 1.0] def render_template(file, **kwargs): @@ -18,7 +23,13 @@ def render_template(file, **kwargs): return template.render(**kwargs) -def get_html_report(environment, show_download_link=True): +def get_html_report( + environment, + static_path=os.path.join(os.path.dirname(__file__), "static"), + show_download_link=True, + use_modern_ui=False, + theme="", +): stats = environment.runner.stats start_ts = stats.start_time @@ -47,22 +58,27 @@ def get_html_report(environment, show_download_link=True): history = stats.history static_js = [] - js_files = ["jquery-1.11.3.min.js", "echarts.common.min.js", "vintage.js", "chart.js", "tasks.js"] + if use_modern_ui: + js_files = [os.path.basename(filepath) for filepath in glob.glob(os.path.join(static_path, "*.js"))] + else: + js_files = ["jquery-1.11.3.min.js", "echarts.common.min.js", "vintage.js", "chart.js", "tasks.js"] + for js_file in js_files: - path = os.path.join(os.path.dirname(__file__), "static", js_file) - static_js.append("// " + js_file) + path = os.path.join(static_path, js_file) + static_js.append("// " + js_file + "\n") with open(path, encoding="utf8") as f: static_js.append(f.read()) static_js.extend(["", ""]) - static_css = [] - css_files = ["tables.css"] - for css_file in css_files: - path = os.path.join(os.path.dirname(__file__), "static", "css", css_file) - static_css.append("/* " + css_file + " */") - with open(path, encoding="utf8") as f: - static_css.append(f.read()) - static_css.extend(["", ""]) + if not use_modern_ui: + static_css = [] + css_files = ["tables.css"] + for css_file in css_files: + path = os.path.join(static_path, "css", css_file) + static_css.append("/* " + css_file + " */") + with open(path, encoding="utf8") as f: + static_css.append(f.read()) + static_css.extend(["", ""]) is_distributed = isinstance(environment.runner, MasterRunner) user_spawned = ( @@ -77,26 +93,59 @@ def get_html_report(environment, show_download_link=True): "total": get_ratio(environment.user_classes, user_spawned, True), } - res = render_template( - "report.html", - int=int, - round=round, - escape=escape, - str=str, - requests_statistics=requests_statistics, - failures_statistics=failures_statistics, - exceptions_statistics=exceptions_statistics, - start_time=start_time, - end_time=end_time, - host=host, - history=history, - static_js="\n".join(static_js), - static_css="\n".join(static_css), - show_download_link=show_download_link, - locustfile=environment.locustfile, - tasks=dumps(task_data), - percentile1=stats_module.PERCENTILES_TO_CHART[0], - percentile2=stats_module.PERCENTILES_TO_CHART[1], - ) + if use_modern_ui: + res = flask_render_template( + "report.html", + template_args={ + "is_report": True, + "requests_statistics": [stat.to_dict(escape_string_values=True) for stat in requests_statistics], + "failures_statistics": [stat.to_dict() for stat in failures_statistics], + "exceptions_statistics": [stat for stat in exceptions_statistics], + "response_time_statistics": [ + { + "name": escape(stat.name), + "method": escape(stat.method or ""), + **{ + str(percentile): stat.get_response_time_percentile(percentile) + for percentile in PERCENTILES_FOR_HTML_REPORT + }, + } + for stat in requests_statistics + ], + "start_time": start_time, + "end_time": end_time, + "host": escape(str(host)), + "history": history, + "show_download_link": show_download_link, + "locustfile": escape(str(environment.locustfile)), + "tasks": task_data, + "percentile1": stats_module.PERCENTILES_TO_CHART[0], + "percentile2": stats_module.PERCENTILES_TO_CHART[1], + }, + theme=theme, + static_js="\n".join(static_js), + ) + else: + res = render_template( + "report.html", + int=int, + round=round, + escape=escape, + str=str, + requests_statistics=requests_statistics, + failures_statistics=failures_statistics, + exceptions_statistics=exceptions_statistics, + start_time=start_time, + end_time=end_time, + host=host, + history=history, + static_js="\n".join(static_js), + static_css="\n".join(static_css), + show_download_link=show_download_link, + locustfile=environment.locustfile, + tasks=dumps(task_data), + percentile1=stats_module.PERCENTILES_TO_CHART[0], + percentile2=stats_module.PERCENTILES_TO_CHART[1], + ) return res diff --git a/locust/stats.py b/locust/stats.py index 171c17cacd..0f1bf9abba 100644 --- a/locust/stats.py +++ b/locust/stats.py @@ -12,6 +12,8 @@ import csv import signal import gevent +from html import escape +from .util.rounding import proper_round from typing import ( TYPE_CHECKING, @@ -685,6 +687,24 @@ def _cache_response_times(self, t: int) -> None: for _ in range(len(self.response_times_cache) - cache_size): self.response_times_cache.popitem(last=False) + def to_dict(self, escape_string_values=False): + return { + "method": escape(self.method or "") if escape_string_values else self.method, + "name": escape(self.name) if escape_string_values else self.name, + "safe_name": escape(self.name, quote=False), + "num_requests": self.num_requests, + "num_failures": self.num_failures, + "avg_response_time": self.avg_response_time, + "min_response_time": 0 if self.min_response_time is None else proper_round(self.min_response_time), + "max_response_time": proper_round(self.max_response_time), + "current_rps": self.current_rps, + "current_fail_per_sec": self.current_fail_per_sec, + "median_response_time": self.median_response_time, + "ninetieth_response_time": self.get_response_time_percentile(0.9), + "ninety_ninth_response_time": self.get_response_time_percentile(0.99), + "avg_content_length": self.avg_content_length, + } + class StatsError: def __init__(self, method: str, name: str, error: Exception | str | None, occurrences: int = 0): @@ -745,6 +765,14 @@ def _getattr(obj: "StatsError", key: str, default: Optional[Any]) -> Optional[An def unserialize(cls, data: StatsErrorDict) -> "StatsError": return cls(data["method"], data["name"], data["error"], data["occurrences"]) + def to_dict(self, escape_string_values=False): + return { + "method": escape(self.method), + "name": escape(self.name), + "error": escape(self.parse_error(self.error)), + "occurrences": self.occurrences, + } + def avg(values: List[float | int]) -> float: return sum(values, 0.0) / max(len(values), 1) diff --git a/locust/test/test_web.py b/locust/test/test_web.py index 3ce5ab1e9c..545e1c27d4 100644 --- a/locust/test/test_web.py +++ b/locust/test/test_web.py @@ -993,6 +993,18 @@ def tick(self): self.assertRegex(response.text, re_spawn_rate) self.assertNotRegex(response.text, re_disabled_spawn_rate) + def test_html_stats_report(self): + self.environment.locustfile = "locust.py" + self.environment.host = "http://localhost" + + response = requests.get("http://127.0.0.1:%i/stats/report" % self.web_port) + self.assertEqual(200, response.status_code) + + d = pq(response.content.decode("utf-8")) + + self.assertIn("Script: locust.py", str(d)) + self.assertIn("Target Host: http://localhost", str(d)) + class TestWebUIAuth(LocustTestCase): def setUp(self): @@ -1133,7 +1145,7 @@ def test_request_stats_full_history_csv(self): self.assertEqual("Aggregated", rows[3][3]) -class TestModernWebUi(LocustTestCase, _HeaderCheckMixin): +class TestModernWebUI(LocustTestCase, _HeaderCheckMixin): def setUp(self): super().setUp() @@ -1186,3 +1198,16 @@ def test_web_ui_no_runner(self): self.assertEqual("Error: Locust Environment does not have any runner", response.text) finally: web_ui.stop() + + def test_html_stats_report(self): + self.environment.locustfile = "locust.py" + self.environment.host = "http://localhost" + + response = requests.get("http://127.0.0.1:%i/stats/report" % self.web_port) + self.assertEqual(200, response.status_code) + + d = pq(response.content.decode("utf-8")) + + self.assertTrue(d("#root")) + self.assertIn('"locustfile": "locust.py"', str(d)) + self.assertIn('"host": "http://localhost"', str(d)) diff --git a/locust/web.py b/locust/web.py index 74224911c5..f55f9fff17 100644 --- a/locust/web.py +++ b/locust/web.py @@ -24,7 +24,6 @@ from .stats import StatsCSV from .user.inspectuser import get_ratio from .util.cache import memoize -from .util.rounding import proper_round from .util.timespan import parse_timespan from .html import get_html_report from flask_cors import CORS @@ -111,9 +110,9 @@ def __init__( self.app = app app.jinja_env.add_extension("jinja2.ext.do") app.debug = True - root_path = os.path.dirname(os.path.abspath(__file__)) - app.root_path = root_path - self.webui_build_path = f"{root_path}/webui/dist" + self.root_path = os.path.dirname(os.path.abspath(__file__)) + app.root_path = self.root_path + self.webui_build_path = f"{self.root_path}/webui/dist" self.app.config["BASIC_AUTH_ENABLED"] = False self.auth: Optional[BasicAuth] = None self.greenlet: Optional[gevent.Greenlet] = None @@ -278,7 +277,20 @@ def reset_stats() -> str: @app.route("/stats/report") @self.auth_required_if_enabled def stats_report() -> Response: - res = get_html_report(self.environment, show_download_link=not request.args.get("download")) + if self.modern_ui: + self.set_static_modern_ui() + static_path = f"{self.webui_build_path}/assets" + else: + static_path = f"{self.root_path}/static" + + theme = request.args.get("theme", "") + res = get_html_report( + self.environment, + static_path=static_path, + show_download_link=not request.args.get("download"), + use_modern_ui=self.modern_ui, + theme=theme, + ) if request.args.get("download"): res = app.make_response(res) res.headers["Content-Disposition"] = f"attachment;filename=report_{time()}.html" @@ -367,24 +379,7 @@ def request_stats() -> Response: return jsonify(report) for s in chain(sort_stats(environment.runner.stats.entries), [environment.runner.stats.total]): - stats.append( - { - "method": s.method, - "name": s.name, - "safe_name": escape(s.name, quote=False), - "num_requests": s.num_requests, - "num_failures": s.num_failures, - "avg_response_time": s.avg_response_time, - "min_response_time": 0 if s.min_response_time is None else proper_round(s.min_response_time), - "max_response_time": proper_round(s.max_response_time), - "current_rps": s.current_rps, - "current_fail_per_sec": s.current_fail_per_sec, - "median_response_time": s.median_response_time, - "ninetieth_response_time": s.get_response_time_percentile(0.9), - "ninety_ninth_response_time": s.get_response_time_percentile(0.99), - "avg_content_length": s.avg_content_length, - } - ) + stats.append(s.to_dict()) for e in environment.runner.errors.values(): err_dict = e.serialize() diff --git a/locust/webui/.eslintrc b/locust/webui/.eslintrc index 01728683b8..c1254381a7 100644 --- a/locust/webui/.eslintrc +++ b/locust/webui/.eslintrc @@ -24,6 +24,10 @@ "pattern": "App", "group": "internal" }, + { + "pattern": "Report", + "group": "internal" + }, { "pattern": "{api,components,constants,hooks,redux,styles,types,utils}/**", "group": "internal" diff --git a/locust/webui/dist/assets/index-0c9ff576.js b/locust/webui/dist/assets/index-0c9ff576.js deleted file mode 100644 index 4e807baea0..0000000000 --- a/locust/webui/dist/assets/index-0c9ff576.js +++ /dev/null @@ -1,7 +0,0 @@ -import{j as e,M as Se,B as d,I as Y,d as we,u as ge,r as u,a as ke,b as j,T as l,L as p,C as v,c as D,e as Ce,f as Te,g as ve,h as m,D as g,i as Re,k as De,l as f,F as $e,m as Pe,n as Ae,A as Z,o as X,p as ee,q as te,s as Ie,t as Ee,v as Me,P as Le,w as Fe,x as Ne,y as z,z as J,E as Ue,G as Oe,H as Ge,J as y,K as We,N as Be,O as He,Q as _e,R as qe,S as Ve,U as Ke,V as ze,W as Je,X as Qe,Y as Ye}from"./vendor-87854ba9.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function G({open:t,onClose:s,children:n}){return e.jsx(Se,{onClose:s,open:t,children:e.jsxs(d,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[e.jsx(Y,{color:"inherit",onClick:s,sx:{position:"absolute",top:1,right:1},children:e.jsx(we,{})}),n]})})}const $=ge,Ze=ke;function k(t){const s=Ze();return u.useCallback(n=>{s(t(n))},[t,s])}const Xe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function et(){const[t,s]=u.useState(!1),n=$(({swarm:r})=>r.version);return e.jsxs(e.Fragment,{children:[e.jsx(d,{sx:{display:"flex",justifyContent:"flex-end"},children:e.jsx(j,{color:"inherit",onClick:()=>s(!0),variant:"text",children:"About"})}),e.jsxs(G,{onClose:()=>s(!1),open:t,children:[e.jsxs("div",{children:[e.jsx(l,{component:"h2",variant:"h4",children:"About"}),e.jsx(l,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),e.jsx(l,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),e.jsxs("div",{children:[e.jsx(l,{component:"h2",variant:"h4",children:"Authors and Copyright"}),e.jsx(d,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:Xe.map(({name:r,website:a,social:{handle:o,link:i}},c)=>e.jsxs("div",{children:[a?e.jsx(p,{href:a,children:r}):r,e.jsxs(d,{sx:{display:"inline",ml:.5},children:["(",e.jsx(p,{href:i,children:o}),")"]})]},`author-${c}`))})]}),e.jsxs("div",{children:[e.jsx(l,{component:"h2",variant:"h4",children:"License"}),e.jsx(l,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),e.jsxs("div",{children:[e.jsx(l,{component:"h2",variant:"h4",children:"Version"}),e.jsx(p,{href:`https://github.com/locustio/locust/releases/tag/${n}`,children:n})]}),e.jsxs("div",{children:[e.jsx(l,{component:"h2",variant:"h4",children:"Website"}),e.jsx(p,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function tt(){return e.jsx(d,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:e.jsx(v,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:e.jsx(et,{})})})}const st={isDarkMode:!1},se=D({name:"theme",initialState:st,reducers:{setIsDarkMode:(t,{payload:s})=>{t.isDarkMode=s}}}),nt=se.actions,rt=se.reducer,C={DARK:"dark",LIGHT:"light"},at=t=>Ce({palette:{mode:t,primary:{main:"#15803d"},success:{main:"#00C853"}}});function ot(){const t=$(({theme:{isDarkMode:r}})=>r),s=k(nt.setIsDarkMode);u.useEffect(()=>{s(localStorage.theme===C.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches)},[]);const n=()=>{localStorage.theme=t?C.LIGHT:C.DARK,s(!t)};return e.jsx(Y,{color:"inherit",onClick:n,children:t?e.jsx(Te,{}):e.jsx(ve,{})})}const x={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function it({isDistributed:t,state:s,host:n,totalRps:r,failRatio:a,userCount:o,workerCount:i}){return e.jsxs(d,{sx:{display:"flex",columnGap:2},children:[e.jsxs(d,{sx:{display:"flex",flexDirection:"column"},children:[e.jsx(l,{variant:"button",children:"Host"}),e.jsx(l,{children:n})]}),e.jsx(g,{flexItem:!0,orientation:"vertical"}),e.jsxs(d,{sx:{display:"flex",flexDirection:"column"},children:[e.jsx(l,{variant:"button",children:"Status"}),e.jsx(l,{variant:"button",children:s})]}),s===x.RUNNING&&e.jsxs(e.Fragment,{children:[e.jsx(g,{flexItem:!0,orientation:"vertical"}),e.jsxs(d,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx(l,{variant:"button",children:"Users"}),e.jsx(l,{variant:"button",children:o})]})]}),t&&e.jsxs(e.Fragment,{children:[e.jsx(g,{flexItem:!0,orientation:"vertical"}),e.jsxs(d,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx(l,{variant:"button",children:"Workers"}),e.jsx(l,{variant:"button",children:i})]})]}),e.jsx(g,{flexItem:!0,orientation:"vertical"}),e.jsxs(d,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx(l,{variant:"button",children:"RPS"}),e.jsx(l,{variant:"button",children:r})]}),e.jsx(g,{flexItem:!0,orientation:"vertical"}),e.jsxs(d,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx(l,{variant:"button",children:"Failures"}),e.jsx(l,{variant:"button",children:`${a}%`})]})]})}const ct=({swarm:{isDistributed:t,state:s,host:n,workerCount:r},ui:{totalRps:a,failRatio:o,userCount:i}})=>({isDistributed:t,state:s,host:n,totalRps:a,failRatio:o,userCount:i,workerCount:r}),lt=m(ct)(it);function ne({children:t,onSubmit:s}){const n=u.useCallback(async r=>{r.preventDefault();const a=new FormData(r.target),o={};for(const[i,c]of a.entries())o.hasOwnProperty(i)?(Array.isArray(o[i])||(o[i]=[o[i]]),o[i].push(c)):o[i]=c;s(o)},[s]);return e.jsx("form",{onSubmit:n,children:t})}const ut=t=>!Object.keys(t).length;function dt(t,s){return{...t,...s}}const mt=t=>{const s=new URLSearchParams;for(const[n,r]of Object.entries(t))if(Array.isArray(r))for(const a of r)s.append(n,a);else s.append(n,r);return s},W=(t,s)=>Object.entries(s).reduce((n,[r,a])=>({...n,[r]:[...n[r]||[],a]}),t);function re(t,s,n){return s&&(Array.isArray(s)?s.map(r=>re(t,r,n)):typeof s=="object"?B(s,n):s)}const B=(t,s)=>Object.entries(t).reduce((n,[r,a])=>({...n,[s(r)]:re(t,a,s)}),{}),ae=t=>t.replace(/_([a-z0-9])/g,(s,n)=>n.toUpperCase()),ht=t=>t[0]===t[0].toUpperCase()?t:t.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),T=t=>B(t,ae),xt=t=>B(t,ht),pt=t=>t.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,s=>s.toUpperCase()),ft=t=>Object.fromEntries(new URLSearchParams(t).entries()),F=Re({baseQuery:De(),endpoints:t=>({getStats:t.query({query:()=>"stats/requests",transformResponse:T}),getTasks:t.query({query:()=>"tasks",transformResponse:T}),getExceptions:t.query({query:()=>"exceptions",transformResponse:T}),startSwarm:t.mutation({query:s=>({url:"swarm",method:"POST",body:mt(xt(s)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:jt,useGetTasksQuery:yt,useGetExceptionsQuery:bt,useStartSwarmMutation:oe}=F;function St({onSubmit:t,spawnRate:s,userCount:n}){const[r]=oe(),a=o=>{t(),r(o)};return e.jsxs(v,{maxWidth:"md",sx:{my:2},children:[e.jsx(l,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),e.jsx(ne,{onSubmit:a,children:e.jsxs(d,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[e.jsx(f,{defaultValue:n||1,label:"Number of users (peak concurrency)",name:"userCount"}),e.jsx(f,{defaultValue:s||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),e.jsx(j,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const wt=({swarm:{spawnRate:t,userCount:s}})=>({spawnRate:t,userCount:s}),gt=m(wt)(St);function kt(){const[t,s]=u.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx(j,{color:"secondary",onClick:()=>s(!0),type:"button",variant:"contained",children:"Edit"}),e.jsx(G,{onClose:()=>s(!1),open:t,children:e.jsx(gt,{onSubmit:()=>s(!1)})})]})}function N({label:t,name:s,options:n,multiple:r=!1,defaultValue:a,sx:o}){return e.jsxs($e,{sx:o,children:[e.jsx(Pe,{htmlFor:s,shrink:!0,children:t}),e.jsx(Ae,{defaultValue:a||r&&n||n[0],label:t,multiple:r,name:s,native:!0,children:n.map((i,c)=>e.jsx("option",{value:i,children:i},`option-${i}-${c}`))})]})}const Q=t=>t.defaultValue!==null&&typeof t.defaultValue!="boolean";function Ct({label:t,defaultValue:s,choices:n,helpText:r,isSecret:a}){const o=pt(t),i=r?`${o} (${r})`:o;return n?e.jsx(N,{defaultValue:s,label:i,name:t,options:n,sx:{width:"100%"}}):e.jsx(f,{label:i,name:t,sx:{width:"100%"},type:a?"password":"text",value:s})}function Tt({extraOptions:t}){const s=u.useMemo(()=>Object.entries(t).reduce((r,[a,o])=>Q(o)?[...r,{label:a,...o}]:r,[]),[t]),n=u.useMemo(()=>Object.keys(t).reduce((r,a)=>Q(t[a])?r:[...r,a],[]),[t]);return e.jsxs(Z,{children:[e.jsx(X,{expandIcon:e.jsx(ee,{}),children:e.jsx(l,{children:"Custom parameters"})}),e.jsx(te,{children:e.jsxs(d,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[s.map((r,a)=>e.jsx(Ct,{...r},`valid-parameter-${a}`)),e.jsx(d,{children:n&&e.jsxs(e.Fragment,{children:[e.jsx(l,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),e.jsx("ul",{children:n.map((r,a)=>e.jsx("li",{children:e.jsx(l,{children:r})},`invalid-parameter-${a}`))})]})})]})})]})}function H(t,{payload:s}){return dt(t,s)}const vt=T(window.templateArgs),ie=D({name:"swarm",initialState:vt,reducers:{setSwarm:H}}),ce=ie.actions,Rt=ie.reducer;function Dt({availableShapeClasses:t,availableUserClasses:s,host:n,extraOptions:r,isShape:a,numUsers:o,overrideHostWarning:i,runTime:c,setSwarm:h,showUserclassPicker:b,spawnRate:S}){const[P]=oe(),w=A=>{h({state:x.RUNNING}),P(A)};return e.jsxs(v,{maxWidth:"md",sx:{my:2},children:[e.jsx(l,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),e.jsx(ne,{onSubmit:w,children:e.jsxs(d,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[b&&e.jsxs(e.Fragment,{children:[e.jsx(N,{label:"User Classes",multiple:!0,name:"userClasses",options:s}),e.jsx(N,{label:"Shape Class",name:"shapeClass",options:t})]}),e.jsx(f,{defaultValue:a&&"-"||o||1,disabled:!!a,label:"Number of users (peak concurrency)",name:"userCount"}),e.jsx(f,{defaultValue:a&&"-"||S||1,disabled:!!a,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),e.jsx(f,{defaultValue:n,label:`Host ${i?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),e.jsxs(Z,{children:[e.jsx(X,{expandIcon:e.jsx(ee,{}),children:e.jsx(l,{children:"Advanced options"})}),e.jsx(te,{children:e.jsx(f,{defaultValue:c,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!ut(r)&&e.jsx(Tt,{extraOptions:r}),e.jsx(j,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const $t=({swarm:{availableShapeClasses:t,availableUserClasses:s,extraOptions:n,isShape:r,host:a,numUsers:o,overrideHostWarning:i,runTime:c,spawnRate:h,showUserclassPicker:b}})=>({availableShapeClasses:t,availableUserClasses:s,extraOptions:n,isShape:r,host:a,overrideHostWarning:i,showUserclassPicker:b,numUsers:o,runTime:c,spawnRate:h}),Pt={setSwarm:ce.setSwarm},le=m($t,Pt)(Dt);function At(){const[t,s]=u.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx(j,{color:"success",onClick:()=>s(!0),type:"button",variant:"contained",children:"New"}),e.jsx(G,{onClose:()=>s(!1),open:t,children:e.jsx(le,{})})]})}function It(){const t=()=>{fetch("stats/reset")};return e.jsx(j,{color:"warning",onClick:t,type:"button",variant:"contained",children:"Reset"})}function Et(){const[t,s]=u.useState(!1);u.useEffect(()=>{s(!1)},[]);const n=()=>{fetch("stop"),s(!0)};return e.jsx(j,{color:"error",disabled:t,onClick:n,type:"button",variant:"contained",children:t?"Loading":"Stop"})}function Mt(){const t=$(({swarm:s})=>s.state);return t===x.READY?null:t===x.STOPPED?e.jsx(At,{}):e.jsxs(d,{sx:{display:"flex",columnGap:2},children:[e.jsx(kt,{}),e.jsx(Et,{}),e.jsx(It,{})]})}function Lt(){return e.jsx(Ie,{position:"static",children:e.jsx(v,{maxWidth:"xl",children:e.jsxs(Ee,{sx:{display:"flex",justifyContent:"space-between"},children:[e.jsxs(p,{color:"inherit",href:"#",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[e.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),e.jsx(l,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),e.jsxs(d,{sx:{display:"flex",columnGap:6},children:[e.jsx(lt,{}),e.jsx(Mt,{}),e.jsx(ot,{})]})]})})})}function Ft({children:t}){return e.jsxs(e.Fragment,{children:[e.jsx(Lt,{}),e.jsx("main",{children:t}),e.jsx(tt,{})]})}const U=(t,s=0)=>{const n=Math.pow(10,s);return Math.round(t*n)/n};function Nt({content:t,round:s,markdown:n}){return s?U(t,s):n?e.jsx(Oe,{skipHtml:!1,children:t}):t}function R({rows:t,structure:s}){return e.jsx(Me,{component:Le,children:e.jsxs(Fe,{children:[e.jsx(Ne,{children:e.jsx(z,{children:s.map(({title:n,key:r})=>e.jsx(J,{children:n},`table-head-${r}`))})}),e.jsx(Ue,{children:t.map((n,r)=>e.jsx(z,{children:s.map(({key:a,round:o,markdown:i},c)=>e.jsx(J,{children:e.jsx(Nt,{content:n[a],markdown:i,round:o})},`table-row=${c}`))},`${n.name}-${r}`))})]})})}function Ut({rows:t,tableStructure:s}){return s?e.jsx(R,{rows:t,structure:s}):null}const Ot=({swarm:{extendedTables:t},ui:{extendedStats:s},url:{query:n}})=>{const r=n&&n.tab&&t&&t.find(({key:o})=>o===n.tab),a=n&&n.tab&&s&&s.find(({key:o})=>o===n.tab);return{tableStructure:r?r.structure.map(({key:o,...i})=>({key:ae(o),...i})):null,rows:a?a.data:[]}},Gt=m(Ot)(Ut),Wt=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function Bt({exceptions:t}){return e.jsx(R,{rows:t,structure:Wt})}const Ht=({ui:{exceptions:t}})=>({exceptions:t}),_t=m(Ht)(Bt),qt=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function Vt({errors:t}){return e.jsx(R,{rows:t,structure:qt})}const Kt=({ui:{errors:t}})=>({errors:t}),zt=m(Kt)(Vt);function Jt({extendedCsvFiles:t,statsHistoryEnabled:s}){return e.jsxs(Ge,{sx:{display:"flex",flexDirection:"column"},children:[e.jsx(y,{children:e.jsx(p,{href:"/stats/requests/csv",children:"Download requests CSV"})}),s&&e.jsx(y,{children:e.jsx(p,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),e.jsx(y,{children:e.jsx(p,{href:"/stats/failures/csv",children:"Download failures CSV"})}),e.jsx(y,{children:e.jsx(p,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),e.jsx(y,{children:e.jsx(p,{href:"/stats/report",target:"_blank",children:"Download Report"})}),t&&t.map(({href:n,title:r})=>e.jsx(y,{children:e.jsx(p,{href:n,children:r})}))]})}const Qt=({swarm:{extendedCsvFiles:t,statsHistoryEnabled:s}})=>({extendedCsvFiles:t,statsHistoryEnabled:s}),Yt=m(Qt)(Jt),Zt=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function Xt({stats:t}){return e.jsx(R,{rows:t,structure:Zt})}const es=({ui:{stats:t}})=>({stats:t}),ts=m(es)(Xt),ss=({charts:t,title:s,seriesData:n})=>({legend:{icon:"circle",inactiveColor:"#b3c3bc",textStyle:{color:"#b3c3bc"}},title:{text:s,x:10,y:10},tooltip:{trigger:"axis",formatter:r=>r&&Array.isArray(r)&&r.length>0&&r.some(a=>!!a.value)?r.reduce((a,{color:o,seriesName:i,value:c})=>` - ${a} -
- - ${i}: ${c} - - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:"#b3c3bc",fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:"#5b6f66"}},data:t.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:"#5b6f66"}}},series:n,grid:{x:60,y:70,x2:40,y2:40},color:["#00ca5a","#ff6d6d"],toolbox:{feature:{saveAsImage:{name:s.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),ns=({charts:t,lines:s})=>s.map(({key:n,name:r})=>({name:r,type:"line",showSymbol:!0,data:t[n]})),rs=t=>({symbol:"none",label:{formatter:s=>`Run #${s.dataIndex+1}`},lineStyle:{color:"#5b6f66"},data:(t.markers||[]).map(s=>({xAxis:s}))});We("locust",{backgroundColor:"#27272a",xAxis:{lineColor:"#f00"},textStyle:{color:"#b3c3bc"},title:{textStyle:{color:"#b3c3bc"}}});function as({charts:t,title:s,lines:n}){const[r,a]=u.useState(null),o=u.useRef(null);return u.useEffect(()=>{if(!o.current)return;const i=Be(o.current,"locust");return i.setOption(ss({charts:t,title:s,seriesData:ns({charts:t,lines:n})})),a(i),()=>{He(i)}},[o]),u.useEffect(()=>{const i=n.every(({key:c})=>!!t[c]);r&&i&&r.setOption({xAxis:{data:t.time},series:n.map(({key:c},h)=>({data:t[c],...h===0?{markLine:rs(t)}:{}}))})},[t,r,n]),e.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const os=({ui:{charts:t}})=>({charts:t}),is=m(os)(as),cs=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}]},{title:"Response Times (ms)",lines:[{name:"Median Response Time",key:"responseTimePercentile1"},{name:"95% percentile",key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:'"Number of Users"',key:"userCount"}]}];function ls(){return e.jsx("div",{children:cs.map((t,s)=>e.jsx(is,{...t},`swarm-chart-${s}`))})}function us(t){return(t*100).toFixed(1)+"%"}function O({classRatio:t}){return e.jsx("ul",{children:Object.entries(t).map(([s,{ratio:n,tasks:r}])=>e.jsxs("li",{children:[`${us(n)} ${s}`,r&&e.jsx(O,{classRatio:r})]},`nested-ratio-${s}`))})}function ds({ratios:{perClass:t,total:s}}){return!t&&!s?null:e.jsxs("div",{children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:"Ratio Per Class"}),e.jsx(O,{classRatio:t})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:"Total Ratio"}),e.jsx(O,{classRatio:s})]})]})}const ms=({ui:{ratios:t}})=>({ratios:t}),hs=m(ms)(ds),xs=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage"}];function ps({workers:t=[]}){return e.jsx(R,{rows:t,structure:xs})}const fs=({ui:{workers:t}})=>({workers:t}),js=m(fs)(ps),ys=[{component:ts,key:"stats",title:"Statistics"},{component:ls,key:"charts",title:"Charts"},{component:zt,key:"failures",title:"Failures"},{component:_t,key:"exceptions",title:"Exceptions"},{component:hs,key:"ratios",title:"Current Ratio"},{component:Yt,key:"reports",title:"Download Data"}],bs=[{component:js,key:"workers",title:"Workers",shouldDisplayTab:t=>t.swarm.isDistributed}],Ss=t=>{const s=new URL(window.location.href);for(const[n,r]of Object.entries(t))s.searchParams.set(n,r);window.history.pushState(null,"",s)},ws=()=>window.location.search?ft(window.location.search):null,gs={query:ws()},ue=D({name:"url",initialState:gs,reducers:{setUrl:H}}),ks=ue.actions,Cs=ue.reducer;function Ts({currentTabIndexFromQuery:t,setUrl:s,tabs:n}){const[r,a]=u.useState(t),o=(i,c)=>{const h=n[c].key;Ss({tab:h}),s({query:{tab:h}}),a(c)};return e.jsxs(v,{maxWidth:"xl",children:[e.jsx(d,{sx:{mb:2},children:e.jsx(_e,{onChange:o,value:r,children:n.map(({title:i},c)=>e.jsx(qe,{label:i},`tab-${c}`))})}),n.map(({component:i=Gt},c)=>r===c&&e.jsx(i,{},`tabpabel-${c}`))]})}const vs=t=>{const{swarm:{extendedTabs:s=[]},url:{query:n}}=t,r=bs.filter(({shouldDisplayTab:o})=>o(t)),a=[...ys,...r,...s];return{tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},Rs={setUrl:ks.setUrl},Ds=m(vs,Rs)(Ts);function M(t,s,{shouldRunInterval:n}={shouldRunInterval:!0}){const r=u.useRef(t);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{if(!n)return;const a=setInterval(()=>r.current(),s);return()=>{clearInterval(a)}},[s,n])}const $s={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:T(window.templateArgs).history.reduce(W,{}),ratios:{},userCount:0},Ps=(t,s)=>W(t,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:s}),de=D({name:"ui",initialState:$s,reducers:{setUi:H,updateCharts:(t,{payload:s})=>({...t,charts:W(t.charts,s)}),updateChartMarkers:(t,{payload:s})=>({...t,charts:{...Ps(t.charts,s.length?s.at(-1):t.charts.time[0]),markers:t.charts.markers?[...t.charts.markers,s]:[t.charts.time[0],s]}})}}),L=de.actions,As=de.reducer;function Is(){const t=k(ce.setSwarm),s=k(L.setUi),n=k(L.updateCharts),r=k(L.updateChartMarkers),a=$(({swarm:I})=>I),o=u.useRef(a.state),[i,c]=u.useState(!1),{data:h,refetch:b}=jt(),{data:S,refetch:P}=yt(),{data:w,refetch:A}=bt();u.useEffect(()=>{if(!h)return;const{extendedStats:I,state:E,stats:me,errors:he,totalRps:xe,failRatio:_,workers:pe,currentResponseTimePercentile1:fe,currentResponseTimePercentile2:je,userCount:q}=h;(E===x.STOPPED||E===x.SPAWNING)&&t({state:E});const V=new Date().toLocaleTimeString();i&&(c(!1),r(V));const K=U(xe,2),ye=U(_*100),be={currentRps:K,currentFailPerSec:_,responseTimePercentile1:fe,responseTimePercentile2:je,userCount:q,time:V};s({extendedStats:I,stats:me,errors:he,totalRps:K,failRatio:ye,workers:pe,userCount:q}),n(be)},[h]),u.useEffect(()=>{S&&s({ratios:S})},[S]),u.useEffect(()=>{w&&s({exceptions:w.exceptions})},[w]),M(b,2e3,{shouldRunInterval:a.state!==x.STOPPED}),M(P,5e3,{shouldRunInterval:a.state!==x.STOPPED}),M(A,5e3,{shouldRunInterval:a.state!==x.STOPPED}),u.useEffect(()=>{a.state===x.RUNNING&&o.current===x.STOPPED&&c(!0),o.current=a.state},[a.state,o])}function Es({isDarkMode:t,swarmState:s}){Is();const n=u.useMemo(()=>at(t?C.DARK:C.LIGHT),[t]);return e.jsxs(Ve,{theme:n,children:[e.jsx(Ke,{}),e.jsx(Ft,{children:s===x.READY?e.jsx(le,{}):e.jsx(Ds,{})})]})}const Ms=({swarm:{state:t},theme:{isDarkMode:s}})=>({isDarkMode:s,swarmState:t}),Ls=m(Ms)(Es),Fs=ze({[F.reducerPath]:F.reducer,swarm:Rt,theme:rt,ui:As,url:Cs}),Ns=Je({reducer:Fs}),Us=Qe.createRoot(document.getElementById("root"));Us.render(e.jsx(Ye,{store:Ns,children:e.jsx(Ls,{})})); diff --git a/locust/webui/dist/assets/index-f6041128.js b/locust/webui/dist/assets/index-f6041128.js new file mode 100644 index 0000000000..dea8a0cf15 --- /dev/null +++ b/locust/webui/dist/assets/index-f6041128.js @@ -0,0 +1,236 @@ +function u7(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var NF={exports:{}},F0={},zF={exports:{}},lt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xp=Symbol.for("react.element"),f7=Symbol.for("react.portal"),d7=Symbol.for("react.fragment"),h7=Symbol.for("react.strict_mode"),p7=Symbol.for("react.profiler"),v7=Symbol.for("react.provider"),g7=Symbol.for("react.context"),m7=Symbol.for("react.forward_ref"),y7=Symbol.for("react.suspense"),x7=Symbol.for("react.memo"),S7=Symbol.for("react.lazy"),HP=Symbol.iterator;function b7(e){return e===null||typeof e!="object"?null:(e=HP&&e[HP]||e["@@iterator"],typeof e=="function"?e:null)}var BF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FF=Object.assign,$F={};function wf(e,t,r){this.props=e,this.context=t,this.refs=$F,this.updater=r||BF}wf.prototype.isReactComponent={};wf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};wf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VF(){}VF.prototype=wf.prototype;function RA(e,t,r){this.props=e,this.context=t,this.refs=$F,this.updater=r||BF}var LA=RA.prototype=new VF;LA.constructor=RA;FF(LA,wf.prototype);LA.isPureReactComponent=!0;var WP=Array.isArray,GF=Object.prototype.hasOwnProperty,EA={current:null},HF={key:!0,ref:!0,__self:!0,__source:!0};function WF(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)GF.call(t,n)&&!HF.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,U=O[G];if(0>>1;Gi(X,L))Wi(ee,X)?(O[G]=ee,O[W]=L,G=W):(O[G]=X,O[j]=L,G=j);else if(Wi(ee,L))O[G]=ee,O[W]=L,G=W;else break e}}return V}function i(O,V){var L=O.sortIndex-V.sortIndex;return L!==0?L:O.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(O){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=O)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function S(O){if(v=!1,x(O),!p)if(r(l)!==null)p=!0,z(_);else{var V=r(u);V!==null&&$(S,V.startTime-O)}}function _(O,V){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x(V),f=r(l);f!==null&&(!(f.expirationTime>V)||O&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x(V)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&$(S,j.startTime-V),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TO||125G?(O.sortIndex=L,t(u,O),r(l)===null&&O===r(u)&&(v?(m(C),C=-1):v=!0,$(S,L-G))):(O.sortIndex=U,t(l,O),p||h||(p=!0,z(_))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var V=d;return function(){var L=d;d=V;try{return O.apply(this,arguments)}finally{d=L}}}})(qF);YF.exports=qF;var R7=YF.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var XF=N,Vn=R7;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_w=Object.prototype.hasOwnProperty,L7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jP={},YP={};function E7(e){return _w.call(YP,e)?!0:_w.call(jP,e)?!1:L7.test(e)?YP[e]=!0:(jP[e]=!0,!1)}function O7(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N7(e,t,r,n){if(t===null||typeof t>"u"||O7(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function cn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Or[e]=new cn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Or[t]=new cn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Or[e]=new cn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Or[e]=new cn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Or[e]=new cn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Or[e]=new cn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Or[e]=new cn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Or[e]=new cn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Or[e]=new cn(e,5,!1,e.toLowerCase(),null,!1,!1)});var NA=/[\-:]([a-z])/g;function zA(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(NA,zA);Or[t]=new cn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(NA,zA);Or[t]=new cn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(NA,zA);Or[t]=new cn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Or[e]=new cn(e,1,!1,e.toLowerCase(),null,!1,!1)});Or.xlinkHref=new cn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Or[e]=new cn(e,1,!1,e.toLowerCase(),null,!0,!0)});function BA(e,t,r,n){var i=Or.hasOwnProperty(t)?Or[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{jx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ud(e):""}function z7(e){switch(e.tag){case 5:return Ud(e.type);case 16:return Ud("Lazy");case 13:return Ud("Suspense");case 19:return Ud("SuspenseList");case 0:case 2:case 15:return e=Yx(e.type,!1),e;case 11:return e=Yx(e.type.render,!1),e;case 1:return e=Yx(e.type,!0),e;default:return""}}function Aw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xc:return"Fragment";case yc:return"Portal";case ww:return"Profiler";case FA:return"StrictMode";case Cw:return"Suspense";case Tw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QF:return(e.displayName||"Context")+".Consumer";case KF:return(e._context.displayName||"Context")+".Provider";case $A:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case VA:return t=e.displayName||null,t!==null?t:Aw(e.type)||"Memo";case Go:t=e._payload,e=e._init;try{return Aw(e(t))}catch{}}return null}function B7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Aw(t);case 8:return t===FA?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function e$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F7(e){var t=e$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lv(e){e._valueTracker||(e._valueTracker=F7(e))}function t$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=e$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Km(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mw(e,t){var r=t.checked;return Zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function XP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=bs(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function r$(e,t){t=t.checked,t!=null&&BA(e,"checked",t,!1)}function Iw(e,t){r$(e,t);var r=bs(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pw(e,t.type,bs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ZP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Pw(e,t,r){(t!=="number"||Km(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var jd=Array.isArray;function Oc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ev.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$7=["Webkit","ms","Moz","O"];Object.keys(fh).forEach(function(e){$7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fh[t]=fh[e]})});function o$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fh.hasOwnProperty(e)&&fh[e]?(""+t).trim():t+"px"}function s$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=o$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var V7=Zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rw(e,t){if(t){if(V7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function Lw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ew=null;function GA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ow=null,Nc=null,zc=null;function JP(e){if(e=Qp(e)){if(typeof Ow!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=W0(t),Ow(e.stateNode,e.type,t))}}function l$(e){Nc?zc?zc.push(e):zc=[e]:Nc=e}function u$(){if(Nc){var e=Nc,t=zc;if(zc=Nc=null,JP(e),t)for(e=0;e>>=0,e===0?32:31-(Q7(e)/J7|0)|0}var Ov=64,Nv=4194304;function Yd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ty(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Yd(s):(a&=o,a!==0&&(n=Yd(a)))}else o=r&~i,o!==0?n=Yd(o):a!==0&&(n=Yd(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Zp(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$i(t),e[t]=r}function nY(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=hh),lk=String.fromCharCode(32),uk=!1;function P$(e,t){switch(e){case"keyup":return DY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sc=!1;function LY(e,t){switch(e){case"compositionend":return k$(t);case"keypress":return t.which!==32?null:(uk=!0,lk);case"textInput":return e=t.data,e===lk&&uk?null:e;default:return null}}function EY(e,t){if(Sc)return e==="compositionend"||!ZA&&P$(e,t)?(e=M$(),pm=YA=Xo=null,Sc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hk(r)}}function E$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O$(){for(var e=window,t=Km();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Km(e.document)}return t}function KA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function HY(e){var t=O$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&E$(r.ownerDocument.documentElement,r)){if(n!==null&&KA(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=pk(r,a);var o=pk(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,bc=null,Vw=null,vh=null,Gw=!1;function vk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Gw||bc==null||bc!==Km(n)||(n=bc,"selectionStart"in n&&KA(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),vh&&Jh(vh,n)||(vh=n,n=iy(Vw,"onSelect"),0Cc||(e.current=qw[Cc],qw[Cc]=null,Cc--)}function Et(e,t){Cc++,qw[Cc]=e.current,e.current=t}var _s={},qr=Bs(_s),bn=Bs(!1),ou=_s;function ef(e,t){var r=e.type.contextTypes;if(!r)return _s;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _n(e){return e=e.childContextTypes,e!=null}function oy(){Ft(bn),Ft(qr)}function _k(e,t,r){if(qr.current!==_s)throw Error(ae(168));Et(qr,t),Et(bn,r)}function W$(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ae(108,B7(e)||"Unknown",i));return Zt({},r,n)}function sy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_s,ou=qr.current,Et(qr,e),Et(bn,bn.current),!0}function wk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=W$(e,t,ou),n.__reactInternalMemoizedMergedChildContext=e,Ft(bn),Ft(qr),Et(qr,e)):Ft(bn),Et(bn,r)}var qa=null,U0=!1,sS=!1;function U$(e){qa===null?qa=[e]:qa.push(e)}function tq(e){U0=!0,U$(e)}function Fs(){if(!sS&&qa!==null){sS=!0;var e=0,t=Ct;try{var r=qa;for(Ct=1;e>=o,i-=o,Xa=1<<32-$i(t)+i|r<C?(A=w,w=null):A=w.sibling;var T=d(m,w,x[C],S);if(T===null){w===null&&(w=A);break}e&&w&&T.alternate===null&&t(m,w),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T,w=A}if(C===x.length)return r(m,w),Ht&&vl(m,C),_;if(w===null){for(;CC?(A=w,w=null):A=w.sibling;var M=d(m,w,T.value,S);if(M===null){w===null&&(w=A);break}e&&w&&M.alternate===null&&t(m,w),y=a(M,y,C),b===null?_=M:b.sibling=M,b=M,w=A}if(T.done)return r(m,w),Ht&&vl(m,C),_;if(w===null){for(;!T.done;C++,T=x.next())T=f(m,T.value,S),T!==null&&(y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return Ht&&vl(m,C),_}for(w=n(m,w);!T.done;C++,T=x.next())T=h(w,m,C,T.value,S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return e&&w.forEach(function(I){return t(m,I)}),Ht&&vl(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===xc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Rv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===xc){if(b.tag===7){r(m,b.sibling),y=i(b,x.props.children),y.return=m,m=y;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Go&&kk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=id(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===xc?(y=ql(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=_m(x.type,x.key,x.props,null,m.mode,S),S.ref=id(m,y,x),S.return=m,m=S)}return o(m);case yc:e:{for(b=x.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=vS(x,m.mode,S),y.return=m,m=y}return o(m);case Go:return b=x._init,g(m,y,b(x._payload),S)}if(jd(x))return p(m,y,x,S);if(Jf(x))return v(m,y,x,S);Hv(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,x),y.return=m,m=y):(r(m,y),y=pS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var rf=J$(!0),e3=J$(!1),Jp={},Ca=Bs(Jp),np=Bs(Jp),ip=Bs(Jp);function Ol(e){if(e===Jp)throw Error(ae(174));return e}function oM(e,t){switch(Et(ip,t),Et(np,e),Et(Ca,Jp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dw(t,e)}Ft(Ca),Et(Ca,t)}function nf(){Ft(Ca),Ft(np),Ft(ip)}function t3(e){Ol(ip.current);var t=Ol(Ca.current),r=Dw(t,e.type);t!==r&&(Et(np,e),Et(Ca,r))}function sM(e){np.current===e&&(Ft(Ca),Ft(np))}var Yt=Bs(0);function hy(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lS=[];function lM(){for(var e=0;er?r:4,e(!0);var n=uS.transition;uS.transition={};try{e(!1),t()}finally{Ct=r,uS.transition=n}}function m3(){return xi().memoizedState}function aq(e,t,r){var n=ds(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},y3(e))x3(t,r);else if(r=X$(e,t,r,n),r!==null){var i=nn();Vi(r,e,n,i),S3(r,t,n)}}function oq(e,t,r){var n=ds(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(y3(e))x3(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Wi(s,o)){var l=t.interleaved;l===null?(i.next=i,iM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=X$(e,t,i,n),r!==null&&(i=nn(),Vi(r,e,n,i),S3(r,t,n))}}function y3(e){var t=e.alternate;return e===Xt||t!==null&&t===Xt}function x3(e,t){gh=py=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function S3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,WA(e,r)}}var vy={readContext:yi,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useInsertionEffect:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useMutableSource:$r,useSyncExternalStore:$r,useId:$r,unstable_isNewReconciler:!1},sq={readContext:yi,useCallback:function(e,t){return aa().memoizedState=[e,t===void 0?null:t],e},useContext:yi,useEffect:Rk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ym(4194308,4,d3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ym(4194308,4,e,t)},useInsertionEffect:function(e,t){return ym(4,2,e,t)},useMemo:function(e,t){var r=aa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=aa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=aq.bind(null,Xt,e),[n.memoizedState,e]},useRef:function(e){var t=aa();return e={current:e},t.memoizedState=e},useState:Dk,useDebugValue:hM,useDeferredValue:function(e){return aa().memoizedState=e},useTransition:function(){var e=Dk(!1),t=e[0];return e=iq.bind(null,e[1]),aa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Xt,i=aa();if(Ht){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Tr===null)throw Error(ae(349));lu&30||i3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Rk(o3.bind(null,n,a,e),[e]),n.flags|=2048,sp(9,a3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=aa(),t=Tr.identifierPrefix;if(Ht){var r=Za,n=Xa;r=(n&~(1<<32-$i(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ap++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[fa]=t,e[rp]=n,P3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Lw(r,n),r){case"dialog":zt("cancel",e),zt("close",e),i=n;break;case"iframe":case"object":case"embed":zt("load",e),i=n;break;case"video":case"audio":for(i=0;iof&&(t.flags|=128,n=!0,ad(a,!1),t.lanes=4194304)}else{if(!n)if(e=hy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ad(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ht)return Vr(t),null}else 2*ir()-a.renderingStartTime>of&&r!==1073741824&&(t.flags|=128,n=!0,ad(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ir(),t.sibling=null,r=Yt.current,Et(Yt,n?r&1|2:r&1),t):(Vr(t),null);case 22:case 23:return xM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Rn&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function vq(e,t){switch(JA(t),t.tag){case 1:return _n(t.type)&&oy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nf(),Ft(bn),Ft(qr),lM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sM(t),null;case 13:if(Ft(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));tf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Yt),null;case 4:return nf(),null;case 10:return nM(t.type._context),null;case 22:case 23:return xM(),null;case 24:return null;default:return null}}var Uv=!1,Yr=!1,gq=typeof WeakSet=="function"?WeakSet:Set,be=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Jt(e,t,n)}else r.current=null}function oC(e,t,r){try{r()}catch(n){Jt(e,t,n)}}var Vk=!1;function mq(e,t){if(Hw=ry,e=O$(),KA(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ww={focusedElem:e,selectionRange:r},ry=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Li(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){Jt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return p=Vk,Vk=!1,p}function mh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&oC(t,r,a)}i=i.next}while(i!==n)}}function q0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function sC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function R3(e){var t=e.alternate;t!==null&&(e.alternate=null,R3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fa],delete t[rp],delete t[Yw],delete t[JY],delete t[eq])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function L3(e){return e.tag===5||e.tag===3||e.tag===4}function Gk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ay));else if(n!==4&&(e=e.child,e!==null))for(lC(e,t,r),e=e.sibling;e!==null;)lC(e,t,r),e=e.sibling}function uC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(uC(e,t,r),e=e.sibling;e!==null;)uC(e,t,r),e=e.sibling}var Ir=null,Oi=!1;function Mo(e,t,r){for(r=r.child;r!==null;)E3(e,t,r),r=r.sibling}function E3(e,t,r){if(wa&&typeof wa.onCommitFiberUnmount=="function")try{wa.onCommitFiberUnmount($0,r)}catch{}switch(r.tag){case 5:Yr||Ic(r,t);case 6:var n=Ir,i=Oi;Ir=null,Mo(e,t,r),Ir=n,Oi=i,Ir!==null&&(Oi?(e=Ir,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ir.removeChild(r.stateNode));break;case 18:Ir!==null&&(Oi?(e=Ir,r=r.stateNode,e.nodeType===8?oS(e.parentNode,r):e.nodeType===1&&oS(e,r),Kh(e)):oS(Ir,r.stateNode));break;case 4:n=Ir,i=Oi,Ir=r.stateNode.containerInfo,Oi=!0,Mo(e,t,r),Ir=n,Oi=i;break;case 0:case 11:case 14:case 15:if(!Yr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&oC(r,t,o),i=i.next}while(i!==n)}Mo(e,t,r);break;case 1:if(!Yr&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Jt(r,t,s)}Mo(e,t,r);break;case 21:Mo(e,t,r);break;case 22:r.mode&1?(Yr=(n=Yr)||r.memoizedState!==null,Mo(e,t,r),Yr=n):Mo(e,t,r);break;default:Mo(e,t,r)}}function Hk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new gq),t.forEach(function(n){var i=Aq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Mi(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=ir()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xq(n/1960))-n,10e?16:e,Zo===null)var n=!1;else{if(e=Zo,Zo=null,yy=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lir()-mM?Yl(e,0):gM|=r),wn(e,t)}function G3(e,t){t===0&&(e.mode&1?(t=Nv,Nv<<=1,!(Nv&130023424)&&(Nv=4194304)):t=1);var r=nn();e=so(e,t),e!==null&&(Zp(e,t,r),wn(e,r))}function Tq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),G3(e,r)}function Aq(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),G3(e,r)}var H3;H3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bn.current)Sn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Sn=!1,hq(e,t,r);Sn=!!(e.flags&131072)}else Sn=!1,Ht&&t.flags&1048576&&j$(t,uy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;xm(e,t),e=t.pendingProps;var i=ef(t,qr.current);Fc(t,r),i=cM(null,t,n,e,i,r);var a=fM();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_n(n)?(a=!0,sy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,aM(t),i.updater=j0,t.stateNode=i,i._reactInternals=t,Jw(t,n,e,r),t=rC(null,t,n,!0,a,r)):(t.tag=0,Ht&&a&&QA(t),en(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(xm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Iq(n),e=Li(n,e),i){case 0:t=tC(null,t,n,e,r);break e;case 1:t=Bk(null,t,n,e,r);break e;case 11:t=Nk(null,t,n,e,r);break e;case 14:t=zk(null,t,n,Li(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Li(n,i),tC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Li(n,i),Bk(e,t,n,i,r);case 3:e:{if(A3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,Z$(e,t),dy(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=af(Error(ae(423)),t),t=Fk(e,t,n,r,i);break e}else if(n!==i){i=af(Error(ae(424)),t),t=Fk(e,t,n,r,i);break e}else for(On=us(t.stateNode.containerInfo.firstChild),zn=t,Ht=!0,Ni=null,r=e3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(tf(),n===i){t=lo(e,t,r);break e}en(e,t,n,r)}t=t.child}return t;case 5:return t3(t),e===null&&Zw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Uw(n,i)?o=null:a!==null&&Uw(n,a)&&(t.flags|=32),T3(e,t),en(e,t,o,r),t.child;case 6:return e===null&&Zw(t),null;case 13:return M3(e,t,r);case 4:return oM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=rf(t,null,n,r):en(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Li(n,i),Nk(e,t,n,i,r);case 7:return en(e,t,t.pendingProps,r),t.child;case 8:return en(e,t,t.pendingProps.children,r),t.child;case 12:return en(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Et(cy,n._currentValue),n._currentValue=o,a!==null)if(Wi(a.value,o)){if(a.children===i.children&&!bn.current){t=lo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Ja(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Kw(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ae(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Kw(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}en(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Fc(t,r),i=yi(i),n=n(i),t.flags|=1,en(e,t,n,r),t.child;case 14:return n=t.type,i=Li(n,t.pendingProps),i=Li(n.type,i),zk(e,t,n,i,r);case 15:return w3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Li(n,i),xm(e,t),t.tag=1,_n(n)?(e=!0,sy(t)):e=!1,Fc(t,r),Q$(t,n,i),Jw(t,n,i,r),rC(null,t,n,!0,e,r);case 19:return I3(e,t,r);case 22:return C3(e,t,r)}throw Error(ae(156,t.tag))};function W3(e,t){return g$(e,t)}function Mq(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,r,n){return new Mq(e,t,r,n)}function bM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Iq(e){if(typeof e=="function")return bM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$A)return 11;if(e===VA)return 14}return 2}function hs(e,t){var r=e.alternate;return r===null?(r=hi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function _m(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")bM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case xc:return ql(r.children,i,a,t);case FA:o=8,i|=8;break;case ww:return e=hi(12,r,t,i|2),e.elementType=ww,e.lanes=a,e;case Cw:return e=hi(13,r,t,i),e.elementType=Cw,e.lanes=a,e;case Tw:return e=hi(19,r,t,i),e.elementType=Tw,e.lanes=a,e;case JF:return Z0(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case KF:o=10;break e;case QF:o=9;break e;case $A:o=11;break e;case VA:o=14;break e;case Go:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=hi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ql(e,t,r,n){return e=hi(7,e,n,t),e.lanes=r,e}function Z0(e,t,r,n){return e=hi(22,e,n,t),e.elementType=JF,e.lanes=r,e.stateNode={isHidden:!1},e}function pS(e,t,r){return e=hi(6,e,null,t),e.lanes=r,e}function vS(e,t,r){return t=hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pq(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xx(0),this.expirationTimes=Xx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xx(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _M(e,t,r,n,i,a,o,s,l){return e=new Pq(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=hi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},aM(a),e}function kq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(q3)}catch(e){console.error(e)}}q3(),jF.exports=Wn;var Af=jF.exports;const qv=qp(Af);var Kk=Af;bw.createRoot=Kk.createRoot,bw.hydrateRoot=Kk.hydrateRoot;var X3={exports:{}},Z3={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sf=N;function Oq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nq=typeof Object.is=="function"?Object.is:Oq,zq=sf.useState,Bq=sf.useEffect,Fq=sf.useLayoutEffect,$q=sf.useDebugValue;function Vq(e,t){var r=t(),n=zq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Fq(function(){i.value=r,i.getSnapshot=t,gS(i)&&a({inst:i})},[e,r,t]),Bq(function(){return gS(i)&&a({inst:i}),e(function(){gS(i)&&a({inst:i})})},[e]),$q(r),r}function gS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Nq(e,r)}catch{return!0}}function Gq(e,t){return t()}var Hq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Gq:Vq;Z3.useSyncExternalStore=sf.useSyncExternalStore!==void 0?sf.useSyncExternalStore:Hq;X3.exports=Z3;var K3=X3.exports,Q3={exports:{}},J3={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var t1=N,Wq=K3;function Uq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jq=typeof Object.is=="function"?Object.is:Uq,Yq=Wq.useSyncExternalStore,qq=t1.useRef,Xq=t1.useEffect,Zq=t1.useMemo,Kq=t1.useDebugValue;J3.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=qq(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Zq(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,jq(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=Yq(e,a[0],a[1]);return Xq(function(){o.hasValue=!0,o.value=s},[s]),Kq(s),s};Q3.exports=J3;var Qq=Q3.exports;function Jq(e){e()}let eV=Jq;const eX=e=>eV=e,tX=()=>eV,Qk=Symbol.for("react-redux-context"),Jk=typeof globalThis<"u"?globalThis:{};function rX(){var e;if(!N.createContext)return{};const t=(e=Jk[Qk])!=null?e:Jk[Qk]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const uo=rX();function AM(e=uo){return function(){return N.useContext(e)}}const tV=AM(),rV=()=>{throw new Error("uSES not initialized!")};let nV=rV;const nX=e=>{nV=e},iX=(e,t)=>e===t;function aX(e=uo){const t=e===uo?tV:AM(e);return function(n,i={}){const{equalityFn:a=iX,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();N.useRef(!0);const h=N.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,o]),p=nV(u.addNestedSub,l.getState,c||l.getState,h,a);return N.useDebugValue(p),p}}const iV=aX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var aV={exports:{}},At={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mr=typeof Symbol=="function"&&Symbol.for,MM=Mr?Symbol.for("react.element"):60103,IM=Mr?Symbol.for("react.portal"):60106,r1=Mr?Symbol.for("react.fragment"):60107,n1=Mr?Symbol.for("react.strict_mode"):60108,i1=Mr?Symbol.for("react.profiler"):60114,a1=Mr?Symbol.for("react.provider"):60109,o1=Mr?Symbol.for("react.context"):60110,PM=Mr?Symbol.for("react.async_mode"):60111,s1=Mr?Symbol.for("react.concurrent_mode"):60111,l1=Mr?Symbol.for("react.forward_ref"):60112,u1=Mr?Symbol.for("react.suspense"):60113,oX=Mr?Symbol.for("react.suspense_list"):60120,c1=Mr?Symbol.for("react.memo"):60115,f1=Mr?Symbol.for("react.lazy"):60116,sX=Mr?Symbol.for("react.block"):60121,lX=Mr?Symbol.for("react.fundamental"):60117,uX=Mr?Symbol.for("react.responder"):60118,cX=Mr?Symbol.for("react.scope"):60119;function jn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case MM:switch(e=e.type,e){case PM:case s1:case r1:case i1:case n1:case u1:return e;default:switch(e=e&&e.$$typeof,e){case o1:case l1:case f1:case c1:case a1:return e;default:return t}}case IM:return t}}}function oV(e){return jn(e)===s1}At.AsyncMode=PM;At.ConcurrentMode=s1;At.ContextConsumer=o1;At.ContextProvider=a1;At.Element=MM;At.ForwardRef=l1;At.Fragment=r1;At.Lazy=f1;At.Memo=c1;At.Portal=IM;At.Profiler=i1;At.StrictMode=n1;At.Suspense=u1;At.isAsyncMode=function(e){return oV(e)||jn(e)===PM};At.isConcurrentMode=oV;At.isContextConsumer=function(e){return jn(e)===o1};At.isContextProvider=function(e){return jn(e)===a1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===MM};At.isForwardRef=function(e){return jn(e)===l1};At.isFragment=function(e){return jn(e)===r1};At.isLazy=function(e){return jn(e)===f1};At.isMemo=function(e){return jn(e)===c1};At.isPortal=function(e){return jn(e)===IM};At.isProfiler=function(e){return jn(e)===i1};At.isStrictMode=function(e){return jn(e)===n1};At.isSuspense=function(e){return jn(e)===u1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===r1||e===s1||e===i1||e===n1||e===u1||e===oX||typeof e=="object"&&e!==null&&(e.$$typeof===f1||e.$$typeof===c1||e.$$typeof===a1||e.$$typeof===o1||e.$$typeof===l1||e.$$typeof===lX||e.$$typeof===uX||e.$$typeof===cX||e.$$typeof===sX)};At.typeOf=jn;aV.exports=At;var fX=aV.exports,kM=fX,dX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},hX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DM={};DM[kM.ForwardRef]=pX;DM[kM.Memo]=sV;function eD(e){return kM.isMemo(e)?sV:DM[e.$$typeof]||dX}var vX=Object.defineProperty,gX=Object.getOwnPropertyNames,tD=Object.getOwnPropertySymbols,mX=Object.getOwnPropertyDescriptor,yX=Object.getPrototypeOf,rD=Object.prototype;function lV(e,t,r){if(typeof t!="string"){if(rD){var n=yX(t);n&&n!==rD&&lV(e,n,r)}var i=gX(t);tD&&(i=i.concat(tD(t)));for(var a=eD(e),o=eD(t),s=0;st(i(...a)))}return r}function pC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function iD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function fV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=iD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=iD(u),u=a(s,l)),u},a}}function EM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function MX(e){return e&&typeof e=="object"?pC(t=>AX(e,t)):e?typeof e=="function"?fV(e):EM(e,"mapDispatchToProps"):pC(t=>({dispatch:t}))}function IX(e){return e?typeof e=="function"?fV(e):EM(e,"mapStateToProps"):pC(()=>({}))}function PX(e,t,r){return F({},r,e,t)}function kX(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function DX(e){return e?typeof e=="function"?kX(e):EM(e,"mergeProps"):()=>PX}function RX(){const e=tX();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const aD={notify(){},get:()=>[]};function dV(e,t){let r,n=aD;function i(f){return l(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=RX())}function u(){r&&(r(),r=void 0,n.clear(),n=aD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const LX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",by=LX?N.useLayoutEffect:N.useEffect;function oD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Xl(e,t){if(oD(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{hV=e},NX=[null,null];function zX(e,t,r){by(()=>e(...t),r)}function BX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function FX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,m;try{g=n(v,i.current)}catch(y){m=y,d=y}m||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function $X(e,t){return e===t}function Yn(e,t,r,{pure:n,areStatesEqual:i=$X,areOwnPropsEqual:a=Xl,areStatePropsEqual:o=Xl,areMergedPropsEqual:s=Xl,forwardRef:l=!1,context:u=uo}={}){const c=u,f=IX(e),d=MX(t),h=DX(r),p=!!e;return g=>{const m=g.displayName||g.name||"Component",y=`Connect(${m})`,x={shouldHandleStateChanges:p,displayName:y,wrappedComponentName:m,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,A,T]=N.useMemo(()=>{const{reactReduxForwardedRef:J}=w,fe=ye(w,EX);return[w.context,J,fe]},[w]),M=N.useMemo(()=>C&&C.Consumer&&_X.isContextConsumer(N.createElement(C.Consumer,null))?C:c,[C,c]),I=N.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=N.useMemo(()=>TX(R.dispatch,x),[R]),[O,V]=N.useMemo(()=>{if(!p)return NX;const J=dV(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=N.useMemo(()=>P?I:F({},I,{subscription:O}),[P,I,O]),G=N.useRef(),U=N.useRef(T),B=N.useRef(),j=N.useRef(!1);N.useRef(!1);const X=N.useRef(!1),W=N.useRef();by(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=N.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=N.useMemo(()=>fe=>O?FX(p,R,O,$,U,G,j,X,B,V,fe):()=>{},[O]);zX(BX,[U,G,j,T,B,V]);let ie;try{ie=hV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` +The error may be correlated with this previous error: +${W.current.stack} + +`),J}by(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=N.useMemo(()=>N.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return N.useMemo(()=>p?N.createElement(M.Provider,{value:L},re):re,[M,re,L])}const b=N.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=N.forwardRef(function(T,M){return N.createElement(b,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,nD(C,g)}return nD(b,g)}}function VX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=N.useMemo(()=>{const u=dV(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=N.useMemo(()=>e.getState(),[e]);by(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||uo;return N.createElement(l.Provider,{value:o},r)}function pV(e=uo){const t=e===uo?tV:AM(e);return function(){const{store:n}=t();return n}}const vV=pV();function GX(e=uo){const t=e===uo?vV:pV(e);return function(){return t().dispatch}}const gV=GX();nX(Qq.useSyncExternalStoreWithSelector);OX(K3.useSyncExternalStore);eX(Af.unstable_batchedUpdates);function Ml(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function mV(e){if(!Ml(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=mV(e[r])}),t}function gi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Ml(e)&&Ml(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Ml(t[i])&&i in e&&Ml(e[i])?n[i]=gi(e[i],t[i],r):r.clone?n[i]=Ml(t[i])?mV(t[i]):t[i]:n[i]=t[i])}),n}function ws(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function ev(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function HX(e,t){return()=>null}function Sh(e,t){return N.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function an(e){return e&&e.ownerDocument||document}function Pa(e){return an(e).defaultView||window}function WX(e,t){return()=>null}function _y(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const UX=typeof window<"u"?N.useLayoutEffect:N.useEffect,co=UX;let sD=0;function jX(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(sD+=1,r(`mui-${sD}`))},[t]),n}const lD=Sw["useId".toString()];function yV(e){if(lD!==void 0){const t=lD();return e??t}return jX(e)}function YX(e,t,r,n,i){return null}function wy({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=N.useRef(e!==void 0),[a,o]=N.useState(t),s=i?e:a,l=N.useCallback(u=>{i||o(u)},[]);return[s,l]}function ma(e){const t=N.useRef(e);return co(()=>{t.current=e}),N.useCallback((...r)=>(0,t.current)(...r),[])}function Ar(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_y(r,t)})},e)}let _1=!0,gC=!1,uD;const qX={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function XX(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&qX[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ZX(e){e.metaKey||e.altKey||e.ctrlKey||(_1=!0)}function mS(){_1=!1}function KX(){this.visibilityState==="hidden"&&gC&&(_1=!0)}function QX(e){e.addEventListener("keydown",ZX,!0),e.addEventListener("mousedown",mS,!0),e.addEventListener("pointerdown",mS,!0),e.addEventListener("touchstart",mS,!0),e.addEventListener("visibilitychange",KX,!0)}function JX(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return _1||XX(t)}function OM(){const e=N.useCallback(i=>{i!=null&&QX(i.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(gC=!0,window.clearTimeout(uD),uD=window.setTimeout(()=>{gC=!1},100),t.current=!1,!0):!1}function n(i){return JX(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function xV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ou;function SV(){if(Ou)return Ou;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ou="reverse",e.scrollLeft>0?Ou="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ou="negative")),document.body.removeChild(e),Ou}function eZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(SV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function NM(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=NM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Xe(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const cD=e=>e,tZ=()=>{let e=cD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cD}}},rZ=tZ(),zM=rZ,nZ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=nZ[t];return n?`${r}-${n}`:`${zM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function bV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var iZ=/^((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|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)-.*))$/,aZ=bV(function(e){return iZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function oZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?kr(Mf,--An):0,lf--,ur===10&&(lf=1,C1--),ur}function Bn(){return ur=An2||cp(ur)>3?"":" "}function xZ(e,t){for(;--t&&Bn()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return tv(e,wm()+(t<6&&Ta()==32&&Bn()==32))}function yC(e){for(;Bn();)switch(ur){case e:return An;case 34:case 39:e!==34&&e!==39&&yC(ur);break;case 40:e===41&&yC(e);break;case 92:Bn();break}return An}function SZ(e,t){for(;Bn()&&e+ur!==47+10;)if(e+ur===42+42&&Ta()===47)break;return"/*"+tv(t,An-1)+"*"+w1(e===47?e:Bn())}function bZ(e){for(;!cp(Ta());)Bn();return tv(e,An)}function _Z(e){return MV(Tm("",null,null,null,[""],e=AV(e),0,[0],e))}function Tm(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,_=a,b=n,w=x;g;)switch(p=y,y=Bn()){case 40:if(p!=108&&kr(w,f-1)==58){mC(w+=vt(Cm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Cm(y);break;case 9:case 10:case 13:case 32:w+=yZ(p);break;case 92:w+=xZ(wm()-1,7);continue;case 47:switch(Ta()){case 42:case 47:Xv(wZ(SZ(Bn(),wm()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=la(w)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:m==-1&&(w=vt(w,/\f/g,"")),h>0&&la(w)-f&&Xv(h>32?dD(w+";",n,r,f-1):dD(vt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(Xv(b=fD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)Tm(w,t,b,b,S,a,f,s,_);else switch(d===99&&kr(w,3)===110?100:d){case 100:case 108:case 109:case 115:Tm(e,b,b,n&&Xv(fD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:Tm(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+la(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&mZ()==125)continue}switch(w+=w1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(la(w)-1)*m,m=1;break;case 64:Ta()===45&&(w+=Cm(Bn())),d=Ta(),c=f=la(x=w+=bZ(wm())),y++;break;case 45:p===45&&la(w)==2&&(v=0)}}return a}function fD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=$M(d),p=0,v=0,g=0;p0?d[m]+" "+y:vt(y,/&\f/g,d[m])))&&(l[g++]=x);return T1(e,t,r,i===0?BM:s,l,u,c)}function wZ(e,t,r){return T1(e,t,r,_V,w1(gZ()),up(e,2,-2),0)}function dD(e,t,r,n){return T1(e,t,r,FM,up(e,0,n),up(e,n+1,-1),n)}function Vc(e,t){for(var r="",n=$M(e),i=0;i6)switch(kr(e,t+1)){case 109:if(kr(e,t+4)!==45)break;case 102:return vt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Cy+(kr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mC(e,"stretch")?IV(vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(kr(e,t+1)!==115)break;case 6444:switch(kr(e,la(e)-3-(~mC(e,"!important")&&10))){case 107:return vt(e,":",":"+pt)+e;case 101:return vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(kr(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch(kr(e,t+11)){case 114:return pt+e+Wr+vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+Wr+vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+Wr+vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+Wr+e+e}return e}var RZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case FM:t.return=IV(t.value,t.length);break;case wV:return Vc([sd(t,{value:vt(t.value,"@","@"+pt)})],i);case BM:if(t.length)return vZ(t.props,function(a){switch(pZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vc([sd(t,{props:[vt(a,/:(read-\w+)/,":"+Cy+"$1")]})],i);case"::placeholder":return Vc([sd(t,{props:[vt(a,/:(plac\w+)/,":"+pt+"input-$1")]}),sd(t,{props:[vt(a,/:(plac\w+)/,":"+Cy+"$1")]}),sd(t,{props:[vt(a,/:(plac\w+)/,Wr+"input-$1")]})],i)}return""})}},LZ=[RZ],EZ=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||LZ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),m=1;m=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BZ={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},FZ=/[A-Z]|^ms/g,$Z=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DV=function(t){return t.charCodeAt(1)===45},pD=function(t){return t!=null&&typeof t!="boolean"},yS=bV(function(e){return DV(e)?e:e.replace(FZ,"-$&").toLowerCase()}),vD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace($Z,function(n,i,a){return ua={name:i,styles:a,next:ua},i})}return BZ[t]!==1&&!DV(t)&&typeof r=="number"&&r!==0?r+"px":r};function fp(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ua={name:r.name,styles:r.styles,next:ua},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ua={name:n.name,styles:n.styles,next:ua},n=n.next;var i=r.styles+";";return i}return VZ(e,t,r)}case"function":{if(e!==void 0){var a=ua,o=r(e);return ua=a,fp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function VZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?jZ:YZ},xD=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},qZ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return PV(r,n,i),HZ(function(){return kV(r,n,i)}),null},XZ=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=xD(t,r,n),l=s||yD(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(KZ(i)?r:i):t;return E.jsx(WZ,{styles:n})}/** + * @mui/styled-engine v5.14.10 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function OV(e,t){return xC(e,t)}const JZ=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},eK=["values","unit","step"],tK=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>F({},r,{[n.key]:n.val}),{})};function rK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,eK),a=tK(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${HM[e]}px)`};function fo(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||SD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||SD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||HM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function aK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function oK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function uf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Ty(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=uf(e,r)||n,t&&(i=t(i,n,e)),i}function St(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=uf(l,n)||{};return fo(o,s,f=>{let d=Ty(u,i,f);return f===d&&typeof f=="string"&&(d=Ty(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function sK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const lK={m:"margin",p:"padding"},uK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cK=sK(e=>{if(e.length>2)if(bD[e])e=bD[e];else return[e];const[t,r]=e.split(""),n=lK[t],i=uK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),WM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],UM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...WM,...UM];function rv(e,t,r,n){var i;const a=(i=uf(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function NV(e){return rv(e,"spacing",8)}function nv(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function fK(e,t){return r=>e.reduce((n,i)=>(n[i]=nv(t,r),n),{})}function dK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=cK(r),a=fK(i,n),o=e[r];return fo(e,o,a)}function zV(e,t){const r=NV(e.theme);return Object.keys(e).map(n=>dK(e,t,n,r)).reduce(bh,{})}function Kt(e){return zV(e,WM)}Kt.propTypes={};Kt.filterProps=WM;function Qt(e){return zV(e,UM)}Qt.propTypes={};Qt.filterProps=UM;function hK(e=8){if(e.mui)return e;const t=NV({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function M1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?bh(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function da(e){return typeof e!="number"?e:`${e}px solid`}const pK=St({prop:"border",themeKey:"borders",transform:da}),vK=St({prop:"borderTop",themeKey:"borders",transform:da}),gK=St({prop:"borderRight",themeKey:"borders",transform:da}),mK=St({prop:"borderBottom",themeKey:"borders",transform:da}),yK=St({prop:"borderLeft",themeKey:"borders",transform:da}),xK=St({prop:"borderColor",themeKey:"palette"}),SK=St({prop:"borderTopColor",themeKey:"palette"}),bK=St({prop:"borderRightColor",themeKey:"palette"}),_K=St({prop:"borderBottomColor",themeKey:"palette"}),wK=St({prop:"borderLeftColor",themeKey:"palette"}),I1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:nv(t,n)});return fo(e,e.borderRadius,r)}return null};I1.propTypes={};I1.filterProps=["borderRadius"];M1(pK,vK,gK,mK,yK,xK,SK,bK,_K,wK,I1);const P1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rv(e.theme,"spacing",8),r=n=>({gap:nv(t,n)});return fo(e,e.gap,r)}return null};P1.propTypes={};P1.filterProps=["gap"];const k1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rv(e.theme,"spacing",8),r=n=>({columnGap:nv(t,n)});return fo(e,e.columnGap,r)}return null};k1.propTypes={};k1.filterProps=["columnGap"];const D1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rv(e.theme,"spacing",8),r=n=>({rowGap:nv(t,n)});return fo(e,e.rowGap,r)}return null};D1.propTypes={};D1.filterProps=["rowGap"];const CK=St({prop:"gridColumn"}),TK=St({prop:"gridRow"}),AK=St({prop:"gridAutoFlow"}),MK=St({prop:"gridAutoColumns"}),IK=St({prop:"gridAutoRows"}),PK=St({prop:"gridTemplateColumns"}),kK=St({prop:"gridTemplateRows"}),DK=St({prop:"gridTemplateAreas"}),RK=St({prop:"gridArea"});M1(P1,k1,D1,CK,TK,AK,MK,IK,PK,kK,DK,RK);function Gc(e,t){return t==="grey"?t:e}const LK=St({prop:"color",themeKey:"palette",transform:Gc}),EK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gc}),OK=St({prop:"backgroundColor",themeKey:"palette",transform:Gc});M1(LK,EK,OK);function Ln(e){return e<=1&&e!==0?`${e*100}%`:e}const NK=St({prop:"width",transform:Ln}),jM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||HM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ln(r)}};return fo(e,e.maxWidth,t)}return null};jM.filterProps=["maxWidth"];const zK=St({prop:"minWidth",transform:Ln}),BK=St({prop:"height",transform:Ln}),FK=St({prop:"maxHeight",transform:Ln}),$K=St({prop:"minHeight",transform:Ln});St({prop:"size",cssProperty:"width",transform:Ln});St({prop:"size",cssProperty:"height",transform:Ln});const VK=St({prop:"boxSizing"});M1(NK,jM,zK,BK,FK,$K,VK);const GK={border:{themeKey:"borders",transform:da},borderTop:{themeKey:"borders",transform:da},borderRight:{themeKey:"borders",transform:da},borderBottom:{themeKey:"borders",transform:da},borderLeft:{themeKey:"borders",transform:da},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:I1},color:{themeKey:"palette",transform:Gc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gc},backgroundColor:{themeKey:"palette",transform:Gc},p:{style:Qt},pt:{style:Qt},pr:{style:Qt},pb:{style:Qt},pl:{style:Qt},px:{style:Qt},py:{style:Qt},padding:{style:Qt},paddingTop:{style:Qt},paddingRight:{style:Qt},paddingBottom:{style:Qt},paddingLeft:{style:Qt},paddingX:{style:Qt},paddingY:{style:Qt},paddingInline:{style:Qt},paddingInlineStart:{style:Qt},paddingInlineEnd:{style:Qt},paddingBlock:{style:Qt},paddingBlockStart:{style:Qt},paddingBlockEnd:{style:Qt},m:{style:Kt},mt:{style:Kt},mr:{style:Kt},mb:{style:Kt},ml:{style:Kt},mx:{style:Kt},my:{style:Kt},margin:{style:Kt},marginTop:{style:Kt},marginRight:{style:Kt},marginBottom:{style:Kt},marginLeft:{style:Kt},marginX:{style:Kt},marginY:{style:Kt},marginInline:{style:Kt},marginInlineStart:{style:Kt},marginInlineEnd:{style:Kt},marginBlock:{style:Kt},marginBlockStart:{style:Kt},marginBlockEnd:{style:Kt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:P1},rowGap:{style:D1},columnGap:{style:k1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ln},maxWidth:{style:jM},minWidth:{transform:Ln},height:{transform:Ln},maxHeight:{transform:Ln},minHeight:{transform:Ln},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},R1=GK;function HK(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function WK(e,t){return typeof e=="function"?e(t):e}function UK(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=uf(i,u)||{};return f?f(o):fo(o,n,p=>{let v=Ty(d,c,p);return p===v&&typeof p=="string"&&(v=Ty(d,c,`${r}${p==="default"?"":Me(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:R1;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=aK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=WK(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=bh(d,e(h,p,a,o));else{const v=fo({theme:a},p,g=>({[h]:g}));HK(v,p)?d[h]=t({sx:p,theme:a}):d=bh(d,v)}else d=bh(d,e(h,p,a,o))}),oK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const BV=UK();BV.filterProps=["sx"];const L1=BV,jK=["breakpoints","palette","spacing","shape"];function E1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,jK),s=rK(r),l=hK(i);let u=gi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},iK,a)},o);return u=t.reduce((c,f)=>gi(c,f),u),u.unstable_sxConfig=F({},R1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return L1({sx:f,theme:this})},u}function YK(e){return Object.keys(e).length===0}function FV(e=null){const t=N.useContext(A1);return!t||YK(t)?e:t}const qK=E1();function O1(e=qK){return FV(e)}function XK({styles:e,themeId:t,defaultTheme:r={}}){const n=O1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(QZ,{styles:i})}const ZK=["sx"],KK=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:R1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function $V(e){const{sx:t}=e,r=ye(e,ZK),{systemProps:n,otherProps:i}=KK(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Ml(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function VV(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(L1);return N.forwardRef(function(l,u){const c=O1(r),f=$V(l),{className:d,component:h="div"}=f,p=ye(f,QK);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const eQ=["variant"];function _D(e){return e.length===0}function GV(e){const{variant:t}=e,r=ye(e,eQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=_D(n)?e[i]:Me(e[i]):n+=`${_D(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const tQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rQ(e){return Object.keys(e).length===0}function nQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const iQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,aQ=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=GV(i.props);n[a]=i.style}),n},oQ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[GV(l.props)])}),o};function _h(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const sQ=E1(),lQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ld({defaultTheme:e,theme:t,themeId:r}){return rQ(t)?e:t[r]||t}function uQ(e){return e?(t,r)=>r[e]:null}function HV(e={}){const{themeId:t,defaultTheme:r=sQ,rootShouldForwardProp:n=_h,slotShouldForwardProp:i=_h}=e,a=o=>L1(F({},o,{theme:ld(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{JZ(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=uQ(lQ(u))}=s,h=ye(s,tQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=_h;u==="Root"||u==="root"?m=n:u?m=i:nQ(o)&&(m=void 0);const y=OV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:ld(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=ld(F({},T,{defaultTheme:r,themeId:t})),I=iQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=ld(F({},T,{defaultTheme:r,themeId:t}));return oQ(T,aQ(l,M),M,l)}),v||b.push(a);const C=b.length-_.length;if(Array.isArray(S)&&C>0){const T=new Array(C).fill("");w=[...S,...T],w.raw=[...S.raw,...T]}else typeof S=="function"&&S.__emotion_real!==S&&(w=T=>S(F({},T,{theme:ld(F({},T,{defaultTheme:r,themeId:t}))})));const A=y(w,...b);return o.muiName&&(A.muiName=o.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const cQ=HV(),fQ=cQ;function dQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:NM(t.components[r].defaultProps,n)}function WV({props:e,name:t,defaultTheme:r,themeId:n}){let i=O1(r);return n&&(i=i[n]||i),dQ({theme:i,name:t,props:e})}function YM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function hQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fu(e){if(e.type)return e;if(e.charAt(0)==="#")return fu(hQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(ws(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(ws(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function N1(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function pQ(e){e=fu(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),N1({type:s,values:l})}function wD(e){e=fu(e);let t=e.type==="hsl"||e.type==="hsla"?fu(pQ(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vQ(e,t){const r=wD(e),n=wD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function _r(e,t){return e=fu(e),t=YM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,N1(e)}function UV(e,t){if(e=fu(e),t=YM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return N1(e)}function jV(e,t){if(e=fu(e),t=YM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return N1(e)}const gQ=N.createContext(null),YV=gQ;function qV(){return N.useContext(YV)}const mQ=typeof Symbol=="function"&&Symbol.for,yQ=mQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function xQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function SQ(e){const{children:t,theme:r}=e,n=qV(),i=N.useMemo(()=>{const a=n===null?r:xQ(n,r);return a!=null&&(a[yQ]=n!==null),a},[r,n]);return E.jsx(YV.Provider,{value:i,children:t})}const CD={};function TD(e,t,r,n=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function bQ(e){const{children:t,theme:r,themeId:n}=e,i=FV(CD),a=qV()||CD,o=TD(n,i,r),s=TD(n,a,r,!0);return E.jsx(SQ,{theme:s,children:E.jsx(A1.Provider,{value:o,children:t})})}const _Q=["className","component","disableGutters","fixed","maxWidth","classes"],wQ=E1(),CQ=fQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),TQ=e=>WV({props:e,name:"MuiContainer",defaultTheme:wQ}),AQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Xe(s,r,n)};function MQ(e={}){const{createStyledComponent:t=CQ,useThemeProps:r=TQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>F({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return N.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=ye(u,_Q),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=AQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function IQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const PQ={black:"#000",white:"#fff"},dp=PQ,kQ={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"},DQ=kQ,RQ={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"},Nu=RQ,LQ={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"},zu=LQ,EQ={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"},ud=EQ,OQ={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"},Bu=OQ,NQ={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"},Fu=NQ,zQ={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"},$u=zQ,BQ=["mode","contrastThreshold","tonalOffset"],AD={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:dp.white,default:dp.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}},xS={text:{primary:dp.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:dp.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 MD(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=jV(e.main,i):t==="dark"&&(e.dark=UV(e.main,a)))}function FQ(e="light"){return e==="dark"?{main:Bu[200],light:Bu[50],dark:Bu[400]}:{main:Bu[700],light:Bu[400],dark:Bu[800]}}function $Q(e="light"){return e==="dark"?{main:Nu[200],light:Nu[50],dark:Nu[400]}:{main:Nu[500],light:Nu[300],dark:Nu[700]}}function VQ(e="light"){return e==="dark"?{main:zu[500],light:zu[300],dark:zu[700]}:{main:zu[700],light:zu[400],dark:zu[800]}}function GQ(e="light"){return e==="dark"?{main:Fu[400],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[500],dark:Fu[900]}}function HQ(e="light"){return e==="dark"?{main:$u[400],light:$u[300],dark:$u[700]}:{main:$u[800],light:$u[500],dark:$u[900]}}function WQ(e="light"){return e==="dark"?{main:ud[400],light:ud[300],dark:ud[700]}:{main:"#ed6c02",light:ud[500],dark:ud[900]}}function UQ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,BQ),a=e.primary||FQ(t),o=e.secondary||$Q(t),s=e.error||VQ(t),l=e.info||GQ(t),u=e.success||HQ(t),c=e.warning||WQ(t);function f(v){return vQ(v,xS.text.primary)>=r?xS.text.primary:AD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(ws(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(ws(12,g?` (${g})`:"",JSON.stringify(v.main)));return MD(v,"light",y,n),MD(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:xS,light:AD};return gi(F({common:F({},dp),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:DQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const jQ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function YQ(e){return Math.round(e*1e5)/1e5}const ID={textTransform:"uppercase"},PD='"Roboto", "Helvetica", "Arial", sans-serif';function qQ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=PD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,jQ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===PD?{letterSpacing:`${YQ(S/y)}em`}:{},_,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,ID),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,ID),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const XQ=.2,ZQ=.14,KQ=.12;function Vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${XQ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ZQ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KQ})`].join(",")}const QQ=["none",Vt(0,2,1,-1,0,1,1,0,0,1,3,0),Vt(0,3,1,-2,0,2,2,0,0,1,5,0),Vt(0,3,3,-2,0,3,4,0,0,1,8,0),Vt(0,2,4,-1,0,4,5,0,0,1,10,0),Vt(0,3,5,-1,0,5,8,0,0,1,14,0),Vt(0,3,5,-1,0,6,10,0,0,1,18,0),Vt(0,4,5,-2,0,7,10,1,0,2,16,1),Vt(0,5,5,-3,0,8,10,1,0,3,14,2),Vt(0,5,6,-3,0,9,12,1,0,3,16,2),Vt(0,6,6,-3,0,10,14,1,0,4,18,3),Vt(0,6,7,-4,0,11,15,1,0,4,20,3),Vt(0,7,8,-4,0,12,17,2,0,5,22,4),Vt(0,7,8,-4,0,13,19,2,0,5,24,4),Vt(0,7,9,-4,0,14,21,2,0,5,26,4),Vt(0,8,9,-5,0,15,22,2,0,6,28,5),Vt(0,8,10,-5,0,16,24,2,0,6,30,5),Vt(0,8,11,-5,0,17,26,2,0,6,32,5),Vt(0,9,11,-5,0,18,28,2,0,7,34,6),Vt(0,9,12,-6,0,19,29,2,0,7,36,6),Vt(0,10,13,-6,0,20,31,3,0,8,38,7),Vt(0,10,13,-6,0,21,33,3,0,8,40,7),Vt(0,10,14,-6,0,22,35,3,0,8,42,7),Vt(0,11,14,-7,0,23,36,3,0,9,44,8),Vt(0,11,15,-7,0,24,38,3,0,9,46,8)],JQ=QQ,eJ=["duration","easing","delay"],tJ={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)"},XV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kD(e){return`${Math.round(e)}ms`}function rJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nJ(e){const t=F({},tJ,e.easing),r=F({},XV,e.duration);return F({getAutoHeightDuration:rJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,eJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:kD(o)} ${s} ${typeof l=="string"?l:kD(l)}`).join(",")}},e,{easing:t,duration:r})}const iJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},aJ=iJ,oJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,oJ);if(e.vars)throw new Error(ws(18));const s=UQ(n),l=E1(e);let u=gi(l,{mixins:IQ(l.breakpoints,r),palette:s,shadows:JQ.slice(),typography:qQ(s,a),transitions:nJ(i),zIndex:F({},aJ)});return u=gi(u,o),u=t.reduce((c,f)=>gi(c,f),u),u.unstable_sxConfig=F({},R1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return L1({sx:f,theme:this})},u}const sJ=qM(),z1=sJ,du="$$material";function Ye({props:e,name:t}){return WV({props:e,name:t,defaultTheme:z1,themeId:du})}function ZV(e){return E.jsx(XK,F({},e,{defaultTheme:z1,themeId:du}))}const lJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),uJ=e=>F({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),cJ=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=F({html:lJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},uJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function KV(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(N.Fragment,{children:[E.jsx(ZV,{styles:i=>cJ(i,n)}),r]})}function If(){const e=O1(z1);return e[du]||e}const bo=e=>_h(e)&&e!=="classes",fJ=_h,dJ=HV({themeId:du,defaultTheme:z1,rootShouldForwardProp:bo}),ge=dJ,hJ=["theme"];function QV(e){let{theme:t}=e,r=ye(e,hJ);const n=t[du];return E.jsx(bQ,F({},r,{themeId:n?du:void 0,theme:n||t}))}const pJ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},DD=pJ;function vJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Xe(i,vJ,n)},yJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),JV=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=ye(n,gJ),p=N.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=mJ(v);return E.jsxs(yJ,F({as:s,className:Ce(m.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?E.jsx("title",{children:f}):null]}))});JV.muiName="SvgIcon";const RD=JV;function B1(e,t){function r(n,i){return E.jsx(RD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=RD.muiName,N.memo(N.forwardRef(r))}const xJ={configure:e=>{zM.configure(e)}},SJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:vC,createSvgIcon:B1,debounce:ev,deprecatedPropType:HX,isMuiElement:Sh,ownerDocument:an,ownerWindow:Pa,requirePropFactory:WX,setRef:_y,unstable_ClassNameGenerator:xJ,unstable_useEnhancedEffect:co,unstable_useId:yV,unsupportedProp:YX,useControlled:wy,useEventCallback:ma,useForkRef:Ar,useIsFocusVisible:OM},Symbol.toStringTag,{value:"Module"}));function SC(e,t){return SC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},SC(e,t)}function e4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,SC(e,t)}const LD={disabled:!1},Ay=ga.createContext(null);var bJ=function(t){return t.scrollTop},Xd="unmounted",ml="exited",yl="entering",fc="entered",bC="exiting",_o=function(e){e4(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=ml,a.appearStatus=yl):l=fc:n.unmountOnExit||n.mountOnEnter?l=Xd:l=ml,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Xd?{status:ml}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==yl&&o!==fc&&(a=yl):(o===yl||o===fc)&&(a=bC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===yl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:qv.findDOMNode(this);o&&bJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ml&&this.setState({status:Xd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[qv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||LD.disabled){this.safeSetState({status:fc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:yl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:fc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:qv.findDOMNode(this);if(!a||LD.disabled){this.safeSetState({status:ml},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:bC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ml},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:qv.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Xd)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ga.createElement(Ay.Provider,{value:null},typeof o=="function"?o(i,s):ga.cloneElement(ga.Children.only(o),s))},t}(ga.Component);_o.contextType=Ay;_o.propTypes={};function Vu(){}_o.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vu,onEntering:Vu,onEntered:Vu,onExit:Vu,onExiting:Vu,onExited:Vu};_o.UNMOUNTED=Xd;_o.EXITED=ml;_o.ENTERING=yl;_o.ENTERED=fc;_o.EXITING=bC;const XM=_o;function _J(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZM(e,t){var r=function(a){return t&&N.isValidElement(a)?t(a):a},n=Object.create(null);return e&&N.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function wJ(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;oe.scrollTop;function cf(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function PJ(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const kJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],DJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(n,PJ,r)},RJ=ge("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),LJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),EJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),r4=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:m="vertical",style:y,timeout:x=XV.standard,TransitionComponent:S=XM}=n,_=ye(n,kJ),b=F({},n,{orientation:m,collapsedSize:s}),w=DJ(b),C=If(),A=N.useRef(),T=N.useRef(null),M=N.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";N.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=N.useRef(null),z=Ar(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},O=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=O();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=cf({style:y,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=C.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${Q}ms`,M.current=Q}else W.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;W.style[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${O()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=O(),{duration:te,easing:ie}=cf({style:y,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const re=C.transitions.getAutoHeightDuration(ee);W.style.transitionDuration=`${re}ms`,M.current=re}else W.style.transitionDuration=typeof te=="string"?te:`${te}ms`;W.style[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx(RJ,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(LJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(EJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});r4.muiSupportAuto=!0;const OJ=r4;function NJ(e){return Ue("MuiPaper",e)}je("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const zJ=["className","component","elevation","square","variant"],BJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Xe(a,NJ,i)},FJ=ge("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${_r("#fff",DD(t.elevation))}, ${_r("#fff",DD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),$J=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,zJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=BJ(c);return E.jsx(FJ,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),F1=$J,VJ=N.createContext({}),n4=VJ;function GJ(e){return Ue("MuiAccordion",e)}const HJ=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Zv=HJ,WJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],UJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Xe({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},GJ,t)},jJ=ge(F1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zv.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Zv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Zv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Zv.expanded}`]:{margin:"16px 0"}})),YJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=OJ,TransitionProps:h}=n,p=ye(n,WJ),[v,g]=wy({controlled:u,default:o,name:"Accordion",state:"expanded"}),m=N.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[y,...x]=N.Children.toArray(i),S=N.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:m}),[v,s,l,m]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=UJ(_);return E.jsxs(jJ,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(n4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),i4=YJ;function qJ(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const XJ=["className"],ZJ=e=>{const{classes:t}=e;return Xe({root:["root"]},qJ,t)},KJ=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),QJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,XJ),o=n,s=ZJ(o);return E.jsx(KJ,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),a4=QJ;function JJ(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=N.useState(!1),d=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),N.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const eee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ni=eee,tee=["center","classes","className"];let $1=e=>e,ED,OD,ND,zD;const _C=550,ree=80,nee=GM(ED||(ED=$1` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),iee=GM(OD||(OD=$1` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),aee=GM(ND||(ND=$1` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),oee=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),see=ge(JJ,{name:"MuiTouchRipple",slot:"Ripple"})(zD||(zD=$1` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),ni.rippleVisible,nee,_C,({theme:e})=>e.transitions.easing.easeInOut,ni.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ni.child,ni.childLeaving,iee,_C,({theme:e})=>e.transitions.easing.easeInOut,ni.childPulsate,aee,({theme:e})=>e.transitions.easing.easeInOut),lee=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,tee),[l,u]=N.useState([]),c=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=N.useRef(!1),h=N.useRef(0),p=N.useRef(null),v=N.useRef(null);N.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=N.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:A}=S;u(T=>[...T,E.jsx(see,{classes:{ripple:Ce(a.ripple,ni.ripple),rippleVisible:Ce(a.rippleVisible,ni.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ni.ripplePulsate),child:Ce(a.child,ni.child),childLeaving:Ce(a.childLeaving,ni.childLeaving),childPulsate:Ce(a.childPulsate,ni.childPulsate)},timeout:_C,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=A},[a]),m=N.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:A=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const T=A?null:v.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},ree)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},[i,g]),y=N.useCallback(()=>{m({},{pulsate:!0})},[m]),x=N.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return N.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),E.jsx(oee,F({className:Ce(ni.root,a.root,o),ref:v},s,{children:E.jsx(IJ,{component:null,exit:!0,children:l})}))}),uee=lee;function cee(e){return Ue("MuiButtonBase",e)}const fee=je("MuiButtonBase",["root","disabled","focusVisible"]),dee=fee,hee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],pee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Xe({root:["root",t&&"disabled",r&&"focusVisible"]},cee,i);return r&&n&&(o.root+=` ${n}`),o},vee=ge("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gee=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:A,onTouchMove:T,onTouchStart:M,tabIndex:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,hee),$=N.useRef(null),O=N.useRef(null),V=Ar(O,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=OM(),[j,X]=N.useState(!1);u&&j&&X(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=N.useState(!1);N.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;N.useEffect(()=>{j&&d&&!c&&W&&O.current.pulsate()},[c,d,j,W]);function ie(he,$t,xr=f){return ma(Te=>($t&&$t(Te),!xr&&O.current&&O.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ma(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=N.useRef(!1),Pt=ma(he=>{d&&!Be.current&&j&&O.current&&he.key===" "&&(Be.current=!0,O.current.stop(he,()=>{O.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),jt=ma(he=>{d&&he.key===" "&&O.current&&j&&!he.defaultPrevented&&(Be.current=!1,O.current.stop(he,()=>{O.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Ar(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=pee(Re);return E.jsxs(vee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:jt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(uee,F({ref:V,center:a},P)):null]}))}),Pf=gee;function mee(e){return Ue("MuiAccordionSummary",e)}const yee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),kc=yee,xee=["children","className","expandIcon","focusVisibleClassName","onClick"],See=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Xe({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},mee,t)},bee=ge(Pf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${kc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${kc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${kc.expanded}`]:{minHeight:64}})}),_ee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${kc.expanded}`]:{margin:"20px 0"}})),wee=ge("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${kc.expanded}`]:{transform:"rotate(180deg)"}})),Cee=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,xee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=N.useContext(n4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=See(v);return E.jsxs(bee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(_ee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(wee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),o4=Cee;function Tee(e){return Ue("MuiIconButton",e)}const Aee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Mee=Aee,Iee=["edge","children","className","color","disabled","disableFocusRipple","size"],Pee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Xe(o,Tee,t)},kee=ge(Pf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_r(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_r(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Mee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dee=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=ye(n,Iee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Pee(d);return E.jsx(kee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),s4=Dee;function Ree(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Eee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Xe(s,Ree,o)},Oee=ge("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),BD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zee=e=>Nee[e]||e,Bee=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=zee(n.color),a=$V(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=BD}=a,p=ye(a,Lee),v=F({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||BD[d])||"span",m=Eee(v);return E.jsx(Oee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Ke=Bee;function Fee(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const $ee=["className","color","enableColorOnDark","position"],Vee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Xe(i,Fee,n)},Kv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Gee=ge(F1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&F({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Kv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Kv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Kv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Kv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Hee=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,$ee),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Vee(u);return E.jsx(Gee,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),Wee=Hee;function ff(e){return typeof e=="string"}function Uee(e,t,r){return e===void 0||ff(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function l4(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function jee(e,t,r){return typeof e=="function"?e(t,r):e}function FD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Yee(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=l4(F({},i,n)),s=FD(n),l=FD(i),u=t(o),c=Ce(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=F({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=F({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const qee=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ka(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,qee),s=a?{}:jee(n,i),{props:l,internalRef:u}=Yee(F({},o,{externalSlotProps:s})),c=Ar(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Uee(r,F({},l,{ref:c}),i)}const Xee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Zee(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Kee(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Qee(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Kee(e))}function Jee(e){const t=[],r=[];return Array.from(e.querySelectorAll(Xee)).forEach((n,i)=>{const a=Zee(n);a===-1||!Qee(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function ete(){return!0}function tte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Jee,isEnabled:o=ete,open:s}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),f=N.useRef(null),d=N.useRef(null),h=N.useRef(!1),p=N.useRef(null),v=Ar(t.ref,p),g=N.useRef(null);N.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),N.useEffect(()=>{if(!s||!p.current)return;const x=an(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),N.useEffect(()=>{if(!s||!p.current)return;const x=an(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var A,T;const M=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return E.jsxs(N.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function rte(e){return typeof e=="function"?e():e}const nte=N.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=N.useState(null),l=Ar(N.isValidElement(n)?n.ref:null,r);if(co(()=>{a||s(rte(i)||document.body)},[i,a]),co(()=>{if(o&&!a)return _y(r,o),()=>{_y(r,null)}},[r,o,a]),a){if(N.isValidElement(n)){const u={ref:l};return N.cloneElement(n,u)}return E.jsx(N.Fragment,{children:n})}return E.jsx(N.Fragment,{children:o&&Af.createPortal(n,o)})});function ite(e){const t=an(e);return t.body===e?Pa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $D(e){return parseInt(Pa(e).getComputedStyle(e).paddingRight,10)||0}function ate(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function VD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!ate(o);s&&l&&wh(o,i)})}function SS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function ote(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(ite(n)){const o=xV(an(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${$D(n)+o}px`;const s=an(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${$D(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=an(n).body;else{const o=n.parentElement,s=Pa(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function ste(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class lte{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&wh(t.modalRef,!1);const i=ste(r);VD(r,t.mount,t.modalRef,i,!0);const a=SS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=SS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=ote(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=SS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&wh(t.modalRef,r),VD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&wh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ute(e){return typeof e=="function"?e():e}function cte(e){return e?e.props.hasOwnProperty("in"):!1}const fte=new lte;function dte(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=fte,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=N.useRef({}),h=N.useRef(null),p=N.useRef(null),v=Ar(p,f),[g,m]=N.useState(!c),y=cte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>an(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=ma(()=>{const z=ute(t)||S().body;i.add(_(),z),p.current&&b()}),C=N.useCallback(()=>i.isTopModal(_()),[i]),A=ma(z=>{h.current=z,z&&(c&&C()?b():p.current&&wh(p.current,x))}),T=N.useCallback(()=>{i.remove(_(),x)},[x,i]);N.useEffect(()=>()=>{T()},[T]),N.useEffect(()=>{c?w():(!y||!a)&&T()},[c,T,y,a,w]);const M=z=>$=>{var O;(O=z.onKeyDown)==null||O.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var O;(O=z.onClick)==null||O.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=l4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const O=F({},$,z);return F({role:"presentation"},O,{onKeyDown:M(O),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:vC(z,l==null?void 0:l.props.onEnter),onExited:vC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const hte=["onChange","maxRows","minRows","style","value"];function Qv(e){return parseInt(e,10)||0}const pte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function GD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const vte=N.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,hte),{current:u}=N.useRef(s!=null),c=N.useRef(null),f=Ar(r,c),d=N.useRef(null),h=N.useRef(0),[p,v]=N.useState({outerHeightStyle:0}),g=N.useCallback(()=>{const _=c.current,w=Pa(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const A=w.boxSizing,T=Qv(w.paddingBottom)+Qv(w.paddingTop),M=Qv(w.borderBottomWidth)+Qv(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,overflow:z}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=N.useCallback(()=>{const _=g();GD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();GD(_)||Af.flushSync(()=>{v(b=>m(b,_))})};N.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=ev(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Pa(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),co(()=>{y()}),N.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(N.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},pte.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function kf({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const gte=N.createContext(void 0),QM=gte;function Df(){return N.useContext(QM)}function HD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function My(e,t=!1){return e&&(HD(e.value)&&e.value!==""||t&&HD(e.defaultValue)&&e.defaultValue!=="")}function mte(e){return e.startAdornment}function yte(e){return Ue("MuiInputBase",e)}const xte=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),df=xte,Ste=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],V1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},G1=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},bte=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,yte,t)},H1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:V1})(({theme:e,ownerState:t})=>F({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${df.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),W1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return F({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${df.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${df.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),_te=E.jsx(ZV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),wte=N.forwardRef(function(t,r){var n;const i=Ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:O={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Ste),j=y.value!=null?y.value:U,{current:X}=N.useRef(j!=null),W=N.useRef(),ee=N.useCallback(_e=>{},[]),te=Ar(W,x,y.ref,ee),[ie,re]=N.useState(!1),Q=Df(),J=kf({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,N.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=N.useCallback(_e=>{My(_e)?fe&&fe():de&&de()},[fe,de]);co(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const $t=_e.target||W.current;if($t==null)throw new Error(ws(1));ke({value:$t.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};N.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=vte);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};N.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const jt=F({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:L,type:G}),kt=bte(jt),K=V.root||u.Root||H1,le=O.root||c.root||{},Re=V.input||u.Input||W1;return Be=F({},Be,(n=O.input)!=null?n:c.input),E.jsxs(N.Fragment,{children:[!h&&_te,E.jsxs(K,F({},le,!ff(K)&&{ownerState:F({},jt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(QM.Provider,{value:null,children:E.jsx(Re,F({ownerState:jt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!ff(Re)&&{as:It,ownerState:F({},jt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),JM=wte;function Cte(e){return Ue("MuiInput",e)}const Tte=F({},df,je("MuiInput",["root","underline","input"])),cd=Tte;function Ate(e){return Ue("MuiOutlinedInput",e)}const Mte=F({},df,je("MuiOutlinedInput",["root","notchedOutline","input"])),Io=Mte;function Ite(e){return Ue("MuiFilledInput",e)}const Pte=F({},df,je("MuiFilledInput",["root","underline","input"])),Hs=Pte,kte=B1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Dte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Rte={entering:{opacity:1},entered:{opacity:1}},Lte=N.forwardRef(function(t,r){const n=If(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=XM}=t,x=ye(t,Dte),S=N.useRef(null),_=Ar(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{t4(k);const z=cf({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=cf({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>N.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},Rte[k],g,s.props.style),ref:_},R))}))}),Ete=Lte;function Ote(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Nte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zte=e=>{const{classes:t,invisible:r}=e;return Xe({root:["root",r&&"invisible"]},Ote,t)},Bte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Fte=N.forwardRef(function(t,r){var n,i,a;const o=Ye({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=Ete,transitionDuration:m}=o,y=ye(o,Nte),x=F({},o,{component:u,invisible:d}),S=zte(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(Bte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),$te=Fte,Vte=qM(),Gte=JK({themeId:du,defaultTheme:Vte,defaultClassName:"MuiBox-root",generateClassName:zM.generate}),gt=Gte;function Hte(e){return Ue("MuiButton",e)}const Wte=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Jv=Wte,Ute=N.createContext({}),jte=Ute,Yte=N.createContext(void 0),qte=Yte,Xte=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Zte=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Xe(s,Hte,o);return F({},o,l)},u4=e=>F({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Kte=ge(Pf,{shouldForwardProp:e=>bo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return F({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_r(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_r(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_r(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jv.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jv.disabled}`]:F({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${_r(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jv.disabled}`]:{boxShadow:"none"}}),Qte=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},u4(e))),Jte=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},u4(e))),ere=N.forwardRef(function(t,r){const n=N.useContext(jte),i=N.useContext(qte),a=NM(n,t),o=Ye({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=ye(o,Xte),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=Zte(b),C=y&&E.jsx(Qte,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(Jte,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(Kte,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),_u=ere,tre=MQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Rf=tre;function rre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const nre=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ire=e=>{const{open:t,exited:r,classes:n}=e;return Xe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},rre,n)},are=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ore=ge($te,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sre=N.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=ore,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:I,slotProps:P,slots:k}=u,R=ye(u,nre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:O,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=dte(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=ire(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:are,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=ka({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=ka({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>O(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(nte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(tte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:N.cloneElement(p,W)})]}))})}),c4=sre;function lre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const ure=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],cre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},lre,n)},fre=ge("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>F({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_r(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),dre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),f4=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=ye(n,ure),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=cre(v);return E.jsx(fre,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(dre,{className:g.wrapper,ownerState:v,children:a}):null}))});f4.muiSkipListHighlight=!0;const fd=f4,hre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],pre=e=>{const{classes:t,disableUnderline:r}=e,i=Xe({root:["root",!r&&"underline"],input:["input"]},Ite,t);return F({},t,i)},vre=ge(H1,{shouldForwardProp:e=>bo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...V1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return F({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Hs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Hs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Hs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Hs.disabled}, .${Hs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Hs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),gre=ge(W1,{name:"MuiFilledInput",slot:"Input",overridesResolver:G1})(({theme:e,ownerState:t})=>F({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),d4=N.forwardRef(function(t,r){var n,i,a,o;const s=Ye({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=ye(s,hre),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=pre(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?gi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:vre,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:gre;return E.jsx(JM,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});d4.muiName="Input";const h4=d4;function mre(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const yre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xre=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Xe(i,mre,t)},Sre=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),bre=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=ye(n,yre),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=xre(y),[S,_]=N.useState(()=>{let P=!1;return i&&N.Children.forEach(i,k=>{if(!Sh(k,["Input","Select"]))return;const R=Sh(k,["Select"])?k.props.input:k;R&&mte(R.props)&&(P=!0)}),P}),[b,w]=N.useState(()=>{let P=!1;return i&&N.Children.forEach(i,k=>{Sh(k,["Input","Select"])&&(My(k.props,!0)||My(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=N.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=N.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return E.jsx(QM.Provider,{value:I,children:E.jsx(Sre,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),p4=bre;function _re(e){return Ue("MuiFormHelperText",e)}const wre=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),WD=wre;var UD;const Cre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Tre=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Xe(u,_re,t)},Are=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${WD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Mre=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Cre),l=Df(),u=kf({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Tre(c);return E.jsx(Are,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?UD||(UD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Ire=Mre;function Pre(e){return Ue("MuiFormLabel",e)}const kre=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ch=kre,Dre=["children","className","color","component","disabled","error","filled","focused","required"],Rre=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,Pre,t)},Lre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ch.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ch.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ch.error}`]:{color:(e.vars||e).palette.error.main}})),Ere=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ch.error}`]:{color:(e.vars||e).palette.error.main}})),Ore=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,Dre),l=Df(),u=kf({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Rre(c);return E.jsxs(Lre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Ere,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Nre=Ore,zre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function wC(e){return`scale(${e}, ${e**2})`}const Bre={entering:{opacity:1,transform:wC(1)},entered:{opacity:1,transform:"none"}},bS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),v4=N.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=XM}=t,m=ye(t,zre),y=N.useRef(),x=N.useRef(),S=If(),_=N.useRef(null),b=Ar(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{t4(R);const{duration:$,delay:O,easing:V}=cf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:O}),S.transitions.create("transform",{duration:bS?L:L*.666,delay:O,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:O}=cf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:bS?V:V*.666,delay:bS?$:$||V*.333,easing:O})].join(","),R.style.opacity=0,R.style.transform=wC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return N.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>N.cloneElement(a,F({style:F({opacity:0,transform:wC(.75),visibility:R==="exited"&&!s?"hidden":void 0},Bre[R],p,a.props.style),ref:b},z))}))});v4.muiSupportAuto=!0;const Fre=v4,$re=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vre=e=>{const{classes:t,disableUnderline:r}=e,i=Xe({root:["root",!r&&"underline"],input:["input"]},Cte,t);return F({},t,i)},Gre=ge(H1,{shouldForwardProp:e=>bo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...V1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),F({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cd.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cd.disabled}, .${cd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${cd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Hre=ge(W1,{name:"MuiInput",slot:"Input",overridesResolver:G1})({}),g4=N.forwardRef(function(t,r){var n,i,a,o;const s=Ye({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=ye(s,$re),y=Vre(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?gi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Gre,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Hre;return E.jsx(JM,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});g4.muiName="Input";const m4=g4;function Wre(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ure=["disableAnimation","margin","shrink","variant","className"],jre=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Xe(l,Wre,t);return F({},t,u)},Yre=ge(Nre,{shouldForwardProp:e=>bo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ch.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>F({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&F({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&F({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&F({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),qre=N.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,Ure),l=Df();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=kf({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=jre(f);return E.jsx(Yre,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),y4=qre;function Xre(e){return Ue("MuiLink",e)}const Zre=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Kre=Zre,x4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Qre=e=>x4[e]||e,Jre=({theme:e,ownerState:t})=>{const r=Qre(t.color),n=uf(e,`palette.${r}`,!1)||t.color,i=uf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:_r(n,.4)},ene=Jre,tne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Xe(a,Xre,t)},nne=ge(Ke,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ene({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Kre.focusVisible}`]:{outline:"auto"}})),ine=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=ye(n,tne),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=OM(),[y,x]=N.useState(!1),S=Ar(r,m),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=rne(w);return E.jsx(nne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(x4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),si=ine,ane=N.createContext({}),Th=ane;function one(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const sne=["children","className","component","dense","disablePadding","subheader"],lne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Xe({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},one,t)},une=ge("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),cne=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,sne),f=N.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=lne(d);return E.jsx(Th.Provider,{value:f,children:E.jsxs(une,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),S4=cne;function fne(e){return Ue("MuiListItem",e)}const dne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),dc=dne,hne=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),pne=hne;function vne(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const gne=["className"],mne=e=>{const{disableGutters:t,classes:r}=e;return Xe({root:["root",t&&"disableGutters"]},vne,r)},yne=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),b4=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,gne),o=N.useContext(Th),s=F({},n,{disableGutters:o.disableGutters}),l=mne(s);return E.jsx(yne,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});b4.muiName="ListItemSecondaryAction";const xne=b4,Sne=["className"],bne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],_ne=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},wne=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Xe({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},fne,n)},Cne=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:_ne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${pne.root}`]:{paddingRight:48}},{[`&.${dc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_r(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_r(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_r(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_r(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Tne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ane=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=ye(n.ContainerProps,Sne),A=ye(n,bne),T=N.useContext(Th),M=N.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=N.useRef(null);co(()=>{a&&I.current&&I.current.focus()},[a]);const P=N.Children.toArray(s),k=P.length&&Sh(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=wne(R),$=Ar(I,r),O=w.root||c.Root||Cne,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(dc.focusVisible,x),G=Pf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Th.Provider,{value:M,children:E.jsxs(Tne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(O,F({},V,!ff(O)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Th.Provider,{value:M,children:E.jsxs(O,F({},V,{as:G,ref:$},!ff(O)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(xne,{children:S})]}))})}),Gu=Ane,Mne=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _S(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function jD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function _4(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function dd(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!_4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Ine=N.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=ye(t,Mne),h=N.useRef(null),p=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});co(()=>{i&&h.current.focus()},[i]),N.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=an(S).activeElement;if(_==="ArrowDown")x.preventDefault(),dd(S,b,u,l,_S);else if(_==="ArrowUp")x.preventDefault(),dd(S,b,u,l,jD);else if(_==="Home")x.preventDefault(),dd(S,null,u,l,_S);else if(_==="End")x.preventDefault(),dd(S,null,u,l,jD);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&_4(b,w);w.previousKeyMatched&&(T||dd(S,b,!1,l,_S,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Ar(h,r);let m=-1;N.Children.forEach(o,(x,S)=>{if(!N.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=N.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),N.cloneElement(x,_)}return x});return E.jsx(S4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),Pne=Ine;function kne(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Dne=["onEntering"],Rne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Lne=["slotProps"];function YD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function qD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function XD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function wS(e){return typeof e=="function"?e():e}const Ene=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},kne,t)},One=ge(c4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w4=ge(F1,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nne=N.forwardRef(function(t,r){var n,i,a;const o=Ye({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Fre,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,Dne),M=ye(o,Rne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=N.useRef(),k=Ar(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Ene(R),$=N.useCallback(()=>{if(f==="anchorPosition")return c;const fe=wS(l),ke=(fe&&fe.nodeType===1?fe:an(P.current).body).getBoundingClientRect();return{top:ke.top+YD(ke,u.vertical),left:ke.left+qD(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),O=N.useCallback(fe=>({vertical:YD(fe,_.vertical),horizontal:qD(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=N.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=O(de);if(f==="none")return{top:null,left:null,transformOrigin:XD(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Pa(wS(l)),Pt=Be.innerHeight-g,jt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atjt){const kt=It-jt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:XD(ke)}},[l,f,$,O,g]),[L,G]=N.useState(m),U=N.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);N.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};N.useEffect(()=>{m&&U()}),N.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),N.useEffect(()=>{if(!m)return;const fe=ev(()=>{U()}),de=Pa(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?an(wS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:One,te=(a=x==null?void 0:x.paper)!=null?a:w4,ie=ka({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=ka({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,Lne);return E.jsx(ee,F({},J,!ff(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),zne=Nne;function Bne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Fne=["onEntering"],$ne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vne={vertical:"top",horizontal:"right"},Gne={vertical:"top",horizontal:"left"},Hne=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},Bne,t)},Wne=ge(zne,{shouldForwardProp:e=>bo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Une=ge(w4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jne=ge(Pne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Yne=N.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=ye(a.TransitionProps,Fne),_=ye(a,$ne),b=If(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Hne(C),T=o&&!u&&d,M=N.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;N.Children.map(s,(V,L)=>{N.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:Une,z=(i=x.paper)!=null?i:h,$=ka({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),O=ka({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(Wne,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Vne:Gne,slots:{paper:R,root:y.root},slotProps:{root:$,paper:O},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(jne,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),qne=Yne;function Xne(e){return Ue("MuiNativeSelect",e)}const Zne=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),e2=Zne,Kne=["className","disabled","error","IconComponent","inputRef","variant"],Qne=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Xe(s,Xne,t)},C4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${e2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Jne=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:bo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${e2.multiple}`]:t.multiple}]}})(C4),T4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${e2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),eie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(T4),tie=N.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,Kne),c=F({},t,{disabled:i,variant:l,error:a}),f=Qne(c);return E.jsxs(N.Fragment,{children:[E.jsx(Jne,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(eie,{as:o,ownerState:c,className:f.icon})]})}),rie=tie;var ZD;const nie=["children","classes","className","label","notched"],iie=ge("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),aie=ge("legend")(({ownerState:e,theme:t})=>F({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&F({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function oie(e){const{className:t,label:r,notched:n}=e,i=ye(e,nie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(iie,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(aie,{ownerState:o,children:a?E.jsx("span",{children:r}):ZD||(ZD=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const sie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lie=e=>{const{classes:t}=e,n=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ate,t);return F({},t,n)},uie=ge(H1,{shouldForwardProp:e=>bo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:V1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Io.focused} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Io.error} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Io.disabled} .${Io.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cie=ge(oie,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),fie=ge(W1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G1})(({theme:e,ownerState:t})=>F({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),A4=N.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=ye(l,sie),y=lie(l),x=Df(),S=kf({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:uie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:fie;return E.jsx(JM,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(cie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.jsxs(N.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:F({},y,{notchedOutline:null})}))});A4.muiName="Input";const M4=A4;function die(e){return Ue("MuiSelect",e)}const hie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hd=hie;var KD;const pie=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],vie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${hd.select}`]:t.select},{[`&.${hd.select}`]:t[r.variant]},{[`&.${hd.error}`]:t.error},{[`&.${hd.multiple}`]:t.multiple}]}})(C4,{[`&.${hd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gie=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(T4),mie=ge("input",{shouldForwardProp:e=>fJ(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function QD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yie(e){return e==null||typeof e=="string"&&!e.trim()}const xie=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,die,t)},Sie=N.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,pie),[O,V]=wy({controlled:R,default:f,name:"Select"}),[L,G]=wy({controlled:T,default:c,name:"Select"}),U=N.useRef(null),B=N.useRef(null),[j,X]=N.useState(null),{current:W}=N.useRef(T!=null),[ee,te]=N.useState(),ie=Ar(r,g),re=N.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;N.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:O}),[O]),N.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),N.useEffect(()=>{o&&B.current.focus()},[o]),N.useEffect(()=>{if(!m)return;const Te=an(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=N.Children.toArray(l),We=Te=>{const ut=ke.find(Dt=>Dt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Dt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Dt=Array.isArray(O)?O.slice():[];const pe=O.indexOf(Te.props.value);pe===-1?Dt.push(Te.props.value):Dt.splice(pe,1)}else Dt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),O!==Dt&&(V(Dt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Dt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:O,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const jt=[];let kt=!1;(My({value:O})||h)&&(I?Be=I(O):kt=!0);const K=ke.map(Te=>{if(!N.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(O))throw new Error(ws(2));ut=O.some(Dt=>QD(Dt,Te.props.value)),ut&&kt&&jt.push(Te.props.children)}else ut=QD(O,Te.props.value),ut&&kt&&(Pt=Te.props.children);return N.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Dt=>{Dt.key===" "&&Dt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Dt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?jt.length===0?Be=null:Be=jt.reduce((Te,ut,Dt)=>(Te.push(ut),Dt{const{classes:t}=e;return t},t2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>bo(e)&&e!=="variant",slot:"Root"},Tie=ge(m4,t2)(""),Aie=ge(M4,t2)(""),Mie=ge(h4,t2)(""),I4=N.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=kte,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=ye(n,_ie),T=y?rie:bie,M=Df(),I=kf({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Cie(k),z=ye(R,wie),$=d||{standard:E.jsx(Tie,{ownerState:k}),outlined:E.jsx(Aie,{label:p,ownerState:k}),filled:E.jsx(Mie,{ownerState:k})}[P],O=Ar(r,$.ref);return E.jsx(N.Fragment,{children:N.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:F({id:f},w)},h,{classes:h?gi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:O,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});I4.muiName="Select";const P4=I4;function Iie(e){return Ue("MuiTab",e)}const Pie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ws=Pie,kie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Die=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(u,Iie,t)},Rie=ge(Pf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Ws.iconWrapper}`]:F({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Ws.selected}`]:{opacity:1},[`&.${Ws.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ws.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ws.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ws.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ws.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Lie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=ye(n,kie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Die(_),w=l&&f&&N.isValidElement(l)?N.cloneElement(l,{className:Ce(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,y),h&&h(T)},A=T=>{g&&!v&&d&&d(T,y),p&&p(T)};return E.jsxs(Rie,F({focusRipple:!o,className:Ce(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?E.jsxs(N.Fragment,{children:[w,f]}):E.jsxs(N.Fragment,{children:[f,w]}),c]}))}),Eie=Lie,Oie=N.createContext(),k4=Oie;function Nie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const zie=["className","component","padding","size","stickyHeader"],Bie=e=>{const{classes:t,stickyHeader:r}=e;return Xe({root:["root",r&&"stickyHeader"]},Nie,t)},Fie=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),JD="table",$ie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=JD,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,zie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Bie(c),d=N.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(k4.Provider,{value:d,children:E.jsx(Fie,F({as:a,role:a===JD?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),Vie=$ie,Gie=N.createContext(),U1=Gie;function Hie(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const Wie=["className","component"],Uie=e=>{const{classes:t}=e;return Xe({root:["root"]},Hie,t)},jie=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Yie={variant:"body"},eR="tbody",qie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=eR}=n,o=ye(n,Wie),s=F({},n,{component:a}),l=Uie(s);return E.jsx(U1.Provider,{value:Yie,children:E.jsx(jie,F({className:Ce(l.root,i),as:a,ref:r,role:a===eR?null:"rowgroup",ownerState:s},o))})}),Xie=qie;function Zie(e){return Ue("MuiTableCell",e)}const Kie=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Qie=Kie,Jie=["align","className","component","padding","scope","size","sortDirection","variant"],eae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Xe(s,Zie,t)},tae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?jV(_r(e.palette.divider,1),.88):UV(_r(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Qie.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),rae=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,Jie),h=N.useContext(k4),p=N.useContext(U1),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=F({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=eae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(tae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),tR=rae;function nae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const iae=["className","component"],aae=e=>{const{classes:t}=e;return Xe({root:["root"]},nae,t)},oae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),sae=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,iae),s=F({},n,{component:a}),l=aae(s);return E.jsx(oae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),lae=sae;function uae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const cae=["className","component"],fae=e=>{const{classes:t}=e;return Xe({root:["root"]},uae,t)},dae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),hae={variant:"head"},rR="thead",pae=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=rR}=n,o=ye(n,cae),s=F({},n,{component:a}),l=fae(s);return E.jsx(U1.Provider,{value:hae,children:E.jsx(dae,F({as:a,className:Ce(l.root,i),ref:r,role:a===rR?null:"rowgroup",ownerState:s},o))})}),vae=pae;function gae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const mae=["className","component","disableGutters","variant"],yae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Xe({root:["root",!r&&"gutters",n]},gae,t)},xae=ge("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>F({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Sae=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,mae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=yae(u);return E.jsx(xae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),bae=Sae,_ae=B1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wae=B1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Cae(e){return Ue("MuiTableRow",e)}const Tae=je("MuiTableRow",["root","selected","hover","head","footer"]),nR=Tae,Aae=["className","component","hover","selected"],Mae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Xe({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Cae,t)},Iae=ge("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_r(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_r(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),iR="tr",Pae=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=iR,hover:o=!1,selected:s=!1}=n,l=ye(n,Aae),u=N.useContext(U1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Mae(c);return E.jsx(Iae,F({as:a,ref:r,className:Ce(f.root,i),role:a===iR?null:"row",ownerState:c},l))}),aR=Pae;function kae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Dae(e,t,r,n={},i=()=>{}){const{ease:a=kae,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Rae=["onChange"],Lae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Eae(e){const{onChange:t}=e,r=ye(e,Rae),n=N.useRef(),i=N.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return co(()=>{const o=ev(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Pa(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),N.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Lae,ref:i},r))}function Oae(e){return Ue("MuiTabScrollButton",e)}const Nae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zae=Nae,Bae=["className","slots","slotProps","direction","orientation","disabled"],Fae=e=>{const{classes:t,orientation:r,disabled:n}=e;return Xe({root:["root",r,n&&"disabled"]},Oae,t)},$ae=ge(Pf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${zae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Vae=N.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,Bae),d=If().direction==="rtl",h=F({isRtl:d},a),p=Fae(h),v=(n=s.StartScrollButtonIcon)!=null?n:_ae,g=(i=s.EndScrollButtonIcon)!=null?i:wae,m=ka({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=ka({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx($ae,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Gae=Vae;function Hae(e){return Ue("MuiTabs",e)}const Wae=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),CS=Wae,Uae=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],oR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,sR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,eg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},jae=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Hae,l)},Yae=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${CS.scrollButtons}`]:t.scrollButtons},{[`& .${CS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${CS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qae=ge("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Xae=ge("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Zae=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Kae=ge(Eae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),lR={},Qae=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=If(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=Gae,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,Uae),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",O=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=jae(L),U=ka({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=ka({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=N.useState(!1),[W,ee]=N.useState(lR),[te,ie]=N.useState(!1),[re,Q]=N.useState(!1),[J,fe]=N.useState(!1),[de,ke]=N.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=N.useRef(null),at=N.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:eZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const Fr=yt[We.get(A)];qe=Fr?Fr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ma(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Ao=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Ao)}const Fr={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee(Fr);else{const Ao=Math.abs(W[yt]-Fr[yt]),kv=Math.abs(W[V]-Fr[V]);(Ao>=1||kv>=1)&&ee(Fr)}}),Be=(pe,{animation:De=!0}={})=>{De?Dae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&SV()==="reverse"?-1:1),Be(De)},jt=()=>{const pe=Ge.current[O];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=Fr[O]}return De},kt=()=>{Pt(-1*jt())},K=()=>{Pt(jt())},le=N.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(Kae,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ma(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ma(()=>{P&&y!==!1&&fe(!J)});N.useEffect(()=>{const pe=ev(()=>{Ge.current&&It()}),De=Pa(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),N.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],Fr={root:Ge.current,threshold:.99},Ao=Hx=>{ie(!Hx[0].isIntersecting)},kv=new IntersectionObserver(Ao,Fr);kv.observe(qe);const l7=Hx=>{Q(!Hx[0].isIntersecting)},GP=new IntersectionObserver(l7,Fr);return GP.observe(yt),()=>{kv.disconnect(),GP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),N.useEffect(()=>{X(!0)},[]),N.useEffect(()=>{It()}),N.useEffect(()=>{_e(lR!==W)},[_e,W]),N.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const $t=E.jsx(Zae,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let xr=0;const Te=N.Children.map(c,pe=>{if(!N.isValidElement(pe))return null;const De=pe.props.value===void 0?xr:pe.props.value;We.set(De,xr);const qe=De===A;return xr+=1,N.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&$t,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},xr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=an(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let Fr=g==="horizontal"?"ArrowLeft":"ArrowUp",Ao=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Fr="ArrowRight",Ao="ArrowLeft"),pe.key){case Fr:pe.preventDefault(),eg(De,qe,sR);break;case Ao:pe.preventDefault(),eg(De,qe,oR);break;case"Home":pe.preventDefault(),eg(De,null,oR);break;case"End":pe.preventDefault(),eg(De,null,sR);break}},Dt=Re();return E.jsxs(Yae,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Dt.scrollButtonStart,Dt.scrollbarSizeListener,E.jsxs(qae,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(Xae,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&$t]}),Dt.scrollButtonEnd]}))}),Jae=Qae;function eoe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const toe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],roe={standard:m4,filled:h4,outlined:M4},noe=e=>{const{classes:t}=e;return Xe({root:["root"]},eoe,t)},ioe=ge(p4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aoe=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:O,variant:V="outlined"}=n,L=ye(n,toe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=noe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=yV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=roe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:O,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(ioe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(y4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(P4,F({"aria-describedby":X,id:j,labelId:W,value:O,input:te},z,{children:o})):te,p&&E.jsx(Ire,F({id:X},d,{children:p}))]}))}),zl=aoe;var r2={},D4={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(D4);var j1=D4.exports,TS={};const ooe=c7(SJ);var uR;function Y1(){return uR||(uR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ooe}(TS)),TS}var soe=j1;Object.defineProperty(r2,"__esModule",{value:!0});var R4=r2.default=void 0,loe=soe(Y1()),uoe=E,coe=(0,loe.default)((0,uoe.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"}),"Close");R4=r2.default=coe;function n2({open:e,onClose:t,children:r}){return E.jsx(c4,{onClose:t,open:e,children:E.jsxs(gt,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(s4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(R4,{})}),r]})})}const iv=iV,foe=gV;function Zd(e){const t=foe();return N.useCallback(r=>{t(e(r))},[e,t])}const doe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function hoe(){const[e,t]=N.useState(!1),r=iv(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(gt,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(_u,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(n2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Ke,{component:"h2",variant:"h4",children:"About"}),E.jsx(Ke,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Ke,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Ke,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(gt,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:doe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(si,{href:i,children:n}):n,E.jsxs(gt,{sx:{display:"inline",ml:.5},children:["(",E.jsx(si,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Ke,{component:"h2",variant:"h4",children:"License"}),E.jsx(Ke,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Ke,{component:"h2",variant:"h4",children:"Version"}),E.jsx(si,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Ke,{component:"h2",variant:"h4",children:"Website"}),E.jsx(si,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function poe(){return E.jsx(gt,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Rf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(hoe,{})})})}var i2={},voe=j1;Object.defineProperty(i2,"__esModule",{value:!0});var L4=i2.default=void 0,goe=voe(Y1()),moe=E,yoe=(0,goe.default)((0,moe.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");L4=i2.default=yoe;var a2={},xoe=j1;Object.defineProperty(a2,"__esModule",{value:!0});var E4=a2.default=void 0,Soe=xoe(Y1()),boe=E,_oe=(0,Soe.default)((0,boe.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");E4=a2.default=_oe;function Dr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:q1(e)?2:X1(e)?3:0}function ps(e,t){return Ts(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Am(e,t){return Ts(e)===2?e.get(t):e[t]}function O4(e,t,r){var n=Ts(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function N4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function q1(e){return Poe&&e instanceof Map}function X1(e){return koe&&e instanceof Set}function xl(e){return e.o||e.t}function o2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=B4(e);delete t[Bt];for(var r=Hc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Coe),Object.freeze(e),t&&Cs(e,function(r,n){return s2(n,!0)},!0)),e}function Coe(){Dr(2)}function l2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Aa(e){var t=MC[e];return t||Dr(18,e),t}function z4(e,t){MC[e]||(MC[e]=t)}function CC(){return hp}function AS(e,t){t&&(Aa("Patches"),e.u=[],e.s=[],e.v=t)}function Iy(e){TC(e),e.p.forEach(Toe),e.p=null}function TC(e){e===hp&&(hp=e.l)}function cR(e){return hp={p:[],l:hp,h:e,m:!0,_:0}}function Toe(e){var t=e[Bt];t.i===0||t.i===1?t.j():t.g=!0}function MS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Aa("ES5").S(t,e,n),n?(r[Bt].P&&(Iy(t),Dr(4)),ji(e)&&(e=Py(t,e),t.l||ky(t,e)),t.u&&Aa("Patches").M(r[Bt].t,e,t.u,t.s)):e=Py(t,r,[]),Iy(t),t.u&&t.v(t.u,t.s),e!==c2?e:void 0}function Py(e,t,r){if(l2(t))return t;var n=t[Bt];if(!n)return Cs(t,function(s,l){return fR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ky(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=o2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Cs(a,function(s,l){return fR(e,n,i,s,l,r,o)}),ky(e,i,!1),r&&e.u&&Aa("Patches").N(n,r,e.u,e.s)}return n.o}function fR(e,t,r,n,i,a,o){if(Ui(i)){var s=Py(e,i,a&&t&&t.i!==3&&!ps(t.R,n)?a.concat(n):void 0);if(O4(r,n,s),!Ui(s))return;e.m=!1}else o&&r.add(i);if(ji(i)&&!l2(i)){if(!e.h.D&&e._<1)return;Py(e,i),t&&t.A.l||ky(e,i)}}function ky(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&s2(t,r)}function IS(e,t){var r=e[Bt];return(r?xl(r):e)[t]}function dR(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function qo(e){e.P||(e.P=!0,e.l&&qo(e.l))}function PS(e){e.o||(e.o=o2(e.t))}function AC(e,t,r){var n=q1(t)?Aa("MapSet").F(t,r):X1(t)?Aa("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:CC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=pp;o&&(l=[s],u=Kd);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Aa("ES5").J(t,r);return(r?r.A:CC()).p.push(n),n}function Aoe(e){return Ui(e)||Dr(22,e),function t(r){if(!ji(r))return r;var n,i=r[Bt],a=Ts(r);if(i){if(!i.P&&(i.i<4||!Aa("ES5").K(i)))return i.t;i.I=!0,n=hR(r,a),i.I=!1}else n=hR(r,a);return Cs(n,function(o,s){i&&Am(i.t,o)===s||O4(n,o,t(s))}),a===3?new Set(n):n}(e)}function hR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return o2(e)}function Moe(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Bt];return pp.get(l,a)},set:function(l){var u=this[Bt];pp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Bt];if(!s.P)switch(s.i){case 5:n(s)&&qo(s);break;case 4:r(s)&&qo(s)}}}function r(a){for(var o=a.t,s=a.k,l=Hc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Bt){var f=o[c];if(f===void 0&&!ps(o,c))return!0;var d=s[c],h=d&&d[Bt];if(h?h.t!==f:!N4(d,f))return!0}}var p=!!o[Bt];return l.length!==Hc(o).length+(p?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),x=1;x1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=Aa("Patches").$;return Ui(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Gn=new Roe,av=Gn.produce,F4=Gn.produceWithPatches.bind(Gn);Gn.setAutoFreeze.bind(Gn);Gn.setUseProxies.bind(Gn);var gR=Gn.applyPatches.bind(Gn);Gn.createDraft.bind(Gn);Gn.finishDraft.bind(Gn);function vp(e){"@babel/helpers - typeof";return vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vp(e)}function Loe(e,t){if(vp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eoe(e){var t=Loe(e,"string");return vp(t)==="symbol"?t:String(t)}function Ooe(e,t,r){return t=Eoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ur(1));return r($4)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(Ur(3));return a}function f(v){if(typeof v!="function")throw new Error(Ur(4));if(l)throw new Error(Ur(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(Ur(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Noe(v))throw new Error(Ur(7));if(typeof v.type>"u")throw new Error(Ur(8));if(l)throw new Error(Ur(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(Ur(12));if(typeof r(void 0,{type:Dy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function f2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(Ur(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Ry(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var u=r[l];return l>0&&(r.splice(l,1),r.unshift(u)),u.value}return Ly}function i(s,l){n(s)===Ly&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Voe=function(t,r){return t===r};function Goe(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]-1;return r&&n}function ov(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function d2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),gse=Y4.actions,mse=Y4.reducer,gs={DARK:"dark",LIGHT:"light"},q4=e=>qM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function yse(){const e=iv(({theme:{isDarkMode:n}})=>n),t=Zd(gse.setIsDarkMode);N.useEffect(()=>{t(localStorage.theme===gs.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches)},[]);const r=()=>{localStorage.theme=e?gs.LIGHT:gs.DARK,t(!e)};return E.jsx(s4,{color:"inherit",onClick:r,children:e?E.jsx(E4,{}):E.jsx(L4,{})})}const ii={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function xse({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(gt,{sx:{display:"flex",columnGap:2},children:[E.jsxs(gt,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ke,{variant:"button",children:"Host"}),E.jsx(Ke,{children:r})]}),E.jsx(fd,{flexItem:!0,orientation:"vertical"}),E.jsxs(gt,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Ke,{variant:"button",children:"Status"}),E.jsx(Ke,{variant:"button",children:t})]}),t===ii.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(fd,{flexItem:!0,orientation:"vertical"}),E.jsxs(gt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ke,{variant:"button",children:"Users"}),E.jsx(Ke,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(fd,{flexItem:!0,orientation:"vertical"}),E.jsxs(gt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ke,{variant:"button",children:"Workers"}),E.jsx(Ke,{variant:"button",children:o})]})]}),E.jsx(fd,{flexItem:!0,orientation:"vertical"}),E.jsxs(gt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ke,{variant:"button",children:"RPS"}),E.jsx(Ke,{variant:"button",children:n})]}),E.jsx(fd,{flexItem:!0,orientation:"vertical"}),E.jsxs(gt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Ke,{variant:"button",children:"Failures"}),E.jsx(Ke,{variant:"button",children:`${i}%`})]})]})}const Sse=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),bse=Yn(Sse)(xse);function X4({children:e,onSubmit:t}){const r=N.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var Ey=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function Dse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var PR=As;function Q4(e,t){if(e===t||!(PR(e)&&PR(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},Lse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function DR(e){if(!As(e))return e;for(var t=nr({},e),r=0,n=Object.entries(t);r"u"&&s===kR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return zy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,O,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return Ey(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,O=I.responseHandler,V=O===void 0?v??"json":O,L=I.validateStatus,G=L===void 0?g??Rse:L,U=I.timeout,B=U===void 0?p:U,j=MR(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=nr(ya(nr({},m),{signal:_}),j),R=new Headers(DR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(As(Pt)||Array.isArray(Pt)||typeof Pt.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(DR($)),P+=te+ie),P=Pse(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return zy(this,null,function(){var _;return Ey(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var RR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),p2=Cn("__rtkq/focused"),J4=Cn("__rtkq/unfocused"),v2=Cn("__rtkq/online"),eG=Cn("__rtkq/offline"),Da;(function(e){e.query="query",e.mutation="mutation"})(Da||(Da={}));function tG(e){return e.type===Da.query}function Ose(e){return e.type===Da.mutation}function rG(e,t,r,n,i,a){return Nse(e)?e(t,r,n,i).map(DC).map(a):Array.isArray(e)?e.map(DC).map(a):[]}function Nse(e){return typeof e=="function"}function DC(e){return typeof e=="string"?{type:e}:e}function ES(e){return e!=null}var mp=Symbol("forceQueryFn"),RC=function(e){return typeof e[mp]=="function"};function zse(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. + Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. + See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return Oy(Oy([],S(o)),S(s)).filter(ES)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(ES)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(ES)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,I=A.forceRefetch,P=A.subscriptionOptions,k=mp,R=A[k];return function(z,$){var O,V,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((O={type:"query",subscribe:M,forceRefetch:I,subscriptionOptions:P,endpointName:S,originalArgs:w,queryCacheKey:L},O[mp]=R,O)),U=i.endpoints[S].select(w),B=z(G),j=U($()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=(V=o.get(z))==null?void 0:V[L],ie=function(){return U($())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:P,queryCacheKey:L,abort:W,unwrap:function(){return zy(this,null,function(){var J;return Ey(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,I){var P=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),k=M(P),R=k.requestId,z=k.abort,$=k.unwrap,O=k.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),V=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(O,{arg:k.arg,requestId:R,abort:z,unwrap:$,unsubscribe:V,reset:V}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function LR(e){return e}function Bse(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Gt.uninitialized)return M;if("data"in T)if(ji(T.data)){var I=F4(T.data,_),P=I[1],k=I[2];(C=M.patches).push.apply(C,P),(A=M.inversePatches).push.apply(A,k)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[mp]=function(){return{data:_}},w)))}},c=function(x,S){return zy(t,[x,S],function(_,b){var w,C,A,T,M,I,P,k,R,z,$,O,V,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Ey(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=LR,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[mp]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new RR(A.error,A.meta);return $=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,$.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[Qd]=!0,B)])];case 8:if(O=J.sent(),V=O,!(V instanceof RR))return[3,12];L=LR,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L(V.value,V.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:V.meta},j[Qd]=!0,j)])];case 11:return U=J.sent(),V=U,[3,12];case 12:throw typeof process<"u",console.error(V),V;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,I=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return I?I===!0||(Number(new Date)-Number(M))/1e3>=I:!1}var d=CR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[Qd]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return RC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||tG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=CR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[Qd]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Ih(d2(x),m(S)),matchFulfilled:Ih(wu(x),m(S)),matchRejected:Ih(gp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function nG(e,t,r,n){return rG(r[e.meta.arg.endpointName][t],wu(e)?e.payload:void 0,K1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function tg(e,t,r){var n=e[t];n&&r(n)}function yp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function ER(e,t,r){var n=e[yp(t)];n&&r(n)}var pd={};function Fse(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Cn(t+"/resetApiState"),d=ca({name:t+"/queries",initialState:pd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:LS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;tg(_,C,function(T){T.data=gR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=RC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Gt.uninitialized,endpointName:A.endpointName})),tg(b,A.queryCacheKey,function(P){P.status=Gt.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;tg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!RC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Gt.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=av(T.data,function(O){return I(O,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?Q4(Ui(T.data)?woe(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,I=w.error,P=w.payload;tg(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Gt.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A!Object.keys(e).length;function yle(e,t){return{...e,...t}}const xle=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},Q1=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function aG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>aG(e,n,r)):typeof t=="object"?g2(t,r):t)}const g2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:aG(e,i,t)}),{}),oG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Sle=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Wc=e=>g2(e,oG),ble=e=>g2(e,Sle),_le=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),wle=e=>Object.fromEntries(new URLSearchParams(e).entries()),LC=gle({baseQuery:Ese(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Wc}),getTasks:e.query({query:()=>"tasks",transformResponse:Wc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Wc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:xle(ble(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Cle,useGetTasksQuery:Tle,useGetExceptionsQuery:Ale,useStartSwarmMutation:sG}=LC;function Mle({onSubmit:e,spawnRate:t,userCount:r}){const[n]=sG(),i=a=>{e(),n(a)};return E.jsxs(Rf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Ke,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(X4,{onSubmit:i,children:E.jsxs(gt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(zl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(zl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(_u,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Ile=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Ple=Yn(Ile)(Mle);function kle(){const[e,t]=N.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(_u,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(n2,{onClose:()=>t(!1),open:e,children:E.jsx(Ple,{onSubmit:()=>t(!1)})})]})}var m2={},Dle=j1;Object.defineProperty(m2,"__esModule",{value:!0});var y2=m2.default=void 0,Rle=Dle(Y1()),Lle=E,Ele=(0,Rle.default)((0,Lle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");y2=m2.default=Ele;function EC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(p4,{sx:a,children:[E.jsx(y4,{htmlFor:t,shrink:!0,children:e}),E.jsx(P4,{defaultValue:i||n&&r||r[0],label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const WR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function Ole({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=_le(e),o=n?`${a} (${n})`:a;return r?E.jsx(EC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(zl,{label:o,name:e,sx:{width:"100%"},type:i?"password":"text",value:t})}function Nle({extraOptions:e}){const t=N.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>WR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=N.useMemo(()=>Object.keys(e).reduce((n,i)=>WR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(i4,{children:[E.jsx(o4,{expandIcon:E.jsx(y2,{}),children:E.jsx(Ke,{children:"Custom parameters"})}),E.jsx(a4,{children:E.jsxs(gt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(Ole,{...n},`valid-parameter-${i}`)),E.jsx(gt,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Ke,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Ke,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function x2(e,{payload:t}){return yle(e,t)}const zle=Wc(window.templateArgs),lG=ca({name:"swarm",initialState:zle,reducers:{setSwarm:x2}}),uG=lG.actions,Ble=lG.reducer;function Fle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=sG(),d=h=>{l({state:ii.RUNNING}),f(h)};return E.jsxs(Rf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Ke,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(X4,{onSubmit:d,children:E.jsxs(gt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(EC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(EC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(zl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(zl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(zl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(i4,{children:[E.jsx(o4,{expandIcon:E.jsx(y2,{}),children:E.jsx(Ke,{children:"Advanced options"})}),E.jsx(a4,{children:E.jsx(zl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!mle(n)&&E.jsx(Nle,{extraOptions:n}),E.jsx(_u,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const $le=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Vle={setSwarm:uG.setSwarm},cG=Yn($le,Vle)(Fle);function Gle(){const[e,t]=N.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(_u,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(n2,{onClose:()=>t(!1),open:e,children:E.jsx(cG,{})})]})}function Hle(){const e=()=>{fetch("stats/reset")};return E.jsx(_u,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Wle(){const[e,t]=N.useState(!1);N.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(_u,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Ule(){const e=iv(({swarm:t})=>t.state);return e===ii.READY?null:e===ii.STOPPED?E.jsx(Gle,{}):E.jsxs(gt,{sx:{display:"flex",columnGap:2},children:[E.jsx(kle,{}),E.jsx(Wle,{}),E.jsx(Hle,{})]})}function jle(){return E.jsx(Wee,{position:"static",children:E.jsx(Rf,{maxWidth:"xl",children:E.jsxs(bae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(si,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Ke,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(gt,{sx:{display:"flex",columnGap:6},children:[E.jsx(bse,{}),E.jsx(Ule,{}),E.jsx(yse,{})]})]})})})}function Yle({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(jle,{}),E.jsx("main",{children:e}),E.jsx(poe,{})]})}function qle(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Xle=/[ \t\n\f\r]/g;function Zle(e){return typeof e=="object"?e.type==="text"?UR(e.value):!1:UR(e)}function UR(e){return e.replace(Xle,"")===""}class sv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}sv.prototype.property={};sv.prototype.normal={};sv.prototype.space=null;function fG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&tue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(YR,aue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!YR.test(a)){let o=a.replace(rue,iue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=S2}return new i(n,t)}function iue(e){return"-"+e.toLowerCase()}function aue(e){return e.charAt(1).toUpperCase()}const oue={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sue=fG([pG,hG,mG,yG,Jle],"html"),xG=fG([pG,hG,mG,yG,eue],"svg");function lue(e){return e.join(" ").trim()}var b2={exports:{}},qR=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,uue=/\n/g,cue=/^\s*/,fue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,due=/^:\s*/,hue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pue=/^[;\s]*/,vue=/^\s+|\s+$/g,gue=` +`,XR="/",ZR="*",Il="",mue="comment",yue="declaration",xue=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(uue);v&&(r+=v.length);var g=p.lastIndexOf(gue);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(cue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(XR!=e.charAt(0)||ZR!=e.charAt(1))){for(var v=2;Il!=e.charAt(v)&&(ZR!=e.charAt(v)||XR!=e.charAt(v+1));)++v;if(v+=2,Il===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:mue,comment:g})}}function d(){var p=a(),v=l(fue);if(v){if(f(),!l(due))return s("property missing ':'");var g=l(hue),m=p({type:yue,property:KR(v[0].replace(qR,Il)),value:g?KR(g[0].replace(qR,Il)):Il});return l(pue),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function KR(e){return e?e.replace(vue,Il):Il}var Sue=xue;function SG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Sue(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function wue(e){const t=_2(e),r=bG(e);if(t&&r)return{start:t,end:r}}function Ph(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?QR(e.position):"start"in e||"end"in e?QR(e):"line"in e||"column"in e?zC(e):""}function zC(e){return JR(e&&e.line)+":"+JR(e&&e.column)}function QR(e){return zC(e&&e.start)+"-"+zC(e&&e.end)}function JR(e){return e&&typeof e=="number"?e:1}class fn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ph(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}fn.prototype.file="";fn.prototype.name="";fn.prototype.reason="";fn.prototype.message="";fn.prototype.stack="";fn.prototype.column=void 0;fn.prototype.line=void 0;fn.prototype.ancestors=void 0;fn.prototype.cause=void 0;fn.prototype.fatal=void 0;fn.prototype.place=void 0;fn.prototype.ruleId=void 0;fn.prototype.source=void 0;const w2={}.hasOwnProperty,Cue=new Map,Tue=/[A-Z]/g,Aue=/-([a-z])/g,Mue=new Set(["table","tbody","thead","tfoot","tr"]),Iue=new Set(["td","th"]);function Pue(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Due(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=kue(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xG:sue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=wG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function wG(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=xG,e.schema=i),e.ancestors.push(t);let a=Rue(e,t);const o=Lue(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Mue.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Zle(l):!0})),w2.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function kue(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Due(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=_2(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Rue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Cue;for(;++n-1&&e.test(String.fromCharCode(r))}}const Uue={'"':"quot","&":"amp","<":"lt",">":"gt"};function jue(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+Uue[r]+";"}}function Yue(e,t){const r=jue(Tu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Tu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const que={};function Xue(e,t){const r=t||que,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return TG(e,n,i)}function TG(e,t,r){if(Zue(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eL(e.children,t,r)}return Array.isArray(e)?eL(e,t,r):""}function eL(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?(Ra(e,e.length,0,t),e):t}const rL={}.hasOwnProperty;function Kue(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function jc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ot(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return mt(l)?(e.enter(r),s(l)):t(l)}function s(l){return mt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ice(e,t,r){return Ot(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function iL(e){if(e===null||Tn(e)||Wue(e))return 1;if(Hue(e))return 2}function T2(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);aL(f,-l),aL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=li(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=li(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=li(u,T2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=li(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=li(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ra(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&&mt(b)?Ot(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||Ve(b)?e.check(oL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Ot(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Ot(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function gce(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const $S={name:"codeIndented",tokenize:yce},mce={tokenize:xce,partial:!0};function yce(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Ot(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Ve(u)?e.attempt(mce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function xce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ot(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ve(o)?i(o):r(o)}}const Sce={name:"codeText",tokenize:wce,resolve:bce,previous:_ce};function bce(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function DG(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||BC(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||Ve(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||Tn(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Ve(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Ve(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!mt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function LG(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):Ve(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ot(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Ve(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function kh(e,t){let r;return n;function n(i){return Ve(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):mt(i)?Ot(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const kce={name:"definition",tokenize:Rce},Dce={tokenize:Lce,partial:!0};function Rce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return RG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=jc(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Tn(h)?kh(e,u)(h):u(h)}function u(h){return DG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Dce,f,f)(h)}function f(h){return mt(h)?Ot(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Lce(e,t,r){return n;function n(s){return Tn(s)?kh(e,i)(s):r(s)}function i(s){return LG(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return mt(s)?Ot(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ve(s)?t(s):r(s)}}const Ece={name:"hardBreakEscape",tokenize:Oce};function Oce(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Nce={name:"headingAtx",tokenize:Bce,resolve:zce};function zce(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ra(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Bce(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||Tn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(c)?(e.exit("atxHeading"),t(c)):mt(c)?Ot(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Tn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Fce=["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"],lL=["pre","script","style","textarea"],$ce={name:"htmlFlow",tokenize:Wce,resolveTo:Hce,concrete:!0},Vce={tokenize:jce,partial:!0},Gce={tokenize:Uce,partial:!0};function Hce(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function Wce(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:L):ha(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):ha(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return ha(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||Tn(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&lL.includes(X)?(i=1,n.interrupt?t(B):I(B)):Fce.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Nn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):r(B)}function y(B){return mt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||ha(B)?(e.consume(B),S):mt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||Nn(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):mt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):mt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||Ve(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Tn(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||mt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Vce,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(Gce,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",O):I(B)}function O(B){if(B===62){const j=o.toLowerCase();return lL.includes(j)?(e.consume(B),G):I(B)}return ha(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),O):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function Uce(e,t,r){const n=this;return i;function i(o){return Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function jce(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(J1,t,r)}}const Yce={name:"htmlText",tokenize:qce};function qce(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):ha(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):ha(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return ha(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Nn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Nn(L)?(e.consume(L),C):L===47||L===62||Tn(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||ha(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Nn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||Tn(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||Tn(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),O}function O(L){return mt(L)?Ot(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const A2={name:"labelEnd",tokenize:efe,resolveTo:Jce,resolveAll:Qce},Xce={tokenize:tfe},Zce={tokenize:rfe},Kce={tokenize:nfe};function Qce(e){let t=-1;for(;++t=3&&(u===null||Ve(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),mt(u)?Ot(e,s,"whitespace")(u):s(u))}}const pn={name:"list",tokenize:dfe,continuation:{tokenize:hfe},exit:vfe},cfe={tokenize:gfe,partial:!0},ffe={tokenize:pfe,partial:!0};function dfe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:FC(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Im,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return FC(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(J1,n.interrupt?r:c,e.attempt(cfe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return mt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function hfe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(J1,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ot(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!mt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(ffe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ot(e,e.attempt(pn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function pfe(e,t,r){const n=this;return Ot(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function vfe(e){e.exit(this.containerState.type)}function gfe(e,t,r){const n=this;return Ot(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!mt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const uL={name:"setextUnderline",tokenize:yfe,resolveTo:mfe};function mfe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,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}function yfe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),mt(u)?Ot(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const xfe={tokenize:Sfe};function Sfe(e){const t=this,r=e.attempt(J1,n,e.attempt(this.parser.constructs.flowInitial,i,Ot(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Tce,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const bfe={resolveAll:OG()},_fe=EG("string"),wfe=EG("text");function EG(e){return{tokenize:t,resolveAll:OG(e==="text"?Cfe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Mfe(e,t){let r=-1;const n=[];let i;for(;++r0){const $t=Re.tokenStack[Re.tokenStack.length-1];($t[1]||fL).call(Re,void 0,$t[0])}for(le.position={start:ko(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:ko(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ede(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tde(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function BG(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function rde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return BG(e,t);const i={src:Tu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function nde(e,t){const r={src:Tu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function ide(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function ade(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return BG(e,t);const i={href:Tu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ode(e,t){const r={href:Tu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sde(e,t,r){const n=e.all(t),i=r?lde(r):FG(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function ude(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=_2(t.children[1]),l=bG(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function pde(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(pL(t.slice(i),i>0,!1)),a.join("")}function pL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===dL||a===hL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===dL||a===hL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function mde(e,t){const r={type:"text",value:gde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function yde(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const xde={blockquote:qfe,break:Xfe,code:Zfe,delete:Kfe,emphasis:Qfe,footnoteReference:Jfe,heading:ede,html:tde,imageReference:rde,image:nde,inlineCode:ide,linkReference:ade,link:ode,listItem:sde,list:ude,paragraph:cde,root:fde,strong:dde,table:hde,tableCell:vde,tableRow:pde,text:mde,thematicBreak:yde,toml:ag,yaml:ag,definition:ag,footnoteDefinition:ag};function ag(){}const $G=-1,ex=0,Fy=1,$y=2,M2=3,I2=4,P2=5,k2=6,VG=7,GG=8,vL=typeof self=="object"?self:globalThis,Sde=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case ex:case $G:return r(o,i);case Fy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case $y:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case M2:return r(new Date(o),i);case I2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case P2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case k2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case VG:{const{name:s,message:l}=o;return r(new vL[s](l),i)}case GG:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new vL[a](o),i)};return n},gL=e=>Sde(new Map,e)(0),Hu="",{toString:bde}={},{keys:_de}=Object,vd=e=>{const t=typeof e;if(t!=="object"||!e)return[ex,t];const r=bde.call(e).slice(8,-1);switch(r){case"Array":return[Fy,Hu];case"Object":return[$y,Hu];case"Date":return[M2,Hu];case"RegExp":return[I2,Hu];case"Map":return[P2,Hu];case"Set":return[k2,Hu]}return r.includes("Array")?[Fy,r]:r.includes("Error")?[VG,r]:[$y,r]},og=([e,t])=>e===ex&&(t==="function"||t==="symbol"),wde=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=vd(o);switch(s){case ex:{let c=o;switch(l){case"bigint":s=GG,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([$G],o)}return i([s,c],o)}case Fy:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case $y:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of _de(o))(e||!og(vd(o[d])))&&c.push([a(d),a(o[d])]);return f}case M2:return i([s,o.toISOString()],o);case I2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case P2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(og(vd(d))||og(vd(h))))&&c.push([a(d),a(h)]);return f}case k2:{const c=[],f=i([s,c],o);for(const d of o)(e||!og(vd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},mL=(e,{json:t,lossy:r}={})=>{const n=[];return wde(!(t||r),!!t,new Map,n)(e),n},Vy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gL(mL(e,t)):structuredClone(e):(e,t)=>gL(mL(e,t));function Cde(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Tde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ade(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Cde,n=e.options.footnoteBackLabel||Tde,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vy(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const HG=function(e){if(e==null)return kde;if(typeof e=="function")return tx(e);if(typeof e=="object")return Array.isArray(e)?Mde(e):Ide(e);if(typeof e=="string")return Pde(e);throw new Error("Expected function, string, or object as test")};function Mde(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=WG,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Ode(r(l,c)),h[0]===yL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Lde)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` +`}),r}function xL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function SL(e,t){const r=zde(e,t),n=r.one(e,void 0),i=Ade(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function Gde(e,t){return e&&"run"in e?async function(r,n){const i=SL(r,t);await e.run(i,n)}:function(r){return SL(r,t||e)}}function bL(e){if(e)throw e}var Pm=Object.prototype.hasOwnProperty,jG=Object.prototype.toString,_L=Object.defineProperty,wL=Object.getOwnPropertyDescriptor,CL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jG.call(t)==="[object Array]"},TL=function(t){if(!t||jG.call(t)!=="[object Object]")return!1;var r=Pm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Pm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Pm.call(t,i)},AL=function(t,r){_L&&r.name==="__proto__"?_L(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},ML=function(t,r){if(r==="__proto__")if(Pm.call(t,r)){if(wL)return wL(t,r).value}else return;return t[r]},Hde=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const oa={basename:jde,dirname:Yde,extname:qde,join:Xde,sep:"/"};function jde(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');lv(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function Yde(e){if(lv(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qde(e){lv(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function Xde(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Kde(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function lv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Qde={cwd:Jde};function Jde(){return"/"}function HC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ehe(e){if(typeof e=="string")e=new URL(e);else if(!HC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return the(e)}function the(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=c;const v=n[d][1];GC(v)&&GC(h)&&(h=GS(!0,v,h)),n[d]=[u,h,...p]}}}}const ahe=new D2().freeze();function jS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function YS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qS(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function PL(e){if(!GC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function sg(e){return ohe(e)?e:new YG(e)}function ohe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function she(e){return typeof e=="string"||lhe(e)}function lhe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DL={}.hasOwnProperty,uhe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",RL=[],LL={allowDangerousHtml:!0},che=/^(https?|ircs?|mailto|xmpp)$/i,fhe=[{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 dhe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||RL,l=e.remarkPlugins||RL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...LL}:LL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||hhe,h=ahe().use(Yfe).use(l).use(Gde,u).use(s),p=new YG;typeof n=="string"&&(p.value=n);for(const y of fhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+uhe+y.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),UG(g,m),Pue(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(y,x,S){if(y.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let _;for(_ in FS)if(DL.call(FS,_)&&DL.call(y.properties,_)){const b=y.properties[_],w=FS[_];(w===null||w.includes(y.tagName))&&(y.properties[_]=d(String(b||""),_,y))}}if(y.type==="element"){let _=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&r&&typeof x=="number"&&(_=!r(y,x,S)),_&&S&&typeof x=="number")return f&&y.children?S.children.splice(x,1,...y.children):S.children.splice(x,1),x}}}function hhe(e){return Yue(e,che)}const WC=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function phe({content:e,round:t,markdown:r}){return t?WC(e,t):r?E.jsx(dhe,{skipHtml:!1,children:e}):e}function Of({rows:e,structure:t}){return E.jsx(lae,{component:F1,children:E.jsxs(Vie,{children:[E.jsx(vae,{children:E.jsx(aR,{children:t.map(({title:r,key:n})=>E.jsx(tR,{children:r},`table-head-${n}`))})}),E.jsx(Xie,{children:e.map((r,n)=>E.jsx(aR,{children:t.map(({key:i,round:a,markdown:o},s)=>E.jsx(tR,{children:E.jsx(phe,{content:r[i],markdown:o,round:a})},`table-row=${s}`))},`${r.name}-${n}`))})]})})}function vhe({rows:e,tableStructure:t}){return t?E.jsx(Of,{rows:e,structure:t}):null}const ghe=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:oG(a),...o})):null,rows:i?i.data:[]}},mhe=Yn(ghe)(vhe),yhe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function qG({exceptions:e}){return E.jsx(Of,{rows:e,structure:yhe})}const xhe=({ui:{exceptions:e}})=>({exceptions:e}),She=Yn(xhe)(qG),bhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function XG({errors:e}){return E.jsx(Of,{rows:e,structure:bhe})}const _he=({ui:{errors:e}})=>({errors:e}),whe=Yn(_he)(XG);function Che({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=iv(({theme:{isDarkMode:n}})=>n);return E.jsxs(S4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Gu,{children:E.jsx(si,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(Gu,{children:E.jsx(si,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(Gu,{children:E.jsx(si,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(Gu,{children:E.jsx(si,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(Gu,{children:E.jsx(si,{href:`/stats/report?theme=${r?gs.DARK:gs.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i})=>E.jsx(Gu,{children:E.jsx(si,{href:n,children:i})}))]})}const The=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Ahe=Yn(The)(Che),Mhe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function ZG({stats:e}){return E.jsx(Of,{rows:e,structure:Mhe})}const Ihe=({ui:{stats:e}})=>({stats:e}),Phe=Yn(Ihe)(ZG);/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var UC=function(e,t){return UC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},UC(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");UC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var khe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Dhe=function(){function e(){this.browser=new khe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Sl=new Dhe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Sl.wxa=!0,Sl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Sl.worker=!0:typeof navigator>"u"?(Sl.node=!0,Sl.svgSupported=!0):Rhe(navigator.userAgent,Sl);function Rhe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=Sl;var R2=12,KG="sans-serif",Ms=R2+"px "+KG,Lhe=20,Ehe=100,Ohe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Nhe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function ape(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?zL(s,o):zL(o,s))}function iH(e){return e.nodeName.toUpperCase()==="CANVAS"}var ope=/([&<>"'])/g,spe={"&":"&","<":"<",">":">",'"':""","'":"'"};function gn(e){return e==null?"":(e+"").replace(ope,function(t,r){return spe[r]})}var lpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ZS=[],upe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function QC(e,t,r,n){return r=r||{},n?FL(e,t,r):upe&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):FL(e,t,r),r}function FL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(iH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(KC(ZS,e,n,i)){r.zrX=ZS[0],r.zrY=ZS[1];return}}r.zrX=r.zrY=0}function F2(e){return e||window.event}function Jn(e,t,r){if(t=F2(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&QC(e,o,t,r)}else{QC(e,t,t,r);var a=cpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&lpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function cpe(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function JC(e,t,r,n){e.addEventListener(t,r,n)}function fpe(e,t,r,n){e.removeEventListener(t,r,n)}var ho=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function $L(e){return e.which===2||e.which===3}var dpe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=VL(n)/VL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=hpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Si(){return[1,0,0,1,0,0]}function ax(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function $2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function to(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Ea(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Mu(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function V2(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Bf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function ppe(e){var t=Si();return $2(t,e),t}var vpe=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Le=vpe;var ug=Math.min,cg=Math.max,Us=new Le,js=new Le,Ys=new Le,qs=new Le,gd=new Le,md=new Le,gpe=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=ug(t.x,this.x),n=ug(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=cg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=cg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Si();return Ea(a,a,[-r.x,-r.y]),V2(a,a,[n,i]),Ea(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ap&&(p=x,vp&&(p=S,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Us.x=Ys.x=r.x,Us.y=qs.y=r.y,js.x=qs.x=r.x+r.width,js.y=Ys.y=r.y+r.height,Us.transform(n),qs.transform(n),js.transform(n),Ys.transform(n),t.x=ug(Us.x,js.x,Ys.x,qs.x),t.y=ug(Us.y,js.y,Ys.y,qs.y);var l=cg(Us.x,js.x,Ys.x,qs.x),u=cg(Us.y,js.y,Ys.y,qs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=gpe;var aH="silent";function mpe(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:ype}}function ype(){ho(this.event)}var xpe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ci),yd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Spe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],QS=new Ne(0,0,0,0),oH=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new yd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new xpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new epe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Spe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=sH(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new yd(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new yd(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=mpe(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new yd(r,n);if(GL(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(QS.copy(d.getBoundingRect()),d.transform&&QS.applyTransform(d.transform),QS.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function bpe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?aH:!0}return!1}function GL(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=bpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==aH)){t.target=o;break}}}function sH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const _pe=oH;var lH=32,xd=7;function wpe(e){for(var t=0;e>=lH;)t|=e&1,e>>=1;return e+t}function HL(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Cpe(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function JS(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function eb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function Tpe(e,t){var r=xd,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=xd||w>=xd);if(C)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(m=0;m=0;m--)e[b+m]=e[_+m];e[S]=o[x];return}for(var w=r;;){var C=0,A=0,T=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],C++,A=0,--p===0){T=!0;break}}else if(e[S--]=o[x--],A++,C=0,--g===1){T=!0;break}while((C|A)=0;m--)e[b+m]=e[_+m];if(p===0){T=!0;break}}if(e[S--]=o[x--],--g===1){T=!0;break}if(A=g-JS(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,b=S+1,_=x+1,m=0;m=xd||A>=xd);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,y-=p,b=S+1,_=y+1,m=p-1;m>=0;m--)e[b+m]=e[_+m];e[S]=o[x]}else{if(g===0)throw new Error;for(_=S-(g-1),m=0;ms&&(l=s),WL(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var En=1,Jd=2,hc=4,UL=!1;function tb(){UL||(UL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Ape=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jL}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(tb(),c.z=0),isNaN(c.z2)&&(tb(),c.z2=0),isNaN(c.zlevel)&&(tb(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Mpe=Ape;var uH;uH=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const eT=uH;var Em={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Em.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Em.bounceIn(e*2)*.5:Em.bounceOut(e*2-1)*.5+.5}};const cH=Em;var fg=Math.pow,ms=Math.sqrt,Wy=1e-8,fH=1e-4,YL=ms(3),dg=1/3,pa=Au(),ui=Au(),Yc=Au();function es(e){return e>-Wy&&eWy||e<-Wy}function pr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function qL(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Uy(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(es(c)&&es(f))if(es(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(es(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m)}else if(v>0){var y=ms(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-fg(-x,dg):x=fg(x,dg),S<0?S=-fg(-S,dg):S=fg(S,dg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ms(c*c*c)),b=Math.acos(_)/3,w=ms(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+YL*Math.sin(b)))/(3*o),A=(-s+w*(C-YL*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m),A>=0&&A<=1&&(a[h++]=A)}}return h}function hH(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(es(o)){if(dH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(es(c))i[0]=-a/(2*o);else if(c>0){var f=ms(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Ps(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function pH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;pa[0]=l,pa[1]=u;for(var y=0;y<1;y+=.05)ui[0]=pr(e,r,i,o,y),ui[1]=pr(t,n,a,s,y),g=Zl(pa,ui),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(es(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ms(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function vH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function bp(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function gH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;pa[0]=o,pa[1]=s;for(var d=0;d<1;d+=.05){ui[0]=br(e,r,i,d),ui[1]=br(t,n,a,d);var h=Zl(pa,ui);h=0&&h=1?1:Uy(0,n,a,1,l,s)&&pr(0,i,o,1,s[0])}}}var Rpe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||tr,this.ondestroy=t.ondestroy||tr,this.onrestart=t.onrestart||tr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=me(t)?t:cH[t]||G2(t)},e}();const Lpe=Rpe;var mH=function(){function e(t){this.value=t}return e}(),Epe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new mH(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ope=function(){function e(t){this._list=new Epe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new mH(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const uv=Ope;var XL={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Gi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Npe(e){return e=Math.round(e),e<0?0:e>360?360:e}function _p(e){return e<0?0:e>1?1:e}function rb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Gi(parseFloat(t)/100*255):Gi(parseInt(t,10))}function Kl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?_p(parseFloat(t)/100):_p(parseFloat(t))}function nb(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ts(e,t,r){return e+(t-e)*r}function Qn(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function rT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yH=new uv(20),hg=null;function Uu(e,t){hg&&rT(hg,t),hg=yH.put(e,hg||t.slice())}function Fn(e,t){if(e){t=t||[];var r=yH.get(e);if(r)return rT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in XL)return rT(t,XL[n]),Uu(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Qn(t,0,0,0,1);return}return Qn(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Uu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Qn(t,0,0,0,1);return}return Qn(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Uu(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qn(t,+u[0],+u[1],+u[2],1):Qn(t,0,0,0,1);c=Kl(u.pop());case"rgb":if(u.length>=3)return Qn(t,rb(u[0]),rb(u[1]),rb(u[2]),u.length===3?c:Kl(u[3])),Uu(e,t),t;Qn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Qn(t,0,0,0,1);return}return u[3]=Kl(u[3]),nT(u,t),Uu(e,t),t;case"hsl":if(u.length!==3){Qn(t,0,0,0,1);return}return nT(u,t),Uu(e,t),t;default:return}}Qn(t,0,0,0,1)}}function nT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Kl(e[1]),i=Kl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Qn(t,Gi(nb(o,a,r+1/3)*255),Gi(nb(o,a,r)*255),Gi(nb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function zpe(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function iT(e,t){var r=Fn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ro(r,r.length===4?"rgba":"rgb")}}function ib(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Gi(ts(o[0],s[0],l)),r[1]=Gi(ts(o[1],s[1],l)),r[2]=Gi(ts(o[2],s[2],l)),r[3]=_p(ts(o[3],s[3],l)),r}}function Bpe(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Fn(t[i]),s=Fn(t[a]),l=n-i,u=ro([Gi(ts(o[0],s[0],l)),Gi(ts(o[1],s[1],l)),Gi(ts(o[2],s[2],l)),_p(ts(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Rh(e,t,r,n){var i=Fn(e);if(e)return i=zpe(i),t!=null&&(i[0]=Npe(t)),r!=null&&(i[1]=Kl(r)),n!=null&&(i[2]=Kl(n)),ro(nT(i),"rgba")}function jy(e,t){var r=Fn(e);if(r&&t!=null)return r[3]=_p(t),ro(r,"rgba")}function ro(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Yy(e,t){var r=Fn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var qy=Math.round;function wp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Fn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var ZL=1e-4;function rs(e){return e-ZL}function pg(e){return qy(e*1e3)/1e3}function aT(e){return qy(e*1e4)/1e4}function Fpe(e){return"matrix("+pg(e[0])+","+pg(e[1])+","+pg(e[2])+","+pg(e[3])+","+aT(e[4])+","+aT(e[5])+")"}var $pe={left:"start",right:"end",center:"middle",middle:"middle"};function Vpe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Gpe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Hpe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function xH(e){return e&&!!e.image}function Wpe(e){return e&&!!e.svgElement}function H2(e){return xH(e)||Wpe(e)}function SH(e){return e.type==="linear"}function bH(e){return e.type==="radial"}function _H(e){return e&&(e.type==="linear"||e.type==="radial")}function ox(e){return"url(#"+e+")"}function wH(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function CH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*km,i=Ee(e.scaleX,1),a=Ee(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+qy(o*km)+"deg, "+qy(s*km)+"deg)"),l.join(" ")}var Upe=function(){return tt.hasGlobalWindow&&me(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),oT=Array.prototype.slice;function ja(e,t,r){return(t-e)*r+e}function ab(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=QL,l=r;if(Xr(r)){var u=Xpe(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Sp(r))s=gg;else if(oe(r))if(!isNaN(+r))s=gg;else{var c=Fn(r);c&&(l=c,s=eh)}else if(nx(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Fn(h.color)}}),SH(r)?s=sT:bH(r)&&(s=lT),l=f}a===0?this.valType=s:(s!==this.valType||s===QL)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:cH[n]||G2(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=mg(i),u=JL(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?Sd:t[l];if((mg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(mg(a))a===Nm?ab(y,h[i],p[i],m):jpe(y,h[i],p[i],m);else if(JL(a)){var x=h[i],S=p[i],_=a===sT;t[l]={type:_?"linear":"radial",x:ja(x.x,S.x,m),y:ja(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:ja(w.offset,A.offset,m),color:Om(ab([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=ja(x.x2,S.x2,m),t[l].y2=ja(x.y2,S.y2,m)):t[l].r=ja(x.r,S.r,m)}else if(u)ab(y,h[i],p[i],m),n||(t[l]=Om(y));else{var b=ja(h[i],p[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===gg?t[n]=t[n]+i:r===eh?(Fn(t[n],Sd),vg(Sd,Sd,i,1),t[n]=Om(Sd)):r===Nm?vg(t[n],t[n],i,1):r===TH&&KL(t[n],t[n],i,1)},e}(),W2=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){O2("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Lh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Lh(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Dc(){return new Date().getTime()}var Kpe=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Dc()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(eT(n),!r._paused&&r.update())}eT(n)},t.prototype.start=function(){this._running||(this._time=Dc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Dc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Dc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new W2(r,n.loop);return this.addAnimator(i),i},t}(Ci);const Qpe=Kpe;var Jpe=300,ob=tt.domSupported,sb=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),eE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tE=!1;function uT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function eve(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function lb(e){e&&(e.zrByTouch=!0)}function tve(e,t){return Jn(e.dom,new rve(e,t),!0)}function AH(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var rve=function(){function e(t,r){this.stopPropagation=tr,this.stopImmediatePropagation=tr,this.preventDefault=tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Di={mousedown:function(e){e=Jn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Jn(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Jn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Jn(this.dom,e);var t=e.toElement||e.relatedTarget;AH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){tE=!0,e=Jn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){tE||(e=Jn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Jn(this.dom,e),lb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Di.mousemove.call(this,e),Di.mousedown.call(this,e)},touchmove:function(e){e=Jn(this.dom,e),lb(e),this.handler.processGesture(e,"change"),Di.mousemove.call(this,e)},touchend:function(e){e=Jn(this.dom,e),lb(e),this.handler.processGesture(e,"end"),Di.mouseup.call(this,e),+new Date-+this.__lastTouchMomentiE||e<-iE}var Zs=[],ju=[],cb=Si(),fb=Math.abs,lve=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Xs(this.rotation)||Xs(this.x)||Xs(this.y)||Xs(this.scaleX-1)||Xs(this.scaleY-1)||Xs(this.skewX)||Xs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(nE(n),this.invTransform=null);return}n=n||Si(),r?this.getLocalTransform(n):nE(n),t&&(r?to(n,t,n):$2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Zs);var n=Zs[0]<0?-1:1,i=Zs[1]<0?-1:1,a=((Zs[0]-n)*r+n)/Zs[0]||0,o=((Zs[1]-i)*r+i)/Zs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Si(),Bf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(to(ju,t.invTransform,r),r=ju);var n=this.originX,i=this.originY;(n||i)&&(cb[4]=n,cb[5]=i,to(ju,r,cb),ju[4]-=n,ju[5]-=i,r=ju),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Lr(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Lr(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&fb(t[0]-1)>1e-10&&fb(t[3]-1)>1e-10?Math.sqrt(fb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){IH(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Mu(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Oa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function IH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Zy(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Yi(n[0],r.width),u+=Yi(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var db="__zr_normal__",hb=Oa.concat(["ignore"]),uve=La(Oa,function(e,t){return e[t]=!0,e},{ignore:!1}),Yu={},cve=new Ne(0,0,0,0),U2=function(){function e(t){this.id=eH(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=cve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Yu,n,c):Zy(Yu,n,c),a.x=Yu.x,a.y=Yu.y,o=Yu.align,s=Yu.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Yi(f[0],c.width),h=Yi(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=En,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hT:dT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Fn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ro(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Y(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Se(t))for(var n=t,i=He(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(db,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===db,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){O2("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~En),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~En)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d0||i.force&&!o.length){var C=void 0,A=void 0,T=void 0;if(s){A={},d&&(C={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ze(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function ne(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return oe(e)?xve(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function qt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),LH),e=(+e).toFixed(t),r?e:+e}function pi(e){return e.sort(function(t,r){return t-r}),e}function xa(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Sve(e)}function Sve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function EH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function bve(e,t){var r=La(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Z(i,function(h){return Math.floor(h)}),s=La(o,function(h,p){return h+p},0),l=Z(i,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Z(o,function(h){return h/n})}function _ve(e,t){var r=Math.max(xa(e),xa(t)),n=e+t;return r>LH?n:qt(n,r)}var uE=9007199254740991;function OH(e){var t=Math.PI*2;return(e%t+t)%t}function Ky(e){return e>-lE&&e=10&&t++,t}function NH(e,t){var r=j2(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function gb(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function cE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var qve=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xve=vu(qve),Zve=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Xve(this,t,r)},e}(),vT=new uv(50);function Kve(e){if(typeof e=="string"){var t=vT.get(e);return t&&t.image}else return e}function Z2(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=vT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!ux(t)&&a.pending.push(o)):(t=Is.loadImage(e,pE,pE),t.__zrImageSrc=e,vT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function pE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=$n(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function XH(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=$n(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Jve(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=$n(e,n)}return e===""&&(e=t.placeholder),e}function Jve(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=qH(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&yb(r,e.substring(s,u),t,o),yb(r,l[2],t,o,l[1]),s=mb.lastIndex}si){_>0?(y.tokens=y.tokens.slice(0,_),g(y,S,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=$n(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=Kve(R),ux(R)&&(b.width=Math.max(b.width,R.width*M/R.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` +`),u=!0),n.accumWidth=p}else{var v=ZH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` +`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var age=La(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function oge(e){return ige(e)?!!age[e]:!0}function ZH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var gT="__zr_style_"+Math.round(Math.random()*10),Ql={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ql[gT]=!0;var gE=["z","z2","invisible"],sge=["invisible"],lge=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(yg[0]=_b(i)*r+e,yg[1]=bb(i)*n+t,xg[0]=_b(a)*r+e,xg[1]=bb(a)*n+t,u(s,yg,xg),c(l,yg,xg),i=i%Qs,i<0&&(i=i+Qs),a=a%Qs,a<0&&(a=a+Qs),i>a&&!o?a+=Qs:ii&&(Sg[0]=_b(h)*r+e,Sg[1]=bb(h)*n+t,u(s,Sg,s),c(l,Sg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Js=[],el=[],Qi=[],Do=[],Ji=[],ea=[],wb=Math.min,Cb=Math.max,tl=Math.cos,rl=Math.sin,Va=Math.abs,mT=Math.PI,$o=mT*2,Tb=typeof Float32Array<"u",bd=[];function Ab(e){var t=Math.round(e/mT*1e8)/1e8;return t%2*mT}function KH(e,t){var r=Ab(e[0]);r<0&&(r+=$o);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=$o?i=r+$o:t&&r-i>=$o?i=r-$o:!t&&r>i?i=r+($o-Ab(r-i)):t&&r0&&(this._ux=Va(n/Xy/t)||0,this._uy=Va(n/Xy/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(xt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Va(t-this._xi),i=Va(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(xt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(xt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(xt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),bd[0]=i,bd[1]=a,KH(bd,o),i=bd[0],a=bd[1];var s=a-i;return this.addData(xt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=tl(a)*n+t,this._yi=rl(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(xt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Tb&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Qi[0]=Qi[1]=Ji[0]=Ji[1]=Number.MAX_VALUE,Do[0]=Do[1]=ea[0]=ea[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Va(x)>i||d===r-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case xt.C:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++],b=t[d++],w=t[d++];v=Ipe(a,o,S,_,g,m,b,w,10),a=b,o=w;break}case xt.Q:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++];v=kpe(a,o,S,_,g,m,10),a=g,o=m;break}case xt.A:var C=t[d++],A=t[d++],T=t[d++],M=t[d++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=tl(I)*T+C,l=rl(I)*M+A),v=Cb(T,M)*wb($o,Math.abs(P)),a=tl(k)*T+C,o=rl(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*2+z*2;break}case xt.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,m=0,y,x=0,S,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b0&&(t.lineTo(S,_),x=0),w){case xt.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case xt.L:{f=n[b++],d=n[b++];var A=Va(f-u),T=Va(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],O=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Ps(u,k,z,O,I,Js),Ps(c,R,$,V,I,el),t.bezierCurveTo(Js[1],el[1],Js[2],el[2],Js[3],el[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,O,V),u=O,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;bp(u,k,z,I,Js),bp(c,R,$,I,el),t.quadraticCurveTo(Js[1],el[1],Js[2],el[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Va(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=tl(j)*U+L,l=rl(j)*B+G),u=tl(re)*U+L,c=rl(re)*B+G;break;case xt.R:s=u=n[b],l=c=n[b+1],f=n[b++],d=n[b++];var J=n[b++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+wb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+wb(de,fe)),de-=fe,de>0&&t.lineTo(f+Cb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+Cb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=xt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const za=hge;function Wo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=_d);var d=Math.atan2(l,s);return d<0&&(d+=_d),d>=n&&d<=i||d+_d>=n&&d+_d<=i}function Ya(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Ro=za.CMD,nl=Math.PI*2,gge=1e-4;function mge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&yge(),h=pr(t,n,a,s,ti[0]),d>1&&(p=pr(t,n,a,s,ti[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=br(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);tn[0]=-l,tn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=nl-1e-4){n=0,i=nl;var c=a?1:-1;return o>=tn[0]+e&&o<=tn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=nl,i+=nl);for(var d=0,h=0;h<2;h++){var p=tn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=nl+v),(v>=n&&v<=i||v+nl>=n&&v+nl<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Ya(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Ro.M:c=a[p++],f=a[p++],l=c,u=f;break;case Ro.L:if(r){if(Wo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Ya(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Ro.C:if(r){if(pge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=xge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Ro.Q:if(r){if(QH(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Sge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Ro.A:var m=a[p++],y=a[p++],x=a[p++],S=a[p++],_=a[p++],b=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(_)*x+m,h=Math.sin(_)*S+y,g?(c=d,f=h):s+=Ya(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(vge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=bge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Ro.R:c=l=a[p++],f=u=a[p++];var A=a[p++],T=a[p++];if(d=c+A,h=f+T,r){if(Wo(c,f,d,f,t,n,i)||Wo(d,f,d,h,t,n,i)||Wo(d,h,c,h,t,n,i)||Wo(c,h,c,f,t,n,i))return!0}else s+=Ya(d,f,d,h,n,i),s+=Ya(c,h,c,f,n,i);break;case Ro.Z:if(r){if(Wo(l,u,c,f,t,n,i))return!0}else s+=Ya(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!mge(u,f)&&(s+=Ya(l,u,c,f,n,i)||0),s!==0}function _ge(e,t,r){return JH(e,0,!1,t,r)}function wge(e,t,r,n){return JH(e,t,!0,r,n)}var Qy=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ql),Cge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cx.style)},Mb=Oa.concat(["invisible","culling","z","z2","zlevel","parent"]),Tge=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?dT:n>.2?sve:hT}else if(r)return hT}return dT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Yy(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&hc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),wge(s,l/u,r,n)))return!0}if(this.hasFill())return _ge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=hc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&hc)},t.prototype.createStyle=function(r){return ix(Qy,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return ix(Age,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=cv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(bi);e6.prototype.type="tspan";const Tp=e6;var Mge=xe({x:0,y:0},Ql),Ige={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cx.style)};function Pge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var t6=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ix(Mge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Pge(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Ige},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(bi);t6.prototype.type="image";const Br=t6;function kge(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Rc=Math.round;function r6(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Rc(n*2)===Rc(i*2)&&(e.x1=e.x2=$l(n,s,!0)),Rc(a*2)===Rc(o*2)&&(e.y1=e.y2=$l(a,s,!0))),e}}function n6(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=$l(n,s,!0),e.y=$l(i,s,!0),e.width=Math.max($l(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max($l(i+o,s,!1)-e.y,o===0?0:1)),e}}function $l(e,t,r){if(!t)return e;var n=Rc(e*2);return(n+Rc(t))%2===0?n/2:(n+(r?1:-1))/2}var Dge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Rge={},i6=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Dge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=n6(Rge,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?kge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);i6.prototype.type="rect";const Qe=i6;var bE={fill:"#000"},_E=2,Lge={style:xe({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},cx.style)},a6=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=bE,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.width,T++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Ib(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=IE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Tp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=ME("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=AE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=_E,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Ms,g.opacity=Ma(u.opacity,n.opacity,1),CE(g,u),_&&(g.lineWidth=Ma(u.lineWidth,n.lineWidth,x),g.lineDash=Ee(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(th(g.x,w,g.textAlign),pc(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(Qe),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=Ee(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Br),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ee(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ma(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return s6(r)&&(n=[r.fontStyle,r.fontWeight,o6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&zi(n)||r.textFont||r.font},t}(bi),Ege={left:!0,right:1,center:1},Oge={top:1,bottom:1,middle:1},wE=["fontStyle","fontWeight","fontSize","fontFamily"];function o6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?R2+"px":e+"px"}function CE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=l6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(qu(s)||qu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!qu(u.fill)&&qu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=LE(s)):!qu(u.stroke)&&qu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=LE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??$f)}return n}function Gge(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??zge)}return r}function Hge(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:$ge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Pb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Vge(this,e,t,r);if(e==="blur")return Hge(this,e,r);if(e==="select")return Gge(this,e,r)}return r}function gu(e){e.stateProxy=Pb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Pb),r&&(r.stateProxy=Pb)}function OE(e,t){!v6(e,t)&&!e.__highByOuter&&wo(e,u6)}function NE(e,t){!v6(e,t)&&!e.__highByOuter&&wo(e,c6)}function vo(e,t){e.__highByOuter|=1<<(t||0),wo(e,u6)}function go(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&wo(e,c6)}function d6(e){wo(e,J2)}function eI(e){wo(e,f6)}function h6(e){wo(e,Bge)}function p6(e){wo(e,Fge)}function v6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function g6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=K2(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){f6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function xT(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function eu(e,t,r){Vl(e,!0),wo(e,gu),bT(e,t,r)}function Xge(e){Vl(e,!1)}function Wt(e,t,r,n){n?Xge(e):eu(e,t,r)}function bT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var BE=["emphasis","blur","select"],Zge={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Nr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=kb(p),s*=kb(p));var v=(i===a?-1:1)*kb((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+r)/2+_g(f)*g-bg(f)*m,x=(t+n)/2+bg(f)*g+_g(f)*m,S=GE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=GE(_,b);if(wT(_,b)<=-1&&(w=wd),wT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/wd*1e6)/1e6;w=wd*2+C%2*wd}c.addData(u,y,x,o,s,S,w,f,a)}var rme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,nme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ime(e){var t=new za;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=za.CMD,l=e.match(rme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function fme(e){var t;if(q(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function dme(e,t){var r,n=rh(t.r,0),i=rh(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=WE(u-l),p=h>Db&&h%Db;if(p>ki&&(h=p),!(n>ki))e.moveTo(c,f);else if(h>Db-ki)e.moveTo(c+n*Zu(l),f+n*il(l)),e.arc(c,f,n,l,u,!d),i>ki&&(e.moveTo(c+i*Zu(u),f+i*il(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0,w=void 0,C=void 0,A=void 0,T=void 0,M=void 0,I=void 0,P=void 0,k=void 0,R=n*Zu(l),z=n*il(l),$=i*Zu(u),O=i*il(u),V=h>ki;if(V){var L=t.cornerRadius;L&&(r=fme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=WE(n-i)/2;if(x=ta(G,m),S=ta(G,y),_=ta(G,v),b=ta(G,g),A=w=rh(x,S),T=C=rh(_,b),(w>ki||C>ki)&&(M=n*Zu(u),I=n*il(u),P=i*Zu(l),k=i*il(l),hki){var ie=ta(m,A),re=ta(y,A),Q=wg(P,k,R,z,n,ie,d),J=wg(M,I,$,O,n,re,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),A0&&e.arc(c+Q.cx,f+Q.cy,ie,Gr(Q.y0,Q.x0),Gr(Q.y1,Q.x1),!d),e.arc(c,f,n,Gr(Q.cy+Q.y1,Q.cx+Q.x1),Gr(J.cy+J.y1,J.cx+J.x1),!d),re>0&&e.arc(c+J.cx,f+J.cy,re,Gr(J.y1,J.x1),Gr(J.y0,J.x0),!d))}else e.moveTo(c+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>ki)||!V)e.lineTo(c+$,f+O);else if(T>ki){var ie=ta(v,T),re=ta(g,T),Q=wg($,O,M,I,i,-re,d),J=wg(R,z,P,k,i,-ie,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,re,Gr(Q.y0,Q.x0),Gr(Q.y1,Q.x1),!d),e.arc(c,f,i,Gr(Q.cy+Q.y1,Q.cx+Q.x1),Gr(J.cy+J.y1,J.cx+J.x1),d),ie>0&&e.arc(c+J.cx,f+J.cy,ie,Gr(J.y1,J.x1),Gr(J.y0,J.x0),!d))}else e.lineTo(c+$,f+O),e.arc(c,f,i,u,l,d)}e.closePath()}}}var hme=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),T6=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hme},t.prototype.buildPath=function(r,n){dme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);T6.prototype.type="sector";const Mn=T6;var pme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),A6=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new pme},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}($e);A6.prototype.type="ring";const px=A6;function vme(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=vme(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sol[1]){if(s=!1,a)return s;var c=Math.abs(ol[0]-al[1]),f=Math.abs(al[0]-ol[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function it(e,t,r,n,i,a){oI("update",e,t,r,n,i,a)}function Rt(e,t,r,n,i,a){oI("enter",e,t,r,n,i,a)}function qc(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function YE(e){return!e.isGroup}function Ome(e){return e.shape!=null}function pv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){YE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ome(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(YE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function F6(e,t){return Z(e,function(r){var n=r[0];n=t0(n,t.x),n=r0(n,t.x+t.width);var i=r[1];return i=t0(i,t.y),i=r0(i,t.y+t.height),[n,i]})}function Nme(e,t){var r=t0(e.x,t.x),n=r0(e.x+e.width,t.x+t.width),i=t0(e.y,t.y),a=r0(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function vv(e,t,r){var n=Y({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),xe(i,r),new Br(n)):gx(e.replace("path://",""),n,r,"center")}function nh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Rb(h,p,c,f)/d;return!(g<0||g>1)}function Rb(e,t,r,n){return e*n-r*t}function zme(e){return e<=1e-6&&e>=-1e-6}function Gf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=oe(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function qE(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Vs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Gs(e,t){return Oe(Oe({},e,!0),t,!0)}const Zme={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Kme={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var i0="ZH",lI="EN",Pp=lI,Gm={},uI={},Y6=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(i0)>-1?i0:Pp}():Pp;function q6(e,t){e=e.toUpperCase(),uI[e]=new wt(t),Gm[e]=t}function Qme(e){if(oe(e)){var t=Gm[e.toUpperCase()]||{};return e===i0||e===lI?we(t):Oe(we(t),we(Gm[Pp]),!1)}else return Oe(we(e),we(Gm[Pp]),!1)}function AT(e){return uI[e]}function Jme(){return uI[Pp]}q6(lI,Zme);q6(i0,Kme);var cI=1e3,fI=cI*60,Fh=fI*60,di=Fh*24,JE=di*365,ih={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ag="{yyyy}-{MM}-{dd}",eO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ag,hour:Ag+" "+ih.hour,minute:Ag+" "+ih.minute,second:Ag+" "+ih.second,millisecond:ih.none},Ob=["year","month","day","hour","minute","second","millisecond"],X6=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Lo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Xc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function eye(e){return e===Xc(e)}function tye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xx(e,t,r,n){var i=Na(e),a=i[dI(r)](),o=i[Zc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Sx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[kp(r)](),f=(c-1)%12+1,d=i[bx(r)](),h=i[_x(r)](),p=i[Cx(r)](),v=n instanceof wt?n:AT(n||Y6)||Jme(),g=v.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Lo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Lo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Lo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Lo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Lo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Lo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Lo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Lo(p,3)).replace(/{S}/g,p+"")}function rye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},ih);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return xx(new Date(e.value),a,i,n)}function Z6(e,t){var r=Na(e),n=r[Zc(t)]()+1,i=r[Sx(t)](),a=r[kp(t)](),o=r[bx(t)](),s=r[_x(t)](),l=r[Cx(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function tO(e,t,r){var n=nt(e)?Na(e):e;switch(t=t||Z6(e,r),t){case"year":return n[dI(r)]();case"half-year":return n[Zc(r)]()>=6?1:0;case"quarter":return Math.floor((n[Zc(r)]()+1)/4);case"month":return n[Zc(r)]();case"day":return n[Sx(r)]();case"half-day":return n[kp(r)]()/24;case"hour":return n[kp(r)]();case"minute":return n[bx(r)]();case"second":return n[_x(r)]();case"millisecond":return n[Cx(r)]()}}function dI(e){return e?"getUTCFullYear":"getFullYear"}function Zc(e){return e?"getUTCMonth":"getMonth"}function Sx(e){return e?"getUTCDate":"getDate"}function kp(e){return e?"getUTCHours":"getHours"}function bx(e){return e?"getUTCMinutes":"getMinutes"}function _x(e){return e?"getUTCSeconds":"getSeconds"}function Cx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function nye(e){return e?"setUTCFullYear":"setFullYear"}function K6(e){return e?"setUTCMonth":"setMonth"}function Q6(e){return e?"setUTCDate":"setDate"}function J6(e){return e?"setUTCHours":"setHours"}function eW(e){return e?"setUTCMinutes":"setMinutes"}function tW(e){return e?"setUTCSeconds":"setSeconds"}function rW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function nW(e){if(!zH(e))return oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function iW(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Uf=B2;function MT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&zi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Na(e):e;if(isNaN(+l)){if(s)return"-"}else return xx(l,n,r)}if(t==="ordinal")return jC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=po(e);return a(u)?nW(u):jC(e)?i(e):typeof e=="boolean"?e+"":"-"}var rO=["a","b","c","d","e","f","g"],Nb=function(e,t){return"{"+e+(t??"")+"}"};function aW(e,t,r){q(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function mu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function a0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Hm=D,oW=["left","right","top","bottom","width","height"],Gl=[["width","left","right"],["height","top","bottom"]];function hI(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var ru=hI;Pe(hI,"vertical");Pe(hI,"horizontal");function oye(e,t,r){var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Uf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function dr(e,t,r){r=Uf(r||0);var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i),u=ne(e.width,n),c=ne(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function Tx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=dr(xe({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function sye(e,t){return e[Gl[t][0]]!=null||e[Gl[t][1]]!=null&&e[Gl[t][2]]!=null}function Dp(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(Gl[0],0),a=o(Gl[1],1);u(Gl[0],e,i),u(Gl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Hm(c,function(x){p[x]=e[x]}),Hm(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return fv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(wt);YH(Yf,wt);lx(Yf);qme(Yf);Xme(Yf,uye);function uye(e){var t=[];return D(Yf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return Sa(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Yf;var lW="";typeof navigator<"u"&&(lW=navigator.platform||"");var Ku="rgba(0, 0, 0, 0.2)";const cye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ku,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ku,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ku,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ku,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ku,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ku,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lW.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ti="original",Zr="arrayRows",Ai="objectRows",Fa="keyedColumns",ys="typedArray",cW="unknown",Ia="column",qf="row",Pr={Must:1,Might:2,Not:3},fW=Je();function fye(e){fW(e).datasetMap=ve()}function dW(e,t,r){var n={},i=vI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=fW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});D(e,function(v,g){var m=v.name,y=p(v);if(c==null){var x=d.valueWayDim;h(n[m],x,y),h(o,x,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var x=d.categoryWayDim;h(n[m],x,y),h(o,x,y),d.categoryWayDim+=y}});function h(v,g,m){for(var y=0;yt)return e[n];return e[r-1]}function vW(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:gye(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function mye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Mg,Cd,iO,aO="\0_ec_inner",yye=1,gW=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=lO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,lO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?iO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ve(),u=n&&n.replaceMergeMainTypeMap;fye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){et.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),et.topologicalTravel(s,et.getAllClassMainTypes(),c,this);function c(f){var d=pye(this,f,ht(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=GH(h,d,p);Lve(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(v,function(S,_){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=et.getClass(f,S.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var T=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(b,T),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Mg(this)}this._seriesIndices||Mg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(r,function(n,i){if(et.hasClass(i)){for(var a=ht(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Cp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[aO],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Pye(e,t){return e.join(",")===t.join(",")}const kye=Tye;var Ii=D,Rp=Se,uO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Bb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=uO.length;r=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=_ve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Ax=function(){function e(t){this.data=t.data||(t.sourceFormat===Fa?{}:[]),this.sourceFormat=t.sourceFormat||cW,this.seriesLayoutBy=t.seriesLayoutBy||Ia,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nv&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};gO=(t={},t[Zr+"_"+Ia]={pure:!0,appendData:a},t[Zr+"_"+qf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ai]={pure:!0,appendData:a},t[Fa]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ti]={appendData:a},t[ys]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return vf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function SO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function $h(e){return new Yye(e)}var Yye=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},Xye=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=IW[t],this._rvalFloat=po(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(po(t),this._rvalFloat)},e}(),PW=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=nt(t)?t:po(t),i=nt(r)?r:po(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),Zye=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=po(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=po(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Kye(e,t){return e==="eq"||e==="ne"?new Zye(e==="eq",t):ce(IW,e)?new Xye(e,t):null}var Qye=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return xs(t,r)},e}();function Jye(e,t){var r=new Qye,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ia&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?s0e:l0e}function Qu(){return[1/0,-1/0]}function u0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wO(e,t,r,n,i){var a=RW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Ad(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return xs(r[a],this._dimensions[a])}Vb={arrayRows:t,objectRows:function(r,n,i,a){return xs(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return xs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),LW=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ig(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Hn(s)?ys:Ti,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ee(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ee(f.sourceHeader,d.sourceHeader),v=Ee(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[kT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[kT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&TO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&TO(f),s.push(c),l.push(u._getVersionSign())}),n?o=a0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[$ye(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=zW(i);a>=t&&(t=a+ +(n&&(!a||RT(i)&&!i.noHeader)))}),t}return 0}function d0e(e,t,r,n){var i=t.noHeader,a=p0e(zW(t)),o=[],s=t.blocks||[];sn(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new PW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=NW(p)(g?Y(Y({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):LT(o.join(""),i?r:a.html);if(i)return f;var d=MT(t.header,"ordinal",e.useUTC),h=OW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?BW(e,d,h)+a.richText+f:LT('
'+gn(d)+"
"+f,r)}function h0e(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=q(S)?S:[S],Z(S,function(_,b){return MT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":MT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=OW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":BW(e,d,y))+(o?"":m0e(e,p,v,g,x)):LT((s?"":f)+(a?"":v0e(d,!s,y))+(o?"":g0e(p,v,g,x)),r)}}function AO(e,t,r,n,i,a){if(e){var o=NW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function p0e(e){return{html:c0e[e],richText:f0e[e]}}function LT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function v0e(e,t,r){var n=t?"margin-left:2px":"";return''+gn(e)+""}function g0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return gn(o)}).join("  ")+""}function BW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function m0e(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(q(t)?t.join(" "):t,a)}function FW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return mu(n)}function $W(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Gb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=BH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=aye({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function VW(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=q(s),u=FW(t,r),c,f,d,h;if(o>1||l&&!o){var p=y0e(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=vf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=Y2(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return yr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[yr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!zi(x),value:c,valueType:f})].concat(d||[])})}function y0e(e,t,r,n,i){var a=t.getData(),o=La(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(vf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(yr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Eo=Je();function Pg(e,t){return e.getName(t)||e.getId(t)}var Wm="__universalTransitionEnabled",Ix=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=$h({count:S0e,reset:b0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Eo(this).sourceManager=new LW(this);a.prepareSource();var o=this.getInitialData(r,i);IO(o,this),this.dataTask.context.data=o,Eo(this).dataBeforeProcessed=o,MO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Dp(this),a=i?jf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),hu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Dp(this);i&&Ds(this.option,r,i);var a=Eo(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);IO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Eo(this).dataBeforeProcessed=o,MO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Hn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=gI.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Pg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Wm])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return et.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(et);sr(Ix,SI);sr(Ix,gI);YH(Ix,et);function MO(e){var t=e.name;Y2(e)||(e.name=x0e(e)||t)}function x0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function S0e(e){return e.model.getRawData().count()}function b0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_0e}function _0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function IO(e,t){D(Hy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(w0e,t))})}function w0e(e,t){var r=ET(e);return r&&r.setOutputEnd((t||this).count()),t}function ET(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Nt=Ix;var _I=function(){function e(){this.group=new Ae,this.uid=Wf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();X2(_I);lx(_I);const Ut=_I;function Xf(){var e=Je();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var GW=Je(),C0e=Xf(),wI=function(){function e(){this.group=new Ae,this.uid=Wf("viewChart"),this.renderTask=$h({plan:T0e,reset:A0e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&kO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&kO(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Vs(this.group,t)},e.markUpdateMethod=function(t,r){GW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function PO(e,t,r){e&&Mp(e)&&(t==="emphasis"?vo:go)(e,r)}function kO(e,t,r){var n=pu(e,t),i=t&&t.highlightKey!=null?Qge(t.highlightKey):null;n!=null?D(ht(n),function(a){PO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){PO(a,r,i)})}X2(wI);lx(wI);function T0e(e){return C0e(e.model)}function A0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&GW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),M0e[l]}var M0e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Tt=wI;var o0="\0__throttleOriginMethod",DO="\0__throttleRate",RO="\0__throttleType";function CI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Zf(e,t,r,n){var i=e[t];if(i){var a=i[o0]||i,o=i[RO],s=i[DO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=CI(a,r,n==="debounce"),i[o0]=a,i[RO]=n,i[DO]=r}return i}}function Lp(e,t){var r=e[t];r&&r[o0]&&(r.clear&&r.clear(),e[t]=r[o0])}var LO=Je(),EO={itemStyle:vu(j6,!0),lineStyle:vu(U6,!0)},I0e={lineStyle:"stroke",itemStyle:"fill"};function HW(e,t){var r=e.visualStyleMapper||EO[t];return r||(console.warn("Unknown style type '"+t+"'."),EO.itemStyle)}function WW(e,t){var r=e.visualDrawType||I0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var P0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=HW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=WW(e,n),u=o[l],c=me(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Md=new wt,k0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=HW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Md.option=l[n];var u=i(Md),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Md.option.decal&&(o.setItemVisual(s,"decal",Md.option.decal),Md.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},D0e={performRawSeries:!0,overallReset:function(e){var t=ve();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),LO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=LO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=WW(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},kg=Math.PI;function R0e(e,t){t=t||{},xe(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ae,n=new Qe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Qe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new iI({shape:{startAngle:-kg/2,endAngle:-kg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:kg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:kg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var L0e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ve();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";sn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ve(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||$h({plan:B0e,reset:F0e,count:V0e}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||$h({reset:E0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";sn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,$h({reset:O0e,onDirty:z0e})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return me(t)&&(t={overallReset:t,seriesType:G0e(t)}),t.uid=Wf("stageHandler"),r&&(t.visualType=r),t},e}();function E0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function O0e(e){return e.overallProgress&&N0e}function N0e(){this.agent.dirty(),this.getDownstream().dirty()}function z0e(){this.agent&&this.agent.dirty()}function B0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function F0e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ht(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return UW(n)}):$0e}var $0e=UW(0);function UW(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),OT=["symbol","symbolSize","symbolRotate","symbolOffset"],BO=OT.concat(["symbolKeepAspect"]),j0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Wl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function NT(e,t,r){for(var n=t.type==="radial"?l1e(e,t,r):s1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function AI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&c1e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var f1e=new za(!0);function u0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function FO(e){return typeof e=="string"&&e!=="none"}function c0(e){var t=e.fill;return t!=null&&t!=="none"}function $O(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function VO(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function zT(e,t,r){var n=Z2(t.image,t.__image,r);if(ux(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*km),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function d1e(e,t,r,n){var i,a=u0(r),o=c0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||f1e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=f?NT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?NT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?zT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?zT(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=AI(t),C=i[0],A=i[1]);var T=!0;(u||f&hc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&VO(e,r),o&&$O(e,r)):(o&&$O(e,r),a&&VO(e,r))),C&&e.setLineDash([])}function h1e(e,t,r){var n=t.__image=Z2(r.image,t.__image,t,t.onload);if(!(!n||!ux(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function p1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Ms,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=AI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(u0(r)&&e.strokeText(i,r.x,r.y),c0(r)&&e.fillText(i,r.x,r.y)):(c0(r)&&e.fillText(i,r.x,r.y),u0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var GO=["shadowBlur","shadowOffsetX","shadowOffsetY"],HO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function QW(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){xn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ql.opacity:o}(n||t.blend!==r.blend)&&(a||(xn(e,i),a=!0),e.globalCompositeOperation=t.blend||Ql.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Hr]){if(this._disposed){this.id;return}var a,o,s;if(Se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Hr]=!0,!this._model||n){var l=new kye(this._api),u=this._theme,c=this._model=new mW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},FT);var f={seriesTransition:s,optionChanged:!0};if(i)this[hn]={silent:a,updateParams:f},this[Hr]=!1,this.getZr().wakeUp();else{try{ec(this),Oo.update.call(this,null,f)}catch(d){throw this[hn]=null,this[Hr]=!1,d}this._ssr||this._zr.flush(),this[hn]=null,this[Hr]=!1,Id.call(this,a),Pd.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(iN[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Kc,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Is.createCanvas(),m=sE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(d,function(x){var S=x.left-l,_=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qe({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(d,function(x){var S=new Br({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Yb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Yb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Oh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Oh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?TI(s,l,n):yv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D($1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Hl(s,function(p){var v=Ie(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=Y({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Vh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),q0e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&WH(this.getDom(),PI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Kc[n.id]},t.prototype.resize=function(r){if(!this[Hr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[hn]&&(a==null&&(a=this[hn].silent),i=!0,this[hn]=null),this[Hr]=!0;try{i&&ec(this),Oo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Hr]=!1,o}this[Hr]=!1,Id.call(this,a),Pd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!$T[r]){var i=$T[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Y({},r);return n.type=Vh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!d0[r.type]&&this._model){if(this[Hr]){this._pendingActions.push(r);return}var i=n.silent;Xb.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Id.call(this,i),Pd.call(this,i)}},t.prototype.updateLabelLayout=function(){Ri.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ec=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),jb(f,!0),jb(f,!1),d.plan()},jb=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;xd.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(qc(m))return;if(m instanceof $e&&Jge(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}rN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){vo(p,v),qn(f)},h.prototype.leaveEmphasis=function(p,v){go(p,v),qn(f)},h.prototype.enterBlur=function(p){d6(p),qn(f)},h.prototype.leaveBlur=function(p){eI(p),qn(f)},h.prototype.enterSelect=function(p){h6(p),qn(f)},h.prototype.leaveSelect=function(p){p6(p),qn(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(yW))(f)},hU=function(f){function d(h,p){for(var v=0;v=0)){aN.push(r);var a=qW.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function yU(e,t){$T[e]=t}function q1e(e,t,r){var n=T1e("registerMap");n&&n(e,t,r)}var X1e=i0e;ku(MI,P0e);ku(Px,k0e);ku(Px,D0e);ku(MI,j0e);ku(Px,Y0e);ku(sU,_1e);gU(SW);mU(I1e,Bye);yU("default",R0e);$a({type:Jl,event:Jl,update:Jl},tr);$a({type:Fm,event:Fm,update:Fm},tr);$a({type:Nh,event:Nh,update:Nh},tr);$a({type:$m,event:$m,update:$m},tr);$a({type:zh,event:zh,update:zh},tr);kI("light",H0e);kI("dark",W0e);var oN=[],Z1e={registerPreprocessor:gU,registerProcessor:mU,registerPostInit:W1e,registerPostUpdate:U1e,registerUpdateLifecycle:DI,registerAction:$a,registerCoordinateSystem:j1e,registerLayout:Y1e,registerVisual:ku,registerTransform:X1e,registerLoading:yU,registerMap:q1e,registerImpl:C1e,PRIORITY:z1e,ComponentModel:et,ComponentView:Ut,SeriesModel:Nt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){Nt.registerClass(e)},registerChartView:function(e){Tt.registerClass(e)},registerSubTypeDefaulter:function(e,t){et.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){yve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(oN,e)>=0||(oN.push(e),me(e)&&(e={install:e}),e.install(Z1e))}function kd(e){return e==null?0:e.length||1}function sN(e){return e}var K1e=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||sN,this._newKeyGetter=i||sN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Dd=Se,No=Z,ixe=typeof Int32Array>"u"?Array:Int32Array,axe="e\0\0",lN=-1,oxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sxe=["_approximateExtent"],uN,Og,Rd,Ld,Qb,Ng,Jb,lxe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;SU(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ti;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),q(a)?a=a.slice():Dd(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Dd(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Dd(t)?Y(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Y(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;yT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:No(this.dimensions,this._getDimInfo,this),this.hostModel)),Qb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(z2(arguments)))})},e.internalField=function(){uN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new ixe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const on=lxe;function xv(e,t){mI(e)||(e=yI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=cxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&wU(o),l=n===e.dimensionsDefine,u=l?_U(e):bU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new DW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function cxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function fxe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var dxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function hxe(e){var t=e.get("coordinateSystem"),r=new dxe(t),n=pxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var pxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ar).models[0],a=e.getReferringComponents("yAxis",ar).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),tc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),tc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ar).models[0];t.coordSysDims=["single"],r.set("single",i),tc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ar).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),tc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),tc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),tc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function tc(e){return e.get("type")==="category"}function vxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;gxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(a,function(y,x){oe(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function gxe(e){return!SU(e.schema)}function Rs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function CU(e,t){return Rs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function mxe(e,t){var r=e.get("coordinateSystem"),n=mv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=p0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function yxe(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Co(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=yI(e)):(i=n.getSource(),a=i.sourceFormat===Ti);var o=hxe(t),s=mxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(dW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=xv(i,c),d=yxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=vxe(t,{schema:f,store:h}),v=new on(f,t);v.setCalculationInfo(p);var g=d!=null&&xxe(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function xxe(e){if(e.sourceFormat===Ti){var t=Sxe(e.data||[]);return!q(Ff(t))}}function Sxe(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();lx(TU);const To=TU;var bxe=0,_xe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,wxe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},e}();function wxe(e){return Se(e)&&e.value!=null?e.value:e+""}const VT=_xe;function GT(e){return e.type==="interval"||e.type==="log"}function Cxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=NH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=AU(o),l=i.niceTickExtent=[qt(Math.ceil(e[0]/o)*o,s),qt(Math.floor(e[1]/o)*o,s)];return Txe(l,e),i}function e_(e){var t=Math.pow(10,j2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,qt(r*t)}function AU(e){return xa(e)+2}function cN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Txe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),cN(e,0,t),cN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function kx(e,t){return e>=t[0]&&e<=t[1]}function Dx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Rx(e,t){return e*(t[1]-t[0])+t[0]}var MU=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new VT({})),q(i)&&(i=new VT({categories:Z(i,function(a){return Se(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),kx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Dx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Rx(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(To);To.registerClass(MU);const LI=MU;var cl=qt,IU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return kx(r,this._extent)},t.prototype.normalize=function(r){return Dx(r,this._extent)},t.prototype.scale=function(r){return Rx(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=AU(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:cl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function DU(e){var t=Ixe(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(NU(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:OI(a),stackId:EI(n)})}),RU(r)}function RU(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),D(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&yS&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;D(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function Pxe(e,t,r){if(e&&t){var n=e[OI(t)];return n!=null&&r!=null?n[EI(r)]:n}}function LU(e,t){var r=kU(e,t),n=DU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=EI(i),u=n[OI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function EU(e){return{seriesType:e,plan:Xf(),reset:function(t){if(OU(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Rs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=kxe(i,a),p=NU(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&ba(_*3),w=p&&l&&ba(_*3),C=p&&ba(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var O=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}O=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=zg.length,l=Math.min(Dxe(zg,this._approxInterval,0,s),s-1);this._interval=zg[l][1],this._minLevelUnit=zg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Na(r)},t.prototype.contain=function(r){return kx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Dx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Rx(r,this._extent)},t.type="time",t}(Ls),zg=[["second",cI],["minute",fI],["hour",Fh],["quarter-day",Fh*6],["half-day",Fh*12],["day",di*1.2],["half-week",di*3.5],["week",di*7],["month",di*31],["quarter",di*95],["half-year",JE/2],["year",JE]];function Rxe(e,t,r,n){var i=Na(t),a=Na(r),o=function(p){return tO(i,p,n)===tO(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function Lxe(e,t){return e/=di,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Exe(e){var t=30*di;return e/=t,e>6?6:e>3?3:e>2?2:1}function Oxe(e){return e/=Fh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function fN(e,t){return e/=t?fI:cI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Nxe(e){return NH(e,!0)}function zxe(e,t,r){var n=new Date(e);switch(Xc(t)){case"year":case"month":n[K6(r)](0);case"day":n[Q6(r)](1);case"hour":n[J6(r)](0);case"minute":n[eW(r)](0);case"second":n[tW(r)](0),n[rW(r)](0)}return n.getTime()}function Bxe(e,t,r,n){var i=1e4,a=X6,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),O=M,V=$[P]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=ft(Z(u,function(T){return ft(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[qt(Vxe(n[0]/a)*a),qt($xe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Gh.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Pi(r)/Pi(this.base),kx(r,this._extent)},t.prototype.normalize=function(r){return r=Pi(r)/Pi(this.base),Dx(r,this._extent)},t.prototype.scale=function(r){return r=Rx(r,this._extent),Bg(this.base,r)},t.type="log",t}(To),FU=NI.prototype;FU.getMinorTicks=Gh.getMinorTicks;FU.getLabel=Gh.getLabel;function Fg(e,t){return Fxe(e,xa(t))}To.registerClass(NI);const Gxe=NI;var Hxe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[Uxe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Wxe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Wxe={min:"_determinedMin",max:"_determinedMax"},Uxe={min:"_dataMin",max:"_dataMax"};function $U(e,t,r){var n=e.rawExtentInfo;return n||(n=new Hxe(e,t,r),e.rawExtentInfo=n,n)}function $g(e,t){return t==null?null:Sp(t)?NaN:e.parse(t)}function VU(e,t){var r=e.type,n=$U(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=kU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=DU(s),c=jxe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function jxe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=Pxe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function mf(e,t){var r=t,n=VU(e,r),i=n.extent,a=r.get("splitNumber");e instanceof Gxe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Lx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new LI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new BU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(To.getClass(t)||Ls)}}function Yxe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Sv(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):oe(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(zI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function zI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function qxe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof LI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Sv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var bv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Kxe=1e-8;function hN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return Jxe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?pN(s.exterior,i,a,r):D(s.points,function(l){pN(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function rSe(e,t){return e=tSe(e),Z(ft(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new vN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new vN(l[0],l.slice(1)))});break;case"LineString":a.push(new gN([i.coordinates]));break;case"MultiLineString":a.push(new gN(i.coordinates))}var s=new WU(n[t||"name"],a,n.cp);return s.properties=n,s})}var Np=Je();function nSe(e){return e.type==="category"?aSe(e):sSe(e)}function iSe(e,t){return e.type==="category"?oSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function aSe(e){var t=e.getLabelModel(),r=jU(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function jU(e,t){var r=YU(e,"labels"),n=BI(t),i=qU(r,n);if(i)return i;var a,o;return me(n)?a=KU(e,n):(o=n==="auto"?lSe(e):n,a=ZU(e,o)),XU(r,n,{labels:a,labelCategoryInterval:o})}function oSe(e,t){var r=YU(e,"ticks"),n=BI(t),i=qU(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=KU(e,n,!0);else if(n==="auto"){var s=jU(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=ZU(e,o,!0);return XU(r,n,{ticks:a,tickCategoryInterval:o})}function sSe(e){var t=e.scale.getTicks(),r=Sv(e);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function YU(e,t){return Np(e)[t]||(Np(e)[t]=[])}function qU(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=cv(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),S=Np(e.model),_=e.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&S.axisExtent0===_[0]&&S.axisExtent1===_[1]?x=b:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=_[0],S.axisExtent1=_[1]),x}function cSe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function ZU(e,t,r){var n=Sv(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=GU(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function KU(e,t,r){var n=e.scale,i=Sv(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var mN=[0,1],fSe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return EH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),yN(n,i.count())),ct(t,mN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),yN(n,i.count()));var a=ct(t,n,mN,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=iSe(this,r),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return dSe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return nSe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return uSe(this)},e}();function yN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function dSe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=qt(h),p=qt(p),f?h>p:hi&&(i+=Ed);var h=Math.atan2(s,o);if(h<0&&(h+=Ed),h>=n&&h<=i||h+Ed>=n&&h+Ed<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y0){t=t/180*Math.PI,Fi.fromArray(e[0]),bt.fromArray(e[1]),er.fromArray(e[2]),Le.sub(_a,Fi,bt),Le.sub(va,er,bt);var r=_a.len(),n=va.len();if(!(r<.001||n<.001)){_a.scale(1/r),va.scale(1/n);var i=_a.dot(va),a=Math.cos(t);if(a1&&Le.copy(rn,er),rn.toArray(e[1])}}}}function ySe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Fi.fromArray(e[0]),bt.fromArray(e[1]),er.fromArray(e[2]),Le.sub(_a,bt,Fi),Le.sub(va,er,bt);var n=_a.len(),i=va.len();if(!(n<.001||i<.001)){_a.scale(1/n),va.scale(1/i);var a=_a.dot(t),o=Math.cos(r);if(a=l)Le.copy(rn,er);else{rn.scaleAndAdd(va,s/Math.tan(Math.PI/2-c));var f=er.x!==bt.x?(rn.x-bt.x)/(er.x-bt.x):(rn.y-bt.y)/(er.y-bt.y);if(isNaN(f))return;f<0?Le.copy(rn,bt):f>1&&Le.copy(rn,er)}rn.toArray(e[1])}}}}function SN(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function xSe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Ko(n[0],n[1]),a=Ko(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Rm([],n[1],n[0],o/i),l=Rm([],n[1],n[2],o/a),u=Rm([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&_(-c/o,0,o);var v=e[0],g=e[o-1],m,y;x(),m<0&&b(-m,.8),y<0&&b(y,.8),x(),S(m,y,1),S(y,m,-1),x(),m<0&&w(-m),y<0&&w(y);function x(){m=v.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function S(C,A,T){if(C<0){var M=Math.min(A,-C);if(M>0){_(M*T,0,o);var I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,o)}}}function w(C){var A=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(o-1)),M=0;M0?_(T,0,M+1):_(-T,o-M-1,o),C-=T,C<=0)return}return u}function SSe(e,t,r,n){return tj(e,"x","width",t,r,n)}function rj(e,t,r,n){return tj(e,"y","height",t,r,n)}function nj(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),it(n,u,r,l)}else if(n.attr(u),!Hf(n).valueAnimation){var f=Ee(n.style.opacity,1);n.style.opacity=0,Rt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Vg(h,u,Gg),Vg(h,n.states.select,Gg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Vg(p,u,Gg),Vg(p,n.states.emphasis,Gg)}W6(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=wSe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Rt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const TSe=CSe;var i_=Je();function ASe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=i_(r).labelManager;i||(i=i_(r).labelManager=new TSe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=i_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var a_=Math.sin,o_=Math.cos,ij=Math.PI,dl=Math.PI*2,MSe=180/ij,ISe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=rs(f-dl)||(c?u>=dl:-u>=dl),h=u>0?u%dl:u%dl+dl,p=!1;d?p=!0:rs(f)?p=!1:p=h>=ij==!!c;var v=t+n*o_(o),g=r+i*a_(o);this._start&&this._add("M",v,g);var m=Math.round(a*MSe);if(d){var y=1/this._p,x=(c?1:-1)*(dl-y);this._add("A",n,i,m,1,+c,t+n*o_(o+x),r+i*a_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*o_(s),_=r+i*a_(s);this._add("A",n,i,m,+p,+c,S,_)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function zSe(e){return""}function VI(e,t){t=t||{};var r=t.newline?` +`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return NSe(o,s)+(o!=="style"?gn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+zSe(o)}return n(e)}function BSe(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function UT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _N(e,t,r,n){return gr("svg","root",{width:e,height:t,xmlns:oj,"xmlns:xlink":sj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var wN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},bl="transform-origin";function FSe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new aj;return i.reset(wH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function $Se(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[bl]=r+"px "+n+"px")}var VSe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function uj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function GSe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=UT(r.zrId);u.animation=!0,Ex(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=uj(i,r);return a.replace(o,s)}}function CN(e){return oe(e)?wN[e]?"cubic-bezier("+wN[e]+")":G2(e)?e:"":""}function Ex(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof aI){var s=GSe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ee=uj(w,r);return ee+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var zp=Math.round;function cj(e){return e&&oe(e.src)}function fj(e){return e&&me(e.toDataURL)}function GI(e,t,r,n){LSe(function(i,a){var o=i==="fill"||i==="stroke";o&&_H(a)?hj(t,e,i,n):o&&H2(a)?pj(r,e,i,n):e[i]=a},t,r,!1),XSe(r,e,n)}function TN(e){return rs(e[0]-1)&&rs(e[1])&&rs(e[2])&&rs(e[3]-1)}function HSe(e){return rs(e[4])&&rs(e[5])}function HI(e,t,r){if(t&&!(HSe(t)&&TN(t))){var n=r?10:1e4;e.transform=TN(t)?"translate("+zp(t[4]*n)/n+" "+zp(t[5]*n)/n+")":Fpe(t)}}function AN(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";sn(d,g),sn(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=Z2(p,null,e,function(T){l||m(b,T),m(f,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=gr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var _=CH(i);_&&(o.patternTransform=_);var b=gr("pattern","",o,[f]),w=VI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=gr("pattern",A,o,[f])),t[r]=ox(A)}}function ZSe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=gr("clipPath",a,o,[dj(e,r)])}t["clip-path"]=ox(a)}function PN(e){return document.createTextNode(e)}function kl(e,t,r){e.insertBefore(t,r)}function kN(e,t){e.removeChild(t)}function DN(e,t){e.appendChild(t)}function vj(e){return e.parentNode}function gj(e){return e.nextSibling}function s_(e,t){e.textContent=t}var RN=58,KSe=120,QSe=gr("","");function jT(e){return e===void 0}function sa(e){return e!==void 0}function JSe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function oh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Bp(e){var t,r=e.children,n=e.tag;if(sa(n)){var i=e.elm=lj(n);if(WI(QSe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,mj(e,p,r,i,l)):y0(e,t,n,a))}function vc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(WI(e,t),jT(t.text)?sa(n)&&sa(i)?n!==i&&ebe(r,n,i):sa(i)?(sa(e.text)&&s_(r,""),mj(r,null,i,0,i.length-1)):sa(n)?y0(r,n,0,n.length-1):sa(e.text)&&s_(r,""):e.text!==t.text&&(sa(n)&&y0(r,n,0,n.length-1),s_(r,t.text)))}function tbe(e,t){if(oh(e,t))vc(e,t);else{var r=e.elm,n=vj(r);Bp(t),n!==null&&(kl(n,t.elm,gj(r)),y0(n,[e],0,0))}return t}var rbe=0,nbe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=LN(),this.configLayer=LN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+rbe++,this._oldVNode=_N(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=lj("svg");WI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",tbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return IN(t,UT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=UT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=ibe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=gr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(gr("defs","defs",{},u)),t.animation){var c=BSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=gr("style","stl",{},[],c);o.push(f)}}return _N(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},VI(this.renderToVNode({animation:Ee(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ee(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m=s)}}for(var f=this.__startIndex;f15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var T=h.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?Hg:0),this._needsManuallyCompositing),c.__builtin__||O2("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&En&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Nt);const vbe=pbe;function yf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=vf(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var gbe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=or(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=mbe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){vo(this.childAt(0))},t.prototype.downplay=function(){go(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):it(d,h,s,n),qi(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Rt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=mr(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var _=Pu(r.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var b=r.getItemVisual(n,"style"),w=b.fill;if(s instanceof Br){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),T=this._z2;A!=null?T==null&&(this._z2=s.z2,s.z2+=A):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;zr(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):yf(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Wt(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ks(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ks(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Kf(r.getItemVisual(n,"symbolSize"))},t}(Ae);function mbe(e,t){this.parent.drift(e,t)}const _v=gbe;function u_(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function NN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function zN(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:mr(t),cursorStyle:t.get("cursor")}}var ybe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||_v}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=NN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=zN(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(u_(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!u_(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):it(h,m,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=zN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=NN(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function Sj(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function Sbe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function bbe(e,t,r,n,i,a,o,s){for(var l=Sbe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=xj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(nu(m,y)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var x=m-u,S=y-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],w=t[_*2+1];b===m&&w===y&&g=n||nu(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*O*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){O=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*O*o,I=m,P=y+G*V*o}else O=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+O),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=zo(I,Bo(b,m)),P=zo(P,Bo(w,y)),I=Bo(I,zo(b,m)),P=Bo(P,zo(w,y)),T=I-m,M=P-y,h=m-T*O/V,p=y-M*O/V,h=zo(h,Bo(u,m)),p=zo(p,Bo(c,y)),h=Bo(h,zo(u,m)),p=Bo(p,zo(c,y)),T=m-h,M=y-p,I=m+T*V/O,P=y+M*V/O}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var bj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),_be=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&nu(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var _=u?Uy(s,h,v,m,r,c):Uy(l,p,g,y,r,c);if(_>0)for(var b=0;b<_;b++){var w=c[b];if(w<=1&&w>=0){var S=u?pr(l,p,g,y,w):pr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),wbe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(bj),_j=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new wbe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&nu(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function Abe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Tbe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";D(d,function(x){x.offset=(x.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new hv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function Mbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Ibe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Ibe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function Pbe(e,t){return isNaN(e)||isNaN(t)}function kbe(e){for(var t=e.length/2;t>0&&Pbe(e[t*2-2],e[t*2-1]);t--);return t-1}function GN(e,t){return[e[t*2],e[t*2+1]]}function Dbe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Tj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Wt(v,$,O,V);var G=VN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=VN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),Nr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Wt(g,$,O,V)}var X=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Ie(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=pu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new _v(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=pu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Tt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Jy(this._polyline,r),n&&Jy(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _be({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new _j({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var S=i,_=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,x=-_[1]/180*Math.PI):(m=S.r0,y=S.r,x=_[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,x=h.x):(m=b.y+b.height,y=b.y,x=h.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=me(f)?f(p):c*w+d,A=v.getSymbolPath(),T=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Tj(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=kbe(l);c>=0&&(zr(s,mr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?yj(o,h):yf(o,f)},enableTextSetter:!0},Rbe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,S=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?v:0)*(y?-1:1),b=(m?0:-v)*(y?-1:1),w=m?"x":"y",C=Dbe(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=GN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=UH(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=GN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Hf(u);typeof z.setLabelText=="function"&&z.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=bbe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=Fo(d.current,i,o,l),p=Fo(d.stackedOnCurrent,i,o,l),v=Fo(d.next,i,o,l),g=Fo(d.stackedOnNext,i,o,l)),$N(h,v)>3e3||c&&$N(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=d.status,S=0;St&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;oe(a)?p=Obe[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,Nbe))}}}}}function zbe(e){e.registerChartView(Ebe),e.registerSeriesModel(vbe),e.registerLayout(Cv("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Aj("line"))}var Mj=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Co(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,x=1,S=0;Sv){y=(_+m)/2;break}S===1&&(x=b-p[0].tickValue)}y==null&&(m?m&&(y=p[p.length-1].coord):y=p[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Nt);Nt.registerClass(Mj);const x0=Mj;var Bbe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Co(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Gs(x0.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(x0);const Fbe=Bbe;var $be=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Vbe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new $be},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ip(a,r,Ie(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Tt),HN={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=f_(t.x,e.x),s=d_(t.x+t.width,i),l=f_(t.y,e.y),u=d_(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=d_(t.r,e.r),a=f_(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},WN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?S0:Mn,c=new u({shape:n,z2:1});c.name="item";var f=Ij(i);if(c.calculateTextPosition=Gbe(f,{isRoundCap:u===S0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Rt)(c,{shape:p},a)}return c}};function jbe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function UN(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?it:Rt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Rt)(r,{shape:u},c,i)}function jN(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Xbe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Ij(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function qN(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=jl(n.getModel("itemStyle"),c,!0);Y(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=mr(n);zr(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:yf(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,Hbe(e,g==="outside"?h:g,Ij(o),n.get(["label","rotate"]))}H6(v,p,a.getRawValue(r),function(y){return yj(t,y)});var m=n.getModel(["emphasis"]);Wt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Nr(e,n),Xbe(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Zbe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var Kbe=function(){function e(){}return e}(),XN=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Kbe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Qbe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Pj(e,t,r){if(Du(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Jbe(e,t,r){var n=e.type==="polar"?Mn:Qe;return new n({shape:Pj(t,r,e),silent:!0,z2:0})}const e_e=Ube;function t_e(e){e.registerChartView(e_e),e.registerSeriesModel(Fbe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(LU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,EU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Aj("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Yg=Math.PI*2,QN=Math.PI/180;function kj(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Dj(e,t){var r=kj(e,t),n=e.get("center"),i=e.get("radius");q(i)||(i=[0,i]);var a=ne(r.width,t.getWidth()),o=ne(r.height,t.getHeight()),s=Math.min(a,o),l=ne(i[0],s/2),u=ne(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else q(n)||(n=[n,n]),c=ne(n[0],a)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function r_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=kj(n,r),s=Dj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*QN,h=n.get("minAngle")*QN,p=0;i.each(a,function(T){!isNaN(T)&&p++});var v=i.getSum(a),g=Math.PI/(v||p)*2,m=n.get("clockwise"),y=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var _=Yg,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;if(isNaN(T)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?I=v===0&&x?g:T*g:I=Yg/p,Ir?m:g,_=Math.abs(x.label.y-r);if(_>=S.maxY){var b=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function h_(e){return e.position==="center"}function a_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*n_e,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),T=w.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),O=M.getModel("labelLine"),V=O.get("length");V=ne(V,u);var L=O.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var jt=A.states.select;jt&&(jt.x+=A.x,jt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&i_e(r,n,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Tt);const l_e=s_e;function Qf(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=xv(n,t).dimensions,a=new on(i,e);return a.initData(n,r),a}var u_e=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const Av=u_e;var c_e=Je(),f_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Av(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Qf(this,{coordDimensions:["value"],encodeDefaulter:Pe(pI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=c_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=bve(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){hu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Nt);const d_e=f_e;function h_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function p_e(e){e.registerChartView(l_e),e.registerSeriesModel(d_e),KW("pie",e.registerAction),e.registerLayout(Pe(r_e,"pie")),e.registerProcessor(Tv("pie")),e.registerProcessor(h_e("pie"))}var v_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Co(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Nt);const g_e=v_e;var Lj=4,m_e=function(){function e(){}return e}(),y_e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new m_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const S_e=x_e;var b_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Cv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new S_e:new wv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Tt);const __e=b_e;var w_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(et);const C_e=w_e;var qT=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ar).models[0]},t.type="cartesian2dAxis",t}(et);sr(qT,bv);var Ej={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},T_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ej),UI=Oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ej),A_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},UI),M_e=xe({logBase:10},UI);const Oj={category:T_e,value:UI,time:A_e,log:M_e};var I_e={value:1,category:1,time:1,log:1};function xf(e,t,r,n){D(I_e,function(i,a){var o=Oe(Oe({},Oj[a],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Dp(this),h=d?jf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=ez(c),d&&Ds(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=VT.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",ez)}function ez(e){return e.type||(e.data?"category":"value")}var P_e=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const k_e=P_e;var XT=["x","y"];function tz(e){return e.type==="interval"||e.type==="time"}var D_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=XT,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!tz(r)||!tz(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Bf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Lr(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Lr(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ne(i,a,o,s)},t}(k_e),R_e=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Zi);const L_e=R_e;function ZT(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),wr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function rz(e){return e.get("coordinateSystem")==="cartesian2d"}function nz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,ar).models[0];t[n]=a}),t}var p_=Math.log;function Nj(e,t,r){var n=Ls.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=VU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=p_(e.base);u=[p_(u[0])/d,p_(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=e_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=e_(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=qt(g-y),v<0&&u[0]>=0?(v=0,g=qt(y)):g>0&&u[1]<=0&&(g=0,v=-qt(y))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var E_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=XT,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;GT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(mf(v,p),GT(v)&&(s=h))}c.length&&(s||(s=c.pop(),mf(s.scale,s.model)),D(c,function(g){Nj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){iz(n,"y",o,a)}),D(n.y,function(o){iz(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=dr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=qxe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),O_e(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Ky(i-ns)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),oz={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Lr(s,s,o),Lr(l,l,o));var c=Y({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Cr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});pf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);oe(d)&&(d=[d,d]),(oe(h)||nt(h))&&(h=[h,h]);var p=Pu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var x=or(d[y],-v/2,-g/2,v,g,c.stroke,!0),S=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+S*Math.cos(e.rotation),y:_[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=F_e(r,n,t,e),a=V_e(r,n,t,e);if(B_e(t,a,i),$_e(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ej(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));nj(o)}},axisName:function(e,t,r,n){var i=wr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,lz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*ns/180);var p;lz(a)?d=iu.innerTextLayout(e.rotation,h??e.rotation,o):(d=z_e(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=wr(e.nameTruncateMaxWidth,g.maxWidth,p),x=new rt({x:f[0],y:f[1],rotation:d.rotation,silent:iu.isLabelSilent(t),style:_t(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Gf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=iu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function z_e(e,t,r,n){var i=OH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ky(i-ns/2)?(o=l?"bottom":"top",a="center"):Ky(i-ns*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ins/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function B_e(e,t,r){if(!GU(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Xn(a),Xn(u)):sz(a,o)&&(n?(Xn(o),Xn(c)):(Xn(a),Xn(u))),i===!1?(Xn(s),Xn(f)):sz(l,s)&&(i?(Xn(l),Xn(d)):(Xn(s),Xn(f)))}}function Xn(e){e&&(e.ignore=!0)}function sz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=ax([]);return Mu(i,i,-e.rotation),r.applyTransform(to([],i,e.getLocalTransform())),n.applyTransform(to([],i,t.getLocalTransform())),r.intersect(n)}}function lz(e){return e==="middle"||e==="center"}function zj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Y_e(e){var t=jI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=KT(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=xe({color:p.color},l));var g=Oe(we(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(oe(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return sr(y,bv.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},Od.axisLine),axisLabel:qg(Od.axisLabel,!1),axisTick:qg(Od.axisTick,!1),splitLine:qg(Od.splitLine,!0),splitArea:qg(Od.splitArea,!0),indicator:[]},t}(et);const uwe=lwe;var cwe=["axisLine","axisTickLabel","axisName"],fwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new yo(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(cwe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var O=$%z.length;return R[O]=R[O]||[],O}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,_=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;m_(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);m_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!pz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;m_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ci);function m_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(ho(n.event),Hj(e,t,r,n,i))}function Hj(e,t,r,n,i){i.isAvailableBehavior=ue(jm,null,r,n),e.trigger(t,i)}function jm(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Mv=bwe;function qI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function XI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var _we={axisPointer:1,tooltip:1,brush:1};function Nx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!_we.hasOwnProperty(n.mainType)&&i&&i.model!==r}function Wj(e){if(oe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var y_,b0={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},vz=He(b0),_0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},gz=He(_0),wwe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Wj(t);this._defsUsePending=[];var i=new Ae;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),kn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Awe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=zx(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=jj(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Qe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=y_[s];if(c&&ce(y_,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=mz[s];if(h&&ce(mz,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Tp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),Cwe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){y_={g:function(t,r){var n=new Ae;return Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Ba;return Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Cr;return Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new nI;return Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Sz(n));var a=new In({shape:{points:i||[]},silent:!0});return Zn(r,a),kn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Sz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Zn(r,a),kn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Br;return Zn(r,n),kn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Ae;return Zn(r,s),kn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ae;return Zn(r,s),kn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=b6(n);return Zn(r,i),kn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),mz={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new hv(t,r,n,i);return yz(e,a),xz(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new E6(t,r,n);return yz(e,i),xz(e,i),i}};function yz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function xz(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};Uj(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Zn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Sz(e){for(var t=zx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=zx(o);switch(i=i||Si(),s){case"translate":Ea(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":V2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Mu(i,i,-parseFloat(l[0])*x_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*x_);to(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*x_);to(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var _z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Uj(e,t,r){var n=e.getAttribute("style");if(n){_z.lastIndex=0;for(var i;(i=_z.exec(n))!=null;){var a=i[1],o=ce(b0,a)?b0[a]:null;o&&(t[o]=i[2]);var s=ce(_0,a)?_0[a]:null;s&&(r[s]=i[2])}}}function kwe(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ve(),n=ve(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;zr(t,mr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(Yj(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Mz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Iz(e,t,r,n,i){e.data||Gf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Pz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Wt(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Kge(t,i,r),o}function kz(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Nt);const Qwe=Kwe;function Jwe(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var _=e.getBoxLayoutParams();_.aspect=g,S=dr(_,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function iCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var aCe=function(){function e(){this.dimensions=Xj}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Ez(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Oz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Ez(s,s,Y({nameMap:N2(l)},i(o[0])));u.zoomLimit=wr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Oz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,iCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function pCe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){mCe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=yCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function vCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function zz(e){return arguments.length?e:bCe}function sh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function gCe(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mCe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function yCe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=S_(s),a=b_(a),s&&a;){i=S_(i),o=b_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(SCe(xCe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!S_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!b_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function S_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function b_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function xCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function SCe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function bCe(e,t){return e.parentNode===t.parentNode?1:2}var _Ce=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),wCe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _Ce},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ne(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;py.x,_||(S=S-Math.PI));var w=_?"left":"right",C=s.getModel("label"),A=C.get("rotate"),T=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-S:T,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),P=I==="relative"?Hy(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),TCe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===dv||Jy(r.__edge,k)}})}function TCe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new vx({shape:eA(c,f,d,i,i)})),it(v,{shape:eA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;yr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(oe(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function r8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function eP(e,t){var r=r8(e);return ze(r,t)>=0}function Bx(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var NCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new wt(i,this,this.ecModel),o=JI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return yr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Bx(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Nt);const zCe=NCe;function BCe(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function FCe(e,t){e.eachSeriesByType("tree",function(r){$Ce(r,t)})}function $Ce(e,t){var r=gCe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=zz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=zz());var s=e.getData().tree.root,l=s.children[0];if(l){hCe(s),BCe(l,pCe,o),s.hierNode.modifier=-l.hierNode.prelim,zd(l,vCe);var u=l,c=l,f=l;zd(l,function(x){var S=x.getLayout().x;Sc.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),zd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=sh(g,m);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),zd(l,function(x){m=(x.getLayout().x+h)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),zd(l,function(x){g=(x.getLayout().x+h)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function VCe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");Y(s,o)})})}function GCe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=KI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function HCe(e){e.registerChartView(ACe),e.registerSeriesModel(zCe),e.registerLayout(FCe),e.registerVisual(VCe),GCe(e)}var Gz=["treemapZoomToNode","treemapRender","treemapMove"];function WCe(e){for(var t=0;t1;)a=a.parentNode;var o=PT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var UCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};i8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=jCe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=JI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return yr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Bx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){n8(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Nt);function i8(e){var t=0;D(e.children,function(n){i8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function jCe(e,t){var r=ht(t.get("color")),n=ht(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(e,function(s){var l=new wt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}const YCe=UCe;var qCe=8,Hz=8,__=5,XCe=function(){function e(t){this.group=new Ae,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),Tx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=fr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+qCe*2,r.emptyItemWidth);r.totalWidth+=s+Hz,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=oye(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,y=g.width,x=g.text;d>f.width&&(d-=y-u,y=u,x=null);var S=new In({shape:{points:ZCe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:$f*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Wt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),KCe(S,t,m),l+=y+Hz}},e.prototype.remove=function(){this.group.removeAll()},e}();function ZCe(e,t,r,n,i,a){var o=[[i?e:e-__,t],[e+r,t],[e+r,t+n],[i?e:e-__,t+n]];return!a&&o.splice(2,0,[e+r+__,t+n/2]),!i&&o.push([e,t+n/2]),o}function KCe(e,t,r){Ie(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Bx(r,t)}}const QCe=XCe;var JCe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;iUz||Math.abs(r.dy)>Uz)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ne(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=Si();Ea(u,u,[-n,-i]),V2(u,u,[r.scale,r.scale]),Ea(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&a0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new QCe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(eP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Bd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Tt);function Bd(){return{nodeGroup:[],background:[],content:[]}}function aTe(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,_=x&&x.length,b=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,M=j("nodeGroup",tA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),w0(M).nodeWidth=h,w0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Wz,u,rTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Mp(M)&&Vl(M,!1),I&&(Vl(I,!z),f.setItemGraphicEl(o.dataIndex,I),bT(I,$,R));else{var O=j("content",Wz,u,nTe);O&&L(M,O),I.disableMorphing=!0,I&&Mp(I)&&Vl(I,!1),Vl(M,!z),f.setItemGraphicEl(o.dataIndex,M),bT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:p,r:T}),g)G(te);else{te.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,fe=qz(b);fe.fill=J;var de=wl(w);de.fill=w.get("borderColor");var ke=wl(C);ke.fill=C.get("borderColor");var We=wl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,gu(te)}ee.add(te)}function L(ee,te){var ie=Ie(te);ie.dataIndex=o.dataIndex,ie.seriesIndex=e.seriesIndex;var re=Math.max(h-2*v,0),Q=Math.max(p-2*v,0);if(te.culling=!0,te.setShape({x:v,y:v,width:re,height:Q,r:T}),g)G(te);else{te.invisible=!1;var J=o.getVisual("style"),fe=J.fill,de=qz(b);de.fill=fe,de.decal=J.decal;var ke=wl(w),We=wl(C),Ge=wl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,gu(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?Yz:jz),J=fr(d.get("name"),null),fe=Q.getShallow("show");zr(ee,mr(d,re?Yz:jz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=B2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.style:null,re,c)}}function B(ee,te,ie){var re=ee?ee.text:null;if(!te&&ie.isLeafRoot&&re!=null){var Q=e.get("drillDownIcon",!0);ee.text=Q?Q+" "+re:re}}function j(ee,te,ie,re){var Q=y!=null&&r[ee][y],J=i[ee];return Q?(r[ee][y]=null,X(J,Q)):g||(Q=new te,Q instanceof bi&&(Q.z2=oTe(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof tA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function oTe(e,t){return e*tTe+t}const sTe=iTe;var Vp=D,lTe=Se,C0=-1,tP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=fTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(w_(i),uTe(i)):r==="category"?i.categories?cTe(i):w_(i,!0):(sn(r!=="linear"||i.dataExtent),w_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Vp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(lTe(t)){var r=[];Vp(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function w_(e,t){var r=e.visual,n=[];Se(r)?Vp(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),a8(e,n)}function Zg(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:rA([0,1])}}function Xz(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Fd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function lh(e){var t=this.option.visual;return t[this.option.loop&&e!==C0?e%t.length:e]}function Cl(){return this.option.visual[0]}function rA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:lh,piecewise:function(t,r){var n=nA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Cl}}function nA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=tP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function a8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Fn(r);return n||[0,0,0,1]})),t}var fTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=tP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??C0},fixed:tr};function Kg(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=mTe(i,l,v,g,p,n);s8(v,m,r,n)}})}}}function pTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function Zz(e){var t=C_(e,"color");if(t){var r=C_(e,"colorAlpha"),n=C_(e,"colorSaturation");return n&&(t=Rh(t,null,null,n)),r&&(t=jy(t,r)),t}}function vTe(e,t){return t!=null?Rh(t,null,null,e):null}function C_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function gTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=T_(t,"color")||i.color!=null&&i.color!=="none"&&(T_(t,"colorAlpha")||T_(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Er(f);return o8(d).drColorMappingBy=c,d}}}function T_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function mTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&o8(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Gp=Math.max,T0=Math.min,Kz=wr,rP=D,l8=["itemStyle","borderWidth"],yTe=["itemStyle","gapWidth"],xTe=["upperLabel","show"],STe=["upperLabel","height"];const bTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=dr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(Kz(s.width,l[0]),i),c=ne(Kz(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=$p(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=r8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?MTe(e,h,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(S),u8(v,x,!1,0),S=v.getLayout(),rP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(ITe(s,p,h),!0),e.setLayoutInfo(s),c8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function u8(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(l8),u=s.get(yTe)/2,c=f8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Gp(i-2*d,0),a=Gp(a-d-h,0);var p=i*a,v=_Te(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=T0(i,a),y=1/0,x=[];x.area=0;for(var S=0,_=v.length;S<_;){var b=v[S];x.push(b),x.area+=b.getLayout().area;var w=ATe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,Qz(x,m,g,u,!1),m=T0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&Qz(x,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function ATe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Gp(u*n/l,l/(u*i)):1/0}function Qz(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;fuE&&(u=uE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*w+c[0],a.y=c[1]+A,p=S[0]<0?"right":"left",a.originX=-m*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,p="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*w+f[0],a.y=f[1]+A,p=S[0]>=0?"right":"left",a.originX=m*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Ae);const oP=YTe;var qTe=function(){function e(t){this.group=new Ae,this._LineCtor=t||oP}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=iB(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=iB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!XTe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function iB(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:mr(t)}}function aB(e){return isNaN(e[0])||isNaN(e[1])}function k_(e){return e&&!aB(e[0])&&!aB(e[1])}const sP=qTe;var D_=[],R_=[],L_=[],ic=br,E_=Zl,oB=Math.abs;function sB(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){D_[0]=ic(n[0],i[0],a[0],c),D_[1]=ic(n[1],i[1],a[1],c);var f=oB(E_(D_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function O_(e,t){var r=[],n=bp,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[eo(u[0]),eo(u[1])],u[2]&&u.__original.push(eo(u[2])));var d=u.__original;if(u[2]!=null){if(Jr(i[0],d[0]),Jr(i[1],d[2]),Jr(i[2],d[1]),c&&c!=="none"){var h=ch(s.node1),p=sB(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=ch(s.node2),p=sB(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}Jr(u[0],i[0]),Jr(u[1],i[2]),Jr(u[2],i[1])}else{if(Jr(a[0],d[0]),Jr(a[1],d[1]),Fl(o,a[1],a[0]),zf(o,o),c&&c!=="none"){var h=ch(s.node1);YC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=ch(s.node2);YC(a[1],a[1],o,-h*t)}Jr(u[0],a[0]),Jr(u[1],a[1])}})}function lB(e){return e.type==="view"}var ZTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new wv,a=new sP,o=this.group;this._controller=new Mv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(lB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}O_(r.getGraph(),uh(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[_.x,_.y]);break;case"circular":f.setItemLayout(S,[_.x,_.y]),x.setLayout({fixed:!0},!0),aP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),iP(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),_.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){v8(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Nx(u,i,r)}),!lB(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){qI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){XI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),O_(r.getGraph(),uh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=uh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){O_(r.getGraph(),uh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Tt);const KTe=ZTe;function ac(e){return"_EC_"+e}var QTe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[ac(t)]){var i=new Tl(t,r);return i.hostGraph=this,this.nodes.push(i),n[ac(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[ac(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof Tl||(t=i[ac(t)]),r instanceof Tl||(r=i[ac(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new m8(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Tl&&(t=t.id),r instanceof Tl&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Tl||(r=this._nodesMap[ac(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}sr(Tl,y8("hostGraph","data"));sr(m8,y8("hostGraph","edgeData"));const JTe=QTe;function x8(e,t,r,n,i){for(var a=new JTe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Co(e,r);else{var v=mv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=xv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new on(m,r),p.initData(e)}var y=new on(["value"],r);return y.initData(l,s),i&&i(p,y),e8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var eAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Av(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),hu(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){OTe(this);var s=x8(a,i,this,!0,l);return D(s.edges,function(u){NTe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=wt.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),yr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=VW({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Z(this.option.categories||[],function(i){return i.value!=null?i:Y({value:0},i)}),n=new on(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Nt);const tAe=eAe;var rAe={type:"graphRoam",event:"graphRoam",update:"none"};function nAe(e){e.registerChartView(KTe),e.registerSeriesModel(tAe),e.registerProcessor(kTe),e.registerVisual(DTe),e.registerVisual(RTe),e.registerLayout(zTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,FTe),e.registerLayout(VTe),e.registerCoordinateSystem("graphView",{dimensions:Iv.dimensions,create:HTe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},tr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},tr),e.registerAction(rAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=KI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var iAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),aAe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new iAe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}($e);const oAe=aAe;function sAe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=ne(r[0],t.getWidth()),s=ne(r[1],t.getHeight()),l=ne(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Jg(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var lAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=sAe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?S0:Mn,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];KH(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,S=[],_=0;p&&_=A&&(T===0?0:a[T-1][0])Math.PI/2&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Cr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.stroke==="auto"&&W.setStyle({stroke:a((z+X/_)/S)}),f.add(W),C+=T}C-=T}else C+=A}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),x=y.mapDimension("value"),S=+r.get("min"),_=+r.get("max"),b=[S,_],w=[s,l];function C(T,M){var I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),O=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=or(z,O-k/2,V-R,k,R,null,L):G=new oAe({shape:{angle:-Math.PI/2,width:k,r:R,x:O,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?S0:Mn,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,O=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(O.z2=_-y.get(x,T)%_),O}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Rt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Rt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),yT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,O=A(T,$),V=g.get("clip");it(O,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(O),yT(r.seriesIndex,y.dataType,T,O),p[T]=O}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),O=$.fill;if(z instanceof Br){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(O);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,Nr(z,M),Wt(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,Nr(L,M),Wt(L,P,k,R)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=or(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Ae,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new rt({silent:!0}),p[m]=new rt({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),S=new Ae,_=a(ct(x,[c,f],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+ne(w[0],o.r),A=o.cy+ne(w[1],o.r),T=h[m];T.attr({z2:g?0:2,style:_t(b,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),S.add(T)}var M=y.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,T=p[m],O=M.get("formatter");T.attr({z2:g?0:2,style:_t(M,{x:P,y:k,text:Jg(x,O),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),H6(T,{normal:M},x,function(L){return Jg(L,O)}),v&&W6(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return Jg(X?X.interpolatedValue:x,O)}}),S.add(T)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Tt);const uAe=lAe;var cAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return Qf(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Nt);const fAe=cAe;function dAe(e){e.registerChartView(uAe),e.registerSeriesModel(fAe)}var hAe=["itemStyle","opacity"],pAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Pn,s=new rt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(hAe);c=c??1,i||qi(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Rt(a,{style:{opacity:c}},o,n)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),Nr(a,s),this._updateLabel(r,n),Wt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;zr(o,mr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),FI(i,$I(l),{stroke:d})},t}(In),vAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new pAe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Ip(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Tt);const gAe=vAe;var mAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Av(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Qf(this,{coordDimensions:["value"],encodeDefaulter:Pe(pI,this)})},t.prototype._defaultLabelLine=function(r){hu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Nt);const yAe=mAe;function xAe(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function SAe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oFAe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!z_(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function z_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const GAe=$Ae;var HAe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(et);const WAe=HAe;var UAe=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Zi);const jAe=UAe;function Lu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=oc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=oc(s,[0,o]),i=a=oc(s,[i,a]),n=0}t[0]=oc(t[0],r),t[1]=oc(t[1],r);var l=B_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=oc(t[n],c);var f;return f=B_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function B_(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function oc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var F_=D,b8=Math.min,_8=Math.max,fB=Math.floor,YAe=Math.ceil,dB=qt,qAe=Math.PI,XAe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;F_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new jAe(o,Lx(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();F_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),mf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=dr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=em(t.get("axisExpandWidth"),l),f=em(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=em(h[1]-h[0],l),h[1]=h[0]+p;else{p=em(c*(f-1),l);var v=t.get("axisExpandCenter")||fB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[fB(dB(h[0]/c,1))+1,YAe(dB(h[1]/c,1))-1],y=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),F_(n,function(o,s){var l=(i.axisExpandable?KAe:ZAe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:qAe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=Si();Mu(h,h,d),Ea(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Lu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[_8(0,p-h/2)],i[1]=b8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function em(e,t){return b8(_8(e,t[0]),t[1])}function ZAe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function KAe(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)pi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aiMe}function P8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function k8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:fP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(gB,e,t,i,["n","s","w","e"]),ondragend:Pe(xu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(gB,e,t,i,a),ondragend:Pe(xu,t,{isEnd:!0})}))}),i}function D8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Sf(i,aMe),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,m=v+i;Ha(e,t,"main",o,s,p,v),n.transformable&&(Ha(e,t,"w",l,u,a,m),Ha(e,t,"e",d,u,a,m),Ha(e,t,"n",l,u,g,a),Ha(e,t,"s",l,h,g,a),Ha(e,t,"nw",l,u,a,a),Ha(e,t,"ne",d,u,a,a),Ha(e,t,"sw",l,h,a,a),Ha(e,t,"se",d,h,a,a))}function lA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(fP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?uA(e,a[0]):dMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?sMe[s]+"-resize":null})})}function Ha(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(pMe(dP(e,t,[[n,i],[n+a,i+o]])))}function fP(e){return xe({strokeNoScale:!0},e.brushStyle)}function R8(e,t,r,n){var i=[Wp(e,r),Wp(t,n)],a=[Sf(e,r),Sf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function fMe(e){return tu(e.group)}function uA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=mx(r[t],fMe(e));return n[i]}function dMe(e,t){var r=[uA(e,t[0]),uA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function gB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=L8(t,i,a);D(n,function(u){var c=oMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(R8(s[0][0],s[1][0],s[0][1],s[1][1])),lP(t,r),xu(t,{isEnd:!1})}function hMe(e,t,r,n){var i=t.__brushOption.range,a=L8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),lP(e,t),xu(e,{isEnd:!1})}function L8(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function dP(e,t,r){var n=I8(e,t);return n&&n!==yu?n.clipPath(r,e._transform):we(r)}function pMe(e){var t=Wp(e[0][0],e[1][0]),r=Wp(e[0][1],e[1][1]),n=Sf(e[0][0],e[1][0]),i=Sf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function vMe(e,t,r){if(!(!e._brushType||mMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=cP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var $x={lineX:xB(0),lineY:xB(1),rect:{createCover:function(e,t){function r(n){return n}return k8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=P8(e);return R8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){D8(e,t,r,n)},updateCommon:lA,contain:fA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new Pn({name:"main",style:fP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new In({name:"main",draggable:!0,drift:Pe(hMe,e,t),ondragend:Pe(xu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:dP(e,t,r)})},updateCommon:lA,contain:fA}};function xB(e){return{createCover:function(t,r){return k8({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=P8(t),n=Wp(r[0][e],r[1][e]),i=Sf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=I8(t,r);if(o!==yu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),D8(t,r,l,i)},updateCommon:lA,contain:fA}}const hP=uMe;function O8(e){return e=pP(e),function(t){return F6(t,e)}}function N8(e,t){return e=pP(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function z8(e,t,r){var n=pP(e);return function(i,a){return n.contain(a[0],a[1])&&!Nx(i,t,r)}}function pP(e){return Ne.create(e)}var yMe=["axisLine","axisTickLabel","axisName"],xMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new hP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!SMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=_Me(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new yo(r,h);D(yMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),pv(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:O8(f),isTargetByCursor:z8(f,s,a),getLinearBrushOtherExtent:N8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(bMe(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ut);function SMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function bMe(e){var t=e.axis;return Z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function _Me(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const wMe=xMe;var CMe={type:"axisAreaSelect",event:"axisAreaSelected"};function TMe(e){e.registerAction(CMe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var AMe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function B8(e){e.registerComponentView(GAe),e.registerComponentModel(WAe),e.registerCoordinateSystem("parallel",tMe),e.registerPreprocessor(NAe),e.registerComponentModel(hB),e.registerComponentView(wMe),xf(e,"parallel",hB,AMe),TMe(e)}function MMe(e){Fe(B8),e.registerChartView(IAe),e.registerSeriesModel(RAe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,OAe)}var IMe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),PMe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new IMe},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){vo(this)},t.prototype.downplay=function(){go(this)},t}($e),kMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new PMe,g=Ie(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),S=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),T=A.get("localX"),M=A.get("localY"),I=p.getLayout(),P,k,R,z,$,O,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,O=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,O=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:O,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),SB(v.style,h,p);var G=""+m.get("value"),U=mr(m,"edgeLabel");zr(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Ma(ie,U.normal&&U.normal.get("formatter"),G),re)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var B=m.getModel("emphasis");Nr(v,m,"lineStyle",function(X){var W=X.getItemStyle();return SB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Wt(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,B.get("blurScope"),B.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),S=new Qe({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});zr(S,mr(g),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(b,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Nr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),Ie(S).dataType="node";var _=x.get("focus");Wt(S,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(DMe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function SB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");oe(n)&&oe(i)&&(e.fill=new hv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function DMe(e,t,r){var n=new Qe({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Rt(n,{shape:{width:e.width+20}},t,r),n}const RMe=kMe;var LMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new wt(o[l],this,n));if(a&&i){var u=x8(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return yr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return yr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Nt);const EMe=LMe;function OMe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=NMe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;BMe(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");zMe(u,c,n,i,o,s,d,h,p)})}function NMe(e,t){return dr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zMe(e,t,r,n,i,a,o,s,l){FMe(e,t,r,i,a,s,l),HMe(e,t,a,i,n,o,s),QMe(e,s)}function BMe(e){D(e,function(t){var r=Ss(t.outEdges,A0),n=Ss(t.inEdges,A0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function FMe(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var y=0;yf-1?h:f-1;o&&o!=="left"&&$Me(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;GMe(e,C,a)}function F8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function $Me(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,jMe(s,l,o),$_(s,i,r,n,o),KMe(s,l,o),$_(s,i,r,n,o)}function WMe(e,t){var r=[],n=t==="vertical"?"y":"x",i=pT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function UMe(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function jMe(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=Ss(i.outEdges,YMe,r)/Ss(i.outEdges,A0);if(isNaN(a)){var o=i.outEdges.length;a=o?Ss(i.outEdges,qMe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Es(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Es(i,r))*t;i.setLayout({y:l},!0)}}})})}function YMe(e,t){return Es(e.node2,t)*e.getValue()}function qMe(e,t){return Es(e.node2,t)}function XMe(e,t){return Es(e.node1,t)*e.getValue()}function ZMe(e,t){return Es(e.node1,t)}function Es(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function A0(e){return e.getValue()}function Ss(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(n,function(s){var l=new Er({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function e2e(e){e.registerChartView(RMe),e.registerSeriesModel(EMe),e.registerLayout(OMe),e.registerVisual(JMe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var $8=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},S),b.value=b.value.slice(),S.value.unshift(_)):b=S,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:p0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:p0(v),dimsDef:y.slice()}];return Qf(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(dW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),V8=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Nt);sr(V8,$8,!0);const t2e=V8;var r2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=bB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(qi(f),G8(d,f,a,u)):f=bB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Tt),n2e=function(){function e(){}return e}(),i2e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new n2e},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();av){var S=[m,x];n.push(S)}}}return{boxData:r,outliers:n}}var d2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Zr){var n="";st(n)}var i=f2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function h2e(e){e.registerSeriesModel(t2e),e.registerChartView(o2e),e.registerLayout(s2e),e.registerTransform(d2e)}var p2e=["color","borderColor"],v2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Vs(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&_B(u,f))return;var d=V_(f,c,!0);Rt(d,{shape:{points:f.ends}},r,c),G_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&_B(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),qi(d)):d=V_(h),G_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),wB(r,this.group);var n=r.get("clip",!0)?Ox(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=V_(s);G_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){wB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Tt),g2e=function(){function e(){}return e}(),m2e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new g2e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}($e);function V_(e,t,r){var n=e.ends;return new m2e({shape:{points:r?y2e(n,e):n},z2:100})}function _B(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(p2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const S2e=v2e;var H8=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Nt);sr(H8,$8,!0);const b2e=H8;function _2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var w2e=["itemStyle","borderColor"],C2e=["itemStyle","borderColor0"],T2e=["itemStyle","borderColorDoji"],A2e=["itemStyle","color"],M2e=["itemStyle","color0"],I2e={seriesType:"candlestick",plan:Xf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?A2e:M2e)}function n(a,o){return o.get(a===0?T2e:a>0?w2e:C2e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Y(f,c)}}}}}};const P2e=I2e;var k2e={seriesType:"candlestick",plan:Xf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=D2e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Z(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),S=y.get(u,m),_=y.get(c,m),b=y.get(f,m),w=y.get(d,m),C=Math.min(S,_),A=Math.max(S,_),T=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];O(k,M,0),O(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:CB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function O(G,U,B){var j=U.slice(),X=U.slice();j[i]=Vm(j[i]+n/2,1,!1),X[i]=Vm(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Vm(G[i],1),G}}function p(v,g){for(var m=ba(v.count*4),y=0,x,S=[],_=[],b,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var A=w.get(s,b),T=w.get(u,b),M=w.get(c,b),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=CB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function CB(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function D2e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ne(Ee(e.get("barMaxWidth"),i),i),o=ne(Ee(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?ne(s,i):Math.max(Math.min(i/2,a),o)}const R2e=k2e;function L2e(e){e.registerChartView(S2e),e.registerSeriesModel(b2e),e.registerPreprocessor(_2e),e.registerVisual(P2e),e.registerLayout(R2e)}function TB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var E2e=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new _v(r,n),o=new Ae;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;me(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Ko(r.__p1,r.__cp1)+Ko(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=br,c=tT;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(W8);const W2e=H2e;var U2e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),j2e=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new U2e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],d=a[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(QH(f,d,g,m,p,v,s,r,n))return l}else if(Wo(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const q2e=Y2e;var X2e={seriesType:"lines",plan:Xf(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&Ox(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=j8.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new q2e:new sP(o?a?W2e:U8:a?W8:oP),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Tt);const K2e=Z2e;var Q2e=typeof Uint32Array>"u"?Array:Uint32Array,J2e=typeof Float64Array>"u"?Array:Float64Array;function AB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),N2([i,r[0],r[1]])}))}var eIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],AB(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(AB(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Hy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Hy(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Nt);const tIe=eIe;function tm(e){return e instanceof Array||(e=[e,e]),e}var rIe={seriesType:"lines",reset:function(e){var t=tm(e.get("symbol")),r=tm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=tm(s.getShallow("symbol",!0)),u=tm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const nIe=rIe;function iIe(e){e.registerChartView(K2e),e.registerSeriesModel(tIe),e.registerLayout(j8),e.registerVisual(nIe)}var aIe=256,oIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Is.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p0){var I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Is.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();const sIe=oIe;function lIe(e,t,r){var n=e[1]-e[0];t=Z(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function MB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var cIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):MB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(MB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Vs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Du(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),_=mr(r),b=r.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),T=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mf[1]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),O=$.getModel("emphasis");m=O.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=O.get("focus"),C=O.get("blurScope"),A=O.get("disabled"),_=mr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),zr(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Wt(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new sIe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,m=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var T=r.dataToPoint([w,C]);return T[0]-=d,T[1]-=h,T.push(A),T}),S=i.getExtent(),_=i.type==="visualMap.continuous"?uIe(S,i.option.range):lIe(S,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new Br({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const fIe=cIe;var dIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Co(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=mv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Nt);const hIe=dIe;function pIe(e){e.registerChartView(fIe),e.registerSeriesModel(hIe)}var vIe=["itemStyle","borderWidth"],IB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],U_=new Ba,gIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:IB[+c],categoryDim:IB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=kB(o,h),v=PB(o,h,p,d),g=DB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),LB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=kB(o,h),m=PB(o,h,g,d),y=Q8(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?wIe(v,d,m):v=DB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),LB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&RB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){RB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function PB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};mIe(r,a,i,n,d),yIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),xIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Pu(r.get("symbolOffset"),h);return SIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function mIe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(q(o)){var f=[j_(s,o[0])-l,j_(s,o[1])-l];f[1]0?1:-1}function j_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function yIe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;q(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=ne(p[f.index],d),p[c.index]=ne(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function xIe(e,t,r,n,i){var a=e.get(vIe)||0;a&&(U_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),U_.updateTransform(),a/=U_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function SIe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var m=Math.abs(l),y=wr(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var S=ne(y,t[h.index]),_=Math.max(v+S*2,0),b=x?0:S*2,w=zH(n),C=w?n:EB((m+b)/_),A=m-C*v;S=A/2/(x?C:Math.max(C-1,1)),_=v+S*2,b=x?0:S*2,!w&&n!=="fixed"&&(C=u?EB((Math.abs(u)+b)/_):0),g=C*_-b,f.repeatTimes=C,f.symbolMargin=S}var T=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?T:o==="end"?l-T:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function Y8(e){var t=e.symbolPatternSize,r=or(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function q8(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(vP(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-v),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function X8(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Qc(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=Y8(r),i.add(a),Qc(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function Z8(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?Qc(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Qe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function K8(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(i,{shape:a},s,l);else{a[o.wh]=0,i=new Qe({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],gv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function kB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=bIe,r.isAnimationEnabled=_Ie,r}function bIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function _Ie(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function DB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?q8(i,t,r):X8(i,t,r),Z8(i,r,n),K8(i,t,r,n),i.__pictorialShapeStr=Q8(e,r),i.__pictorialSymbolMeta=r,i}function wIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?q8(e,t,r,!0):X8(e,t,r,!0),Z8(e,r,!0),K8(e,t,r,!0)}function RB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];vP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){ks(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function Q8(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function vP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Qc(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&gv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function LB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");vP(e,function(v){if(v instanceof Br){var g=v.style;v.useStyle(Y({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;zr(p,mr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:yf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Wt(e,c,f,a.get("disabled"))}function EB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const CIe=gIe;var TIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Gs(x0.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(x0);const AIe=TIe;function MIe(e){e.registerChartView(CIe),e.registerSeriesModel(AIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(LU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,EU("pictorialBar"))}var IIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new mo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var S=[],_=[],b,w=l[m].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function OIe(e){e.registerChartView(kIe),e.registerSeriesModel(RIe),e.registerLayout(LIe),e.registerProcessor(Tv("themeRiver"))}var NIe=2,zIe=4,BIe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=NIe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:zIe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=gf(h,o));var p=jl(l.getModel("itemStyle"),f,!0);Y(f,p),D(ln,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=jl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Rt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),qi(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Wt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=Bi(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=Bi(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(Mn);const NB=BIe;var dA="sunburstRootToNode",zB="sunburstHighlight",FIe="sunburstUnhighlight";function $Ie(e){e.registerAction({type:dA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=$p(t,[dA],i);if(o){var s=i.getViewRoot();s&&(t.direction=eP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:zB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=$p(t,[zB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:FIe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var VIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(y,x){if(y.length===0&&x.length===0)return;new mo(x,y,S,S).add(_).update(_).remove(Pe(_,null)).execute();function S(b){return b.getId()}function _(b,w){var C=b==null?null:y[b],A=w==null?null:x[w];v(C,A)}}function v(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,r,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var S=new NB(y,r,n,i);c.add(S),s.setItemGraphicEl(y.dataIndex,S)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,i):(o.virtualPiece=new NB(y,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";a0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:dA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Tt);const GIe=VIe;var HIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};J8(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=JI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=Bx(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){n8(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Nt);function J8(e){var t=0;D(e.children,function(n){J8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const WIe=HIe;var BB=Math.PI/180;function UIe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(i[0],o),c=ne(i[1],s),f=ne(a[0],l/2),d=ne(a[1],l/2),h=-n.get("startAngle")*BB,p=n.get("minAngle")*BB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&e9(g,y);var x=0;D(g.children,function(z){!isNaN(z.getValue())&&x++});var S=g.getValue(),_=Math.PI/(S||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(d-f)/(w||1),A=n.get("clockwise"),T=n.get("stillShowZeroSum"),M=A?1:-1,I=function(z,$){if(z){var O=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=iT(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");Y(u,l)})})}function qIe(e){e.registerChartView(GIe),e.registerSeriesModel(WIe),e.registerLayout(Pe(UIe,"sunburst")),e.registerProcessor(Pe(Tv,"sunburst")),e.registerVisual(YIe),$Ie(e)}var FB={color:"fill",borderColor:"stroke"},XIe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},no=Je(),ZIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Co(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=no(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Nt);const KIe=ZIe;function QIe(e,t){return t=t||[0,0],Z(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function JIe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(QIe,e)}}}function ePe(e,t){return t=t||[0,0],Z([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function tPe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ue(ePe,e)}}}function rPe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function nPe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(rPe,e)}}}function iPe(e,t){return t=t||[0,0],Z(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function aPe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ue(iPe,e)}}}function oPe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function t9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function r9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return $B(o,e),D(o.rich,function(l){$B(l,l)}),{textConfig:i,textContent:a}}function $B(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function VB(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";GB(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){GB(s,s)}),n}function GB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var n9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},HB=He(n9);La(Oa,function(e,t){return e[t]=1,e},{});Oa.join(", ");var M0=["","style","shape","extra"],bf=Je();function gP(e,t,r,n,i){var a=e+"Animation",o=Vf(e,n,i)||{},s=bf(t).userDuring;return o.duration>0&&(o.during=s?ue(fPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function Ym(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=bf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(hPe(e,t,f),UB("shape",t,f),UB("extra",t,f),!a&&s&&(dPe(e,t,c),WB("shape",e,t,c),WB("extra",e,t,c),pPe(e,t,u,c)),f.style=u,sPe(e,f,o),uPe(e,t),s)if(a){var d={};D(M0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=gP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else lPe(e,t,i||0,r,c);i9(e,t),u?e.dirty():e.markRedraw()}function i9(e,t){for(var r=bf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function uPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof bi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var na={},cPe={setTransform:function(e,t){return na.el[e]=t,this},getTransform:function(e){return na.el[e]},setShape:function(e,t){var r=na.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=na.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=na.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=na.el.style;if(t)return t[e]},setExtra:function(e,t){var r=na.el.extra||(na.el.extra={});return r[e]=t,this},getExtra:function(e){var t=na.el.extra;if(t)return t[e]}};function fPe(){var e=this,t=e.el;if(t){var r=bf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}na.el=t,n(cPe)}}function WB(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),au(l))Y(o,a);else for(var u=ht(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var O=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[O]:O}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,O=z&&z.opacity,V=y(R,is).getItemStyle();$!=null&&(V.fill=$),O!=null&&(V.opacity=O);var L={inheritColor:oe($)?$:"#000"},G=x(R,is),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,is),yf(t,R)):null;var B=n0(G,L,!1);return A(k,V),V=VB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,io).getItemStyle(),$=x(R,io),O=_t($,null,null,!0,!0);O.text=$.getShallow("show")?Ma(e.getFormattedLabel(R,io),e.getFormattedLabel(R,is),yf(t,R)):null;var V=n0($,null,!0);return A(k,z),z=VB(z,O,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(FB,k)){var z=t.getItemVisual(R,"style");return z?z[FB[k]]:null}if(ce(XIe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return Mxe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return G6(k,r)}}function TPe(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function Z_(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=bP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Wt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function bP(e,t,r,n,i,a){var o=-1,s=t;t&&l9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=xP(n),s&&SPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Kn.normal.cfg=Kn.normal.conOpt=Kn.emphasis.cfg=Kn.emphasis.conOpt=Kn.blur.cfg=Kn.blur.conOpt=Kn.select.cfg=Kn.select.conOpt=null,Kn.isLegacy=!1,MPe(u,r,n,i,l,Kn),APe(u,r,n,i,l),SP(e,u,r,n,Kn,i,l),ce(n,"info")&&(no(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function l9(e,t,r){var n=no(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&RPe(a)&&u9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function APe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&l9(o,a,n)&&(o=null),o||(o=xP(a),e.setClipPath(o)),SP(null,o,t,a,null,n,i)}}function MPe(e,t,r,n,i,a){if(!e.isGroup){YB(r,null,a),YB(r,io,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=xP(o),e.setTextContent(c)),SP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);PPe(t,p,i)}}}function PPe(e,t,r){t&&Vx(t,no(e).option,r)}function kPe(e){new mo(e.oldChildren,e.newChildren,qB,qB,e).add(XB).update(XB).remove(DPe).execute()}function qB(e,t){var r=e&&e.name;return r??yPe+t}function XB(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;bP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function DPe(e){var t=this.context,r=t.oldChildren[e];r&&Vx(r,no(r).option,t.seriesModel)}function u9(e){return e&&(e.pathData||e.d)}function RPe(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function LPe(e){e.registerChartView(_Pe),e.registerSeriesModel(KIe)}var Dl=Je(),ZB=we,K_=ue,EPe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(KB,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}JB(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=jI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Dl(t).pointerEl=new gv[a.type](ZB(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Dl(t).labelEl=new rt(ZB(r.label));t.add(a),QB(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Dl(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Dl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),QB(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=vv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ho(u.event)},onmousedown:K_(this._onHandleDragMove,this,0,0),drift:K_(this._onHandleDragMove,this),ondragend:K_(this._onHandleDragEnd,this)}),n.add(i)),JB(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Zf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){KB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Q_(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Q_(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Q_(i)),Dl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Lp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function KB(e,t,r,n){c9(Dl(r).lastProp,n)||(Dl(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function c9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&c9(e[i],n)}),!!r}else return e===t}function QB(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Q_(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function JB(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const wP=EPe;function CP(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function f9(e,t,r,n,i){var a=r.get("value"),o=d9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Uf(s.get("padding")||0),u=s.getFont(),c=cv(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),OPe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:_t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function OPe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function d9(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:zI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),oe(o)?a=o.replace("{value}",a):me(o)&&(a=o(s))}return a}function TP(e,t,r){var n=Si();return Mu(n,n,r.rotation),Ea(n,n,r.position),Hi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function h9(e,t,r,n,i,a){var o=yo.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),f9(t,n,i,a,{position:TP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function AP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function p9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function e5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var NPe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=t5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=CP(a),h=zPe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=ZT(l.model,i);h9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=ZT(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=TP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=t5(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(wP);function t5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var zPe={line:function(e,t,r){var n=AP([t,r[0]],[t,r[1]],r5(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:p9([t-n/2,r[0]],[n,i],r5(e))}}};function r5(e){return e.dim==="x"?0:1}const BPe=NPe;var FPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(et);const $Pe=FPe;var Qa=Je(),VPe=D;function v9(e,t,r){if(!tt.node){var n=t.getZr();Qa(n).records||(Qa(n).records={}),GPe(n,t);var i=Qa(n).records[e]||(Qa(n).records[e]={});i.handler=r}}function GPe(e,t){if(Qa(e).initialized)return;Qa(e).initialized=!0,r("click",Pe(n5,"click")),r("mousemove",Pe(n5,"mousemove")),r("globalout",WPe);function r(n,i){e.on(n,function(a){var o=UPe(t);VPe(Qa(e).records,function(s){s&&i(s,a,o.dispatchAction)}),HPe(o.pendings,t)})}}function HPe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function WPe(e,t,r){e.handler("leave",null,r)}function n5(e,t,r,n){t.handler(e,r,n)}function UPe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function vA(e,t){if(!tt.node){var r=t.getZr(),n=(Qa(r).records||{})[e];n&&(Qa(r).records[e]=null)}}var jPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";v9("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){vA("axisPointer",n)},t.prototype.dispose=function(r,n){vA("axisPointer",n)},t.type="axisPointer",t}(Ut);const YPe=jPe;function g9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=pu(a,e);if(o==null||o<0||q(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var i5=Je();function qPe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qm(i)&&(i=g9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=qm(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||qm(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(ZPe,h),showTooltip:Pe(KPe,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=tke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&a5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(x.axesInfo,function(S,_){var b=h[_];if(S!==m&&b){var w=b.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,o5(S),o5(m)))),g[m.key]=w}})}),D(g,function(m,y){a5(c[y],m,v,!0,d)}),QPe(h,c,d),JPe(p,i,e,o),eke(c,o,r),d}}function a5(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=XPe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function XPe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function ZPe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function KPe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Fp(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function QPe(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function JPe(e,t,r,n){if(qm(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function eke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=i5(n)[i]||{},o=i5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function tke(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function o5(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function qm(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Pv(e){Ru.registerAxisPointerClass("CartesianAxisPointer",BPe),e.registerComponentModel($Pe),e.registerComponentView(YPe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=G_e(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},qPe)}function rke(e){Fe(Gj),Fe(Pv)}var nke=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=CP(a),p=ake[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=ike(n,i,a,l,v);f9(r,i,a,o,g)},t}(wP);function ike(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=Si();Mu(d,d,s),Ea(d,d,[n.cx,n.cy]),u=Hi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=yo.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var ake={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:AP(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:e5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:e5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const oke=nke;var ske=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(et);const lke=ske;var MP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ar).models[0]},t.type="polarAxis",t}(et);sr(MP,bv);var uke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(MP),cke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(MP),IP=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Zi);IP.prototype.dataToRadius=Zi.prototype.dataToCoord;IP.prototype.radiusToData=Zi.prototype.coordToData;const fke=IP;var dke=Je(),PP=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=cv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=dke(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(Zi);PP.prototype.dataToAngle=Zi.prototype.dataToCoord;PP.prototype.angleToData=Zi.prototype.coordToData;const hke=PP;var m9=["radius","angle"],pke=function(){function e(t){this.dimensions=m9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fke,this._angleAxis=new hke,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=s5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=s5(r);return i===this?this.pointToData(n):null},e}();function s5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const vke=pke;function gke(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=ne(n[0],i),e.cy=ne(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:q(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function mke(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(v0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(v0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),mf(n.scale,n.model),mf(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function yke(e){return e.mainType==="angleAxis"}function l5(e,t){if(e.type=t.get("type"),e.scale=Lx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),yke(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var xke={dimensions:m9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new vke(i+"");a.update=mke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");l5(o,l),l5(s,u),gke(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ar).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Ske=xke;var bke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function rm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function nm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function u5(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var _ke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(c){c=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});u5(u),u5(s),D(bke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&wke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Ru),wke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=nm(r),l=s?0:1,u;a[l]===0?u=new Ba({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new px({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[nm(r)],u=Z(n,function(c){return new Cr({shape:rm(r,[l,l+s],c.coord)})});e.add(fi(u,{style:xe(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[nm(r)],c=[],f=0;fm?"left":"right",S=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var _=s[p];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:yo.isLabelSilent(t),style:_t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(b),c){var w=yo.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(b).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var O=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(O)=$})}}})}function Rke(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=x9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=y9(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=ne(n.get("barWidth"),c),v=ne(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),D(a,function(v,g){var m=v.maxWidth;m&&m=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=c5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=c5(r);return i===this?this.pointToData(n):null},e}();function c5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Uke(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new Wke(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",ar).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var jke={create:Uke,dimensions:b9};const Yke=jke;var f5=["x","y"],qke=["width","height"],Xke=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=ew(l,1-k0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=CP(a),h=Zke[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=gA(i);h9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=gA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=TP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=k0(o),u=ew(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=ew(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(wP),Zke={line:function(e,t,r){var n=AP([t,r[0]],[t,r[1]],k0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:p9([t-n/2,r[0]],[n,i],k0(e))}}};function k0(e){return e.isHorizontal()?0:1}function ew(e,t){var r=e.getRect();return[r[f5[t]],r[f5[t]]+r[qke[t]]]}const Kke=Xke;var Qke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Ut);function Jke(e){Fe(Pv),Ru.registerAxisPointerClass("SingleAxisPointer",Kke),e.registerComponentView(Qke),e.registerComponentView(Vke),e.registerComponentModel(J_),xf(e,"single",J_,J_.defaultOption),e.registerCoordinateSystem("single",Yke)}var eDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=jf(r);e.prototype.init.apply(this,arguments),d5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),d5(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(et);function d5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return sye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Ds(e,t,{type:"box",ignoreSize:i})}const tDe=eDe;var rDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Qe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Pn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return oe(r)&&r?iye(r,n):me(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new rt({z2:30,style:_t(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||oe(s))&&(s&&(n=AT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/tw)-Math.floor(r[0].time/tw)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function h5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const aDe=iDe;function oDe(e){e.registerComponentModel(tDe),e.registerComponentView(nDe),e.registerCoordinateSystem("calendar",aDe)}function sDe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function p5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function lDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Ds(i,n,{ignoreSize:!0}),sW(r,i),im(r,i),im(r,i,"shape"),im(r,i,"style"),im(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var _9=["transition","enterFrom","leaveTo"],uDe=_9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function im(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?_9:uDe,i=0;i=0;c--){var f=i[c],d=fr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ri(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Tx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ri(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Xm(i,ri(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ut);function mA(e){var t=ce(v5,e)?v5[e]:sI(e),r=new t({});return ri(r).type=e,r}function g5(e,t,r,n){var i=mA(r);return t.add(i),n.set(e,i),ri(i).id=e,ri(i).isNew=!0,i}function Xm(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Xm(a,t,r,n)}),Vx(e,t,n),r.removeKey(ri(e).id))}function m5(e,t,r,n){e.isGroup||D([["cursor",bi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function hDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(oW),function(t){delete e[t]}),e}function pDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function vDe(e){e.registerComponentModel(fDe),e.registerComponentView(dDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var y5=["x","y","radius","angle","single"],gDe=["cartesian2d","polar","singleAxis"];function mDe(e){var t=e.get("coordinateSystem");return ze(gDe,t)>=0}function as(e){return e+"Axis"}function yDe(e,t){var r=ve(),n=[],i=ve();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function w9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(as(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var rw=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),xDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=x5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=x5(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ve(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(y5,function(i){var a=this.getReferringComponents(as(i),zve);if(a.specified){n=!0;var o=new rw;D(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new rw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ar).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",ar).models[0]&&d.add(p.componentIndex)})}}}a&&D(y5,function(u){if(a){var c=i.findComponents({mainType:as(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new rw;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(as(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(as(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(x&&!S&&!_)return!0;x&&(g=!0),S&&(p=!0),_&&(v=!0)}return g&&p&&v})}else gc(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});gc(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;gc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=EH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function ADe(e,t,r){var n=[1/0,-1/0];gc(r,function(o){Zxe(n,o.getData(),t)});var i=e.getAxisModel(),a=$U(i.axis.scale,i,n).calculate();return[a.min,a.max]}const MDe=TDe;var IDe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(as(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new MDe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const PDe=IDe;function kDe(e){e.registerAction("dataZoom",function(t,r){var n=yDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var b5=!1;function DP(e){b5||(b5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,PDe),kDe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function DDe(e){e.registerComponentModel(bDe),e.registerComponentView(CDe),DP(e)}var ci=function(){function e(){}return e}(),C9={};function mc(e,t){C9[e]=t}function T9(e){return C9[e]}var RDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,i){var a=T9(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(et);const LDe=RDe;function EDe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=dr(n,a,i);ru(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Tx(e,n,a,i)}function A9(e,t){var r=Uf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Qe({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var ODe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];D(u,function(p,v){f.push(v)}),new mo(this._featureNames||[],f).add(d).update(d).remove(Pe(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],y=u[g],x=new wt(y,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(NDe(g))S={onclick:x.option.onclick,featureName:g};else{var _=T9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=Wf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof ci;if(!g&&m){b&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var A=this.option,T=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,T[w]&&(C==="emphasis"?vo:go)(T[w])},S instanceof ci&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof ci&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},_,b;oe(x)?(_={},_[g]=x):_=x,oe(S)?(b={},b[g]=S):b=S;var w=p.iconPaths={};D(_,function(C,A){var T=vv(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(m.getItemStyle());var M=T.ensureState("emphasis");M.style=y.getItemStyle();var I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),Gf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?vo:go)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}EDe(o,r,i),o.add(A9(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!me(x)&&v){var S=x.style||(x.style={}),_=cv(v,rt.makeFont(S)),b=p.x+o.x,w=p.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(m.position="top",C=!0);var A=C?-5-_.height:s+10;b+_.width/2>i.getWidth()?(m.position=["100%",A],S.align="right"):b-_.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){D(this._features,function(o){o instanceof ci&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof ci&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof ci&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Ut);function NDe(e){return e.indexOf("my")===0}const zDe=ODe;var BDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=tt.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,_=S.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),S.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ci);const FDe=BDe;var _5="__ec_magicType_stack__",$De=[["line","bar"],["stack"]],VDe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return D(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(w5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=w5[i](d,h,f,a);p&&(xe(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,ar).models[0],S=x.componentIndex;s[y]=s[y]||[];for(var _=0;_<=S;_++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};D($De,function(f){ze(f,i)>=0&&D(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ci),w5={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===_5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":_5},n.get(["option","stack"])||{},!0)}};$a({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const GDe=VDe;var Gx=new Array(60).join("-"),_f=" ";function HDe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function WDe(e){var t=[];return D(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Z(r.series,function(h){return h.name})),l=[i.model.getCategories()];D(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(_f)],c=0;c=0)return!0}var yA=new RegExp("["+_f+"]+","g");function qDe(e){for(var t=e.split(/\n+/g),r=D0(t.shift()).split(yA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function tRe(e){var t=RP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return M9(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function rRe(e){I9(e).snapshots=null}function nRe(e){return RP(e).length}function RP(e){var t=I9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var iRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){rRe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ci);$a({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const aRe=iRe;var oRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],sRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=C5(r,t);D(lRe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=nw[n.brushType](0,a,i);n.__rangeOffset={offset:I5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=nw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=nw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?I5[n.brushType](a.values,o.offset,uRe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:O8(i),isTargetByCursor:z8(i,t,n.coordSysModel),getLinearBrushOtherExtent:N8(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=C5(r,t),a=0;ae[1]&&e.reverse(),e}function C5(e,t){return Oh(e,t,{includeMainTypes:oRe})}var lRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:A5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:A5.geo})})}},T5=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],A5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(tu(e)),t}},nw={lineX:Pe(M5,0),lineY:Pe(M5,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[xA([i[0],a[0]]),xA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function M5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=xA(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var I5={lineX:Pe(P5,0),lineY:Pe(P5,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Z(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function P5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function uRe(e,t){var r=k5(e),n=k5(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function k5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const LP=sRe;var SA=D,cRe=Rve("toolbox-dataZoom_"),fRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new hP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),pRe(r,n,this,a,i),hRe(r,n)},t.prototype.onclick=function(r,n,i){dRe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new LP(EP(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),eRe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Lu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];SA(r,function(i,a){n.push(we(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ci),dRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(tRe(this.ecModel))}};function EP(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function hRe(e,t){e.setIconStatus("back",nRe(t)>1?"emphasis":"normal")}function pRe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new LP(EP(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}hye("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=EP(n),o=Oh(e,a);SA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),SA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:cRe+u+f};d[c]=f,i.push(d)}return i});const vRe=fRe;function gRe(e){e.registerComponentModel(LDe),e.registerComponentView(zDe),mc("saveAsImage",FDe),mc("magicType",GDe),mc("dataView",JDe),mc("dataZoom",vRe),mc("restore",aRe),Fe(DDe)}var mRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(et);const yRe=mRe;function P9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function k9(e){if(tt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function TRe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=tt.transformSupported?","+OP+n:",left"+n+",top"+n),bRe+":"+i}function D5(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+OP+":"+o+";":[["top",0],["left",0],[D9,o]]}function ARe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function MRe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=$W(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(TRe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=iW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(ARe(c)),f!=null&&n.push("padding:"+Uf(f).join("px ")+"px"),n.join(";")+";"}function R5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&npe(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var IRe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;R5(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Jn(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=SRe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=_Re+MRe(t,!this._firstShow,this._longHide)+D5(a[0],a[1],!0)+("border-color:"+mu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(oe(a)&&n.get("trigger")==="item"&&!P9(n)&&(s=CRe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=O5(a,i);this._ticket="";var s=a.dataByCoordSys,l=zRe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=RRe;c.x=a.x,c.y=a.y,c.update(),Ie(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=g9(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(O5(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=$d([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Hl(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ue(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=$d([n.tooltipOption],a),l=this._renderMode,u=[],c=yr("section",{blocks:[],noHeader:!0}),f=[],d=new Gb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=d9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=yr("section",{header:b,noHeader:!zi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,M=A.getDataParams(T);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=zI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",mu(M.color),l);var I=SO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=$d([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=AO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` + +`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ie(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=$d([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new Gb;m.marker=y.makeTooltipMarker("item",mu(m.color),h);var x=SO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?AO(_?Y({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=Ie(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=$d(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new Gb;this._showOrMove(d,function(){var g=we(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=xx(m.axisValue,h,g)),h=aW(h,i,!0)}else if(me(d)){var x=ue(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=dr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=NRe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=ERe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=N5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=N5(h)?f[1]/2:h==="bottom"?f[1]:0),P9(r)){var m=ORe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){tt.node||!n.getDom()||(Lp(this,"_updatePosition"),this._tooltipContent.dispose(),vA("itemTooltip",n))},t.type="tooltip",t}(Ut);function $d(e,t,r){var n=t.ecModel,i;r?(i=new wt(r,n,n),i=new wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function O5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function ERe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function ORe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function NRe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function N5(e){return e==="center"||e==="middle"}function zRe(e,t,r){var n=q2(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=fv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const BRe=LRe;function FRe(e){Fe(Pv),e.registerComponentModel(yRe),e.registerComponentView(BRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},tr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},tr)}var $Re=["rect","polygon","keep","clear"];function VRe(e,t){var r=ht(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),GRe(s),t&&!s.length&&s.push.apply(s,$Re)}}function GRe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var z5=D;function B5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function bA(e,t,r){var n={};return z5(t,function(a){var o=n[a]=i();z5(e[a],function(s,l){if(Er.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Er(u),l==="opacity"&&(u=we(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Er(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function L9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&B5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&B5(t[i])?e[i]=we(t[i]):delete e[i]})}function HRe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Er.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return TI(r,s,f)}function u(f,d){ZW(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;mt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&H5(t)}};function H5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var KRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new hP(n.getZr())).on("brush",ue(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){E9(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(Ut);const QRe=KRe;var JRe="#ddd",eLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&L9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:JRe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return W5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=W5(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(et);function W5(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new wt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const tLe=eLe;var rLe=["rect","polygon","lineX","lineY","keep","clear"],nLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:rLe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(ci);const iLe=nLe;function aLe(e){e.registerComponentView(QRe),e.registerComponentModel(tLe),e.registerPreprocessor(VRe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,jRe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},tr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},tr),mc("brush",iLe)}var oLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(et),sLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ee(r.get("textBaseline"),r.get("textVerticalAlign")),c=new rt({style:_t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new rt({style:_t(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){a0(p,"_"+r.get("target"))}),v&&h.on("click",function(){a0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=dr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Qe({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ut);function lLe(e){e.registerComponentModel(oLe),e.registerComponentView(sLe)}var uLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=fr(Ff(u),""),d;Se(u)?(d=we(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new on([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(et);const U5=uLe;var O9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Gs(U5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(U5);sr(O9,SI.prototype);const cLe=O9;var fLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Ut);const dLe=fLe;var hLe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Zi);const pLe=hLe;var aw=Math.PI,j5=Je(),vLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return yr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=mLe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:aw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*aw/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(y=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Si(),l=o.x,u=o.y+o.height;Ea(s,s,[-l,-u]),Mu(s,s,-aw/2),Ea(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=gLe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new pLe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Cr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Y({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Cr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:xe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ue(o._changeTimeline,o,u.value)},g=Y5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),eu(g);var m=Ie(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new rt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ue(o._changeTimeline,o,f),silent:!1,style:_t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=_t(p),m.ensureState("progress").style=_t(v),n.add(m),eu(m),j5(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Yi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=yLe(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),eu(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),q5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){q5(f,u._progressLine,s,i,a)}};this._currentPointer=Y5(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=pi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var ow={min:Pe(sm,"min"),max:Pe(sm,"max"),average:Pe(sm,"average"),median:Pe(sm,"median")};function jp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!ALe(t)&&!q(t.coord)&&q(i)){var a=z9(t,r,n,e);if(t=we(t),t.type&&ow[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=ow[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)ow[u[c]]&&(u[c]=zP(r,r.mapDimension(i[c]),u[c]));return t}}function z9(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(MLe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function MLe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Yp(e,t){return e&&e.containData&&t.coord&&!wA(t)?e.containData(t.coord):!0}function ILe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!wA(t)&&!wA(r)?e.containZone(t.coord,r.coord):!0}function B9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return xs(o,t[a])}:function(r,n,i,a){return xs(r.value,t[a])}}function zP(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var sw=Je(),PLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){sw(s).keep=!1}),n.eachSeries(function(s){var l=Ns.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!sw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){sw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=Ns.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?d6(l):eI(l))})}})},t.type="marker",t}(Ut);const BP=PLe;function Z5(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var kLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ns.getMarkerModelFromSeries(a,"markPoint");o&&(Z5(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new wv),f=DLe(o,r,n);n.setData(f),Z5(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=yv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(BP);function DLe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new on(n,r),a=Z(r.get("data"),Pe(jp,t));e&&(a=ft(a,Pe(Yp,e)));var o=B9(!!e,n);return i.initData(a,null,o),i}const RLe=kLe;function LLe(e){e.registerComponentModel(TLe),e.registerComponentView(RLe),e.registerPreprocessor(function(t){NP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var ELe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ns);const OLe=ELe;var lm=Je(),NLe=function(e,t,r,n){var i=e.getData(),a;if(q(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=wr(n.yAxis,n.xAxis);else{var u=z9(n,i,t,e);s=u.valueAxis;var c=CU(i,u.valueDataDim);l=zP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&nt(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[jp(e,a[0]),jp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function R0(e){return!isNaN(e)&&!isFinite(e)}function K5(e,t,r,n){var i=1-e,a=n.dimensions[e];return R0(t[i])&&R0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function zLe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(K5(1,r,n,e)||K5(0,r,n,e)))return!0}return Yp(e,t[0])&&Yp(e,t[1])}function lw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Du(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;R0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):R0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var BLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ns.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=lm(o).from,u=lm(o).to;l.each(function(c){lw(l,c,!0,a,i),lw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new sP);this.group.add(c.group);var f=FLe(o,r,n),d=f.from,h=f.to,p=f.line;lm(n).from=d,lm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);lw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=yv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ee(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Ee(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Ee(w.get("symbolSize"),g[b?0:1]),symbol:Ee(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(BP);function FLe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new on(n,r),a=new on(n,r),o=new on([],r),s=Z(r.get("data"),Pe(NLe,t,e,r));e&&(s=ft(s,Pe(zLe,e)));var l=B9(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const $Le=BLe;function VLe(e){e.registerComponentModel(OLe),e.registerComponentView($Le),e.registerPreprocessor(function(t){NP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var GLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ns);const HLe=GLe;var um=Je(),WLe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=jp(e,i),s=jp(e,a),l=o.coord,u=s.coord;l[0]=wr(l[0],-1/0),l[1]=wr(l[1],-1/0),u[0]=wr(u[0],1/0),u[1]=wr(u[1],1/0);var c=N2([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function L0(e){return!isNaN(e)&&!isFinite(e)}function Q5(e,t,r,n){var i=1-e;return L0(t[i])&&L0(r[i])}function ULe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Du(e,"cartesian2d")?r&&n&&(Q5(1,r,n)||Q5(0,r,n))?!0:ILe(e,i,a):Yp(e,i)||Yp(e,a)}function J5(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Du(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);L0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):L0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var eF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],jLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ns.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(eF,function(f){return J5(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ae});this.group.add(c.group),this.markKeep(c);var f=YLe(o,r,n);n.setData(f),f.each(function(d){var h=Z(eF,function(C){return J5(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];pi(y),pi(x);var S=!(g[0]>y[1]||g[1]x[1]||m[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(et);const CA=KLe;var sc=Pe,TA=D,cm=Ae,QLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new cm),this.group.add(this._selectorGroup=new cm),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=dr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=dr(xe({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=A9(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),TA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new cm;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",sc(tF,v,null,a,d)).on("mouseover",sc(AA,m.name,null,a,d)).on("mouseout",sc(MA,m.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),I=Fn(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:ro(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",sc(tF,null,v,a,d)).on("mouseover",sc(AA,null,v,a,d)).on("mouseout",sc(MA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();TA(r,function(u){var c=u.type,f=new rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);zr(f,{normal:d,emphasis:h},{defaultText:u.title}),eu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=JLe(c,a,l,u,h,g,d),_=new cm,b=a.getModel("textStyle");if(me(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(eEe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&Gf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),eu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ru(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ru("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function JLe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),TA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:gf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function eEe(e){var t=e.icon||"roundRect",r=or(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function tF(e,t,r,n){MA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),AA(e,t,r,n)}function F9(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Qe({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&it(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=uw[o],l=cw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}($9);const oEe=aEe;function sEe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function lEe(e){Fe(V9),e.registerComponentModel(iEe),e.registerComponentView(oEe),sEe(e)}function uEe(e){Fe(V9),Fe(lEe)}var cEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Gs(Up.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Up);const fEe=cEe;var FP=Je();function dEe(e,t,r){FP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function hEe(e,t){for(var r=FP(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function yEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=FP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=w9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,pEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){G9(i,a);return}var c=mEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Zf(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var xEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),dEe(i,r,{pan:ue(fw.pan,this),zoom:ue(fw.zoom,this),scrollMove:ue(fw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){hEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(kP),fw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=dw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Lu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:iF(function(e,t,r,n,i,a){var o=dw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:iF(function(e,t,r,n,i,a){var o=dw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function iF(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Lu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var dw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const SEe=xEe;function H9(e){DP(e),e.registerComponentModel(fEe),e.registerComponentView(SEe),yEe(e)}var bEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Gs(Up.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Up);const _Ee=bEe;var Hd=Qe,aF=7,wEe=1,hw=30,CEe=7,Wd="horizontal",oF="vertical",TEe=5,AEe=["line","bar","candlestick","scatter"],MEe={easing:"cubicOut",duration:100,delay:0},IEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Zf(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Lp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ae;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?CEe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Wd?{right:s.width-o.x-o.width,top:s.height-hw-aF-a,width:o.width,height:hw}:{right:aF,top:o.y,width:hw,height:o.height},u=jf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=dr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===oF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Wd&&!o?{scaleY:l?1:-1,scaleX:1}:i===Wd&&o?{scaleY:l?1:-1,scaleX:-1}:i===oF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Hd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Hd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",I=M?0:ct(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,I]),g.push([y,I]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Ae,I=new In({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Pn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&ze(AEe,u.get("type"))<0)){var c=a.getComponent(as(o),s).axis,f=PEe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Hd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Hd({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:wEe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!l0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=or(S,-1,0,2,2,null,!0);_.attr({cursor:sF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),eu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new rt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=or(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:sF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Lu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=pi([ct(a[0],o,l,!0),ct(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=pi(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=pi([ct(i.x,o,s,!0),ct(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(ho(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Hd({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?MEe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=w9(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(kP);function PEe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function sF(e){return e==="vertical"?"ns-resize":"ew-resize"}const kEe=IEe;function W9(e){e.registerComponentModel(_Ee),e.registerComponentView(kEe),DP(e)}function DEe(e){Fe(H9),Fe(W9)}var REe={get:function(e,t,r){var n=we((LEe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},LEe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const U9=REe;var lF=Er.mapVisual,EEe=Er.eachVisual,OEe=q,uF=D,NEe=pi,zEe=ct,BEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&L9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=bA(this.option.controller,n,r),this.targetVisuals=bA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=ht(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],q(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=NEe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){OEe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},uF(p,function(g,m){if(Er.isValidType(m)){var y=U9.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";uF(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=lF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;EEe(S,function(b){b>_&&(_=b)}),x.symbolSize=lF(S,function(b){return zEe(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(et);const E0=BEe;var cF=[20,140],FEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=cF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=cF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=pi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=fF(this,"outOfRange",this.getExtent()),i=fF(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Ae(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();GEe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=ia(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Hi(i.handleLabelPoints[c],tu(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=ia(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Hi(c.indicatorLabelPoint,tu(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;Mo[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||vF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=Ove(d,h);this._dispatchHighDown("downplay",Zm(p[0],i)),this._dispatchHighDown("highlight",Zm(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Hl(r.target,function(l){var u=Ie(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function KEe(e,t,r,n){for(var i=t.targetVisuals[n],a=Er.prepareVisualTypes(i),o={color:yv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(qEe,XEe),D(ZEe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(QEe))}function X9(e){e.registerComponentModel($Ee),e.registerComponentView(YEe),q9(e)}var JEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],eOe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Er.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=U9.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=we(r)},t.prototype.getValueState=function(r){var n=Er.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Er.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Gs(E0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(E0),eOe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function xF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const tOe=JEe;var rOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=wr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new rt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),ru(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Zm(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return Y9(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Ae,l=this.visualMapModel.textStyleModel;s.add(new rt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(or(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(j9);const nOe=rOe;function Z9(e){e.registerComponentModel(tOe),e.registerComponentView(nOe),q9(e)}function iOe(e){Fe(X9),Fe(Z9)}var aOe={label:{enabled:!0},decal:{show:!1}},SF=Je(),oOe={};function sOe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(aOe);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),SF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=PT(d.ecModel,d.name,oOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=SF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=PT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A1?c.get(["series","multiple",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},cOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):jhe(t)?t:null;if(r==null){var n="";st(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):nt(r)?this._condVal.test(t+""):!1},e}(),fOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),dOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Ec(P,R)&&Ec(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,O){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function PA(e,t,r,n,i,a,o,s,l,u){if(Ec(e,r)&&Ec(t,n)&&Ec(i,o)&&Ec(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],T=[];Ps(e,r,i,o,.5,A),Ps(t,n,a,s,.5,T),PA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),PA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function AOe(e,t){var r=IA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=Q9([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=Q9([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d1?null:new Le(v*l+e,v*u+t)}function POe(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function uc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function kOe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),kOe(t,u,c)}function O0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);O0(e,a[0],i,n),O0(e,a[1],r-i,n)}return n}function DOe(e,t){for(var r=[],n=0;n0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function B0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:$Oe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function t7(e){return EOe(e.path,e.count)}function kA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function VOe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];N0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return kA();var o=r.dividePath||t7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),kA();n=B0(n),s=B0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ka,d=0;d=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var HOe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;PF(e)&&(u=e,c=t),PF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(N0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;VP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:HOe[r],individualDelay:s&&function($,O,V,L){return s($+x,S)}},l),I=y?VOe(b,w,M):GOe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?kF(c,u):kF(d?t:e,[d?e:t]),p=0,v=0;vr7))for(var i=n.getIndices(),a=UOe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function RF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function LF(e){return q(e)?e.sort().join(","):e}function Uo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function qOe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=RF(a),c=LF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=RF(a),u=LF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Uo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Uo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Uo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Uo(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Uo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Uo(s)})}}}}),r}function EF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Uo(t.oldData[s]),dim:o.dimension})}),D(ht(e.to),function(o){var s=EF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Uo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&n7(i,a,n)}function ZOe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(ht(n.seriesTransition),function(i){D(ht(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:"#b3c3bc",textStyle:{color:"#b3c3bc"}},title:{text:t,x:10,y:10},tooltip:{trigger:"axis",formatter:n=>n&&Array.isArray(n)&&n.length>0&&n.some(i=>!!i.value)?n.reduce((i,{color:a,seriesName:o,value:s})=>` + ${i} +
+ + ${o}: ${s} + + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:"#b3c3bc",fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:"#5b6f66"}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:"#5b6f66"}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:["#00ca5a","#ff6d6d"],toolbox:{feature:{saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),QOe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),JOe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:"#5b6f66"},data:(e.markers||[]).map(t=>({xAxis:t}))});kI("locust",{backgroundColor:"#27272a",xAxis:{lineColor:"#f00"},textStyle:{color:"#b3c3bc"},title:{textStyle:{color:"#b3c3bc"}}});function eNe({charts:e,title:t,lines:r}){const[n,i]=N.useState(null),a=N.useRef(null);return N.useEffect(()=>{if(!a.current)return;const o=G1e(a.current,"locust");return o.setOption(KOe({charts:e,title:t,seriesData:QOe({charts:e,lines:r})})),i(o),()=>{H1e(o)}},[a]),N.useEffect(()=>{const o=r.every(({key:s})=>!!e[s]);n&&o&&n.setOption({xAxis:{data:e.time},series:r.map(({key:s},l)=>({data:e[s],...l===0?{markLine:JOe(e)}:{}}))})},[e,n,r]),E.jsx("div",{ref:a,style:{width:"100%",height:"300px"}})}const tNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}]},{title:"Response Times (ms)",lines:[{name:"Median Response Time",key:"responseTimePercentile1"},{name:"95% percentile",key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:'"Number of Users"',key:"userCount"}]}];function i7({charts:e}){return E.jsx("div",{children:tNe.map((t,r)=>E.jsx(eNe,{...t,charts:e},`swarm-chart-${r}`))})}const rNe=({ui:{charts:e}})=>({charts:e}),nNe=Yn(rNe)(i7);function iNe(e){return(e*100).toFixed(1)+"%"}function DA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${iNe(r)} ${t}`,n&&E.jsx(DA,{classRatio:n})]},`nested-ratio-${t}`))})}function a7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(DA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(DA,{classRatio:t})]})]})}const aNe=({ui:{ratios:e}})=>({ratios:e}),oNe=Yn(aNe)(a7),sNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage"}];function lNe({workers:e=[]}){return E.jsx(Of,{rows:e,structure:sNe})}const uNe=({ui:{workers:e}})=>({workers:e}),cNe=Yn(uNe)(lNe),fNe=[{component:Phe,key:"stats",title:"Statistics"},{component:nNe,key:"charts",title:"Charts"},{component:whe,key:"failures",title:"Failures"},{component:She,key:"exceptions",title:"Exceptions"},{component:oNe,key:"ratios",title:"Current Ratio"},{component:Ahe,key:"reports",title:"Download Data"}],dNe=[{component:cNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],hNe=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},pNe=()=>window.location.search?wle(window.location.search):null,vNe={query:pNe()},o7=ca({name:"url",initialState:vNe,reducers:{setUrl:x2}}),gNe=o7.actions,mNe=o7.reducer;function yNe({currentTabIndexFromQuery:e,setUrl:t,tabs:r}){const[n,i]=N.useState(e),a=(o,s)=>{const l=r[s].key;hNe({tab:l}),t({query:{tab:l}}),i(s)};return E.jsxs(Rf,{maxWidth:"xl",children:[E.jsx(gt,{sx:{mb:2},children:E.jsx(Jae,{onChange:a,value:n,children:r.map(({title:o},s)=>E.jsx(Eie,{label:o},`tab-${s}`))})}),r.map(({component:o=mhe},s)=>n===s&&E.jsx(o,{},`tabpabel-${s}`))]})}const xNe=e=>{const{swarm:{extendedTabs:t=[]},url:{query:r}}=e,n=dNe.filter(({shouldDisplayTab:a})=>a(e)),i=[...fNe,...n,...t];return{tabs:i,currentTabIndexFromQuery:r&&r.tab?i.findIndex(({key:a})=>a===r.tab):0}},SNe={setUrl:gNe.setUrl},bNe=Yn(xNe,SNe)(yNe);function yw(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=N.useRef(e);N.useEffect(()=>{n.current=e},[e]),N.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const _Ne={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Wc(window.templateArgs).history.reduce(Q1,{}),ratios:{},userCount:0},wNe=(e,t)=>Q1(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:t}),s7=ca({name:"ui",initialState:_Ne,reducers:{setUi:x2,updateCharts:(e,{payload:t})=>({...e,charts:Q1(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...wNe(e.charts,t.length?t.at(-1):e.charts.time[0]),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),xw=s7.actions,CNe=s7.reducer;function TNe(){const e=Zd(uG.setSwarm),t=Zd(xw.setUi),r=Zd(xw.updateCharts),n=Zd(xw.updateChartMarkers),i=iv(({swarm:p})=>p),a=N.useRef(i.state),[o,s]=N.useState(!1),{data:l,refetch:u}=Cle(),{data:c,refetch:f}=Tle(),{data:d,refetch:h}=Ale();N.useEffect(()=>{if(!l)return;const{extendedStats:p,state:v,stats:g,errors:m,totalRps:y,failRatio:x,workers:S,currentResponseTimePercentile1:_,currentResponseTimePercentile2:b,userCount:w}=l;(v===ii.STOPPED||v===ii.SPAWNING)&&e({state:v});const C=new Date().toLocaleTimeString();o&&(s(!1),n(C));const A=WC(y,2),T=WC(x*100),M={currentRps:A,currentFailPerSec:x,responseTimePercentile1:_,responseTimePercentile2:b,userCount:w,time:C};t({extendedStats:p,stats:g,errors:m,totalRps:A,failRatio:T,workers:S,userCount:w}),r(M)},[l]),N.useEffect(()=>{c&&t({ratios:c})},[c]),N.useEffect(()=>{d&&t({exceptions:d.exceptions})},[d]),yw(u,2e3,{shouldRunInterval:i.state!==ii.STOPPED}),yw(f,5e3,{shouldRunInterval:i.state!==ii.STOPPED}),yw(h,5e3,{shouldRunInterval:i.state!==ii.STOPPED}),N.useEffect(()=>{i.state===ii.RUNNING&&a.current===ii.STOPPED&&s(!0),a.current=i.state},[i.state,a])}function ANe({isDarkMode:e,swarmState:t}){TNe();const r=N.useMemo(()=>q4(e?gs.DARK:gs.LIGHT),[e]);return E.jsxs(QV,{theme:r,children:[E.jsx(KV,{}),E.jsx(Yle,{children:t===ii.READY?E.jsx(cG,{}):E.jsx(bNe,{})})]})}const MNe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),INe=Yn(MNe)(ANe),PNe=f2({[LC.reducerPath]:LC.reducer,swarm:Ble,theme:mse,ui:CNe,url:mNe}),kNe=ase({reducer:PNe}),DNe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function RNe({responseTimes:e}){const t=N.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return E.jsx(Of,{rows:e,structure:[...DNe,...t]})}const LNe=q4(window.theme||gs.LIGHT);function ENe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(QV,{theme:LNe,children:[E.jsx(KV,{}),E.jsxs(Rf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(gt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Ke,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(si,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(gt,{sx:{my:2},children:[E.jsxs(gt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ke,{fontWeight:600,children:"During:"}),E.jsxs(Ke,{children:[r," - ",n]})]}),E.jsxs(gt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ke,{fontWeight:600,children:"Target Host:"}),E.jsx(Ke,{children:a||"None"})]}),E.jsxs(gt,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Ke,{fontWeight:600,children:"Script:"}),E.jsx(Ke,{children:e})]})]}),E.jsxs(gt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(gt,{children:[E.jsx(Ke,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(ZG,{stats:s})]}),E.jsxs(gt,{children:[E.jsx(Ke,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(RNe,{responseTimes:u})]}),E.jsxs(gt,{children:[E.jsx(Ke,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(XG,{errors:l})]}),!!o.length&&E.jsxs(gt,{children:[E.jsx(Ke,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(qG,{exceptions:o})]}),E.jsxs(gt,{children:[E.jsx(Ke,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(i7,{charts:i})]}),E.jsxs(gt,{children:[E.jsx(Ke,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(a7,{ratios:c})]})]})]})]})}const OF=bw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=Wc(window.templateArgs),t={...e,charts:e.history.reduce(Q1,{})};OF.render(E.jsx(ENe,{...t}))}else OF.render(E.jsx(VX,{store:kNe,children:E.jsx(INe,{})})); diff --git a/locust/webui/dist/assets/vendor-87854ba9.js b/locust/webui/dist/assets/vendor-87854ba9.js deleted file mode 100644 index 2426f3ecb9..0000000000 --- a/locust/webui/dist/assets/vendor-87854ba9.js +++ /dev/null @@ -1,230 +0,0 @@ -function t7(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var nF={exports:{}},C0={},iF={exports:{}},st={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Op=Symbol.for("react.element"),n7=Symbol.for("react.portal"),i7=Symbol.for("react.fragment"),a7=Symbol.for("react.strict_mode"),o7=Symbol.for("react.profiler"),s7=Symbol.for("react.provider"),l7=Symbol.for("react.context"),u7=Symbol.for("react.forward_ref"),c7=Symbol.for("react.suspense"),f7=Symbol.for("react.memo"),d7=Symbol.for("react.lazy"),hP=Symbol.iterator;function h7(e){return e===null||typeof e!="object"?null:(e=hP&&e[hP]||e["@@iterator"],typeof e=="function"?e:null)}var aF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oF=Object.assign,sF={};function hf(e,t,r){this.props=e,this.context=t,this.refs=sF,this.updater=r||aF}hf.prototype.isReactComponent={};hf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lF(){}lF.prototype=hf.prototype;function lA(e,t,r){this.props=e,this.context=t,this.refs=sF,this.updater=r||aF}var uA=lA.prototype=new lF;uA.constructor=lA;oF(uA,hf.prototype);uA.isPureReactComponent=!0;var pP=Array.isArray,uF=Object.prototype.hasOwnProperty,cA={current:null},cF={key:!0,ref:!0,__self:!0,__source:!0};function fF(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)uF.call(t,n)&&!cF.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,W=R[V];if(0>>1;Vi(X,E))Hi(ee,X)?(R[V]=ee,R[H]=E,V=H):(R[V]=X,R[U]=E,V=U);else if(Hi(ee,E))R[V]=ee,R[H]=E,V=H;else break e}}return $}function i(R,$){var E=R.sortIndex-$.sortIndex;return E!==0?E:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var $=r(u);$!==null;){if($.callback===null)n(u);else if($.startTime<=R)n(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(u)}}function S(R){if(v=!1,x(R),!p)if(r(l)!==null)p=!0,O(_);else{var $=r(u);$!==null&&F(S,$.startTime-R)}}function _(R,$){p=!1,v&&(v=!1,y(C),C=-1),h=!0;var E=d;try{for(x($),f=r(l);f!==null&&(!(f.expirationTime>$)||R&&!M());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var W=V(f.expirationTime<=$);$=e.unstable_now(),typeof W=="function"?f.callback=W:f===r(l)&&n(l),x($)}else n(l);f=r(l)}if(f!==null)var z=!0;else{var U=r(u);U!==null&&F(S,U.startTime-$),z=!1}return z}finally{f=null,d=E,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TR||125V?(R.sortIndex=E,t(u,R),r(l)===null&&R===r(u)&&(v?(y(C),C=-1):v=!0,F(S,E-V))):(R.sortIndex=W,t(l,R),p||h||(p=!0,O(_))),R},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(R){var $=d;return function(){var E=d;d=$;try{return R.apply(this,arguments)}finally{d=E}}}})(vF);pF.exports=vF;var C7=pF.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var gF=N,Fn=C7;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rw=Object.prototype.hasOwnProperty,T7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yP={},mP={};function A7(e){return rw.call(mP,e)?!0:rw.call(yP,e)?!1:T7.test(e)?mP[e]=!0:(yP[e]=!0,!1)}function M7(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I7(e,t,r,n){if(t===null||typeof t>"u"||M7(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ln(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new ln(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Er[e]=new ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var dA=/[\-:]([a-z])/g;function hA(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(dA,hA);Er[t]=new ln(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(dA,hA);Er[t]=new ln(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(dA,hA);Er[t]=new ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new ln(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function pA(e,t,r,n){var i=Er.hasOwnProperty(t)?Er[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Px=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ld(e):""}function P7(e){switch(e.tag){case 5:return Ld(e.type);case 16:return Ld("Lazy");case 13:return Ld("Suspense");case 19:return Ld("SuspenseList");case 0:case 2:case 15:return e=kx(e.type,!1),e;case 11:return e=kx(e.type.render,!1),e;case 1:return e=kx(e.type,!0),e;default:return""}}function ow(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cc:return"Fragment";case uc:return"Portal";case nw:return"Profiler";case vA:return"StrictMode";case iw:return"Suspense";case aw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xF:return(e.displayName||"Context")+".Consumer";case mF:return(e._context.displayName||"Context")+".Provider";case gA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yA:return t=e.displayName||null,t!==null?t:ow(e.type)||"Memo";case No:t=e._payload,e=e._init;try{return ow(e(t))}catch{}}return null}function k7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ow(t);case 8:return t===vA?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D7(e){var t=bF(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mv(e){e._valueTracker||(e._valueTracker=D7(e))}function _F(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=bF(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ny(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function sw(e,t){var r=t.checked;return qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function SP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ps(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wF(e,t){t=t.checked,t!=null&&pA(e,"checked",t,!1)}function lw(e,t){wF(e,t);var r=ps(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uw(e,t.type,r):t.hasOwnProperty("defaultValue")&&uw(e,t.type,ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function uw(e,t,r){(t!=="number"||Ny(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ed=Array.isArray;function Ac(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=xv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Eh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Kd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},L7=["Webkit","ms","Moz","O"];Object.keys(Kd).forEach(function(e){L7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kd[t]=Kd[e]})});function MF(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Kd.hasOwnProperty(e)&&Kd[e]?(""+t).trim():t+"px"}function IF(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=MF(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var E7=qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dw(e,t){if(t){if(E7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function hw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pw=null;function mA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vw=null,Mc=null,Ic=null;function CP(e){if(e=Bp(e)){if(typeof vw!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=P0(t),vw(e.stateNode,e.type,t))}}function PF(e){Mc?Ic?Ic.push(e):Ic=[e]:Mc=e}function kF(){if(Mc){var e=Mc,t=Ic;if(Ic=Mc=null,CP(e),t)for(e=0;e>>=0,e===0?32:31-(W7(e)/U7|0)|0}var Sv=64,bv=4194304;function Rd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $y(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Rd(s):(a&=o,a!==0&&(n=Rd(a)))}else o=r&~i,o!==0?n=Rd(o):a!==0&&(n=Rd(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Np(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oi(t),e[t]=r}function X7(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Jd),EP=String.fromCharCode(32),RP=!1;function ZF(e,t){switch(e){case"keyup":return wj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fc=!1;function Tj(e,t){switch(e){case"compositionend":return KF(t);case"keypress":return t.which!==32?null:(RP=!0,EP);case"textInput":return e=t.data,e===EP&&RP?null:e;default:return null}}function Aj(e,t){if(fc)return e==="compositionend"||!AA&&ZF(e,t)?(e=qF(),Jg=wA=Ho=null,fc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=BP(r)}}function t3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?t3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r3(){for(var e=window,t=Ny();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ny(e.document)}return t}function MA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Oj(e){var t=r3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&t3(r.ownerDocument.documentElement,r)){if(n!==null&&MA(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=FP(r,a);var o=FP(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,dc=null,bw=null,th=null,_w=!1;function $P(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;_w||dc==null||dc!==Ny(n)||(n=dc,"selectionStart"in n&&MA(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),th&&Fh(th,n)||(th=n,n=Hy(bw,"onSelect"),0vc||(e.current=Iw[vc],Iw[vc]=null,vc--)}function Lt(e,t){vc++,Iw[vc]=e.current,e.current=t}var vs={},jr=Ds(vs),xn=Ds(!1),Ql=vs;function Wc(e,t){var r=e.type.contextTypes;if(!r)return vs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Sn(e){return e=e.childContextTypes,e!=null}function Uy(){zt(xn),zt(jr)}function YP(e,t,r){if(jr.current!==vs)throw Error(ae(168));Lt(jr,t),Lt(xn,r)}function f3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ae(108,k7(e)||"Unknown",i));return qt({},r,n)}function jy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vs,Ql=jr.current,Lt(jr,e),Lt(xn,xn.current),!0}function qP(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=f3(e,t,Ql),n.__reactInternalMemoizedMergedChildContext=e,zt(xn),zt(jr),Lt(jr,e)):zt(xn),Lt(xn,r)}var Ga=null,k0=!1,Wx=!1;function d3(e){Ga===null?Ga=[e]:Ga.push(e)}function Yj(e){k0=!0,d3(e)}function Ls(){if(!Wx&&Ga!==null){Wx=!0;var e=0,t=_t;try{var r=Ga;for(_t=1;e>=o,i-=o,Ha=1<<32-Oi(t)+i|r<C?(A=w,w=null):A=w.sibling;var T=d(y,w,x[C],S);if(T===null){w===null&&(w=A);break}e&&w&&T.alternate===null&&t(y,w),m=a(T,m,C),b===null?_=T:b.sibling=T,b=T,w=A}if(C===x.length)return r(y,w),Vt&&ll(y,C),_;if(w===null){for(;CC?(A=w,w=null):A=w.sibling;var M=d(y,w,T.value,S);if(M===null){w===null&&(w=A);break}e&&w&&M.alternate===null&&t(y,w),m=a(M,m,C),b===null?_=M:b.sibling=M,b=M,w=A}if(T.done)return r(y,w),Vt&&ll(y,C),_;if(w===null){for(;!T.done;C++,T=x.next())T=f(y,T.value,S),T!==null&&(m=a(T,m,C),b===null?_=T:b.sibling=T,b=T);return Vt&&ll(y,C),_}for(w=n(y,w);!T.done;C++,T=x.next())T=h(w,y,C,T.value,S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),m=a(T,m,C),b===null?_=T:b.sibling=T,b=T);return e&&w.forEach(function(I){return t(y,I)}),Vt&&ll(y,C),_}function g(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case yv:e:{for(var _=x.key,b=m;b!==null;){if(b.key===_){if(_=x.type,_===cc){if(b.tag===7){r(y,b.sibling),m=i(b,x.props.children),m.return=y,y=m;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===No&&tk(_)===b.type){r(y,b.sibling),m=i(b,x.props),m.ref=jf(y,b,x),m.return=y,y=m;break e}r(y,b);break}else t(y,b);b=b.sibling}x.type===cc?(m=$l(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=sy(x.type,x.key,x.props,null,y.mode,S),S.ref=jf(y,m,x),S.return=y,y=S)}return o(y);case uc:e:{for(b=x.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){r(y,m.sibling),m=i(m,x.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=Qx(x,y.mode,S),m.return=y,y=m}return o(y);case No:return b=x._init,g(y,m,b(x._payload),S)}if(Ed(x))return p(y,m,x,S);if(Vf(x))return v(y,m,x,S);Iv(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(r(y,m.sibling),m=i(m,x),m.return=y,y=m):(r(y,m),m=Kx(x,y.mode,S),m.return=y,y=m),o(y)):r(y,m)}return g}var jc=S3(!0),b3=S3(!1),Fp={},ma=Ds(Fp),Hh=Ds(Fp),Wh=Ds(Fp);function Il(e){if(e===Fp)throw Error(ae(174));return e}function NA(e,t){switch(Lt(Wh,t),Lt(Hh,e),Lt(ma,Fp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fw(t,e)}zt(ma),Lt(ma,t)}function Yc(){zt(ma),zt(Hh),zt(Wh)}function _3(e){Il(Wh.current);var t=Il(ma.current),r=fw(t,e.type);t!==r&&(Lt(Hh,e),Lt(ma,r))}function zA(e){Hh.current===e&&(zt(ma),zt(Hh))}var Ut=Ds(0);function Qy(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ux=[];function BA(){for(var e=0;er?r:4,e(!0);var n=jx.transition;jx.transition={};try{e(!1),t()}finally{_t=r,jx.transition=n}}function B3(){return pi().memoizedState}function Kj(e,t,r){var n=os(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},F3(e))$3(t,r);else if(r=g3(e,t,r,n),r!==null){var i=tn();Ni(r,e,n,i),V3(r,t,n)}}function Qj(e,t,r){var n=os(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(F3(e))$3(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Fi(s,o)){var l=t.interleaved;l===null?(i.next=i,RA(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=g3(e,t,i,n),r!==null&&(i=tn(),Ni(r,e,n,i),V3(r,t,n))}}function F3(e){var t=e.alternate;return e===Yt||t!==null&&t===Yt}function $3(e,t){rh=Jy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function V3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,SA(e,r)}}var em={readContext:hi,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useInsertionEffect:Br,useLayoutEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useMutableSource:Br,useSyncExternalStore:Br,useId:Br,unstable_isNewReconciler:!1},Jj={readContext:hi,useCallback:function(e,t){return ea().memoizedState=[e,t===void 0?null:t],e},useContext:hi,useEffect:nk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ny(4194308,4,E3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ny(4194308,4,e,t)},useInsertionEffect:function(e,t){return ny(4,2,e,t)},useMemo:function(e,t){var r=ea();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ea();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Kj.bind(null,Yt,e),[n.memoizedState,e]},useRef:function(e){var t=ea();return e={current:e},t.memoizedState=e},useState:rk,useDebugValue:HA,useDeferredValue:function(e){return ea().memoizedState=e},useTransition:function(){var e=rk(!1),t=e[0];return e=Zj.bind(null,e[1]),ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Yt,i=ea();if(Vt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),wr===null)throw Error(ae(349));eu&30||T3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,nk(M3.bind(null,n,a,e),[e]),n.flags|=2048,Yh(9,A3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ea(),t=wr.identifierPrefix;if(Vt){var r=Wa,n=Ha;r=(n&~(1<<32-Oi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Uh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[aa]=t,e[Gh]=n,Z3(e,t,!1,!1),t.stateNode=e;e:{switch(o=hw(r,n),r){case"dialog":Ot("cancel",e),Ot("close",e),i=n;break;case"iframe":case"object":case"embed":Ot("load",e),i=n;break;case"video":case"audio":for(i=0;iXc&&(t.flags|=128,n=!0,Yf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Qy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Yf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Vt)return Fr(t),null}else 2*rr()-a.renderingStartTime>Xc&&r!==1073741824&&(t.flags|=128,n=!0,Yf(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=rr(),t.sibling=null,r=Ut.current,Lt(Ut,n?r&1|2:r&1),t):(Fr(t),null);case 22:case 23:return XA(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?kn&1073741824&&(Fr(t),t.subtreeFlags&6&&(t.flags|=8192)):Fr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function sY(e,t){switch(PA(t),t.tag){case 1:return Sn(t.type)&&Uy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yc(),zt(xn),zt(jr),BA(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zA(t),null;case 13:if(zt(Ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));Uc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zt(Ut),null;case 4:return Yc(),null;case 10:return EA(t.type._context),null;case 22:case 23:return XA(),null;case 24:return null;default:return null}}var kv=!1,Ur=!1,lY=typeof WeakSet=="function"?WeakSet:Set,be=null;function xc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Kt(e,t,n)}else r.current=null}function $w(e,t,r){try{r()}catch(n){Kt(e,t,n)}}var dk=!1;function uY(e,t){if(ww=Vy,e=r3(),MA(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cw={focusedElem:e,selectionRange:r},Vy=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ii(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){Kt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return p=dk,dk=!1,p}function nh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&$w(t,r,a)}i=i.next}while(i!==n)}}function E0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Vw(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function J3(e){var t=e.alternate;t!==null&&(e.alternate=null,J3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[aa],delete t[Gh],delete t[Mw],delete t[Uj],delete t[jj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function e$(e){return e.tag===5||e.tag===3||e.tag===4}function hk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||e$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Wy));else if(n!==4&&(e=e.child,e!==null))for(Gw(e,t,r),e=e.sibling;e!==null;)Gw(e,t,r),e=e.sibling}function Hw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Hw(e,t,r),e=e.sibling;e!==null;)Hw(e,t,r),e=e.sibling}var Ar=null,ki=!1;function bo(e,t,r){for(r=r.child;r!==null;)t$(e,t,r),r=r.sibling}function t$(e,t,r){if(ya&&typeof ya.onCommitFiberUnmount=="function")try{ya.onCommitFiberUnmount(T0,r)}catch{}switch(r.tag){case 5:Ur||xc(r,t);case 6:var n=Ar,i=ki;Ar=null,bo(e,t,r),Ar=n,ki=i,Ar!==null&&(ki?(e=Ar,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ar.removeChild(r.stateNode));break;case 18:Ar!==null&&(ki?(e=Ar,r=r.stateNode,e.nodeType===8?Hx(e.parentNode,r):e.nodeType===1&&Hx(e,r),zh(e)):Hx(Ar,r.stateNode));break;case 4:n=Ar,i=ki,Ar=r.stateNode.containerInfo,ki=!0,bo(e,t,r),Ar=n,ki=i;break;case 0:case 11:case 14:case 15:if(!Ur&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&$w(r,t,o),i=i.next}while(i!==n)}bo(e,t,r);break;case 1:if(!Ur&&(xc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Kt(r,t,s)}bo(e,t,r);break;case 21:bo(e,t,r);break;case 22:r.mode&1?(Ur=(n=Ur)||r.memoizedState!==null,bo(e,t,r),Ur=n):bo(e,t,r);break;default:bo(e,t,r)}}function pk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new lY),t.forEach(function(n){var i=mY.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function _i(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=rr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fY(n/1960))-n,10e?16:e,Wo===null)var n=!1;else{if(e=Wo,Wo=null,nm=0,ft&6)throw Error(ae(331));var i=ft;for(ft|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lrr()-YA?Fl(e,0):jA|=r),bn(e,t)}function u$(e,t){t===0&&(e.mode&1?(t=bv,bv<<=1,!(bv&130023424)&&(bv=4194304)):t=1);var r=tn();e=to(e,t),e!==null&&(Np(e,t,r),bn(e,r))}function yY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),u$(e,r)}function mY(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),u$(e,r)}var c$;c$=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||xn.current)mn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mn=!1,aY(e,t,r);mn=!!(e.flags&131072)}else mn=!1,Vt&&t.flags&1048576&&h3(t,qy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;iy(e,t),e=t.pendingProps;var i=Wc(t,jr.current);kc(t,r),i=$A(null,t,n,e,i,r);var a=VA();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sn(n)?(a=!0,jy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,OA(t),i.updater=D0,t.stateNode=i,i._reactInternals=t,Ew(t,n,e,r),t=Nw(null,t,n,!0,a,r)):(t.tag=0,Vt&&a&&IA(t),Qr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(iy(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=SY(n),e=Ii(n,e),i){case 0:t=Ow(null,t,n,e,r);break e;case 1:t=uk(null,t,n,e,r);break e;case 11:t=sk(null,t,n,e,r);break e;case 14:t=lk(null,t,n,Ii(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ii(n,i),Ow(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ii(n,i),uk(e,t,n,i,r);case 3:e:{if(Y3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,y3(e,t),Ky(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=qc(Error(ae(423)),t),t=ck(e,t,n,r,i);break e}else if(n!==i){i=qc(Error(ae(424)),t),t=ck(e,t,n,r,i);break e}else for(En=ns(t.stateNode.containerInfo.firstChild),On=t,Vt=!0,Di=null,r=b3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Uc(),n===i){t=ro(e,t,r);break e}Qr(e,t,n,r)}t=t.child}return t;case 5:return _3(t),e===null&&kw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Tw(n,i)?o=null:a!==null&&Tw(n,a)&&(t.flags|=32),j3(e,t),Qr(e,t,o,r),t.child;case 6:return e===null&&kw(t),null;case 13:return q3(e,t,r);case 4:return NA(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Qr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ii(n,i),sk(e,t,n,i,r);case 7:return Qr(e,t,t.pendingProps,r),t.child;case 8:return Qr(e,t,t.pendingProps.children,r),t.child;case 12:return Qr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Lt(Xy,n._currentValue),n._currentValue=o,a!==null)if(Fi(a.value,o)){if(a.children===i.children&&!xn.current){t=ro(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Ya(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Dw(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ae(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Dw(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Qr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,kc(t,r),i=hi(i),n=n(i),t.flags|=1,Qr(e,t,n,r),t.child;case 14:return n=t.type,i=Ii(n,t.pendingProps),i=Ii(n.type,i),lk(e,t,n,i,r);case 15:return W3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ii(n,i),iy(e,t),t.tag=1,Sn(n)?(e=!0,jy(t)):e=!1,kc(t,r),x3(t,n,i),Ew(t,n,i,r),Nw(null,t,n,!0,e,r);case 19:return X3(e,t,r);case 22:return U3(e,t,r)}throw Error(ae(156,t.tag))};function f$(e,t){return zF(e,t)}function xY(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function li(e,t,r,n){return new xY(e,t,r,n)}function KA(e){return e=e.prototype,!(!e||!e.isReactComponent)}function SY(e){if(typeof e=="function")return KA(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gA)return 11;if(e===yA)return 14}return 2}function ss(e,t){var r=e.alternate;return r===null?(r=li(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function sy(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")KA(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case cc:return $l(r.children,i,a,t);case vA:o=8,i|=8;break;case nw:return e=li(12,r,t,i|2),e.elementType=nw,e.lanes=a,e;case iw:return e=li(13,r,t,i),e.elementType=iw,e.lanes=a,e;case aw:return e=li(19,r,t,i),e.elementType=aw,e.lanes=a,e;case SF:return O0(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mF:o=10;break e;case xF:o=9;break e;case gA:o=11;break e;case yA:o=14;break e;case No:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=li(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function $l(e,t,r,n){return e=li(7,e,n,t),e.lanes=r,e}function O0(e,t,r,n){return e=li(22,e,n,t),e.elementType=SF,e.lanes=r,e.stateNode={isHidden:!1},e}function Kx(e,t,r){return e=li(6,e,null,t),e.lanes=r,e}function Qx(e,t,r){return t=li(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bY(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lx(0),this.expirationTimes=Lx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lx(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function QA(e,t,r,n,i,a,o,s,l){return e=new bY(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=li(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},OA(a),e}function _Y(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v$)}catch(e){console.error(e)}}v$(),hF.exports=Gn;var gf=hF.exports;const Ev=Rp(gf);var _k=gf;gP.createRoot=_k.createRoot,gP.hydrateRoot=_k.hydrateRoot;var g$={exports:{}},y$={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Zc=N;function MY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var IY=typeof Object.is=="function"?Object.is:MY,PY=Zc.useState,kY=Zc.useEffect,DY=Zc.useLayoutEffect,LY=Zc.useDebugValue;function EY(e,t){var r=t(),n=PY({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return DY(function(){i.value=r,i.getSnapshot=t,Jx(i)&&a({inst:i})},[e,r,t]),kY(function(){return Jx(i)&&a({inst:i}),e(function(){Jx(i)&&a({inst:i})})},[e]),LY(r),r}function Jx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!IY(e,r)}catch{return!0}}function RY(e,t){return t()}var OY=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RY:EY;y$.useSyncExternalStore=Zc.useSyncExternalStore!==void 0?Zc.useSyncExternalStore:OY;g$.exports=y$;var m$=g$.exports,x$={exports:{}},S$={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var $0=N,NY=m$;function zY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BY=typeof Object.is=="function"?Object.is:zY,FY=NY.useSyncExternalStore,$Y=$0.useRef,VY=$0.useEffect,GY=$0.useMemo,HY=$0.useDebugValue;S$.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=$Y(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=GY(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,BY(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=FY(e,a[0],a[1]);return VY(function(){o.hasValue=!0,o.value=s},[s]),HY(s),s};x$.exports=S$;var WY=x$.exports;function UY(e){e()}let b$=UY;const jY=e=>b$=e,YY=()=>b$,wk=Symbol.for("react-redux-context"),Ck=typeof globalThis<"u"?globalThis:{};function qY(){var e;if(!N.createContext)return{};const t=(e=Ck[wk])!=null?e:Ck[wk]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const no=qY();function rM(e=no){return function(){return N.useContext(e)}}const _$=rM(),w$=()=>{throw new Error("uSES not initialized!")};let C$=w$;const XY=e=>{C$=e},ZY=(e,t)=>e===t;function KY(e=no){const t=e===no?_$:rM(e);return function(n,i={}){const{equalityFn:a=ZY,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();N.useRef(!0);const h=N.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,o]),p=C$(u.addNestedSub,l.getState,c||l.getState,h,a);return N.useDebugValue(p),p}}const QY=KY();function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var T$={exports:{}},Ct={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tr=typeof Symbol=="function"&&Symbol.for,nM=Tr?Symbol.for("react.element"):60103,iM=Tr?Symbol.for("react.portal"):60106,V0=Tr?Symbol.for("react.fragment"):60107,G0=Tr?Symbol.for("react.strict_mode"):60108,H0=Tr?Symbol.for("react.profiler"):60114,W0=Tr?Symbol.for("react.provider"):60109,U0=Tr?Symbol.for("react.context"):60110,aM=Tr?Symbol.for("react.async_mode"):60111,j0=Tr?Symbol.for("react.concurrent_mode"):60111,Y0=Tr?Symbol.for("react.forward_ref"):60112,q0=Tr?Symbol.for("react.suspense"):60113,JY=Tr?Symbol.for("react.suspense_list"):60120,X0=Tr?Symbol.for("react.memo"):60115,Z0=Tr?Symbol.for("react.lazy"):60116,eq=Tr?Symbol.for("react.block"):60121,tq=Tr?Symbol.for("react.fundamental"):60117,rq=Tr?Symbol.for("react.responder"):60118,nq=Tr?Symbol.for("react.scope"):60119;function Wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nM:switch(e=e.type,e){case aM:case j0:case V0:case H0:case G0:case q0:return e;default:switch(e=e&&e.$$typeof,e){case U0:case Y0:case Z0:case X0:case W0:return e;default:return t}}case iM:return t}}}function A$(e){return Wn(e)===j0}Ct.AsyncMode=aM;Ct.ConcurrentMode=j0;Ct.ContextConsumer=U0;Ct.ContextProvider=W0;Ct.Element=nM;Ct.ForwardRef=Y0;Ct.Fragment=V0;Ct.Lazy=Z0;Ct.Memo=X0;Ct.Portal=iM;Ct.Profiler=H0;Ct.StrictMode=G0;Ct.Suspense=q0;Ct.isAsyncMode=function(e){return A$(e)||Wn(e)===aM};Ct.isConcurrentMode=A$;Ct.isContextConsumer=function(e){return Wn(e)===U0};Ct.isContextProvider=function(e){return Wn(e)===W0};Ct.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nM};Ct.isForwardRef=function(e){return Wn(e)===Y0};Ct.isFragment=function(e){return Wn(e)===V0};Ct.isLazy=function(e){return Wn(e)===Z0};Ct.isMemo=function(e){return Wn(e)===X0};Ct.isPortal=function(e){return Wn(e)===iM};Ct.isProfiler=function(e){return Wn(e)===H0};Ct.isStrictMode=function(e){return Wn(e)===G0};Ct.isSuspense=function(e){return Wn(e)===q0};Ct.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===V0||e===j0||e===H0||e===G0||e===q0||e===JY||typeof e=="object"&&e!==null&&(e.$$typeof===Z0||e.$$typeof===X0||e.$$typeof===W0||e.$$typeof===U0||e.$$typeof===Y0||e.$$typeof===tq||e.$$typeof===rq||e.$$typeof===nq||e.$$typeof===eq)};Ct.typeOf=Wn;T$.exports=Ct;var iq=T$.exports,oM=iq,aq={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oq={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},sq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},M$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sM={};sM[oM.ForwardRef]=sq;sM[oM.Memo]=M$;function Tk(e){return oM.isMemo(e)?M$:sM[e.$$typeof]||aq}var lq=Object.defineProperty,uq=Object.getOwnPropertyNames,Ak=Object.getOwnPropertySymbols,cq=Object.getOwnPropertyDescriptor,fq=Object.getPrototypeOf,Mk=Object.prototype;function I$(e,t,r){if(typeof t!="string"){if(Mk){var n=fq(t);n&&n!==Mk&&I$(e,n,r)}var i=uq(t);Ak&&(i=i.concat(Ak(t)));for(var a=Tk(e),o=Tk(t),s=0;st(i(...a)))}return r}function qw(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function Pk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function D$(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=Pk(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=Pk(u),u=a(s,l)),u},a}}function cM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Sq(e){return e&&typeof e=="object"?qw(t=>xq(e,t)):e?typeof e=="function"?D$(e):cM(e,"mapDispatchToProps"):qw(t=>({dispatch:t}))}function bq(e){return e?typeof e=="function"?D$(e):cM(e,"mapStateToProps"):qw(()=>({}))}function _q(e,t,r){return B({},r,e,t)}function wq(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function Cq(e){return e?typeof e=="function"?wq(e):cM(e,"mergeProps"):()=>_q}function Tq(){const e=YY();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const kk={notify(){},get:()=>[]};function L$(e,t){let r,n=kk;function i(f){return l(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=Tq())}function u(){r&&(r(),r=void 0,n.clear(),n=kk)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const Aq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",om=Aq?N.useLayoutEffect:N.useEffect;function Dk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Vl(e,t){if(Dk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{E$=e},Pq=[null,null];function kq(e,t,r){om(()=>e(...t),r)}function Dq(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function Lq(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,y;try{g=n(v,i.current)}catch(m){y=m,d=m}y||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function Eq(e,t){return e===t}function $Ee(e,t,r,{pure:n,areStatesEqual:i=Eq,areOwnPropsEqual:a=Vl,areStatePropsEqual:o=Vl,areMergedPropsEqual:s=Vl,forwardRef:l=!1,context:u=no}={}){const c=u,f=bq(e),d=Sq(t),h=Cq(r),p=!!e;return g=>{const y=g.displayName||g.name||"Component",m=`Connect(${y})`,x={shouldHandleStateChanges:p,displayName:m,wrappedComponentName:y,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,A,T]=N.useMemo(()=>{const{reactReduxForwardedRef:J}=w,fe=me(w,Mq);return[w.context,J,fe]},[w]),M=N.useMemo(()=>C&&C.Consumer&&vq.isContextConsumer(N.createElement(C.Consumer,null))?C:c,[C,c]),I=N.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,L=P?w.store:I.store,O=k?I.getServerState:L.getState,F=N.useMemo(()=>mq(L.dispatch,x),[L]),[R,$]=N.useMemo(()=>{if(!p)return Pq;const J=L$(L,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[L,P,I]),E=N.useMemo(()=>P?I:B({},I,{subscription:R}),[P,I,R]),V=N.useRef(),W=N.useRef(T),z=N.useRef(),U=N.useRef(!1);N.useRef(!1);const X=N.useRef(!1),H=N.useRef();om(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=N.useMemo(()=>()=>z.current&&T===W.current?z.current:F(L.getState(),T),[L,T]),te=N.useMemo(()=>fe=>R?Lq(p,L,R,F,W,V,U,X,z,$,fe):()=>{},[R]);kq(Dq,[W,V,U,T,z,$]);let ie;try{ie=E$(te,ee,O?()=>F(O(),T):ee)}catch(J){throw H.current&&(J.message+=` -The error may be correlated with this previous error: -${H.current.stack} - -`),J}om(()=>{H.current=void 0,z.current=void 0,V.current=ie});const re=N.useMemo(()=>N.createElement(g,B({},ie,{ref:A})),[A,g,ie]);return N.useMemo(()=>p?N.createElement(M.Provider,{value:E},re):re,[M,re,E])}const b=N.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=m,l){const C=N.forwardRef(function(T,M){return N.createElement(b,B({},T,{reactReduxForwardedRef:M}))});return C.displayName=m,C.WrappedComponent=g,Ik(C,g)}return Ik(b,g)}}function VEe({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=N.useMemo(()=>{const u=L$(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=N.useMemo(()=>e.getState(),[e]);om(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||no;return N.createElement(l.Provider,{value:o},r)}function R$(e=no){const t=e===no?_$:rM(e);return function(){const{store:n}=t();return n}}const O$=R$();function Rq(e=no){const t=e===no?O$:R$(e);return function(){return t().dispatch}}const Oq=Rq();XY(WY.useSyncExternalStoreWithSelector);Iq(m$.useSyncExternalStore);jY(gf.unstable_batchedUpdates);function Sl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function N$(e){if(!Sl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=N$(e[r])}),t}function fi(e,t,r={clone:!0}){const n=r.clone?B({},e):e;return Sl(e)&&Sl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Sl(t[i])&&i in e&&Sl(e[i])?n[i]=fi(e[i],t[i],r):r.clone?n[i]=Sl(t[i])?N$(t[i]):t[i]:n[i]=t[i])}),n}function gs(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function $p(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Nq(e,t){return()=>null}function oh(e,t){return N.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function rn(e){return e&&e.ownerDocument||document}function wa(e){return rn(e).defaultView||window}function zq(e,t){return()=>null}function sm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Bq=typeof window<"u"?N.useLayoutEffect:N.useEffect,io=Bq;let Lk=0;function Fq(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(Lk+=1,r(`mui-${Lk}`))},[t]),n}const Ek=tw["useId".toString()];function z$(e){if(Ek!==void 0){const t=Ek();return e??t}return Fq(e)}function $q(e,t,r,n,i){return null}function lm({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=N.useRef(e!==void 0),[a,o]=N.useState(t),s=i?e:a,l=N.useCallback(u=>{i||o(u)},[]);return[s,l]}function fa(e){const t=N.useRef(e);return io(()=>{t.current=e}),N.useCallback((...r)=>(0,t.current)(...r),[])}function Cr(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{sm(r,t)})},e)}let s1=!0,Zw=!1,Rk;const Vq={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Gq(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Vq[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Hq(e){e.metaKey||e.altKey||e.ctrlKey||(s1=!0)}function eS(){s1=!1}function Wq(){this.visibilityState==="hidden"&&Zw&&(s1=!0)}function Uq(e){e.addEventListener("keydown",Hq,!0),e.addEventListener("mousedown",eS,!0),e.addEventListener("pointerdown",eS,!0),e.addEventListener("touchstart",eS,!0),e.addEventListener("visibilitychange",Wq,!0)}function jq(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return s1||Gq(t)}function fM(){const e=N.useCallback(i=>{i!=null&&Uq(i.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Zw=!0,window.clearTimeout(Rk),Rk=window.setTimeout(()=>{Zw=!1},100),t.current=!1,!0):!1}function n(i){return jq(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function B$(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Au;function F$(){if(Au)return Au;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Au="reverse",e.scrollLeft>0?Au="default":(e.scrollLeft=1,e.scrollLeft===0&&(Au="negative")),document.body.removeChild(e),Au}function Yq(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(F$()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function dM(e,t){const r=B({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=B({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=B({},a),Object.keys(i).forEach(o=>{r[n][o]=dM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Xe(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const Ok=e=>e,qq=()=>{let e=Ok;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ok}}},Xq=qq(),hM=Xq,Zq={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,r="Mui"){const n=Zq[t];return n?`${r}-${n}`:`${hM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function $$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Kq=/^((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|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)-.*))$/,Qq=$$(function(e){return Kq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jq(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ir(yf,--Cn):0,Kc--,sr===10&&(Kc=1,u1--),sr}function Nn(){return sr=Cn2||Zh(sr)>3?"":" "}function dX(e,t){for(;--t&&Nn()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return Vp(e,ly()+(t<6&&xa()==32&&Nn()==32))}function Qw(e){for(;Nn();)switch(sr){case e:return Cn;case 34:case 39:e!==34&&e!==39&&Qw(sr);break;case 40:e===41&&Qw(e);break;case 92:Nn();break}return Cn}function hX(e,t){for(;Nn()&&e+sr!==47+10;)if(e+sr===42+42&&xa()===47)break;return"/*"+Vp(t,Cn-1)+"*"+l1(e===47?e:Nn())}function pX(e){for(;!Zh(xa());)Nn();return Vp(e,Cn)}function vX(e){return j$(cy("",null,null,null,[""],e=U$(e),0,[0],e))}function cy(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,y=1,m=0,x="",S=i,_=a,b=n,w=x;g;)switch(p=m,m=Nn()){case 40:if(p!=108&&Ir(w,f-1)==58){Kw(w+=pt(uy(m),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:w+=uy(m);break;case 9:case 10:case 13:case 32:w+=fX(p);break;case 92:w+=dX(ly()-1,7);continue;case 47:switch(xa()){case 42:case 47:Rv(gX(hX(Nn(),ly()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=na(w)*y;case 125*v:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+c:y==-1&&(w=pt(w,/\f/g,"")),h>0&&na(w)-f&&Rv(h>32?zk(w+";",n,r,f-1):zk(pt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(Rv(b=Nk(w,t,r,u,c,i,s,x,S=[],_=[],f),a),m===123)if(c===0)cy(w,t,b,b,S,a,f,s,_);else switch(d===99&&Ir(w,3)===110?100:d){case 100:case 108:case 109:case 115:cy(e,b,b,n&&Rv(Nk(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:cy(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=y=1,x=w="",f=o;break;case 58:f=1+na(w),h=p;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&cX()==125)continue}switch(w+=l1(m),m*v){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(na(w)-1)*y,y=1;break;case 64:xa()===45&&(w+=uy(Nn())),d=xa(),c=f=na(x=w+=pX(ly())),m++;break;case 45:p===45&&na(w)==2&&(v=0)}}return a}function Nk(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=gM(d),p=0,v=0,g=0;p0?d[y]+" "+m:pt(m,/&\f/g,d[y])))&&(l[g++]=x);return c1(e,t,r,i===0?pM:s,l,u,c)}function gX(e,t,r){return c1(e,t,r,V$,l1(uX()),Xh(e,2,-2),0)}function zk(e,t,r,n){return c1(e,t,r,vM,Xh(e,0,n),Xh(e,n+1,-1),n)}function Lc(e,t){for(var r="",n=gM(e),i=0;i6)switch(Ir(e,t+1)){case 109:if(Ir(e,t+4)!==45)break;case 102:return pt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+um+(Ir(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kw(e,"stretch")?Y$(pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ir(e,t+1)!==115)break;case 6444:switch(Ir(e,na(e)-3-(~Kw(e,"!important")&&10))){case 107:return pt(e,":",":"+ht)+e;case 101:return pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(Ir(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+Gr+"$2box$3")+e}break;case 5936:switch(Ir(e,t+11)){case 114:return ht+e+Gr+pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+Gr+pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+Gr+pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+Gr+e+e}return e}var TX=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case vM:t.return=Y$(t.value,t.length);break;case G$:return Lc([Xf(t,{value:pt(t.value,"@","@"+ht)})],i);case pM:if(t.length)return lX(t.props,function(a){switch(sX(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Lc([Xf(t,{props:[pt(a,/:(read-\w+)/,":"+um+"$1")]})],i);case"::placeholder":return Lc([Xf(t,{props:[pt(a,/:(plac\w+)/,":"+ht+"input-$1")]}),Xf(t,{props:[pt(a,/:(plac\w+)/,":"+um+"$1")]}),Xf(t,{props:[pt(a,/:(plac\w+)/,Gr+"input-$1")]})],i)}return""})}},AX=[TX],MX=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||AX,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),y=1;y=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DX={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},LX=/[A-Z]|^ms/g,EX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z$=function(t){return t.charCodeAt(1)===45},Fk=function(t){return t!=null&&typeof t!="boolean"},tS=$$(function(e){return Z$(e)?e:e.replace(LX,"-$&").toLowerCase()}),$k=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(EX,function(n,i,a){return ia={name:i,styles:a,next:ia},i})}return DX[t]!==1&&!Z$(t)&&typeof r=="number"&&r!==0?r+"px":r};function Kh(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ia={name:r.name,styles:r.styles,next:ia},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ia={name:n.name,styles:n.styles,next:ia},n=n.next;var i=r.styles+";";return i}return RX(e,t,r)}case"function":{if(e!==void 0){var a=ia,o=r(e);return ia=a,Kh(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function RX(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?FX:$X},Wk=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},VX=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return q$(r,n,i),NX(function(){return X$(r,n,i)}),null},GX=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=Wk(t,r,n),l=s||Hk(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(WX(i)?r:i):t;return Y.jsx(zX,{styles:n})}/** - * @mui/styled-engine v5.14.10 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function eV(e,t){return Jw(e,t)}const jX=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},YX=["values","unit","step"],qX=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>B({},r,{[n.key]:n.val}),{})};function XX(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=me(e,YX),a=qX(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${xM[e]}px)`};function ao(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Uk;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||Uk;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||xM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function QX(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function JX(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Qc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function cm(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Qc(e,r)||n,t&&(i=t(i,n,e)),i}function mt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=Qc(l,n)||{};return ao(o,s,f=>{let d=cm(u,i,f);return f===d&&typeof f=="string"&&(d=cm(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function eZ(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const tZ={m:"margin",p:"padding"},rZ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nZ=eZ(e=>{if(e.length>2)if(jk[e])e=jk[e];else return[e];const[t,r]=e.split(""),n=tZ[t],i=rZ[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),SM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...SM,...bM];function Gp(e,t,r,n){var i;const a=(i=Qc(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function tV(e){return Gp(e,"spacing",8)}function Hp(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function iZ(e,t){return r=>e.reduce((n,i)=>(n[i]=Hp(t,r),n),{})}function aZ(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=nZ(r),a=iZ(i,n),o=e[r];return ao(e,o,a)}function rV(e,t){const r=tV(e.theme);return Object.keys(e).map(n=>aZ(e,t,n,r)).reduce(sh,{})}function Xt(e){return rV(e,SM)}Xt.propTypes={};Xt.filterProps=SM;function Zt(e){return rV(e,bM)}Zt.propTypes={};Zt.filterProps=bM;function oZ(e=8){if(e.mui)return e;const t=tV({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function d1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?sh(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}const sZ=mt({prop:"border",themeKey:"borders",transform:oa}),lZ=mt({prop:"borderTop",themeKey:"borders",transform:oa}),uZ=mt({prop:"borderRight",themeKey:"borders",transform:oa}),cZ=mt({prop:"borderBottom",themeKey:"borders",transform:oa}),fZ=mt({prop:"borderLeft",themeKey:"borders",transform:oa}),dZ=mt({prop:"borderColor",themeKey:"palette"}),hZ=mt({prop:"borderTopColor",themeKey:"palette"}),pZ=mt({prop:"borderRightColor",themeKey:"palette"}),vZ=mt({prop:"borderBottomColor",themeKey:"palette"}),gZ=mt({prop:"borderLeftColor",themeKey:"palette"}),h1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Hp(t,n)});return ao(e,e.borderRadius,r)}return null};h1.propTypes={};h1.filterProps=["borderRadius"];d1(sZ,lZ,uZ,cZ,fZ,dZ,hZ,pZ,vZ,gZ,h1);const p1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gp(e.theme,"spacing",8),r=n=>({gap:Hp(t,n)});return ao(e,e.gap,r)}return null};p1.propTypes={};p1.filterProps=["gap"];const v1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gp(e.theme,"spacing",8),r=n=>({columnGap:Hp(t,n)});return ao(e,e.columnGap,r)}return null};v1.propTypes={};v1.filterProps=["columnGap"];const g1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gp(e.theme,"spacing",8),r=n=>({rowGap:Hp(t,n)});return ao(e,e.rowGap,r)}return null};g1.propTypes={};g1.filterProps=["rowGap"];const yZ=mt({prop:"gridColumn"}),mZ=mt({prop:"gridRow"}),xZ=mt({prop:"gridAutoFlow"}),SZ=mt({prop:"gridAutoColumns"}),bZ=mt({prop:"gridAutoRows"}),_Z=mt({prop:"gridTemplateColumns"}),wZ=mt({prop:"gridTemplateRows"}),CZ=mt({prop:"gridTemplateAreas"}),TZ=mt({prop:"gridArea"});d1(p1,v1,g1,yZ,mZ,xZ,SZ,bZ,_Z,wZ,CZ,TZ);function Ec(e,t){return t==="grey"?t:e}const AZ=mt({prop:"color",themeKey:"palette",transform:Ec}),MZ=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ec}),IZ=mt({prop:"backgroundColor",themeKey:"palette",transform:Ec});d1(AZ,MZ,IZ);function Dn(e){return e<=1&&e!==0?`${e*100}%`:e}const PZ=mt({prop:"width",transform:Dn}),_M=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||xM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Dn(r)}};return ao(e,e.maxWidth,t)}return null};_M.filterProps=["maxWidth"];const kZ=mt({prop:"minWidth",transform:Dn}),DZ=mt({prop:"height",transform:Dn}),LZ=mt({prop:"maxHeight",transform:Dn}),EZ=mt({prop:"minHeight",transform:Dn});mt({prop:"size",cssProperty:"width",transform:Dn});mt({prop:"size",cssProperty:"height",transform:Dn});const RZ=mt({prop:"boxSizing"});d1(PZ,_M,kZ,DZ,LZ,EZ,RZ);const OZ={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:h1},color:{themeKey:"palette",transform:Ec},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ec},backgroundColor:{themeKey:"palette",transform:Ec},p:{style:Zt},pt:{style:Zt},pr:{style:Zt},pb:{style:Zt},pl:{style:Zt},px:{style:Zt},py:{style:Zt},padding:{style:Zt},paddingTop:{style:Zt},paddingRight:{style:Zt},paddingBottom:{style:Zt},paddingLeft:{style:Zt},paddingX:{style:Zt},paddingY:{style:Zt},paddingInline:{style:Zt},paddingInlineStart:{style:Zt},paddingInlineEnd:{style:Zt},paddingBlock:{style:Zt},paddingBlockStart:{style:Zt},paddingBlockEnd:{style:Zt},m:{style:Xt},mt:{style:Xt},mr:{style:Xt},mb:{style:Xt},ml:{style:Xt},mx:{style:Xt},my:{style:Xt},margin:{style:Xt},marginTop:{style:Xt},marginRight:{style:Xt},marginBottom:{style:Xt},marginLeft:{style:Xt},marginX:{style:Xt},marginY:{style:Xt},marginInline:{style:Xt},marginInlineStart:{style:Xt},marginInlineEnd:{style:Xt},marginBlock:{style:Xt},marginBlockStart:{style:Xt},marginBlockEnd:{style:Xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:p1},rowGap:{style:g1},columnGap:{style:v1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dn},maxWidth:{style:_M},minWidth:{transform:Dn},height:{transform:Dn},maxHeight:{transform:Dn},minHeight:{transform:Dn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},y1=OZ;function NZ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function zZ(e,t){return typeof e=="function"?e(t):e}function BZ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=Qc(i,u)||{};return f?f(o):ao(o,n,p=>{let v=cm(d,c,p);return p===v&&typeof p=="string"&&(v=cm(d,c,`${r}${p==="default"?"":Me(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:y1;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=QX(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=zZ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=sh(d,e(h,p,a,o));else{const v=ao({theme:a},p,g=>({[h]:g}));NZ(v,p)?d[h]=t({sx:p,theme:a}):d=sh(d,v)}else d=sh(d,e(h,p,a,o))}),JX(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const nV=BZ();nV.filterProps=["sx"];const m1=nV,FZ=["breakpoints","palette","spacing","shape"];function x1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=me(e,FZ),s=XX(r),l=oZ(i);let u=fi({breakpoints:s,direction:"ltr",components:{},palette:B({mode:"light"},n),spacing:l,shape:B({},KX,a)},o);return u=t.reduce((c,f)=>fi(c,f),u),u.unstable_sxConfig=B({},y1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return m1({sx:f,theme:this})},u}function $Z(e){return Object.keys(e).length===0}function iV(e=null){const t=N.useContext(f1);return!t||$Z(t)?e:t}const VZ=x1();function S1(e=VZ){return iV(e)}function GZ({styles:e,themeId:t,defaultTheme:r={}}){const n=S1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return Y.jsx(UX,{styles:i})}const HZ=["sx"],WZ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:y1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function aV(e){const{sx:t}=e,r=me(e,HZ),{systemProps:n,otherProps:i}=WZ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Sl(s)?B({},n,s):n}:a=B({},n,t),B({},i,{sx:a})}function oV(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(m1);return N.forwardRef(function(l,u){const c=S1(r),f=aV(l),{className:d,component:h="div"}=f,p=me(f,UZ);return Y.jsx(a,B({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const YZ=["variant"];function Yk(e){return e.length===0}function sV(e){const{variant:t}=e,r=me(e,YZ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=Yk(n)?e[i]:Me(e[i]):n+=`${Yk(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const qZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function XZ(e){return Object.keys(e).length===0}function ZZ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const KZ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,QZ=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=sV(i.props);n[a]=i.style}),n},JZ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[sV(l.props)])}),o};function lh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const eK=x1(),tK=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Zf({defaultTheme:e,theme:t,themeId:r}){return XZ(t)?e:t[r]||t}function rK(e){return e?(t,r)=>r[e]:null}function lV(e={}){const{themeId:t,defaultTheme:r=eK,rootShouldForwardProp:n=lh,slotShouldForwardProp:i=lh}=e,a=o=>m1(B({},o,{theme:Zf(B({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{jX(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=rK(tK(u))}=s,h=me(s,qZ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,y=lh;u==="Root"||u==="root"?y=n:u?y=i:ZZ(o)&&(y=void 0);const m=eV(o,B({shouldForwardProp:y,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(B({},M,{theme:Zf(B({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=Zf(B({},T,{defaultTheme:r,themeId:t})),I=KZ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,L])=>{P[k]=typeof L=="function"?L(B({},T,{theme:M})):L}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=Zf(B({},T,{defaultTheme:r,themeId:t}));return JZ(T,QZ(l,M),M,l)}),v||b.push(a);const C=b.length-_.length;if(Array.isArray(S)&&C>0){const T=new Array(C).fill("");w=[...S,...T],w.raw=[...S.raw,...T]}else typeof S=="function"&&S.__emotion_real!==S&&(w=T=>S(B({},T,{theme:Zf(B({},T,{defaultTheme:r,themeId:t}))})));const A=m(w,...b);return o.muiName&&(A.muiName=o.muiName),A};return m.withConfig&&(x.withConfig=m.withConfig),x}}const nK=lV(),iK=nK;function aK(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:dM(t.components[r].defaultProps,n)}function uV({props:e,name:t,defaultTheme:r,themeId:n}){let i=S1(r);return n&&(i=i[n]||i),aK({theme:i,name:t,props:e})}function wM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function oK(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function nu(e){if(e.type)return e;if(e.charAt(0)==="#")return nu(oK(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(gs(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(gs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function b1(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function sK(e){e=nu(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),b1({type:s,values:l})}function qk(e){e=nu(e);let t=e.type==="hsl"||e.type==="hsla"?nu(sK(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function lK(e,t){const r=qk(e),n=qk(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Sr(e,t){return e=nu(e),t=wM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,b1(e)}function cV(e,t){if(e=nu(e),t=wM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return b1(e)}function fV(e,t){if(e=nu(e),t=wM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return b1(e)}const uK=N.createContext(null),dV=uK;function hV(){return N.useContext(dV)}const cK=typeof Symbol=="function"&&Symbol.for,fK=cK?Symbol.for("mui.nested"):"__THEME_NESTED__";function dK(e,t){return typeof t=="function"?t(e):B({},e,t)}function hK(e){const{children:t,theme:r}=e,n=hV(),i=N.useMemo(()=>{const a=n===null?r:dK(n,r);return a!=null&&(a[fK]=n!==null),a},[r,n]);return Y.jsx(dV.Provider,{value:i,children:t})}const Xk={};function Zk(e,t,r,n=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?B({},t,{[e]:a}):a;return n?()=>o:o}return e?B({},t,{[e]:r}):B({},t,r)},[e,t,r,n])}function pK(e){const{children:t,theme:r,themeId:n}=e,i=iV(Xk),a=hV()||Xk,o=Zk(n,i,r),s=Zk(n,a,r,!0);return Y.jsx(hK,{theme:s,children:Y.jsx(f1.Provider,{value:o,children:t})})}const vK=["className","component","disableGutters","fixed","maxWidth","classes"],gK=x1(),yK=iK("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),mK=e=>uV({props:e,name:"MuiContainer",defaultTheme:gK}),xK=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Xe(s,r,n)};function SK(e={}){const{createStyledComponent:t=yK,useThemeProps:r=mK,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>B({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>B({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return N.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=me(u,vK),g=B({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),y=xK(g,n);return Y.jsx(i,B({as:f,ownerState:g,className:Ce(y.root,c),ref:l},v))})}function bK(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const _K={black:"#000",white:"#fff"},Qh=_K,wK={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"},CK=wK,TK={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"},Mu=TK,AK={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"},Iu=AK,MK={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"},Kf=MK,IK={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"},Pu=IK,PK={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"},ku=PK,kK={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"},Du=kK,DK=["mode","contrastThreshold","tonalOffset"],Kk={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:Qh.white,default:Qh.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}},rS={text:{primary:Qh.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:Qh.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 Qk(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fV(e.main,i):t==="dark"&&(e.dark=cV(e.main,a)))}function LK(e="light"){return e==="dark"?{main:Pu[200],light:Pu[50],dark:Pu[400]}:{main:Pu[700],light:Pu[400],dark:Pu[800]}}function EK(e="light"){return e==="dark"?{main:Mu[200],light:Mu[50],dark:Mu[400]}:{main:Mu[500],light:Mu[300],dark:Mu[700]}}function RK(e="light"){return e==="dark"?{main:Iu[500],light:Iu[300],dark:Iu[700]}:{main:Iu[700],light:Iu[400],dark:Iu[800]}}function OK(e="light"){return e==="dark"?{main:ku[400],light:ku[300],dark:ku[700]}:{main:ku[700],light:ku[500],dark:ku[900]}}function NK(e="light"){return e==="dark"?{main:Du[400],light:Du[300],dark:Du[700]}:{main:Du[800],light:Du[500],dark:Du[900]}}function zK(e="light"){return e==="dark"?{main:Kf[400],light:Kf[300],dark:Kf[700]}:{main:"#ed6c02",light:Kf[500],dark:Kf[900]}}function BK(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=me(e,DK),a=e.primary||LK(t),o=e.secondary||EK(t),s=e.error||RK(t),l=e.info||OK(t),u=e.success||NK(t),c=e.warning||zK(t);function f(v){return lK(v,rS.text.primary)>=r?rS.text.primary:Kk.text.primary}const d=({color:v,name:g,mainShade:y=500,lightShade:m=300,darkShade:x=700})=>{if(v=B({},v),!v.main&&v[y]&&(v.main=v[y]),!v.hasOwnProperty("main"))throw new Error(gs(11,g?` (${g})`:"",y));if(typeof v.main!="string")throw new Error(gs(12,g?` (${g})`:"",JSON.stringify(v.main)));return Qk(v,"light",m,n),Qk(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:rS,light:Kk};return fi(B({common:B({},Qh),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:CK,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const FK=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function $K(e){return Math.round(e*1e5)/1e5}const Jk={textTransform:"uppercase"},eD='"Roboto", "Helvetica", "Arial", sans-serif';function VK(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=eD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=me(r,FK),h=i/14,p=f||(y=>`${y/u*h}rem`),v=(y,m,x,S,_)=>B({fontFamily:n,fontWeight:y,fontSize:p(m),lineHeight:x},n===eD?{letterSpacing:`${$K(S/m)}em`}:{},_,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,Jk),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,Jk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fi(B({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const GK=.2,HK=.14,WK=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${GK})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${HK})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${WK})`].join(",")}const UK=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],jK=UK,YK=["duration","easing","delay"],qK={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)"},pV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tD(e){return`${Math.round(e)}ms`}function XK(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ZK(e){const t=B({},qK,e.easing),r=B({},pV,e.duration);return B({getAutoHeightDuration:XK,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return me(a,YK),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:tD(o)} ${s} ${typeof l=="string"?l:tD(l)}`).join(",")}},e,{easing:t,duration:r})}const KK={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},QK=KK,JK=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vV(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=me(e,JK);if(e.vars)throw new Error(gs(18));const s=BK(n),l=x1(e);let u=fi(l,{mixins:bK(l.breakpoints,r),palette:s,shadows:jK.slice(),typography:VK(s,a),transitions:ZK(i),zIndex:B({},QK)});return u=fi(u,o),u=t.reduce((c,f)=>fi(c,f),u),u.unstable_sxConfig=B({},y1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return m1({sx:f,theme:this})},u}const eQ=vV(),_1=eQ,iu="$$material";function Ye({props:e,name:t}){return uV({props:e,name:t,defaultTheme:_1,themeId:iu})}function gV(e){return Y.jsx(GZ,B({},e,{defaultTheme:_1,themeId:iu}))}const tQ=(e,t)=>B({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),rQ=e=>B({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),nQ=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=B({html:tQ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:B({margin:0},rQ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function GEe(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return Y.jsxs(N.Fragment,{children:[Y.jsx(gV,{styles:i=>nQ(i,n)}),r]})}function mf(){const e=S1(_1);return e[iu]||e}const vo=e=>lh(e)&&e!=="classes",iQ=lh,aQ=lV({themeId:iu,defaultTheme:_1,rootShouldForwardProp:vo}),ge=aQ,oQ=["theme"];function HEe(e){let{theme:t}=e,r=me(e,oQ);const n=t[iu];return Y.jsx(pK,B({},r,{themeId:n?iu:void 0,theme:n||t}))}const sQ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},rD=sQ;function lQ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uQ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cQ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Xe(i,lQ,n)},fQ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),yV=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=me(n,uQ),p=N.isValidElement(i)&&i.type==="svg",v=B({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const y=cQ(v);return Y.jsxs(fQ,B({as:s,className:Ce(y.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?Y.jsx("title",{children:f}):null]}))});yV.muiName="SvgIcon";const nD=yV;function w1(e,t){function r(n,i){return Y.jsx(nD,B({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=nD.muiName,N.memo(N.forwardRef(r))}const dQ={configure:e=>{hM.configure(e)}},hQ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:Xw,createSvgIcon:w1,debounce:$p,deprecatedPropType:Nq,isMuiElement:oh,ownerDocument:rn,ownerWindow:wa,requirePropFactory:zq,setRef:sm,unstable_ClassNameGenerator:dQ,unstable_useEnhancedEffect:io,unstable_useId:z$,unsupportedProp:$q,useControlled:lm,useEventCallback:fa,useForkRef:Cr,useIsFocusVisible:fM},Symbol.toStringTag,{value:"Module"}));function eC(e,t){return eC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eC(e,t)}function mV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eC(e,t)}const iD={disabled:!1},fm=ca.createContext(null);var pQ=function(t){return t.scrollTop},Nd="unmounted",cl="exited",fl="entering",rc="entered",tC="exiting",go=function(e){mV(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=cl,a.appearStatus=fl):l=rc:n.unmountOnExit||n.mountOnEnter?l=Nd:l=cl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Nd?{status:cl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==fl&&o!==rc&&(a=fl):(o===fl||o===rc)&&(a=tC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===fl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ev.findDOMNode(this);o&&pQ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cl&&this.setState({status:Nd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Ev.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||iD.disabled){this.safeSetState({status:rc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:fl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:rc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Ev.findDOMNode(this);if(!a||iD.disabled){this.safeSetState({status:cl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:tC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:cl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Ev.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Nd)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=me(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ca.createElement(fm.Provider,{value:null},typeof o=="function"?o(i,s):ca.cloneElement(ca.Children.only(o),s))},t}(ca.Component);go.contextType=fm;go.propTypes={};function Lu(){}go.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lu,onEntering:Lu,onEntered:Lu,onExit:Lu,onExiting:Lu,onExited:Lu};go.UNMOUNTED=Nd;go.EXITED=cl;go.ENTERING=fl;go.ENTERED=rc;go.EXITING=tC;const CM=go;function vQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TM(e,t){var r=function(a){return t&&N.isValidElement(a)?t(a):a},n=Object.create(null);return e&&N.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function gQ(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;oe.scrollTop;function Jc(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function _Q(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const wQ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],CQ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(n,_Q,r)},TQ=ge("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>B({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&B({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),AQ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>B({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),MQ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>B({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),SV=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:y="vertical",style:m,timeout:x=pV.standard,TransitionComponent:S=CM}=n,_=me(n,wQ),b=B({},n,{orientation:y,collapsedSize:s}),w=CQ(b),C=mf(),A=N.useRef(),T=N.useRef(null),M=N.useRef(),I=typeof s=="number"?`${s}px`:s,P=y==="horizontal",k=P?"width":"height";N.useEffect(()=>()=>{clearTimeout(A.current)},[]);const L=N.useRef(null),O=Cr(r,L),F=H=>ee=>{if(H){const te=L.current;ee===void 0?H(te):H(te,ee)}},R=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,$=F((H,ee)=>{T.current&&P&&(T.current.style.position="absolute"),H.style[k]=I,f&&f(H,ee)}),E=F((H,ee)=>{const te=R();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=Jc({style:m,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=C.transitions.getAutoHeightDuration(te);H.style.transitionDuration=`${Q}ms`,M.current=Q}else H.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;H.style[k]=`${te}px`,H.style.transitionTimingFunction=re,h&&h(H,ee)}),V=F((H,ee)=>{H.style[k]="auto",d&&d(H,ee)}),W=F(H=>{H.style[k]=`${R()}px`,p&&p(H)}),z=F(v),U=F(H=>{const ee=R(),{duration:te,easing:ie}=Jc({style:m,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const re=C.transitions.getAutoHeightDuration(ee);H.style.transitionDuration=`${re}ms`,M.current=re}else H.style.transitionDuration=typeof te=="string"?te:`${te}ms`;H.style[k]=I,H.style.transitionTimingFunction=ie,g&&g(H)}),X=H=>{x==="auto"&&(A.current=setTimeout(H,M.current||0)),i&&i(L.current,H)};return Y.jsx(S,B({in:c,onEnter:$,onEntered:V,onEntering:E,onExit:W,onExited:z,onExiting:U,addEndListener:X,nodeRef:L,timeout:x==="auto"?null:x},_,{children:(H,ee)=>Y.jsx(TQ,B({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[H]),style:B({[P?"minWidth":"minHeight"]:I},m),ownerState:B({},b,{state:H}),ref:O},ee,{children:Y.jsx(AQ,{ownerState:B({},b,{state:H}),className:w.wrapper,ref:T,children:Y.jsx(MQ,{ownerState:B({},b,{state:H}),className:w.wrapperInner,children:a})})}))}))});SV.muiSupportAuto=!0;const IQ=SV;function PQ(e){return Ue("MuiPaper",e)}je("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const kQ=["className","component","elevation","square","variant"],DQ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Xe(a,PQ,i)},LQ=ge("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return B({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&B({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Sr("#fff",rD(t.elevation))}, ${Sr("#fff",rD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),EQ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=me(n,kQ),c=B({},n,{component:a,elevation:o,square:s,variant:l}),f=DQ(c);return Y.jsx(LQ,B({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),MM=EQ,RQ=N.createContext({}),bV=RQ;function OQ(e){return Ue("MuiAccordion",e)}const NQ=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Ov=NQ,zQ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],BQ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Xe({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},OQ,t)},FQ=ge(MM,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ov.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Ov.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Ov.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>B({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Ov.expanded}`]:{margin:"16px 0"}})),$Q=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=IQ,TransitionProps:h}=n,p=me(n,zQ),[v,g]=lm({controlled:u,default:o,name:"Accordion",state:"expanded"}),y=N.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[m,...x]=N.Children.toArray(i),S=N.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:y}),[v,s,l,y]),_=B({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=BQ(_);return Y.jsxs(FQ,B({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[Y.jsx(bV.Provider,{value:S,children:m}),Y.jsx(d,B({in:v,timeout:"auto"},h,{children:Y.jsx("div",{"aria-labelledby":m.props.id,id:m.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),WEe=$Q;function VQ(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const GQ=["className"],HQ=e=>{const{classes:t}=e;return Xe({root:["root"]},VQ,t)},WQ=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),UQ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=me(n,GQ),o=n,s=HQ(o);return Y.jsx(WQ,B({className:Ce(s.root,i),ref:r,ownerState:o},a))}),UEe=UQ;function jQ(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=N.useState(!1),d=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),N.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),Y.jsx("span",{className:d,style:h,children:Y.jsx("span",{className:p})})}const YQ=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ei=YQ,qQ=["center","classes","className"];let C1=e=>e,aD,oD,sD,lD;const rC=550,XQ=80,ZQ=mM(aD||(aD=C1` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),KQ=mM(oD||(oD=C1` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),QQ=mM(sD||(sD=C1` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),JQ=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),eJ=ge(jQ,{name:"MuiTouchRipple",slot:"Ripple"})(lD||(lD=C1` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),ei.rippleVisible,ZQ,rC,({theme:e})=>e.transitions.easing.easeInOut,ei.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ei.child,ei.childLeaving,KQ,rC,({theme:e})=>e.transitions.easing.easeInOut,ei.childPulsate,QQ,({theme:e})=>e.transitions.easing.easeInOut),tJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=me(n,qQ),[l,u]=N.useState([]),c=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=N.useRef(!1),h=N.useRef(0),p=N.useRef(null),v=N.useRef(null);N.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=N.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:A}=S;u(T=>[...T,Y.jsx(eJ,{classes:{ripple:Ce(a.ripple,ei.ripple),rippleVisible:Ce(a.rippleVisible,ei.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ei.ripplePulsate),child:Ce(a.child,ei.child),childLeaving:Ce(a.childLeaving,ei.childLeaving),childPulsate:Ce(a.childPulsate,ei.childPulsate)},timeout:rC,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=A},[a]),y=N.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:A=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const T=A?null:v.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:L,clientY:O}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(L-M.left),P=Math.round(O-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,O=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(L**2+O**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},XQ)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},[i,g]),m=N.useCallback(()=>{y({},{pulsate:!0})},[y]),x=N.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return N.useImperativeHandle(r,()=>({pulsate:m,start:y,stop:x}),[m,y,x]),Y.jsx(JQ,B({className:Ce(ei.root,a.root,o),ref:v},s,{children:Y.jsx(bQ,{component:null,exit:!0,children:l})}))}),rJ=tJ;function nJ(e){return Ue("MuiButtonBase",e)}const iJ=je("MuiButtonBase",["root","disabled","focusVisible"]),aJ=iJ,oJ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],sJ=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Xe({root:["root",t&&"disabled",r&&"focusVisible"]},nJ,i);return r&&n&&(o.root+=` ${n}`),o},lJ=ge("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:y,onFocus:m,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:A,onTouchMove:T,onTouchStart:M,tabIndex:I=0,TouchRippleProps:P,touchRippleRef:k,type:L}=n,O=me(n,oJ),F=N.useRef(null),R=N.useRef(null),$=Cr(R,k),{isFocusVisibleRef:E,onFocus:V,onBlur:W,ref:z}=fM(),[U,X]=N.useState(!1);u&&U&&X(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),F.current.focus()}}),[]);const[H,ee]=N.useState(!1);N.useEffect(()=>{ee(!0)},[]);const te=H&&!c&&!u;N.useEffect(()=>{U&&d&&!c&&H&&R.current.pulsate()},[c,d,U,H]);function ie(he,Bt,yr=f){return fa(Te=>(Bt&&Bt(Te),!yr&&R.current&&R.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",y),fe=ie("stop",C),de=ie("stop",he=>{U&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),it=ie("stop",he=>{W(he),E.current===!1&&X(!1),p&&p(he)},!1),at=fa(he=>{F.current||(F.current=he.currentTarget),V(he),E.current===!0&&(X(!0),x&&x(he)),m&&m(he)}),At=()=>{const he=F.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=N.useRef(!1),Mt=fa(he=>{d&&!Be.current&&U&&R.current&&he.key===" "&&(Be.current=!0,R.current.stop(he,()=>{R.current.start(he)})),he.target===he.currentTarget&&At()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&At()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Wt=fa(he=>{d&&he.key===" "&&R.current&&U&&!he.defaultPrevented&&(Be.current=!1,R.current.stop(he,()=>{R.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&At()&&he.key===" "&&!he.defaultPrevented&&v(he)});let It=l;It==="button"&&(O.href||O.to)&&(It=h);const K={};It==="button"?(K.type=L===void 0?"button":L,K.disabled=u):(!O.href&&!O.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Cr(r,z,F),Le=B({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:U}),_e=sJ(Le);return Y.jsxs(lJ,B({as:It,className:Ce(_e.root,s),ownerState:Le,onBlur:it,onClick:v,onContextMenu:Q,onFocus:at,onKeyDown:Mt,onKeyUp:Wt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:L},K,O,{children:[o,te?Y.jsx(rJ,B({ref:$,center:a},P)):null]}))}),xf=uJ;function cJ(e){return Ue("MuiAccordionSummary",e)}const fJ=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),bc=fJ,dJ=["children","className","expandIcon","focusVisibleClassName","onClick"],hJ=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Xe({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},cJ,t)},pJ=ge(xf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return B({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${bc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${bc.expanded}`]:{minHeight:64}})}),vJ=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>B({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${bc.expanded}`]:{margin:"20px 0"}})),gJ=ge("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${bc.expanded}`]:{transform:"rotate(180deg)"}})),yJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=me(n,dJ),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=N.useContext(bV),p=y=>{h&&h(y),l&&l(y)},v=B({},n,{expanded:d,disabled:c,disableGutters:f}),g=hJ(v);return Y.jsxs(pJ,B({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[Y.jsx(vJ,{className:g.content,ownerState:v,children:i}),o&&Y.jsx(gJ,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),jEe=yJ;function mJ(e){return Ue("MuiIconButton",e)}const xJ=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),SJ=xJ,bJ=["edge","children","className","color","disabled","disableFocusRipple","size"],_J=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Xe(o,mJ,t)},wJ=ge(xf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>B({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return B({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&B({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":B({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${SJ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),CJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=me(n,bJ),d=B({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=_J(d);return Y.jsx(wJ,B({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),YEe=CJ;function TJ(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const AJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],MJ=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Xe(s,TJ,o)},IJ=ge("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>B({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),uD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kJ=e=>PJ[e]||e,DJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=kJ(n.color),a=aV(B({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=uD}=a,p=me(a,AJ),v=B({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||uD[d])||"span",y=MJ(v);return Y.jsx(IJ,B({as:g,ref:r,ownerState:v,className:Ce(y.root,s)},p))}),LJ=DJ;function EJ(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const RJ=["className","color","enableColorOnDark","position"],OJ=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Xe(i,EJ,n)},Nv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,NJ=ge(MM,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return B({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&B({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&B({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&B({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Nv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Nv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Nv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Nv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),zJ=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=me(n,RJ),u=B({},n,{color:a,position:s,enableColorOnDark:o}),c=OJ(u);return Y.jsx(NJ,B({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),qEe=zJ;function ef(e){return typeof e=="string"}function BJ(e,t,r){return e===void 0||ef(e)?t:B({},t,{ownerState:B({},t.ownerState,r)})}function _V(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function FJ(e,t,r){return typeof e=="function"?e(t,r):e}function cD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function $J(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=B({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=B({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=_V(B({},i,n)),s=cD(n),l=cD(i),u=t(o),c=Ce(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=B({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=B({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const VJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ca(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=me(e,VJ),s=a?{}:FJ(n,i),{props:l,internalRef:u}=$J(B({},o,{externalSlotProps:s})),c=Cr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return BJ(r,B({},l,{ref:c}),i)}const GJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HJ(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function WJ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function UJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||WJ(e))}function jJ(e){const t=[],r=[];return Array.from(e.querySelectorAll(GJ)).forEach((n,i)=>{const a=HJ(n);a===-1||!UJ(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function YJ(){return!0}function qJ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=jJ,isEnabled:o=YJ,open:s}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),f=N.useRef(null),d=N.useRef(null),h=N.useRef(!1),p=N.useRef(null),v=Cr(t.ref,p),g=N.useRef(null);N.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),N.useEffect(()=>{if(!s||!p.current)return;const x=rn(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),N.useEffect(()=>{if(!s||!p.current)return;const x=rn(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var A,T;const M=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return Y.jsxs(N.Fragment,{children:[Y.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:v,onFocus:y}),Y.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function XJ(e){return typeof e=="function"?e():e}const ZJ=N.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=N.useState(null),l=Cr(N.isValidElement(n)?n.ref:null,r);if(io(()=>{a||s(XJ(i)||document.body)},[i,a]),io(()=>{if(o&&!a)return sm(r,o),()=>{sm(r,null)}},[r,o,a]),a){if(N.isValidElement(n)){const u={ref:l};return N.cloneElement(n,u)}return Y.jsx(N.Fragment,{children:n})}return Y.jsx(N.Fragment,{children:o&&gf.createPortal(n,o)})});function KJ(e){const t=rn(e);return t.body===e?wa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function uh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fD(e){return parseInt(wa(e).getComputedStyle(e).paddingRight,10)||0}function QJ(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function dD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!QJ(o);s&&l&&uh(o,i)})}function nS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function JJ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(KJ(n)){const o=B$(rn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${fD(n)+o}px`;const s=rn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${fD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=rn(n).body;else{const o=n.parentElement,s=wa(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function eee(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class tee{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&uh(t.modalRef,!1);const i=eee(r);dD(r,t.mount,t.modalRef,i,!0);const a=nS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=nS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=JJ(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=nS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&uh(t.modalRef,r),dD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&uh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ree(e){return typeof e=="function"?e():e}function nee(e){return e?e.props.hasOwnProperty("in"):!1}const iee=new tee;function aee(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=iee,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=N.useRef({}),h=N.useRef(null),p=N.useRef(null),v=Cr(p,f),[g,y]=N.useState(!c),m=nee(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>rn(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=fa(()=>{const O=ree(t)||S().body;i.add(_(),O),p.current&&b()}),C=N.useCallback(()=>i.isTopModal(_()),[i]),A=fa(O=>{h.current=O,O&&(c&&C()?b():p.current&&uh(p.current,x))}),T=N.useCallback(()=>{i.remove(_(),x)},[x,i]);N.useEffect(()=>()=>{T()},[T]),N.useEffect(()=>{c?w():(!m||!a)&&T()},[c,T,m,a,w]);const M=O=>F=>{var R;(R=O.onKeyDown)==null||R.call(O,F),!(F.key!=="Escape"||!C())&&(r||(F.stopPropagation(),u&&u(F,"escapeKeyDown")))},I=O=>F=>{var R;(R=O.onClick)==null||R.call(O,F),F.target===F.currentTarget&&u&&u(F,"backdropClick")};return{getRootProps:(O={})=>{const F=_V(e);delete F.onTransitionEnter,delete F.onTransitionExited;const R=B({},F,O);return B({role:"presentation"},R,{onKeyDown:M(R),ref:v})},getBackdropProps:(O={})=>{const F=O;return B({"aria-hidden":!0},F,{onClick:I(F),open:c})},getTransitionProps:()=>{const O=()=>{y(!1),o&&o()},F=()=>{y(!0),s&&s(),a&&T()};return{onEnter:Xw(O,l==null?void 0:l.props.onEnter),onExited:Xw(F,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:m}}const oee=["onChange","maxRows","minRows","style","value"];function zv(e){return parseInt(e,10)||0}const see={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const lee=N.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=me(t,oee),{current:u}=N.useRef(s!=null),c=N.useRef(null),f=Cr(r,c),d=N.useRef(null),h=N.useRef(0),[p,v]=N.useState({outerHeightStyle:0}),g=N.useCallback(()=>{const _=c.current,w=wa(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const A=w.boxSizing,T=zv(w.paddingBottom)+zv(w.paddingTop),M=zv(w.borderBottomWidth)+zv(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const L=k+(A==="border-box"?T+M:0),O=Math.abs(k-I)<=1;return{outerHeightStyle:L,overflow:O}},[i,a,t.placeholder]),y=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},m=N.useCallback(()=>{const _=g();hD(_)||v(b=>y(b,_))},[g]),x=()=>{const _=g();hD(_)||gf.flushSync(()=>{v(b=>y(b,_))})};N.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=$p(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=wa(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),io(()=>{m()}),N.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||m(),n&&n(_)};return Y.jsxs(N.Fragment,{children:[Y.jsx("textarea",B({value:s,onChange:S,ref:f,rows:a,style:B({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),Y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:B({},see.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Sf({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const uee=N.createContext(void 0),IM=uee;function bf(){return N.useContext(IM)}function pD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dm(e,t=!1){return e&&(pD(e.value)&&e.value!==""||t&&pD(e.defaultValue)&&e.defaultValue!=="")}function cee(e){return e.startAdornment}function fee(e){return Ue("MuiInputBase",e)}const dee=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),tf=dee,hee=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],T1=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},A1=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},pee=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,fee,t)},M1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:T1})(({theme:e,ownerState:t})=>B({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${tf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&B({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),I1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:A1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=B({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return B({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${tf.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${tf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),vee=Y.jsx(gV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),gee=N.forwardRef(function(t,r){var n;const i=Ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:y="input",inputProps:m={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:I,onKeyUp:P,placeholder:k,readOnly:L,renderSuffix:O,rows:F,slotProps:R={},slots:$={},startAdornment:E,type:V="text",value:W}=i,z=me(i,hee),U=m.value!=null?m.value:W,{current:X}=N.useRef(U!=null),H=N.useRef(),ee=N.useCallback(_e=>{},[]),te=Cr(H,x,m.ref,ee),[ie,re]=N.useState(!1),Q=bf(),J=Sf({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,N.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=N.useCallback(_e=>{dm(_e)?fe&&fe():de&&de()},[fe,de]);io(()=>{X&&ke({value:U})},[U,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),m.onFocus&&m.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),m.onBlur&&m.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},it=(_e,...he)=>{if(!X){const Bt=_e.target||H.current;if(Bt==null)throw new Error(gs(1));ke({value:Bt.value})}m.onChange&&m.onChange(_e,...he),A&&A(_e,...he)};N.useEffect(()=>{ke(H.current)},[]);const at=_e=>{H.current&&_e.currentTarget===_e.target&&H.current.focus(),T&&T(_e)};let At=y,Be=m;b&&At==="input"&&(F?Be=B({type:void 0,minRows:F,maxRows:F},Be):Be=B({type:void 0,maxRows:S,minRows:_},Be),At=lee);const Mt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};N.useEffect(()=>{Q&&Q.setAdornedStart(!!E)},[Q,E]);const Wt=B({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:E,type:V}),It=pee(Wt),K=$.root||u.Root||M1,le=R.root||c.root||{},Le=$.input||u.Input||I1;return Be=B({},Be,(n=R.input)!=null?n:c.input),Y.jsxs(N.Fragment,{children:[!h&&vee,Y.jsxs(K,B({},le,!ef(K)&&{ownerState:B({},Wt,le.ownerState)},{ref:r,onClick:at},z,{className:Ce(It.root,le.className,l,L&&"MuiInputBase-readOnly"),children:[E,Y.jsx(IM.Provider,{value:null,children:Y.jsx(Le,B({ownerState:Wt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Mt,name:w,placeholder:k,readOnly:L,required:J.required,rows:F,value:U,onKeyDown:I,onKeyUp:P,type:V},Be,!ef(Le)&&{as:At,ownerState:B({},Wt,Be.ownerState)},{ref:te,className:Ce(It.input,Be.className,L&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:it,onFocus:We}))}),p,O?O(B({},J,{startAdornment:E})):null]}))]})}),PM=gee;function yee(e){return Ue("MuiInput",e)}const mee=B({},tf,je("MuiInput",["root","underline","input"])),Qf=mee;function xee(e){return Ue("MuiOutlinedInput",e)}const See=B({},tf,je("MuiOutlinedInput",["root","notchedOutline","input"])),_o=See;function bee(e){return Ue("MuiFilledInput",e)}const _ee=B({},tf,je("MuiFilledInput",["root","underline","input"])),Ns=_ee,wee=w1(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cee=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Tee={entering:{opacity:1},entered:{opacity:1}},Aee=N.forwardRef(function(t,r){const n=mf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:y=i,TransitionComponent:m=CM}=t,x=me(t,Cee),S=N.useRef(null),_=Cr(S,s.ref,r),b=k=>L=>{if(k){const O=S.current;L===void 0?k(O):k(O,L)}},w=b(d),C=b((k,L)=>{xV(k);const O=Jc({style:g,timeout:y,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",O),k.style.transition=n.transitions.create("opacity",O),c&&c(k,L)}),A=b(f),T=b(v),M=b(k=>{const L=Jc({style:g,timeout:y,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",L),k.style.transition=n.transitions.create("opacity",L),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return Y.jsx(m,B({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:y},x,{children:(k,L)=>N.cloneElement(s,B({style:B({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},Tee[k],g,s.props.style),ref:_},L))}))}),Mee=Aee;function Iee(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Pee=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],kee=e=>{const{classes:t,invisible:r}=e;return Xe({root:["root",r&&"invisible"]},Iee,t)},Dee=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>B({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Lee=N.forwardRef(function(t,r){var n,i,a;const o=Ye({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=Mee,transitionDuration:y}=o,m=me(o,Pee),x=B({},o,{component:u,invisible:d}),S=kee(x),_=(n=p.root)!=null?n:f.root;return Y.jsx(g,B({in:h,timeout:y},m,{children:Y.jsx(Dee,B({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:B({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),Eee=Lee,Ree=vV(),Oee=jZ({themeId:iu,defaultTheme:Ree,defaultClassName:"MuiBox-root",generateClassName:hM.generate}),XEe=Oee;function Nee(e){return Ue("MuiButton",e)}const zee=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bv=zee,Bee=N.createContext({}),Fee=Bee,$ee=N.createContext(void 0),Vee=$ee,Gee=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Hee=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Xe(s,Nee,o);return B({},o,l)},wV=e=>B({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Wee=ge(xf,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return B({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":B({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Bv.focusVisible}`]:B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bv.disabled}`]:B({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Sr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Bv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bv.disabled}`]:{boxShadow:"none"}}),Uee=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},wV(e))),jee=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},wV(e))),Yee=N.forwardRef(function(t,r){const n=N.useContext(Fee),i=N.useContext(Vee),a=dM(n,t),o=Ye({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:y="medium",startIcon:m,type:x,variant:S="text"}=o,_=me(o,Gee),b=B({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:y,type:x,variant:S}),w=Hee(b),C=m&&Y.jsx(Uee,{className:w.startIcon,ownerState:b,children:m}),A=p&&Y.jsx(jee,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return Y.jsxs(Wee,B({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),ZEe=Yee,qee=SK({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),KEe=qee;function Xee(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const Zee=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Kee=e=>{const{open:t,exited:r,classes:n}=e;return Xe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Xee,n)},Qee=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>B({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Jee=ge(Eee,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ete=N.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=Jee,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:y={},componentsProps:m={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:I,slotProps:P,slots:k}=u,L=me(u,Zee),O=B({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:F,getBackdropProps:R,getTransitionProps:$,portalRef:E,isTopModal:V,exited:W,hasTransition:z}=aee(B({},O,{rootRef:r})),U=B({},O,{exited:W}),X=Kee(U),H={};if(p.props.tabIndex===void 0&&(H.tabIndex="-1"),z){const{onEnter:fe,onExited:de}=$();H.onEnter=fe,H.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:y.Root)!=null?n:Qee,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:y.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:m.root,re=(l=P==null?void 0:P.backdrop)!=null?l:m.backdrop,Q=Ca({elementType:ee,externalSlotProps:ie,externalForwardedProps:L,getSlotProps:F,additionalProps:{ref:r,as:g},ownerState:U,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!U.open&&U.exited&&(X==null?void 0:X.hidden))}),J=Ca({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>R(B({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:U});return!T&&!I&&(!z||W)?null:Y.jsx(ZJ,{ref:E,container:v,disablePortal:b,children:Y.jsxs(ee,B({},Q,{children:[!A&&c?Y.jsx(te,B({},J)):null,Y.jsx(qJ,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:V,open:I,children:N.cloneElement(p,H)})]}))})}),tte=ete;function rte(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const nte=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ite=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},rte,n)},ate=ge("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>B({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Sr(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>B({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>B({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ote=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>B({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),CV=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=me(n,nte),v=B({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=ite(v);return Y.jsx(ate,B({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?Y.jsx(ote,{className:g.wrapper,ownerState:v,children:a}):null}))});CV.muiSkipListHighlight=!0;const QEe=CV,ste=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lte=e=>{const{classes:t,disableUnderline:r}=e,i=Xe({root:["root",!r&&"underline"],input:["input"]},bee,t);return B({},t,i)},ute=ge(M1,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...T1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return B({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Ns.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Ns.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ns.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ns.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ns.disabled}, .${Ns.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ns.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&B({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),cte=ge(I1,{name:"MuiFilledInput",slot:"Input",overridesResolver:A1})(({theme:e,ownerState:t})=>B({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),TV=N.forwardRef(function(t,r){var n,i,a,o;const s=Ye({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=me(s,ste),y=B({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),m=lte(s),x={root:{ownerState:y},input:{ownerState:y}},S=h??u?fi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:ute,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:cte;return Y.jsx(PM,B({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:m}))});TV.muiName="Input";const AV=TV;function fte(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const dte=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],hte=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Xe(i,fte,t)},pte=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>B({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),vte=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,y=me(n,dte),m=B({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=hte(m),[S,_]=N.useState(()=>{let P=!1;return i&&N.Children.forEach(i,k=>{if(!oh(k,["Input","Select"]))return;const L=oh(k,["Select"])?k.props.input:k;L&&cee(L.props)&&(P=!0)}),P}),[b,w]=N.useState(()=>{let P=!1;return i&&N.Children.forEach(i,k=>{oh(k,["Input","Select"])&&(dm(k.props,!0)||dm(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=N.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=N.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return Y.jsx(IM.Provider,{value:I,children:Y.jsx(pte,B({as:s,ownerState:m,className:Ce(x.root,a),ref:r},y,{children:i}))})}),gte=vte;function yte(e){return Ue("MuiFormHelperText",e)}const mte=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),vD=mte;var gD;const xte=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Ste=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Xe(u,yte,t)},bte=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),_te=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=me(n,xte),l=bf(),u=Sf({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=B({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Ste(c);return Y.jsx(bte,B({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?gD||(gD=Y.jsx("span",{className:"notranslate",children:"​"})):i}))}),wte=_te;function Cte(e){return Ue("MuiFormLabel",e)}const Tte=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ch=Tte,Ate=["children","className","color","component","disabled","error","filled","focused","required"],Mte=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,Cte,t)},Ite=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ch.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),Pte=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),kte=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=me(n,Ate),l=bf(),u=Sf({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=B({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Mte(c);return Y.jsxs(Ite,B({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&Y.jsxs(Pte,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Dte=kte,Lte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function nC(e){return`scale(${e}, ${e**2})`}const Ete={entering:{opacity:1,transform:nC(1)},entered:{opacity:1,transform:"none"}},iS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),MV=N.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=CM}=t,y=me(t,Lte),m=N.useRef(),x=N.useRef(),S=mf(),_=N.useRef(null),b=Cr(_,a.ref,r),w=L=>O=>{if(L){const F=_.current;O===void 0?L(F):L(F,O)}},C=w(c),A=w((L,O)=>{xV(L);const{duration:F,delay:R,easing:$}=Jc({style:p,timeout:v,easing:o},{mode:"enter"});let E;v==="auto"?(E=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=E):E=F,L.style.transition=[S.transitions.create("opacity",{duration:E,delay:R}),S.transitions.create("transform",{duration:iS?E:E*.666,delay:R,easing:$})].join(","),l&&l(L,O)}),T=w(u),M=w(h),I=w(L=>{const{duration:O,delay:F,easing:R}=Jc({style:p,timeout:v,easing:o},{mode:"exit"});let $;v==="auto"?($=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=$):$=O,L.style.transition=[S.transitions.create("opacity",{duration:$,delay:F}),S.transitions.create("transform",{duration:iS?$:$*.666,delay:iS?F:F||$*.333,easing:R})].join(","),L.style.opacity=0,L.style.transform=nC(.75),f&&f(L)}),P=w(d),k=L=>{v==="auto"&&(m.current=setTimeout(L,x.current||0)),n&&n(_.current,L)};return N.useEffect(()=>()=>{clearTimeout(m.current)},[]),Y.jsx(g,B({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},y,{children:(L,O)=>N.cloneElement(a,B({style:B({opacity:0,transform:nC(.75),visibility:L==="exited"&&!s?"hidden":void 0},Ete[L],p,a.props.style),ref:b},O))}))});MV.muiSupportAuto=!0;const Rte=MV,Ote=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nte=e=>{const{classes:t,disableUnderline:r}=e,i=Xe({root:["root",!r&&"underline"],input:["input"]},yee,t);return B({},t,i)},zte=ge(M1,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...T1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),B({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qf.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qf.disabled}, .${Qf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Qf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Bte=ge(I1,{name:"MuiInput",slot:"Input",overridesResolver:A1})({}),IV=N.forwardRef(function(t,r){var n,i,a,o;const s=Ye({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,y=me(s,Ote),m=Nte(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?fi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:zte,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Bte;return Y.jsx(PM,B({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},y,{classes:m}))});IV.muiName="Input";const PV=IV;function Fte(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $te=["disableAnimation","margin","shrink","variant","className"],Vte=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Xe(l,Fte,t);return B({},t,u)},Gte=ge(Dte,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>B({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&B({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&B({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&B({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Hte=N.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=me(n,$te),l=bf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Sf({props:n,muiFormControl:l,states:["size","variant","required"]}),f=B({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Vte(f);return Y.jsx(Gte,B({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),Wte=Hte;function Ute(e){return Ue("MuiLink",e)}const jte=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Yte=jte,kV={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qte=e=>kV[e]||e,Xte=({theme:e,ownerState:t})=>{const r=qte(t.color),n=Qc(e,`palette.${r}`,!1)||t.color,i=Qc(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Sr(n,.4)},Zte=Xte,Kte=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Qte=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Xe(a,Ute,t)},Jte=ge(LJ,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>B({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&B({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Zte({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Yte.focusVisible}`]:{outline:"auto"}})),ere=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=me(n,Kte),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:y}=fM(),[m,x]=N.useState(!1),S=Cr(r,y),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=B({},n,{color:a,component:o,focusVisible:m,underline:c,variant:f}),C=Qte(w);return Y.jsx(Jte,B({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(kV).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),JEe=ere,tre=N.createContext({}),fh=tre;function rre(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const nre=["children","className","component","dense","disablePadding","subheader"],ire=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Xe({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},rre,t)},are=ge("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>B({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ore=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=me(n,nre),f=N.useMemo(()=>({dense:s}),[s]),d=B({},n,{component:o,dense:s,disablePadding:l}),h=ire(d);return Y.jsx(fh.Provider,{value:f,children:Y.jsxs(are,B({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),sre=ore;function lre(e){return Ue("MuiListItem",e)}const ure=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),nc=ure,cre=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),fre=cre;function dre(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const hre=["className"],pre=e=>{const{disableGutters:t,classes:r}=e;return Xe({root:["root",t&&"disableGutters"]},dre,r)},vre=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>B({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),DV=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=me(n,hre),o=N.useContext(fh),s=B({},n,{disableGutters:o.disableGutters}),l=pre(s);return Y.jsx(vre,B({className:Ce(l.root,i),ownerState:s,ref:r},a))});DV.muiName="ListItemSecondaryAction";const gre=DV,yre=["className"],mre=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],xre=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Sre=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Xe({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},lre,n)},bre=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:xre})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&B({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${fre.root}`]:{paddingRight:48}},{[`&.${nc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),_re=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),wre=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:y=!1,divider:m=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=me(n.ContainerProps,yre),A=me(n,mre),T=N.useContext(fh),M=N.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=N.useRef(null);io(()=>{a&&I.current&&I.current.focus()},[a]);const P=N.Children.toArray(s),k=P.length&&oh(P[P.length-1],["ListItemSecondaryAction"]),L=B({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:y,divider:m,hasSecondaryAction:k,selected:_}),O=Sre(L),F=Cr(I,r),R=w.root||c.Root||bre,$=b.root||f.root||{},E=B({className:Ce(O.root,$.className,l),disabled:v},A);let V=u||"li";return o&&(E.component=u||"div",E.focusVisibleClassName=Ce(nc.focusVisible,x),V=xf),k?(V=!E.component&&!u?"div":V,d==="li"&&(V==="li"?V="div":E.component==="li"&&(E.component="div")),Y.jsx(fh.Provider,{value:M,children:Y.jsxs(_re,B({as:d,className:Ce(O.container,h),ref:F,ownerState:L},C,{children:[Y.jsx(R,B({},$,!ef(R)&&{as:V,ownerState:B({},L,$.ownerState)},E,{children:P})),P.pop()]}))})):Y.jsx(fh.Provider,{value:M,children:Y.jsxs(R,B({},$,{as:V,ref:F},!ef(R)&&{ownerState:B({},L,$.ownerState)},E,{children:[P,S&&Y.jsx(gre,{children:S})]}))})}),eRe=wre,Cre=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function aS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function LV(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Jf(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!LV(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Tre=N.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=me(t,Cre),h=N.useRef(null),p=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});io(()=>{i&&h.current.focus()},[i]),N.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=rn(S).activeElement;if(_==="ArrowDown")x.preventDefault(),Jf(S,b,u,l,aS);else if(_==="ArrowUp")x.preventDefault(),Jf(S,b,u,l,yD);else if(_==="Home")x.preventDefault(),Jf(S,null,u,l,aS);else if(_==="End")x.preventDefault(),Jf(S,null,u,l,yD);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&LV(b,w);w.previousKeyMatched&&(T||Jf(S,b,!1,l,aS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Cr(h,r);let y=-1;N.Children.forEach(o,(x,S)=>{if(!N.isValidElement(x)){y===S&&(y+=1,y>=o.length&&(y=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||y===-1)&&(y=S),y===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=o.length&&(y=-1))});const m=N.Children.map(o,(x,S)=>{if(S===y){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),N.cloneElement(x,_)}return x});return Y.jsx(sre,B({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:m}))}),Are=Tre;function Mre(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Ire=["onEntering"],Pre=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],kre=["slotProps"];function mD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function xD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function SD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function oS(e){return typeof e=="function"?e():e}const Dre=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},Mre,t)},Lre=ge(tte,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),EV=ge(MM,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ere=N.forwardRef(function(t,r){var n,i,a;const o=Ye({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:y,PaperProps:m={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Rte,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=me(o.TransitionProps,Ire),M=me(o,Pre),I=(n=S==null?void 0:S.paper)!=null?n:m,P=N.useRef(),k=Cr(P,I.ref),L=B({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),O=Dre(L),F=N.useCallback(()=>{if(f==="anchorPosition")return c;const fe=oS(l),ke=(fe&&fe.nodeType===1?fe:rn(P.current).body).getBoundingClientRect();return{top:ke.top+mD(ke,u.vertical),left:ke.left+xD(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),R=N.useCallback(fe=>({vertical:mD(fe,_.vertical),horizontal:xD(fe,_.horizontal)}),[_.horizontal,_.vertical]),$=N.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=R(de);if(f==="none")return{top:null,left:null,transformOrigin:SD(ke)};const We=F();let Ge=We.top-ke.vertical,it=We.left-ke.horizontal;const at=Ge+de.height,At=it+de.width,Be=wa(oS(l)),Mt=Be.innerHeight-g,Wt=Be.innerWidth-g;if(g!==null&&GeMt){const It=at-Mt;Ge-=It,ke.vertical+=It}if(g!==null&&itWt){const It=At-Wt;it-=It,ke.horizontal+=It}return{top:`${Math.round(Ge)}px`,left:`${Math.round(it)}px`,transformOrigin:SD(ke)}},[l,f,F,R,g]),[E,V]=N.useState(y),W=N.useCallback(()=>{const fe=P.current;if(!fe)return;const de=$(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,V(!0)},[$]);N.useEffect(()=>(A&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[l,A,W]);const z=(fe,de)=>{C&&C(fe,de),W()},U=()=>{V(!1)};N.useEffect(()=>{y&&W()}),N.useImperativeHandle(s,()=>y?{updatePosition:()=>{W()}}:null,[y,W]),N.useEffect(()=>{if(!y)return;const fe=$p(()=>{W()}),de=wa(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,y,W]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const H=p||(l?rn(oS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Lre,te=(a=x==null?void 0:x.paper)!=null?a:EV,ie=Ca({elementType:te,externalSlotProps:B({},I,{style:E?I.style:B({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:L,className:Ce(O.paper,I==null?void 0:I.className)}),re=Ca({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:H,open:y},ownerState:L,className:Ce(O.root,h)}),{slotProps:Q}=re,J=me(re,kre);return Y.jsx(ee,B({},J,!ef(ee)&&{slotProps:Q,disableScrollLock:A},{children:Y.jsx(b,B({appear:!0,in:y,onEntering:z,onExited:U,timeout:X},T,{children:Y.jsx(te,B({},ie,{children:d}))}))}))}),Rre=Ere;function Ore(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Nre=["onEntering"],zre=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bre={vertical:"top",horizontal:"right"},Fre={vertical:"top",horizontal:"left"},$re=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},Ore,t)},Vre=ge(Rre,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gre=ge(EV,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hre=ge(Are,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Wre=N.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:y="selectedMenu",slots:m={},slotProps:x={}}=a,S=me(a.TransitionProps,Nre),_=me(a,zre),b=mf(),w=b.direction==="rtl",C=B({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:y}),A=$re(C),T=o&&!u&&d,M=N.useRef(null),I=($,E)=>{M.current&&M.current.adjustStyleForScrollbar($,b),g&&g($,E)},P=$=>{$.key==="Tab"&&($.preventDefault(),f&&f($,"tabKeyDown"))};let k=-1;N.Children.map(s,($,E)=>{N.isValidElement($)&&($.props.disabled||(y==="selectedMenu"&&$.props.selected||k===-1)&&(k=E))});const L=(n=m.paper)!=null?n:Gre,O=(i=x.paper)!=null?i:h,F=Ca({elementType:m.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),R=Ca({elementType:L,externalSlotProps:O,ownerState:C,className:A.paper});return Y.jsx(Vre,B({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Bre:Fre,slots:{paper:L,root:m.root},slotProps:{root:F,paper:R},open:d,ref:r,transitionDuration:v,TransitionProps:B({onEntering:I},S),ownerState:C},_,{classes:p,children:Y.jsx(Hre,B({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:y},c,{className:Ce(A.list,c.className),children:s}))}))}),Ure=Wre;function jre(e){return Ue("MuiNativeSelect",e)}const Yre=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kM=Yre,qre=["className","disabled","error","IconComponent","inputRef","variant"],Xre=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Xe(s,jre,t)},RV=({ownerState:e,theme:t})=>B({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":B({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${kM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Zre=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${kM.multiple}`]:t.multiple}]}})(RV),OV=({ownerState:e,theme:t})=>B({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${kM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Kre=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(OV),Qre=N.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=me(t,qre),c=B({},t,{disabled:i,variant:l,error:a}),f=Xre(c);return Y.jsxs(N.Fragment,{children:[Y.jsx(Zre,B({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:Y.jsx(Kre,{as:o,ownerState:c,className:f.icon})]})}),Jre=Qre;var bD;const ene=["children","classes","className","label","notched"],tne=ge("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rne=ge("legend")(({ownerState:e,theme:t})=>B({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&B({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function nne(e){const{className:t,label:r,notched:n}=e,i=me(e,ene),a=r!=null&&r!=="",o=B({},e,{notched:n,withLabel:a});return Y.jsx(tne,B({"aria-hidden":!0,className:t,ownerState:o},i,{children:Y.jsx(rne,{ownerState:o,children:a?Y.jsx("span",{children:r}):bD||(bD=Y.jsx("span",{className:"notranslate",children:"​"}))})}))}const ine=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ane=e=>{const{classes:t}=e,n=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xee,t);return B({},t,n)},one=ge(M1,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:T1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return B({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_o.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${_o.focused} .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${_o.error} .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${_o.disabled} .${_o.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&B({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),sne=ge(nne,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),lne=ge(I1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A1})(({theme:e,ownerState:t})=>B({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),NV=N.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,y=me(l,ine),m=ane(l),x=bf(),S=Sf({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=B({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:one,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:lne;return Y.jsx(PM,B({slots:{root:b,input:w},renderSuffix:C=>Y.jsx(sne,{ownerState:_,className:m.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=Y.jsxs(N.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},y,{classes:B({},m,{notchedOutline:null})}))});NV.muiName="Input";const zV=NV;function une(e){return Ue("MuiSelect",e)}const cne=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ed=cne;var _D;const fne=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dne=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ed.select}`]:t.select},{[`&.${ed.select}`]:t[r.variant]},{[`&.${ed.error}`]:t.error},{[`&.${ed.multiple}`]:t.multiple}]}})(RV,{[`&.${ed.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hne=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(OV),pne=ge("input",{shouldForwardProp:e=>iQ(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function wD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vne(e){return e==null||typeof e=="string"&&!e.trim()}const gne=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,une,t)},yne=N.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:y,MenuProps:m={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:I,SelectDisplayProps:P={},tabIndex:k,value:L,variant:O="standard"}=t,F=me(t,fne),[R,$]=lm({controlled:L,default:f,name:"Select"}),[E,V]=lm({controlled:T,default:c,name:"Select"}),W=N.useRef(null),z=N.useRef(null),[U,X]=N.useState(null),{current:H}=N.useRef(T!=null),[ee,te]=N.useState(),ie=Cr(r,g),re=N.useCallback(Te=>{z.current=Te,Te&&X(Te)},[]),Q=U==null?void 0:U.parentNode;N.useImperativeHandle(ie,()=>({focus:()=>{z.current.focus()},node:W.current,value:R}),[R]),N.useEffect(()=>{c&&E&&U&&!H&&(te(s?null:Q.clientWidth),z.current.focus())},[U,s]),N.useEffect(()=>{o&&z.current.focus()},[o]),N.useEffect(()=>{if(!y)return;const Te=rn(z.current).getElementById(y);if(Te){const lt=()=>{getSelection().isCollapsed&&z.current.focus()};return Te.addEventListener("click",lt),()=>{Te.removeEventListener("click",lt)}}},[y]);const J=(Te,lt)=>{Te?A&&A(lt):w&&w(lt),H||(te(s?null:Q.clientWidth),V(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),z.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=N.Children.toArray(l),We=Te=>{const lt=ke.find(Pt=>Pt.props.value===Te.target.value);lt!==void 0&&($(lt.props.value),b&&b(Te,lt))},Ge=Te=>lt=>{let Pt;if(lt.currentTarget.hasAttribute("tabindex")){if(x){Pt=Array.isArray(R)?R.slice():[];const pe=R.indexOf(Te.props.value);pe===-1?Pt.push(Te.props.value):Pt.splice(pe,1)}else Pt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(lt),R!==Pt&&($(Pt),b)){const pe=lt.nativeEvent||lt,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Pt,name:S}}),b(De,Te)}x||J(!1,lt)}},it=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},at=U!==null&&E,At=Te=>{!at&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:R,name:S}}),_(Te))};delete F["aria-invalid"];let Be,Mt;const Wt=[];let It=!1;(dm({value:R})||h)&&(I?Be=I(R):It=!0);const K=ke.map(Te=>{if(!N.isValidElement(Te))return null;let lt;if(x){if(!Array.isArray(R))throw new Error(gs(2));lt=R.some(Pt=>wD(Pt,Te.props.value)),lt&&It&&Wt.push(Te.props.children)}else lt=wD(R,Te.props.value),lt&&It&&(Mt=Te.props.children);return N.cloneElement(Te,{"aria-selected":lt?"true":"false",onClick:Ge(Te),onKeyUp:Pt=>{Pt.key===" "&&Pt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Pt)},role:"option",selected:lt,value:void 0,"data-value":Te.props.value})});It&&(x?Wt.length===0?Be=null:Be=Wt.reduce((Te,lt,Pt)=>(Te.push(lt),Pt{const{classes:t}=e;return t},DM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>vo(e)&&e!=="variant",slot:"Root"},_ne=ge(PV,DM)(""),wne=ge(zV,DM)(""),Cne=ge(AV,DM)(""),BV=N.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=wee,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:y=!1,native:m=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=me(n,xne),T=m?Jre:mne,M=bf(),I=Sf({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=B({},n,{variant:P,classes:o}),L=bne(k),O=me(L,Sne),F=d||{standard:Y.jsx(_ne,{ownerState:k}),outlined:Y.jsx(wne,{label:p,ownerState:k}),filled:Y.jsx(Cne,{ownerState:k})}[P],R=Cr(r,F.ref);return Y.jsx(N.Fragment,{children:N.cloneElement(F,B({inputComponent:T,inputProps:B({children:a,error:I.error,IconComponent:c,variant:P,type:void 0,multiple:y},m?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:B({id:f},w)},h,{classes:h?fi(O,h.classes):O},d?d.props.inputProps:{})},y&&m&&P==="outlined"?{notched:!0}:{},{ref:R,className:Ce(F.props.className,s,L.root)},!d&&{variant:P},A))})});BV.muiName="Select";const Tne=BV;function Ane(e){return Ue("MuiTab",e)}const Mne=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),zs=Mne,Ine=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Pne=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(u,Ane,t)},kne=ge(xf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>B({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zs.iconWrapper}`]:B({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${zs.selected}`]:{opacity:1},[`&.${zs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Dne=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:y="inherit",value:m,wrapped:x=!1}=n,S=me(n,Ine),_=B({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:y,wrapped:x}),b=Pne(_),w=l&&f&&N.isValidElement(l)?N.cloneElement(l,{className:Ce(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,m),h&&h(T)},A=T=>{g&&!v&&d&&d(T,m),p&&p(T)};return Y.jsxs(kne,B({focusRipple:!o,className:Ce(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?Y.jsxs(N.Fragment,{children:[w,f]}):Y.jsxs(N.Fragment,{children:[f,w]}),c]}))}),tRe=Dne,Lne=N.createContext(),FV=Lne;function Ene(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const Rne=["className","component","padding","size","stickyHeader"],One=e=>{const{classes:t,stickyHeader:r}=e;return Xe({root:["root",r&&"stickyHeader"]},Ene,t)},Nne=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>B({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":B({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),CD="table",zne=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=CD,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=me(n,Rne),c=B({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=One(c),d=N.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return Y.jsx(FV.Provider,{value:d,children:Y.jsx(Nne,B({as:a,role:a===CD?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),rRe=zne,Bne=N.createContext(),P1=Bne;function Fne(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const $ne=["className","component"],Vne=e=>{const{classes:t}=e;return Xe({root:["root"]},Fne,t)},Gne=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Hne={variant:"body"},TD="tbody",Wne=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=TD}=n,o=me(n,$ne),s=B({},n,{component:a}),l=Vne(s);return Y.jsx(P1.Provider,{value:Hne,children:Y.jsx(Gne,B({className:Ce(l.root,i),as:a,ref:r,role:a===TD?null:"rowgroup",ownerState:s},o))})}),nRe=Wne;function Une(e){return Ue("MuiTableCell",e)}const jne=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Yne=jne,qne=["align","className","component","padding","scope","size","sortDirection","variant"],Xne=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Xe(s,Une,t)},Zne=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>B({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?fV(Sr(e.palette.divider,1),.88):cV(Sr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Yne.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Kne=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=me(n,qne),h=N.useContext(FV),p=N.useContext(P1),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let y=l;g==="td"?y=void 0:!y&&v&&(y="col");const m=f||p&&p.variant,x=B({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&h&&h.stickyHeader,variant:m}),S=Xne(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),Y.jsx(Zne,B({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:y,ownerState:x},d))}),iRe=Kne;function Qne(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const Jne=["className","component"],eie=e=>{const{classes:t}=e;return Xe({root:["root"]},Qne,t)},tie=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),rie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=me(n,Jne),s=B({},n,{component:a}),l=eie(s);return Y.jsx(tie,B({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),aRe=rie;function nie(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const iie=["className","component"],aie=e=>{const{classes:t}=e;return Xe({root:["root"]},nie,t)},oie=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),sie={variant:"head"},AD="thead",lie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=AD}=n,o=me(n,iie),s=B({},n,{component:a}),l=aie(s);return Y.jsx(P1.Provider,{value:sie,children:Y.jsx(oie,B({as:a,className:Ce(l.root,i),ref:r,role:a===AD?null:"rowgroup",ownerState:s},o))})}),oRe=lie;function uie(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const cie=["className","component","disableGutters","variant"],fie=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Xe({root:["root",!r&&"gutters",n]},uie,t)},die=ge("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>B({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),hie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=me(n,cie),u=B({},n,{component:a,disableGutters:o,variant:s}),c=fie(u);return Y.jsx(die,B({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),sRe=hie,pie=w1(Y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vie=w1(Y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function gie(e){return Ue("MuiTableRow",e)}const yie=je("MuiTableRow",["root","selected","hover","head","footer"]),MD=yie,mie=["className","component","hover","selected"],xie=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Xe({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},gie,t)},Sie=ge("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${MD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${MD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),ID="tr",bie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=ID,hover:o=!1,selected:s=!1}=n,l=me(n,mie),u=N.useContext(P1),c=B({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=xie(c);return Y.jsx(Sie,B({as:a,ref:r,className:Ce(f.root,i),role:a===ID?null:"row",ownerState:c},l))}),lRe=bie;function _ie(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function wie(e,t,r,n={},i=()=>{}){const{ease:a=_ie,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Cie=["onChange"],Tie={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Aie(e){const{onChange:t}=e,r=me(e,Cie),n=N.useRef(),i=N.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return io(()=>{const o=$p(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=wa(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),N.useEffect(()=>{a(),t(n.current)},[t]),Y.jsx("div",B({style:Tie,ref:i},r))}function Mie(e){return Ue("MuiTabScrollButton",e)}const Iie=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Pie=Iie,kie=["className","slots","slotProps","direction","orientation","disabled"],Die=e=>{const{classes:t,orientation:r,disabled:n}=e;return Xe({root:["root",r,n&&"disabled"]},Mie,t)},Lie=ge(xf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${Pie.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Eie=N.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=me(a,kie),d=mf().direction==="rtl",h=B({isRtl:d},a),p=Die(h),v=(n=s.StartScrollButtonIcon)!=null?n:pie,g=(i=s.EndScrollButtonIcon)!=null?i:vie,y=Ca({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),m=Ca({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return Y.jsx(Lie,B({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?Y.jsx(v,B({},y)):Y.jsx(g,B({},m))}))}),Rie=Eie;function Oie(e){return Ue("MuiTabs",e)}const Nie=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),sS=Nie,zie=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],PD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Fv=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},Bie=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Oie,l)},Fie=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${sS.scrollButtons}`]:t.scrollButtons},{[`& .${sS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${sS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),$ie=ge("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>B({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Vie=ge("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Gie=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Hie=ge(Aie)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),DD={},Wie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=mf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:y=Rie,scrollButtons:m="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=me(n,zie),P=T==="scrollable",k=g==="vertical",L=k?"scrollTop":"scrollLeft",O=k?"top":"left",F=k?"bottom":"right",R=k?"clientHeight":"clientWidth",$=k?"height":"width",E=B({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:m,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),V=Bie(E),W=Ca({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:E}),z=Ca({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:E}),[U,X]=N.useState(!1),[H,ee]=N.useState(DD),[te,ie]=N.useState(!1),[re,Q]=N.useState(!1),[J,fe]=N.useState(!1),[de,ke]=N.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=N.useRef(null),it=N.useRef(null),at=()=>{const pe=Ge.current;let De;if(pe){const gt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:Yq(pe,i.direction),scrollWidth:pe.scrollWidth,top:gt.top,bottom:gt.bottom,left:gt.left,right:gt.right}}let qe;if(pe&&A!==!1){const gt=it.current.children;if(gt.length>0){const zr=gt[We.get(A)];qe=zr?zr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},At=fa(()=>{const{tabsMeta:pe,tabMeta:De}=at();let qe=0,gt;if(k)gt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(gt=a?"right":"left",De&&pe){const So=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[gt]-pe[gt]+So)}const zr={[gt]:qe,[$]:De?De[$]:0};if(isNaN(H[gt])||isNaN(H[$]))ee(zr);else{const So=Math.abs(H[gt]-zr[gt]),vv=Math.abs(H[$]-zr[$]);(So>=1||vv>=1)&&ee(zr)}}),Be=(pe,{animation:De=!0}={})=>{De?wie(L,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[L]=pe},Mt=pe=>{let De=Ge.current[L];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&F$()==="reverse"?-1:1),Be(De)},Wt=()=>{const pe=Ge.current[R];let De=0;const qe=Array.from(it.current.children);for(let gt=0;gtpe){gt===0&&(De=pe);break}De+=zr[R]}return De},It=()=>{Mt(-1*Wt())},K=()=>{Mt(Wt())},le=N.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Le=()=>{const pe={};pe.scrollbarSizeListener=P?Y.jsx(Hie,{onChange:le,className:Ce(V.scrollableX,V.hideScrollbar)}):null;const qe=P&&(m==="auto"&&(te||re)||m===!0);return pe.scrollButtonStart=qe?Y.jsx(y,B({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:g,direction:a?"right":"left",onClick:It,disabled:!te},w,{className:Ce(V.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?Y.jsx(y,B({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(V.scrollButtons,w.className)})):null,pe},_e=fa(pe=>{const{tabsMeta:De,tabMeta:qe}=at();if(!(!qe||!De)){if(qe[O]De[F]){const gt=De[L]+(qe[F]-De[F]);Be(gt,{animation:pe})}}}),he=fa(()=>{P&&m!==!1&&fe(!J)});N.useEffect(()=>{const pe=$p(()=>{Ge.current&&At()}),De=wa(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(it.current.children).forEach(gt=>{qe.observe(gt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[At]),N.useEffect(()=>{const pe=Array.from(it.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&m!==!1){const qe=pe[0],gt=pe[De-1],zr={root:Ge.current,threshold:.99},So=Ax=>{ie(!Ax[0].isIntersecting)},vv=new IntersectionObserver(So,zr);vv.observe(qe);const e7=Ax=>{Q(!Ax[0].isIntersecting)},dP=new IntersectionObserver(e7,zr);return dP.observe(gt),()=>{vv.disconnect(),dP.disconnect()}}},[P,m,J,c==null?void 0:c.length]),N.useEffect(()=>{X(!0)},[]),N.useEffect(()=>{At()}),N.useEffect(()=>{_e(DD!==H)},[_e,H]),N.useImperativeHandle(l,()=>({updateIndicator:At,updateScrollButtons:he}),[At,he]);const Bt=Y.jsx(Gie,B({},b,{className:Ce(V.indicator,b.className),ownerState:E,style:B({},H,b.style)}));let yr=0;const Te=N.Children.map(c,pe=>{if(!N.isValidElement(pe))return null;const De=pe.props.value===void 0?yr:pe.props.value;We.set(De,yr);const qe=De===A;return yr+=1,N.cloneElement(pe,B({fullWidth:T==="fullWidth",indicator:qe&&!U&&Bt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},yr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),lt=pe=>{const De=it.current,qe=rn(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let zr=g==="horizontal"?"ArrowLeft":"ArrowUp",So=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(zr="ArrowRight",So="ArrowLeft"),pe.key){case zr:pe.preventDefault(),Fv(De,qe,kD);break;case So:pe.preventDefault(),Fv(De,qe,PD);break;case"Home":pe.preventDefault(),Fv(De,null,PD);break;case"End":pe.preventDefault(),Fv(De,null,kD);break}},Pt=Le();return Y.jsxs(Fie,B({className:Ce(V.root,f),ownerState:E,ref:r,as:d},I,{children:[Pt.scrollButtonStart,Pt.scrollbarSizeListener,Y.jsxs($ie,{className:V.scroller,ownerState:E,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[Y.jsx(Vie,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:V.flexContainer,ownerState:E,onKeyDown:lt,ref:it,role:"tablist",children:Te}),U&&Bt]}),Pt.scrollButtonEnd]}))}),uRe=Wie;function Uie(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const jie=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Yie={standard:PV,filled:AV,outlined:zV},qie=e=>{const{classes:t}=e;return Xe({root:["root"]},Uie,t)},Xie=ge(gte,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zie=N.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:y,InputProps:m,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:I,required:P=!1,rows:k,select:L=!1,SelectProps:O,type:F,value:R,variant:$="outlined"}=n,E=me(n,jie),V=B({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:L,variant:$}),W=qie(V),z={};$==="outlined"&&(g&&typeof g.shrink<"u"&&(z.notched=g.shrink),z.label=S),L&&((!O||!O.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const U=z$(v),X=p&&U?`${U}-helper-text`:void 0,H=S&&U?`${U}-label`:void 0,ee=Yie[$],te=Y.jsx(ee,B({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:F,value:R,id:U,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:y},z,m));return Y.jsxs(Xie,B({className:Ce(W.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:$,ownerState:V},E,{children:[S!=null&&S!==""&&Y.jsx(Wte,B({htmlFor:U,id:H},g,{children:S})),L?Y.jsx(Tne,B({"aria-describedby":X,id:U,labelId:H,value:R,input:te},O,{children:o})):te,p&&Y.jsx(wte,B({id:X},d,{children:p}))]}))}),cRe=Zie;var LM={},$V={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($V);var k1=$V.exports,lS={};const Kie=r7(hQ);var LD;function D1(){return LD||(LD=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Kie}(lS)),lS}var Qie=k1;Object.defineProperty(LM,"__esModule",{value:!0});var Jie=LM.default=void 0,eae=Qie(D1()),tae=Y,rae=(0,eae.default)((0,tae.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"}),"Close");Jie=LM.default=rae;var EM={},nae=k1;Object.defineProperty(EM,"__esModule",{value:!0});var iae=EM.default=void 0,aae=nae(D1()),oae=Y,sae=(0,aae.default)((0,oae.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");iae=EM.default=sae;var RM={},lae=k1;Object.defineProperty(RM,"__esModule",{value:!0});var uae=RM.default=void 0,cae=lae(D1()),fae=Y,dae=(0,cae.default)((0,fae.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");uae=RM.default=dae;function Pr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:L1(e)?2:E1(e)?3:0}function ls(e,t){return ms(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function fy(e,t){return ms(e)===2?e.get(t):e[t]}function VV(e,t,r){var n=ms(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function GV(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function L1(e){return xae&&e instanceof Map}function E1(e){return Sae&&e instanceof Set}function dl(e){return e.o||e.t}function OM(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=WV(e);delete t[Nt];for(var r=Rc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=pae),Object.freeze(e),t&&ys(e,function(r,n){return NM(n,!0)},!0)),e}function pae(){Pr(2)}function zM(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Sa(e){var t=sC[e];return t||Pr(18,e),t}function HV(e,t){sC[e]||(sC[e]=t)}function iC(){return Jh}function uS(e,t){t&&(Sa("Patches"),e.u=[],e.s=[],e.v=t)}function hm(e){aC(e),e.p.forEach(vae),e.p=null}function aC(e){e===Jh&&(Jh=e.l)}function ED(e){return Jh={p:[],l:Jh,h:e,m:!0,_:0}}function vae(e){var t=e[Nt];t.i===0||t.i===1?t.j():t.g=!0}function cS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Sa("ES5").S(t,e,n),n?(r[Nt].P&&(hm(t),Pr(4)),Vi(e)&&(e=pm(t,e),t.l||vm(t,e)),t.u&&Sa("Patches").M(r[Nt].t,e,t.u,t.s)):e=pm(t,r,[]),hm(t),t.u&&t.v(t.u,t.s),e!==FM?e:void 0}function pm(e,t,r){if(zM(t))return t;var n=t[Nt];if(!n)return ys(t,function(s,l){return RD(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return vm(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=OM(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),ys(a,function(s,l){return RD(e,n,i,s,l,r,o)}),vm(e,i,!1),r&&e.u&&Sa("Patches").N(n,r,e.u,e.s)}return n.o}function RD(e,t,r,n,i,a,o){if($i(i)){var s=pm(e,i,a&&t&&t.i!==3&&!ls(t.R,n)?a.concat(n):void 0);if(VV(r,n,s),!$i(s))return;e.m=!1}else o&&r.add(i);if(Vi(i)&&!zM(i)){if(!e.h.D&&e._<1)return;pm(e,i),t&&t.A.l||vm(e,i)}}function vm(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&NM(t,r)}function fS(e,t){var r=e[Nt];return(r?dl(r):e)[t]}function OD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Go(e){e.P||(e.P=!0,e.l&&Go(e.l))}function dS(e){e.o||(e.o=OM(e.t))}function oC(e,t,r){var n=L1(t)?Sa("MapSet").F(t,r):E1(t)?Sa("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:iC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=ep;o&&(l=[s],u=zd);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Sa("ES5").J(t,r);return(r?r.A:iC()).p.push(n),n}function gae(e){return $i(e)||Pr(22,e),function t(r){if(!Vi(r))return r;var n,i=r[Nt],a=ms(r);if(i){if(!i.P&&(i.i<4||!Sa("ES5").K(i)))return i.t;i.I=!0,n=ND(r,a),i.I=!1}else n=ND(r,a);return ys(n,function(o,s){i&&fy(i.t,o)===s||VV(n,o,t(s))}),a===3?new Set(n):n}(e)}function ND(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return OM(e)}function yae(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Nt];return ep.get(l,a)},set:function(l){var u=this[Nt];ep.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Nt];if(!s.P)switch(s.i){case 5:n(s)&&Go(s);break;case 4:r(s)&&Go(s)}}}function r(a){for(var o=a.t,s=a.k,l=Rc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Nt){var f=o[c];if(f===void 0&&!ls(o,c))return!0;var d=s[c],h=d&&d[Nt];if(h?h.t!==f:!GV(d,f))return!0}}var p=!!o[Nt];return l.length!==Rc(o).length+(p?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l1?y-1:0),x=1;x1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=Sa("Patches").$;return $i(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),$n=new _ae,Wp=$n.produce,UV=$n.produceWithPatches.bind($n);$n.setAutoFreeze.bind($n);$n.setUseProxies.bind($n);var FD=$n.applyPatches.bind($n);$n.createDraft.bind($n);$n.finishDraft.bind($n);function tp(e){"@babel/helpers - typeof";return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(e)}function wae(e,t){if(tp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cae(e){var t=wae(e,"string");return tp(t)==="symbol"?t:String(t)}function Tae(e,t,r){return t=Cae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VD(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Hr(1));return r(jV)(e,t)}if(typeof e!="function")throw new Error(Hr(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(Hr(3));return a}function f(v){if(typeof v!="function")throw new Error(Hr(4));if(l)throw new Error(Hr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(Hr(6));g=!1,u();var m=s.indexOf(v);s.splice(m,1),o=null}}}function d(v){if(!Aae(v))throw new Error(Hr(7));if(typeof v.type>"u")throw new Error(Hr(8));if(l)throw new Error(Hr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,y=0;y"u")throw new Error(Hr(12));if(typeof r(void 0,{type:gm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Hr(13))})}function YV(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(Hr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function ym(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var u=r[l];return l>0&&(r.splice(l,1),r.unshift(u)),u.value}return mm}function i(s,l){n(s)===mm&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Dae=function(t,r){return t===r};function Lae(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]-1;return r&&n}function Up(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function $M(){for(var e=[],t=0;t0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function hoe(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var QD=xs;function r4(e,t){if(e===t||!(QD(e)&&QD(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},voe=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function eL(e){if(!xs(e))return e;for(var t=tr({},e),r=0,n=Object.entries(t);r"u"&&s===JD&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return _m(t,null,function(){var _,b,w,C,A,T,M,I,P,k,L,O,F,R,$,E,V,W,z,U,X,H,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,it,at,At;return xm(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,L=k===void 0?new Headers(y.headers):k,O=I.params,F=O===void 0?void 0:O,R=I.responseHandler,$=R===void 0?v??"json":R,E=I.validateStatus,V=E===void 0?g??poe:E,W=I.timeout,z=W===void 0?p:W,U=ZD(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=tr(da(tr({},y),{signal:_}),U),L=new Headers(eL(L)),H=X,[4,a(L,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:H.headers=Be.sent()||L,ee=function(Mt){return typeof Mt=="object"&&(xs(Mt)||Array.isArray(Mt)||typeof Mt.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),F&&(te=~P.indexOf("?")?"&":"?",ie=l?l(F):new URLSearchParams(eL(F)),P+=te+ie),P=foe(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=z&&setTimeout(function(){fe=!0,S.abort()},z),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,it="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([m(J,$).then(function(Mt){return Ge=Mt},function(Mt){return at=Mt}),We.text().then(function(Mt){return it=Mt},function(){})])];case 8:if(Be.sent(),at)throw at;return[3,10];case 9:return At=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:it,error:String(At)},meta:M}];case 10:return[2,V(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function m(x,S){return _m(this,null,function(){var _;return xm(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var tL=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),GM=_n("__rtkq/focused"),n4=_n("__rtkq/unfocused"),HM=_n("__rtkq/online"),i4=_n("__rtkq/offline"),Ta;(function(e){e.query="query",e.mutation="mutation"})(Ta||(Ta={}));function a4(e){return e.type===Ta.query}function goe(e){return e.type===Ta.mutation}function o4(e,t,r,n,i,a){return yoe(e)?e(t,r,n,i).map(fC).map(a):Array.isArray(e)?e.map(fC).map(a):[]}function yoe(e){return typeof e=="function"}function fC(e){return typeof e=="string"?{type:e}:e}function yS(e){return e!=null}var np=Symbol("forceQueryFn"),dC=function(e){return typeof e[np]=="function"};function moe(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:m,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:y,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. - Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. - See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return Sm(Sm([],S(o)),S(s)).filter(yS)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(yS)}}function y(){return function(S){return Object.values(s.get(S)||{}).filter(yS)}}function m(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,I=A.forceRefetch,P=A.subscriptionOptions,k=np,L=A[k];return function(O,F){var R,$,E=t({queryArgs:w,endpointDefinition:_,endpointName:S}),V=r((R={type:"query",subscribe:M,forceRefetch:I,subscriptionOptions:P,endpointName:S,originalArgs:w,queryCacheKey:E},R[np]=L,R)),W=i.endpoints[S].select(w),z=O(V),U=W(F()),X=z.requestId,H=z.abort,ee=U.requestId!==X,te=($=o.get(O))==null?void 0:$[E],ie=function(){return W(F())},re=Object.assign(L?z.then(ie):ee&&!te?Promise.resolve(U):Promise.all([te,z]).then(ie),{arg:w,requestId:X,subscriptionOptions:P,queryCacheKey:E,abort:H,unwrap:function(){return _m(this,null,function(){var J;return xm(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return O(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&O(u({queryCacheKey:E,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,O(f({endpointName:S,requestId:X,queryCacheKey:E,options:J}))}});if(!te&&!ee&&!L){var Q=o.get(O)||{};Q[E]=re,o.set(O,Q),re.then(function(){delete Q[E],Object.keys(Q).length||o.delete(O)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,I){var P=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),k=M(P),L=k.requestId,O=k.abort,F=k.unwrap,R=k.unwrap().then(function(W){return{data:W}}).catch(function(W){return{error:W}}),$=function(){M(c({requestId:L,fixedCacheKey:T}))},E=Object.assign(R,{arg:k.arg,requestId:L,abort:O,unwrap:F,unsubscribe:$,reset:$}),V=s.get(M)||{};return s.set(M,V),V[L]=E,E.then(function(){delete V[L],Object.keys(V).length||s.delete(M)}),T&&(V[T]=E,E.then(function(){V[T]===E&&(delete V[T],Object.keys(V).length||s.delete(M))})),E}}}}function rL(e){return e}function xoe(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===$t.uninitialized)return M;if("data"in T)if(Vi(T.data)){var I=UV(T.data,_),P=I[1],k=I[2];(C=M.patches).push.apply(C,P),(A=M.inversePatches).push.apply(A,k)}else{var L=_(T.data);M.patches.push({op:"replace",path:[],value:L}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[np]=function(){return{data:_}},w)))}},c=function(x,S){return _m(t,[x,S],function(_,b){var w,C,A,T,M,I,P,k,L,O,F,R,$,E,V,W,z,U,X=b.signal,H=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return xm(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=rL,A=void 0,T={signal:X,abort:H,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[np]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new tL(A.error,A.meta);return F=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,F.apply(void 0,[J.sent(),(z={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},z[Bd]=!0,z)])];case 8:if(R=J.sent(),$=R,!($ instanceof tL))return[3,12];E=rL,w.query&&w.transformErrorResponse&&(E=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),V=ee,[4,E($.value,$.meta,_.originalArgs)];case 10:return[2,V.apply(void 0,[J.sent(),(U={baseQueryMeta:$.meta},U[Bd]=!0,U)])];case 11:return W=J.sent(),$=W,[3,12];case 12:throw typeof process<"u",console.error($),$;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,I=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return I?I===!0||(Number(new Date)-Number(M))/1e3>=I:!1}var d=YD(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[Bd]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return dC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||a4(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=YD(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[Bd]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&b(T())}else b(T(!1))}};function y(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function m(x,S){return{matchPending:ph($M(x),y(S)),matchFulfilled:ph(pu(x),y(S)),matchRejected:ph(rp(x),y(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:m}}function s4(e,t,r,n){return o4(r[e.meta.arg.endpointName][t],pu(e)?e.payload:void 0,O1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function $v(e,t,r){var n=e[t];n&&r(n)}function ip(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function nL(e,t,r){var n=e[ip(t)];n&&r(n)}var td={};function Soe(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=_n(t+"/resetApiState"),d=Eu({name:t+"/queries",initialState:td,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:gS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;$v(_,C,function(T){T.data=FD(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=dC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:$t.uninitialized,endpointName:A.endpointName})),$v(b,A.queryCacheKey,function(P){P.status=$t.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;$v(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!dC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=$t.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,L=C.baseQueryMeta,O=C.requestId,F=Wp(T.data,function(R){return I(R,A,{arg:k.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:P,requestId:O})});T.data=F}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?r4($i(T.data)?hae(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,I=w.error,P=w.payload;$v(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=$t.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A4&&r.slice(0,4)==="data"&&use.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(vL,hse);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!vL.test(a)){let o=a.replace(cse,dse);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=UM}return new i(n,t)}function dse(e){return"-"+e.toLowerCase()}function hse(e){return e.charAt(1).toUpperCase()}const pse={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vse=u4([d4,f4,v4,g4,sse],"html"),y4=u4([d4,f4,v4,g4,lse],"svg");function gse(e){return e.join(" ").trim()}var jM={exports:{}},gL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yse=/\n/g,mse=/^\s*/,xse=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Sse=/^:\s*/,bse=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_se=/^[;\s]*/,wse=/^\s+|\s+$/g,Cse=` -`,yL="/",mL="*",bl="",Tse="comment",Ase="declaration",Mse=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(yse);v&&(r+=v.length);var g=p.lastIndexOf(Cse);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(mse)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(yL!=e.charAt(0)||mL!=e.charAt(1))){for(var v=2;bl!=e.charAt(v)&&(mL!=e.charAt(v)||yL!=e.charAt(v+1));)++v;if(v+=2,bl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:Tse,comment:g})}}function d(){var p=a(),v=l(xse);if(v){if(f(),!l(Sse))return s("property missing ':'");var g=l(bse),y=p({type:Ase,property:xL(v[0].replace(gL,bl)),value:g?xL(g[0].replace(gL,bl)):bl});return l(_se),y}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function xL(e){return e?e.replace(wse,bl):bl}var Ise=Mse;function m4(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Ise(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Dse(e){const t=YM(e),r=x4(e);if(t&&r)return{start:t,end:r}}function vh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?SL(e.position):"start"in e||"end"in e?SL(e):"line"in e||"column"in e?vC(e):""}function vC(e){return bL(e&&e.line)+":"+bL(e&&e.column)}function SL(e){return vC(e&&e.start)+"-"+vC(e&&e.end)}function bL(e){return e&&typeof e=="number"?e:1}class un extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=vh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}un.prototype.file="";un.prototype.name="";un.prototype.reason="";un.prototype.message="";un.prototype.stack="";un.prototype.column=void 0;un.prototype.line=void 0;un.prototype.ancestors=void 0;un.prototype.cause=void 0;un.prototype.fatal=void 0;un.prototype.place=void 0;un.prototype.ruleId=void 0;un.prototype.source=void 0;const qM={}.hasOwnProperty,Lse=new Map,Ese=/[A-Z]/g,Rse=/-([a-z])/g,Ose=new Set(["table","tbody","thead","tfoot","tr"]),Nse=new Set(["td","th"]);function zse(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Fse(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Bse(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?y4:vse,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=b4(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function b4(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=y4,e.schema=i),e.ancestors.push(t);let a=$se(e,t);const o=Vse(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Ose.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!ise(l):!0})),qM.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Bse(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Fse(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=YM(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $se(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Lse;for(;++n-1&&e.test(String.fromCharCode(r))}}const Jse={'"':"quot","&":"amp","<":"lt",">":"gt"};function ele(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+Jse[r]+";"}}function tle(e,t){const r=ele(gu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function gu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const rle={};function nle(e,t){const r=t||rle,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return w4(e,n,i)}function w4(e,t,r){if(ile(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _L(e.children,t,r)}return Array.isArray(e)?_L(e,t,r):""}function _L(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?(Aa(e,e.length,0,t),e):t}const CL={}.hasOwnProperty;function ale(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function Nc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Et(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return vt(l)?(e.enter(r),s(l)):t(l)}function s(l){return vt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(y(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function m(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function dle(e,t,r){return Et(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function AL(e){if(e===null||wn(e)||Qse(e))return 1;if(Kse(e))return 2}function ZM(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);ML(f,-l),ML(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ni(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ni(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ni(u,ZM(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ni(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ni(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Aa(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&&vt(b)?Et(e,m,"linePrefix",a+1)(b):m(b)}function m(b){return b===null||Ve(b)?e.check(IL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(b)?(e.exit("codeFlowValue"),m(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(L){return b.enter("lineEnding"),b.consume(L),b.exit("lineEnding"),M}function M(L){return b.enter("codeFencedFence"),vt(L)?Et(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):I(L)}function I(L){return L===s?(b.enter("codeFencedFenceSequence"),P(L)):C(L)}function P(L){return L===s?(A++,b.consume(L),P):A>=o?(b.exit("codeFencedFenceSequence"),vt(L)?Et(b,k,"whitespace")(L):k(L)):C(L)}function k(L){return L===null||Ve(L)?(b.exit("codeFencedFence"),w(L)):C(L)}}}function Cle(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const wS={name:"codeIndented",tokenize:Ale},Tle={tokenize:Mle,partial:!0};function Ale(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Et(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Ve(u)?e.attempt(Tle,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Mle(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Et(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ve(o)?i(o):r(o)}}const Ile={name:"codeText",tokenize:Dle,resolve:Ple,previous:kle};function Ple(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function P4(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(y){return y===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(y),e.exit(a),d):y===null||y===32||y===41||gC(y)?r(y):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function d(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),d(y)):y===null||y===60||Ve(y)?r(y):(e.consume(y),y===92?p:h)}function p(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function v(y){return!c&&(y===null||y===41||wn(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(y)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Ve(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Ve(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!vt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function D4(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):Ve(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Et(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Ve(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function gh(e,t){let r;return n;function n(i){return Ve(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):vt(i)?Et(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Ble={name:"definition",tokenize:$le},Fle={tokenize:Vle,partial:!0};function $le(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return k4.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Nc(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return wn(h)?gh(e,u)(h):u(h)}function u(h){return P4(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Fle,f,f)(h)}function f(h){return vt(h)?Et(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Vle(e,t,r){return n;function n(s){return wn(s)?gh(e,i)(s):r(s)}function i(s){return D4(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return vt(s)?Et(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ve(s)?t(s):r(s)}}const Gle={name:"hardBreakEscape",tokenize:Hle};function Hle(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Wle={name:"headingAtx",tokenize:jle,resolve:Ule};function Ule(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Aa(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function jle(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||wn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(c)?(e.exit("atxHeading"),t(c)):vt(c)?Et(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||wn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Yle=["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"],kL=["pre","script","style","textarea"],qle={name:"htmlFlow",tokenize:Qle,resolveTo:Kle,concrete:!0},Xle={tokenize:eue,partial:!0},Zle={tokenize:Jle,partial:!0};function Kle(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function Qle(e,t,r){const n=this;let i,a,o,s,l;return u;function u(z){return c(z)}function c(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),f}function f(z){return z===33?(e.consume(z),d):z===47?(e.consume(z),a=!0,v):z===63?(e.consume(z),i=3,n.interrupt?t:E):sa(z)?(e.consume(z),o=String.fromCharCode(z),g):r(z)}function d(z){return z===45?(e.consume(z),i=2,h):z===91?(e.consume(z),i=5,s=0,p):sa(z)?(e.consume(z),i=4,n.interrupt?t:E):r(z)}function h(z){return z===45?(e.consume(z),n.interrupt?t:E):r(z)}function p(z){const U="CDATA[";return z===U.charCodeAt(s++)?(e.consume(z),s===U.length?n.interrupt?t:I:p):r(z)}function v(z){return sa(z)?(e.consume(z),o=String.fromCharCode(z),g):r(z)}function g(z){if(z===null||z===47||z===62||wn(z)){const U=z===47,X=o.toLowerCase();return!U&&!a&&kL.includes(X)?(i=1,n.interrupt?t(z):I(z)):Yle.includes(o.toLowerCase())?(i=6,U?(e.consume(z),y):n.interrupt?t(z):I(z)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(z):a?m(z):x(z))}return z===45||Rn(z)?(e.consume(z),o+=String.fromCharCode(z),g):r(z)}function y(z){return z===62?(e.consume(z),n.interrupt?t:I):r(z)}function m(z){return vt(z)?(e.consume(z),m):T(z)}function x(z){return z===47?(e.consume(z),T):z===58||z===95||sa(z)?(e.consume(z),S):vt(z)?(e.consume(z),x):T(z)}function S(z){return z===45||z===46||z===58||z===95||Rn(z)?(e.consume(z),S):_(z)}function _(z){return z===61?(e.consume(z),b):vt(z)?(e.consume(z),_):x(z)}function b(z){return z===null||z===60||z===61||z===62||z===96?r(z):z===34||z===39?(e.consume(z),l=z,w):vt(z)?(e.consume(z),b):C(z)}function w(z){return z===l?(e.consume(z),l=null,A):z===null||Ve(z)?r(z):(e.consume(z),w)}function C(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||wn(z)?_(z):(e.consume(z),C)}function A(z){return z===47||z===62||vt(z)?x(z):r(z)}function T(z){return z===62?(e.consume(z),M):r(z)}function M(z){return z===null||Ve(z)?I(z):vt(z)?(e.consume(z),M):r(z)}function I(z){return z===45&&i===2?(e.consume(z),O):z===60&&i===1?(e.consume(z),F):z===62&&i===4?(e.consume(z),V):z===63&&i===3?(e.consume(z),E):z===93&&i===5?(e.consume(z),$):Ve(z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Xle,W,P)(z)):z===null||Ve(z)?(e.exit("htmlFlowData"),P(z)):(e.consume(z),I)}function P(z){return e.check(Zle,k,W)(z)}function k(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),L}function L(z){return z===null||Ve(z)?P(z):(e.enter("htmlFlowData"),I(z))}function O(z){return z===45?(e.consume(z),E):I(z)}function F(z){return z===47?(e.consume(z),o="",R):I(z)}function R(z){if(z===62){const U=o.toLowerCase();return kL.includes(U)?(e.consume(z),V):I(z)}return sa(z)&&o.length<8?(e.consume(z),o+=String.fromCharCode(z),R):I(z)}function $(z){return z===93?(e.consume(z),E):I(z)}function E(z){return z===62?(e.consume(z),V):z===45&&i===2?(e.consume(z),E):I(z)}function V(z){return z===null||Ve(z)?(e.exit("htmlFlowData"),W(z)):(e.consume(z),V)}function W(z){return e.exit("htmlFlow"),t(z)}}function Jle(e,t,r){const n=this;return i;function i(o){return Ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function eue(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(N1,t,r)}}const tue={name:"htmlText",tokenize:rue};function rue(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),_):E===63?(e.consume(E),x):sa(E)?(e.consume(E),C):r(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),a=0,p):sa(E)?(e.consume(E),m):r(E)}function c(E){return E===45?(e.consume(E),h):r(E)}function f(E){return E===null?r(E):E===45?(e.consume(E),d):Ve(E)?(o=f,F(E)):(e.consume(E),f)}function d(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?O(E):E===45?d(E):f(E)}function p(E){const V="CDATA[";return E===V.charCodeAt(a++)?(e.consume(E),a===V.length?v:p):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),g):Ve(E)?(o=v,F(E)):(e.consume(E),v)}function g(E){return E===93?(e.consume(E),y):v(E)}function y(E){return E===62?O(E):E===93?(e.consume(E),y):v(E)}function m(E){return E===null||E===62?O(E):Ve(E)?(o=m,F(E)):(e.consume(E),m)}function x(E){return E===null?r(E):E===63?(e.consume(E),S):Ve(E)?(o=x,F(E)):(e.consume(E),x)}function S(E){return E===62?O(E):x(E)}function _(E){return sa(E)?(e.consume(E),b):r(E)}function b(E){return E===45||Rn(E)?(e.consume(E),b):w(E)}function w(E){return Ve(E)?(o=w,F(E)):vt(E)?(e.consume(E),w):O(E)}function C(E){return E===45||Rn(E)?(e.consume(E),C):E===47||E===62||wn(E)?A(E):r(E)}function A(E){return E===47?(e.consume(E),O):E===58||E===95||sa(E)?(e.consume(E),T):Ve(E)?(o=A,F(E)):vt(E)?(e.consume(E),A):O(E)}function T(E){return E===45||E===46||E===58||E===95||Rn(E)?(e.consume(E),T):M(E)}function M(E){return E===61?(e.consume(E),I):Ve(E)?(o=M,F(E)):vt(E)?(e.consume(E),M):A(E)}function I(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,P):Ve(E)?(o=I,F(E)):vt(E)?(e.consume(E),I):(e.consume(E),k)}function P(E){return E===i?(e.consume(E),i=void 0,L):E===null?r(E):Ve(E)?(o=P,F(E)):(e.consume(E),P)}function k(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||wn(E)?A(E):(e.consume(E),k)}function L(E){return E===47||E===62||wn(E)?A(E):r(E)}function O(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function F(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return vt(E)?Et(e,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):$(E)}function $(E){return e.enter("htmlTextData"),o(E)}}const KM={name:"labelEnd",tokenize:lue,resolveTo:sue,resolveAll:oue},nue={tokenize:uue},iue={tokenize:cue},aue={tokenize:fue};function oue(e){let t=-1;for(;++t=3&&(u===null||Ve(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),vt(u)?Et(e,s,"whitespace")(u):s(u))}}const dn={name:"list",tokenize:Sue,continuation:{tokenize:bue},exit:wue},mue={tokenize:Cue,partial:!0},xue={tokenize:_ue,partial:!0};function Sue(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:yC(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(hy,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return yC(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(N1,n.interrupt?r:c,e.attempt(mue,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return vt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function bue(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(N1,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Et(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!vt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(xue,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Et(e,e.attempt(dn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function _ue(e,t,r){const n=this;return Et(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function wue(e){e.exit(this.containerState.type)}function Cue(e,t,r){const n=this;return Et(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!vt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const DL={name:"setextUnderline",tokenize:Aue,resolveTo:Tue};function Tue(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,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}function Aue(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),vt(u)?Et(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Mue={tokenize:Iue};function Iue(e){const t=this,r=e.attempt(N1,n,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ele,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Pue={resolveAll:E4()},kue=L4("string"),Due=L4("text");function L4(e){return{tokenize:t,resolveAll:E4(e==="text"?Lue:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Oue(e,t){let r=-1;const n=[];let i;for(;++r0){const Bt=Le.tokenStack[Le.tokenStack.length-1];(Bt[1]||EL).call(Le,void 0,Bt[0])}for(le.position={start:Co(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Co(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function lce(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function uce(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function N4(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function cce(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return N4(e,t);const i={src:gu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function fce(e,t){const r={src:gu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function dce(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function hce(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return N4(e,t);const i={href:gu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function pce(e,t){const r={href:gu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vce(e,t,r){const n=e.all(t),i=r?gce(r):z4(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function yce(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=YM(t.children[1]),l=x4(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function _ce(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(NL(t.slice(i),i>0,!1)),a.join("")}function NL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===RL||a===OL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===RL||a===OL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Tce(e,t){const r={type:"text",value:Cce(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ace(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Mce={blockquote:rce,break:nce,code:ice,delete:ace,emphasis:oce,footnoteReference:sce,heading:lce,html:uce,imageReference:cce,image:fce,inlineCode:dce,linkReference:hce,link:pce,listItem:vce,list:yce,paragraph:mce,root:xce,strong:Sce,table:bce,tableCell:wce,tableRow:_ce,text:Tce,thematicBreak:Ace,toml:Wv,yaml:Wv,definition:Wv,footnoteDefinition:Wv};function Wv(){}const B4=-1,z1=0,Cm=1,Tm=2,QM=3,JM=4,e2=5,t2=6,F4=7,$4=8,zL=typeof self=="object"?self:globalThis,Ice=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case z1:case B4:return r(o,i);case Cm:{const s=r([],i);for(const l of o)s.push(n(l));return s}case Tm:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case QM:return r(new Date(o),i);case JM:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case e2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case t2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case F4:{const{name:s,message:l}=o;return r(new zL[s](l),i)}case $4:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new zL[a](o),i)};return n},BL=e=>Ice(new Map,e)(0),Ru="",{toString:Pce}={},{keys:kce}=Object,rd=e=>{const t=typeof e;if(t!=="object"||!e)return[z1,t];const r=Pce.call(e).slice(8,-1);switch(r){case"Array":return[Cm,Ru];case"Object":return[Tm,Ru];case"Date":return[QM,Ru];case"RegExp":return[JM,Ru];case"Map":return[e2,Ru];case"Set":return[t2,Ru]}return r.includes("Array")?[Cm,r]:r.includes("Error")?[F4,r]:[Tm,r]},Uv=([e,t])=>e===z1&&(t==="function"||t==="symbol"),Dce=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=rd(o);switch(s){case z1:{let c=o;switch(l){case"bigint":s=$4,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([B4],o)}return i([s,c],o)}case Cm:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case Tm:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of kce(o))(e||!Uv(rd(o[d])))&&c.push([a(d),a(o[d])]);return f}case QM:return i([s,o.toISOString()],o);case JM:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case e2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(Uv(rd(d))||Uv(rd(h))))&&c.push([a(d),a(h)]);return f}case t2:{const c=[],f=i([s,c],o);for(const d of o)(e||!Uv(rd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},FL=(e,{json:t,lossy:r}={})=>{const n=[];return Dce(!(t||r),!!t,new Map,n)(e),n},Am=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?BL(FL(e,t)):structuredClone(e):(e,t)=>BL(FL(e,t));function Lce(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Ece(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Rce(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Lce,n=e.options.footnoteBackLabel||Ece,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let m=typeof r=="string"?r:r(l,h);typeof m=="string"&&(m={type:"text",value:m}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const m=g.children[g.children.length-1];m&&m.type==="text"?m.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Am(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const V4=function(e){if(e==null)return Bce;if(typeof e=="function")return B1(e);if(typeof e=="object")return Array.isArray(e)?Oce(e):Nce(e);if(typeof e=="string")return zce(e);throw new Error("Expected function, string, or object as test")};function Oce(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=G4,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Hce(r(l,c)),h[0]===$L))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==Vce)for(v=(n?y.children.length:-1)+o,g=c.concat(y);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function VL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function GL(e,t){const r=Uce(e,t),n=r.one(e,void 0),i=Rce(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function Zce(e,t){return e&&"run"in e?async function(r,n){const i=GL(r,t);await e.run(i,n)}:function(r){return GL(r,t||e)}}function HL(e){if(e)throw e}var py=Object.prototype.hasOwnProperty,W4=Object.prototype.toString,WL=Object.defineProperty,UL=Object.getOwnPropertyDescriptor,jL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):W4.call(t)==="[object Array]"},YL=function(t){if(!t||W4.call(t)!=="[object Object]")return!1;var r=py.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&py.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||py.call(t,i)},qL=function(t,r){WL&&r.name==="__proto__"?WL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},XL=function(t,r){if(r==="__proto__")if(py.call(t,r)){if(UL)return UL(t,r).value}else return;return t[r]},Kce=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const ta={basename:efe,dirname:tfe,extname:rfe,join:nfe,sep:"/"};function efe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yp(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function tfe(e){if(Yp(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function rfe(e){Yp(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function nfe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function afe(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function Yp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ofe={cwd:sfe};function sfe(){return"/"}function bC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lfe(e){if(typeof e=="string")e=new URL(e);else if(!bC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ufe(e)}function ufe(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=c;const v=n[d][1];SC(v)&&SC(h)&&(h=TS(!0,v,h)),n[d]=[u,h,...p]}}}}const hfe=new r2().freeze();function PS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function DS(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function KL(e){if(!SC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function QL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jv(e){return pfe(e)?e:new U4(e)}function pfe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vfe(e){return typeof e=="string"||gfe(e)}function gfe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JL={}.hasOwnProperty,yfe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",eE=[],tE={allowDangerousHtml:!0},mfe=/^(https?|ircs?|mailto|xmpp)$/i,xfe=[{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 pRe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||eE,l=e.remarkPlugins||eE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tE}:tE,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Sfe,h=hfe().use(tce).use(l).use(Zce,u).use(s),p=new U4;typeof n=="string"&&(p.value=n);for(const m of xfe)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+yfe+m.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),H4(g,y),zse(g,{Fragment:Y.Fragment,components:a,ignoreInvalidStyle:!0,jsx:Y.jsx,jsxs:Y.jsxs,passKeys:!0,passNode:!0});function y(m,x,S){if(m.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:m.value},x;if(m.type==="element"){let _;for(_ in _S)if(JL.call(_S,_)&&JL.call(m.properties,_)){const b=m.properties[_],w=_S[_];(w===null||w.includes(m.tagName))&&(m.properties[_]=d(String(b||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):o?o.includes(m.tagName):!1;if(!_&&r&&typeof x=="number"&&(_=!r(m,x,S)),_&&S&&typeof x=="number")return f&&m.children?S.children.splice(x,1,...m.children):S.children.splice(x,1),x}}}function Sfe(e){return tle(e,mfe)}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var _C=function(e,t){return _C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},_C(e,t)};function G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_C(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bfe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),_fe=function(){function e(){this.browser=new bfe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),hl=new _fe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(hl.wxa=!0,hl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?hl.worker=!0:typeof navigator>"u"?(hl.node=!0,hl.svgSupported=!0):wfe(navigator.userAgent,hl);function wfe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const et=hl;var n2=12,j4="sans-serif",Ss=n2+"px "+j4,Cfe=20,Tfe=100,Afe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Mfe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Zfe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?aE(s,o):aE(o,s))}function J4(e){return e.nodeName.toUpperCase()==="CANVAS"}var Kfe=/([&<>"'])/g,Qfe={"&":"&","<":"<",">":">",'"':""","'":"'"};function pn(e){return e==null?"":(e+"").replace(Kfe,function(t,r){return Qfe[r]})}var Jfe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ES=[],ede=et.browser.firefox&&+et.browser.version.split(".")[0]<39;function PC(e,t,r,n){return r=r||{},n?sE(e,t,r):ede&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):sE(e,t,r),r}function sE(e,t,r){if(et.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(J4(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(IC(ES,e,n,i)){r.zrX=ES[0],r.zrY=ES[1];return}}r.zrX=r.zrY=0}function c2(e){return e||window.event}function Zn(e,t,r){if(t=c2(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&PC(e,o,t,r)}else{PC(e,t,t,r);var a=tde(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Jfe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function tde(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function kC(e,t,r,n){e.addEventListener(t,r,n)}function rde(e,t,r,n){e.removeEventListener(t,r,n)}var oo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function lE(e){return e.which===2||e.which===3}var nde=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=uE(n)/uE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ide(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function vi(){return[1,0,0,1,0,0]}function G1(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function f2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Xa(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Ia(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function mu(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function d2(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Af(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function ade(e){var t=vi();return f2(t,e),t}var ode=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Ee=ode;var qv=Math.min,Xv=Math.max,Bs=new Ee,Fs=new Ee,$s=new Ee,Vs=new Ee,nd=new Ee,id=new Ee,sde=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=qv(t.x,this.x),n=qv(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xv(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xv(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=vi();return Ia(a,a,[-r.x,-r.y]),d2(a,a,[n,i]),Ia(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ap&&(p=x,vp&&(p=S,y=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Bs.x=$s.x=r.x,Bs.y=Vs.y=r.y,Fs.x=Vs.x=r.x+r.width,Fs.y=$s.y=r.y+r.height,Bs.transform(n),Vs.transform(n),Fs.transform(n),$s.transform(n),t.x=qv(Bs.x,Fs.x,$s.x,Vs.x),t.y=qv(Bs.y,Fs.y,$s.y,Vs.y);var l=Xv(Bs.x,Fs.x,$s.x,Vs.x),u=Xv(Bs.y,Fs.y,$s.y,Vs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=sde;var eG="silent";function lde(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:ude}}function ude(){oo(this.event)}var cde=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(xi),ad=function(){function e(t,r){this.x=t,this.y=r}return e}(),fde=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],OS=new Ne(0,0,0,0),tG=function(e){G(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ad(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new cde,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Ufe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(fde,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=rG(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ad(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ad(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=lde(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ad(r,n);if(cE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(OS.copy(d.getBoundingRect()),d.transform&&OS.applyTransform(d.transform),OS.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function dde(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?eG:!0}return!1}function cE(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=dde(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==eG)){t.target=o;break}}}function rG(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const hde=tG;var nG=32,od=7;function pde(e){for(var t=0;e>=nG;)t|=e&1,e>>=1;return e+t}function fE(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function vde(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function NS(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function zS(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function gde(e,t){var r=od,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=od||w>=od);if(C)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(y=0;y=0;y--)e[b+y]=e[_+y];e[S]=o[x];return}for(var w=r;;){var C=0,A=0,T=!1;do if(t(o[x],e[m])<0){if(e[S--]=e[m--],C++,A=0,--p===0){T=!0;break}}else if(e[S--]=o[x--],A++,C=0,--g===1){T=!0;break}while((C|A)=0;y--)e[b+y]=e[_+y];if(p===0){T=!0;break}}if(e[S--]=o[x--],--g===1){T=!0;break}if(A=g-NS(e[m],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,b=S+1,_=x+1,y=0;y=od||A>=od);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,m-=p,b=S+1,_=m+1,y=p-1;y>=0;y--)e[b+y]=e[_+y];e[S]=o[x]}else{if(g===0)throw new Error;for(_=S-(g-1),y=0;ys&&(l=s),dE(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ln=1,Fd=2,ic=4,hE=!1;function BS(){hE||(hE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var yde=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(BS(),c.z=0),isNaN(c.z2)&&(BS(),c.z2=0),isNaN(c.zlevel)&&(BS(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const mde=yde;var iG;iG=et.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const DC=iG;var xy={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xy.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xy.bounceIn(e*2)*.5:xy.bounceOut(e*2-1)*.5+.5}};const aG=xy;var Zv=Math.pow,cs=Math.sqrt,Pm=1e-8,oG=1e-4,vE=cs(3),Kv=1/3,la=yu(),ii=yu(),zc=yu();function qo(e){return e>-Pm&&ePm||e<-Pm}function dr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function gE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function km(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(qo(c)&&qo(f))if(qo(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(qo(v)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[h++]=p),y>=0&&y<=1&&(a[h++]=y)}else if(v>0){var m=cs(v),x=c*s+1.5*o*(-f+m),S=c*s+1.5*o*(-f-m);x<0?x=-Zv(-x,Kv):x=Zv(x,Kv),S<0?S=-Zv(-S,Kv):S=Zv(S,Kv);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*cs(c*c*c)),b=Math.acos(_)/3,w=cs(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),y=(-s+w*(C+vE*Math.sin(b)))/(3*o),A=(-s+w*(C-vE*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[h++]=p),y>=0&&y<=1&&(a[h++]=y),A>=0&&A<=1&&(a[h++]=A)}}return h}function lG(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(qo(o)){if(sG(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(qo(c))i[0]=-a/(2*o);else if(c>0){var f=cs(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function _s(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function uG(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,y;la[0]=l,la[1]=u;for(var m=0;m<1;m+=.05)ii[0]=dr(e,r,i,o,m),ii[1]=dr(t,n,a,s,m),g=Gl(la,ii),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(qo(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=cs(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function cG(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function sp(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function fG(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;la[0]=o,la[1]=s;for(var d=0;d<1;d+=.05){ii[0]=xr(e,r,i,d),ii[1]=xr(t,n,a,d);var h=Gl(la,ii);h=0&&h=1?1:km(0,n,a,1,l,s)&&dr(0,i,o,1,s[0])}}}var wde=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Jt,this.ondestroy=t.ondestroy||Jt,this.onrestart=t.onrestart||Jt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ye(t)?t:aG[t]||h2(t)},e}();const Cde=wde;var dG=function(){function e(t){this.value=t}return e}(),Tde=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new dG(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ade=function(){function e(t){this._list=new Tde,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new dG(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const qp=Ade;var yE={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function zi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Mde(e){return e=Math.round(e),e<0?0:e>360?360:e}function lp(e){return e<0?0:e>1?1:e}function FS(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?zi(parseFloat(t)/100*255):zi(parseInt(t,10))}function Hl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?lp(parseFloat(t)/100):lp(parseFloat(t))}function $S(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Xo(e,t,r){return e+(t-e)*r}function Xn(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function EC(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var hG=new qp(20),Qv=null;function Nu(e,t){Qv&&EC(Qv,t),Qv=hG.put(e,Qv||t.slice())}function zn(e,t){if(e){t=t||[];var r=hG.get(e);if(r)return EC(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in yE)return EC(t,yE[n]),Nu(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Xn(t,0,0,0,1);return}return Xn(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Nu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Xn(t,0,0,0,1);return}return Xn(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Nu(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xn(t,+u[0],+u[1],+u[2],1):Xn(t,0,0,0,1);c=Hl(u.pop());case"rgb":if(u.length>=3)return Xn(t,FS(u[0]),FS(u[1]),FS(u[2]),u.length===3?c:Hl(u[3])),Nu(e,t),t;Xn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Xn(t,0,0,0,1);return}return u[3]=Hl(u[3]),RC(u,t),Nu(e,t),t;case"hsl":if(u.length!==3){Xn(t,0,0,0,1);return}return RC(u,t),Nu(e,t),t;default:return}}Xn(t,0,0,0,1)}}function RC(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Hl(e[1]),i=Hl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Xn(t,zi($S(o,a,r+1/3)*255),zi($S(o,a,r)*255),zi($S(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ide(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function OC(e,t){var r=zn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Za(r,r.length===4?"rgba":"rgb")}}function VS(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=zi(Xo(o[0],s[0],l)),r[1]=zi(Xo(o[1],s[1],l)),r[2]=zi(Xo(o[2],s[2],l)),r[3]=lp(Xo(o[3],s[3],l)),r}}function Pde(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=zn(t[i]),s=zn(t[a]),l=n-i,u=Za([zi(Xo(o[0],s[0],l)),zi(Xo(o[1],s[1],l)),zi(Xo(o[2],s[2],l)),lp(Xo(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function mh(e,t,r,n){var i=zn(e);if(e)return i=Ide(i),t!=null&&(i[0]=Mde(t)),r!=null&&(i[1]=Hl(r)),n!=null&&(i[2]=Hl(n)),Za(RC(i),"rgba")}function Dm(e,t){var r=zn(e);if(r&&t!=null)return r[3]=lp(t),Za(r,"rgba")}function Za(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Lm(e,t){var r=zn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Em=Math.round;function up(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=zn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var mE=1e-4;function Zo(e){return e-mE}function Jv(e){return Em(e*1e3)/1e3}function NC(e){return Em(e*1e4)/1e4}function kde(e){return"matrix("+Jv(e[0])+","+Jv(e[1])+","+Jv(e[2])+","+Jv(e[3])+","+NC(e[4])+","+NC(e[5])+")"}var Dde={left:"start",right:"end",center:"middle",middle:"middle"};function Lde(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Ede(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Rde(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function pG(e){return e&&!!e.image}function Ode(e){return e&&!!e.svgElement}function p2(e){return pG(e)||Ode(e)}function vG(e){return e.type==="linear"}function gG(e){return e.type==="radial"}function yG(e){return e&&(e.type==="linear"||e.type==="radial")}function H1(e){return"url(#"+e+")"}function mG(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function xG(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*vy,i=Re(e.scaleX,1),a=Re(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Em(o*vy)+"deg, "+Em(s*vy)+"deg)"),l.join(" ")}var Nde=function(){return et.hasGlobalWindow&&ye(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),zC=Array.prototype.slice;function $a(e,t,r){return(t-e)*r+e}function GS(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=SE,l=r;if(Yr(r)){var u=$de(r);s=u,(u===1&&!rt(r[0])||u===2&&!rt(r[0][0]))&&(o=!0)}else if(rt(r)&&!op(r))s=tg;else if(oe(r))if(!isNaN(+r))s=tg;else{var c=zn(r);c&&(l=c,s=$d)}else if($1(r)){var f=j({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:zn(h.color)}}),vG(r)?s=BC:gG(r)&&(s=FC),l=f}a===0?this.valType=s:(s!==this.valType||s===SE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ye(n)?n:aG[n]||h2(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=rg(i),u=bE(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?sd:t[l];if((rg(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:p.rawValue;else if(rg(a))a===by?GS(m,h[i],p[i],y):zde(m,h[i],p[i],y);else if(bE(a)){var x=h[i],S=p[i],_=a===BC;t[l]={type:_?"linear":"radial",x:$a(x.x,S.x,y),y:$a(x.y,S.y,y),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:$a(w.offset,A.offset,y),color:Sy(GS([],w.color,A.color,y))}}),global:S.global},_?(t[l].x2=$a(x.x2,S.x2,y),t[l].y2=$a(x.y2,S.y2,y)):t[l].r=$a(x.r,S.r,y)}else if(u)GS(m,h[i],p[i],y),n||(t[l]=Sy(m));else{var b=$a(h[i],p[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===tg?t[n]=t[n]+i:r===$d?(zn(t[n],sd),eg(sd,sd,i,1),t[n]=Sy(sd)):r===by?eg(t[n],t[n],i,1):r===SG&&xE(t[n],t[n],i,1)},e}(),v2=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){o2("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,xh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,xh(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function _c(){return new Date().getTime()}var Gde=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=_c()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(DC(n),!r._paused&&r.update())}DC(n)},t.prototype.start=function(){this._running||(this._time=_c(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_c(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_c()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new v2(r,n.loop);return this.addAnimator(i),i},t}(xi);const Hde=Gde;var Wde=300,HS=et.domSupported,WS=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),_E={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wE=!1;function $C(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Ude(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function US(e){e&&(e.zrByTouch=!0)}function jde(e,t){return Zn(e.dom,new Yde(e,t),!0)}function bG(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Yde=function(){function e(t,r){this.stopPropagation=Jt,this.stopImmediatePropagation=Jt,this.preventDefault=Jt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ai={mousedown:function(e){e=Zn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Zn(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Zn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Zn(this.dom,e);var t=e.toElement||e.relatedTarget;bG(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){wE=!0,e=Zn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){wE||(e=Zn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Zn(this.dom,e),US(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ai.mousemove.call(this,e),Ai.mousedown.call(this,e)},touchmove:function(e){e=Zn(this.dom,e),US(e),this.handler.processGesture(e,"change"),Ai.mousemove.call(this,e)},touchend:function(e){e=Zn(this.dom,e),US(e),this.handler.processGesture(e,"end"),Ai.mouseup.call(this,e),+new Date-+this.__lastTouchMomentAE||e<-AE}var Hs=[],zu=[],YS=vi(),qS=Math.abs,Jde=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Gs(this.rotation)||Gs(this.x)||Gs(this.y)||Gs(this.scaleX-1)||Gs(this.scaleY-1)||Gs(this.skewX)||Gs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(TE(n),this.invTransform=null);return}n=n||vi(),r?this.getLocalTransform(n):TE(n),t&&(r?Xa(n,t,n):f2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Hs);var n=Hs[0]<0?-1:1,i=Hs[1]<0?-1:1,a=((Hs[0]-n)*r+n)/Hs[0]||0,o=((Hs[1]-i)*r+i)/Hs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||vi(),Af(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Xa(zu,t.invTransform,r),r=zu);var n=this.originX,i=this.originY;(n||i)&&(YS[4]=n,YS[5]=i,Xa(zu,r,YS),zu[4]-=n,zu[5]-=i,r=zu),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Dr(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Dr(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&qS(t[0]-1)>1e-10&&qS(t[3]-1)>1e-10?Math.sqrt(qS(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){wG(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&mu(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Pa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function wG(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Om(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Gi(n[0],r.width),u+=Gi(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var XS="__zr_normal__",ZS=Pa.concat(["ignore"]),ehe=Ma(Pa,function(e,t){return e[t]=!0,e},{ignore:!1}),Bu={},the=new Ne(0,0,0,0),g2=function(){function e(t){this.id=X4(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=the;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bu,n,c):Om(Bu,n,c),a.x=Bu.x,a.y=Bu.y,o=Bu.align,s=Bu.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Gi(f[0],c.width),h=Gi(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),x=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ln,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?WC:HC},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&zn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Za(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},j(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Se(t))for(var n=t,i=He(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(XS,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===XS,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){o2("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ln),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ln)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d0||i.force&&!o.length){var C=void 0,A=void 0,T=void 0;if(s){A={},d&&(C={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ze(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function ne(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return oe(e)?che(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function jt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),IG),e=(+e).toFixed(t),r?e:+e}function ui(e){return e.sort(function(t,r){return t-r}),e}function ha(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return fhe(e)}function fhe(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function PG(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function dhe(e,t){var r=Ma(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Z(i,function(h){return Math.floor(h)}),s=Ma(o,function(h,p){return h+p},0),l=Z(i,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Z(o,function(h){return h/n})}function hhe(e,t){var r=Math.max(ha(e),ha(t)),n=e+t;return r>IG?n:jt(n,r)}var DE=9007199254740991;function kG(e){var t=Math.PI*2;return(e%t+t)%t}function Nm(e){return e>-kE&&e=10&&t++,t}function DG(e,t){var r=y2(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function JS(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function LE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Fhe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],$he=su(Fhe),Vhe=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return $he(this,t,r)},e}(),jC=new qp(50);function Ghe(e){if(typeof e=="string"){var t=jC.get(e);return t&&t.image}else return e}function b2(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=jC.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!j1(t)&&a.pending.push(o)):(t=bs.loadImage(e,NE,NE),t.__zrImageSrc=e,jC.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function NE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Bn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function WG(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Bn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Whe(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Bn(e,n)}return e===""&&(e=t.placeholder),e}function Whe(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=HG(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&tb(r,e.substring(s,u),t,o),tb(r,l[2],t,o,l[1]),s=eb.lastIndex}si){_>0?(m.tokens=m.tokens.slice(0,_),g(m,S,x),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Bn(b.text,T);else{if(P){var k=w.backgroundColor,L=k&&k.image;L&&(L=Ghe(L),j1(L)&&(b.width=Math.max(b.width,L.width*M/L.height)))}var O=p&&n!=null?n-S:null;O!=null&&O0&&p+n.accumWidth>n.width&&(c=t.split(` -`),u=!0),n.accumWidth=p}else{var v=UG(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` -`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Zhe=Ma(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Khe(e){return Xhe(e)?!!Zhe[e]:!0}function UG(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var YC="__zr_style_"+Math.round(Math.random()*10),Wl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Y1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wl[YC]=!0;var BE=["z","z2","invisible"],Qhe=["invisible"],Jhe=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(ng[0]=ab(i)*r+e,ng[1]=ib(i)*n+t,ig[0]=ab(a)*r+e,ig[1]=ib(a)*n+t,u(s,ng,ig),c(l,ng,ig),i=i%Us,i<0&&(i=i+Us),a=a%Us,a<0&&(a=a+Us),i>a&&!o?a+=Us:ii&&(ag[0]=ab(h)*r+e,ag[1]=ib(h)*n+t,u(s,ag,s),c(l,ag,l))}var yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},js=[],Ys=[],Yi=[],To=[],qi=[],Xi=[],ob=Math.min,sb=Math.max,qs=Math.cos,Xs=Math.sin,Oa=Math.abs,qC=Math.PI,Ro=qC*2,lb=typeof Float32Array<"u",ld=[];function ub(e){var t=Math.round(e/qC*1e8)/1e8;return t%2*qC}function jG(e,t){var r=ub(e[0]);r<0&&(r+=Ro);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ro?i=r+Ro:t&&r-i>=Ro?i=r-Ro:!t&&r>i?i=r+(Ro-ub(r-i)):t&&r0&&(this._ux=Oa(n/Rm/t)||0,this._uy=Oa(n/Rm/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(yt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Oa(t-this._xi),i=Oa(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(yt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(yt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(yt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),ld[0]=i,ld[1]=a,jG(ld,o),i=ld[0],a=ld[1];var s=a-i;return this.addData(yt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=qs(a)*n+t,this._yi=Xs(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(yt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(yt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&lb&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Yi[0]=Yi[1]=qi[0]=qi[1]=Number.MAX_VALUE,To[0]=To[1]=Xi[0]=Xi[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Oa(x)>i||d===r-1)&&(v=Math.sqrt(m*m+x*x),a=g,o=y);break}case yt.C:{var S=t[d++],_=t[d++],g=t[d++],y=t[d++],b=t[d++],w=t[d++];v=xde(a,o,S,_,g,y,b,w,10),a=b,o=w;break}case yt.Q:{var S=t[d++],_=t[d++],g=t[d++],y=t[d++];v=bde(a,o,S,_,g,y,10),a=g,o=y;break}case yt.A:var C=t[d++],A=t[d++],T=t[d++],M=t[d++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=qs(I)*T+C,l=Xs(I)*M+A),v=sb(T,M)*ob(Ro,Math.abs(P)),a=qs(k)*T+C,o=Xs(k)*M+A;break;case yt.R:{s=a=t[d++],l=o=t[d++];var L=t[d++],O=t[d++];v=L*2+O*2;break}case yt.Z:{var m=s-a,x=l-o;v=Math.sqrt(m*m+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,y=0,m,x=0,S,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,m=r*v,!m)))e:for(var b=0;b0&&(t.lineTo(S,_),x=0),w){case yt.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case yt.L:{f=n[b++],d=n[b++];var A=Oa(f-u),T=Oa(d-c);if(A>i||T>a){if(h){var M=p[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case yt.C:{var k=n[b++],L=n[b++],O=n[b++],F=n[b++],R=n[b++],$=n[b++];if(h){var M=p[y++];if(g+M>m){var I=(m-g)/M;_s(u,k,O,R,I,js),_s(c,L,F,$,I,Ys),t.bezierCurveTo(js[1],Ys[1],js[2],Ys[2],js[3],Ys[3]);break e}g+=M}t.bezierCurveTo(k,L,O,F,R,$),u=R,c=$;break}case yt.Q:{var k=n[b++],L=n[b++],O=n[b++],F=n[b++];if(h){var M=p[y++];if(g+M>m){var I=(m-g)/M;sp(u,k,O,I,js),sp(c,L,F,I,Ys),t.quadraticCurveTo(js[1],Ys[1],js[2],Ys[2]);break e}g+=M}t.quadraticCurveTo(k,L,O,F),u=O,c=F;break}case yt.A:var E=n[b++],V=n[b++],W=n[b++],z=n[b++],U=n[b++],X=n[b++],H=n[b++],ee=!n[b++],te=W>z?W:z,ie=Oa(W-z)>.001,re=U+X,Q=!1;if(h){var M=p[y++];g+M>m&&(re=U+X*(m-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(E,V,W,z,H,U,re,ee):t.arc(E,V,te,U,re,ee),Q)break e;C&&(s=qs(U)*W+E,l=Xs(U)*z+V),u=qs(re)*W+E,c=Xs(re)*z+V;break;case yt.R:s=u=n[b],l=c=n[b+1],f=n[b++],d=n[b++];var J=n[b++],fe=n[b++];if(h){var M=p[y++];if(g+M>m){var de=m-g;t.moveTo(f,d),t.lineTo(f+ob(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+ob(de,fe)),de-=fe,de>0&&t.lineTo(f+sb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+sb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case yt.Z:if(h){var M=p[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=yt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Da=ipe;function Bo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=ud);var d=Math.atan2(l,s);return d<0&&(d+=ud),d>=n&&d<=i||d+ud>=n&&d+ud<=i}function Va(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Ao=Da.CMD,Zs=Math.PI*2,spe=1e-4;function lpe(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&upe(),h=dr(t,n,a,s,Qn[0]),d>1&&(p=dr(t,n,a,s,Qn[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=xr(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Jr[0]=-l,Jr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Zs-1e-4){n=0,i=Zs;var c=a?1:-1;return o>=Jr[0]+e&&o<=Jr[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Zs,i+=Zs);for(var d=0,h=0;h<2;h++){var p=Jr[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=Zs+v),(v>=n&&v<=i||v+Zs>=n&&v+Zs<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Va(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Ao.M:c=a[p++],f=a[p++],l=c,u=f;break;case Ao.L:if(r){if(Bo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Va(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Ao.C:if(r){if(ape(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=cpe(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Ao.Q:if(r){if(YG(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=fpe(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Ao.A:var y=a[p++],m=a[p++],x=a[p++],S=a[p++],_=a[p++],b=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(_)*x+y,h=Math.sin(_)*S+m,g?(c=d,f=h):s+=Va(l,u,d,h,n,i);var C=(n-y)*S/x+y;if(r){if(ope(y,m,S,_,_+b,w,t,C,i))return!0}else s+=dpe(y,m,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+y,u=Math.sin(_+b)*S+m;break;case Ao.R:c=l=a[p++],f=u=a[p++];var A=a[p++],T=a[p++];if(d=c+A,h=f+T,r){if(Bo(c,f,d,f,t,n,i)||Bo(d,f,d,h,t,n,i)||Bo(d,h,c,h,t,n,i)||Bo(c,h,c,f,t,n,i))return!0}else s+=Va(d,f,d,h,n,i),s+=Va(c,h,c,f,n,i);break;case Ao.Z:if(r){if(Bo(l,u,c,f,t,n,i))return!0}else s+=Va(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!lpe(u,f)&&(s+=Va(l,u,c,f,n,i)||0),s!==0}function hpe(e,t,r){return qG(e,0,!1,t,r)}function ppe(e,t,r,n){return qG(e,t,!0,r,n)}var zm=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wl),vpe={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Y1.style)},cb=Pa.concat(["invisible","culling","z","z2","zlevel","parent"]),gpe=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?HC:n>.2?Qde:WC}else if(r)return WC}return HC},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Lm(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ic)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),ppe(s,l/u,r,n)))return!0}if(this.hasFill())return hpe(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ic,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:j(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ic)},t.prototype.createStyle=function(r){return V1(zm,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=j({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=j({},i.shape),j(u,n.shape)):(u=j({},a?this.shape:i.shape),j(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=j({},this.shape);for(var c={},f=He(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return V1(ype,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Xp(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(gi);XG.prototype.type="tspan";const fp=XG;var mpe=xe({x:0,y:0},Wl),xpe={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Y1.style)};function Spe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ZG=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return V1(mpe,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Spe(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return xpe},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gi);ZG.prototype.type="image";const Nr=ZG;function bpe(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var wc=Math.round;function KG(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(wc(n*2)===wc(i*2)&&(e.x1=e.x2=Ll(n,s,!0)),wc(a*2)===wc(o*2)&&(e.y1=e.y2=Ll(a,s,!0))),e}}function QG(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ll(n,s,!0),e.y=Ll(i,s,!0),e.width=Math.max(Ll(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ll(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ll(e,t,r){if(!t)return e;var n=wc(e*2);return(n+wc(t))%2===0?n/2:(n+(r?1:-1))/2}var _pe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),wpe={},JG=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _pe},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=QG(wpe,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?bpe(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);JG.prototype.type="rect";const Ke=JG;var HE={fill:"#000"},WE=2,Cpe={style:xe({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Y1.style)},eH=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=HE,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,y,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(m-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,y,M+k.width/2,"center",x),M+=k.width,T++;y+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&fb(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=ZE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(fp),g=v.createStyle();v.useStyle(g);var y=this._defaultStyle,m=!1,x=0,S=XE("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),_=qE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(x=WE,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Ss,g.opacity=ba(u.opacity,n.opacity,1),jE(g,u),_&&(g.lineWidth=ba(u.lineWidth,n.lineWidth,x),g.lineDash=Re(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(Vd(g.x,w,g.textAlign),ac(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(Ke),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=h,v.dirtyShape()}if(d){var m=v.style;m.fill=l||null,m.fillOpacity=Re(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Nr),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=Re(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=ba(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return rH(r)&&(n=[r.fontStyle,r.fontWeight,tH(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Li(n)||r.textFont||r.font},t}(gi),Tpe={left:!0,right:1,center:1},Ape={top:1,bottom:1,middle:1},UE=["fontStyle","fontWeight","fontSize","fontFamily"];function tH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?n2+"px":e+"px"}function jE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=nH(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fu(s)||Fu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=j({},n),u=j({},u),u.fill=s):!Fu(u.fill)&&Fu(s)?(a=!0,n=j({},n),u=j({},u),u.fill=tR(s)):!Fu(u.stroke)&&Fu(l)&&(a||(n=j({},n),u=j({},u)),u.stroke=tR(l)),n.style=u}}if(n&&n.z2==null){a||(n=j({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??If)}return n}function Epe(e,t,r){if(r&&r.z2==null){r=j({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Ipe)}return r}function Rpe(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Dpe(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=j({},r),o=j({opacity:n?i:a.opacity*.1},o),r.style=o),r}function db(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Lpe(this,e,t,r);if(e==="blur")return Rpe(this,e,r);if(e==="select")return Epe(this,e,r)}return r}function lu(e){e.stateProxy=db;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=db),r&&(r.stateProxy=db)}function nR(e,t){!cH(e,t)&&!e.__highByOuter&&yo(e,iH)}function iR(e,t){!cH(e,t)&&!e.__highByOuter&&yo(e,aH)}function lo(e,t){e.__highByOuter|=1<<(t||0),yo(e,iH)}function uo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&yo(e,aH)}function sH(e){yo(e,C2)}function T2(e){yo(e,oH)}function lH(e){yo(e,Ppe)}function uH(e){yo(e,kpe)}function cH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function fH(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=_2(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){oH(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function ZC(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function jl(e,t,r){El(e,!0),yo(e,lu),QC(e,t,r)}function $pe(e){El(e,!1)}function Gt(e,t,r,n){n?$pe(e):jl(e,t,r)}function QC(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var oR=["emphasis","blur","select"],Vpe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Rr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=hb(p),s*=hb(p));var v=(i===a?-1:1)*hb((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,y=v*-s*d/o,m=(e+r)/2+sg(f)*g-og(f)*y,x=(t+n)/2+og(f)*g+sg(f)*y,S=cR([1,0],[(d-g)/o,(h-y)/s]),_=[(d-g)/o,(h-y)/s],b=[(-1*d-g)/o,(-1*h-y)/s],w=cR(_,b);if(eT(_,b)<=-1&&(w=cd),eT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/cd*1e6)/1e6;w=cd*2+C%2*cd}c.addData(u,m,x,o,s,S,w,f,a)}var Ype=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qpe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xpe(e){var t=new Da;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Da.CMD,l=e.match(Ype);if(!l)return t;for(var u=0;uk*k+L*L&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function rve(e){var t;if(q(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function nve(e,t){var r,n=Gd(t.r,0),i=Gd(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=dR(u-l),p=h>pb&&h%pb;if(p>Ti&&(h=p),!(n>Ti))e.moveTo(c,f);else if(h>pb-Ti)e.moveTo(c+n*Vu(l),f+n*Ks(l)),e.arc(c,f,n,l,u,!d),i>Ti&&(e.moveTo(c+i*Vu(u),f+i*Ks(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,y=void 0,m=void 0,x=void 0,S=void 0,_=void 0,b=void 0,w=void 0,C=void 0,A=void 0,T=void 0,M=void 0,I=void 0,P=void 0,k=void 0,L=n*Vu(l),O=n*Ks(l),F=i*Vu(u),R=i*Ks(u),$=h>Ti;if($){var E=t.cornerRadius;E&&(r=rve(E),v=r[0],g=r[1],y=r[2],m=r[3]);var V=dR(n-i)/2;if(x=Zi(V,y),S=Zi(V,m),_=Zi(V,v),b=Zi(V,g),A=w=Gd(x,S),T=C=Gd(_,b),(w>Ti||C>Ti)&&(M=n*Vu(u),I=n*Ks(u),P=i*Vu(l),k=i*Ks(l),hTi){var ie=Zi(y,A),re=Zi(m,A),Q=lg(P,k,L,O,n,ie,d),J=lg(M,I,F,R,n,re,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),A0&&e.arc(c+Q.cx,f+Q.cy,ie,$r(Q.y0,Q.x0),$r(Q.y1,Q.x1),!d),e.arc(c,f,n,$r(Q.cy+Q.y1,Q.cx+Q.x1),$r(J.cy+J.y1,J.cx+J.x1),!d),re>0&&e.arc(c+J.cx,f+J.cy,re,$r(J.y1,J.x1),$r(J.y0,J.x0),!d))}else e.moveTo(c+L,f+O),e.arc(c,f,n,l,u,!d);if(!(i>Ti)||!$)e.lineTo(c+F,f+R);else if(T>Ti){var ie=Zi(v,T),re=Zi(g,T),Q=lg(F,R,M,I,i,-re,d),J=lg(L,O,P,k,i,-ie,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,re,$r(Q.y0,Q.x0),$r(Q.y1,Q.x1),!d),e.arc(c,f,i,$r(Q.cy+Q.y1,Q.cx+Q.x1),$r(J.cy+J.y1,J.cx+J.x1),d),ie>0&&e.arc(c+J.cx,f+J.cy,ie,$r(J.y1,J.x1),$r(J.y0,J.x0),!d))}else e.lineTo(c+F,f+R),e.arc(c,f,i,u,l,d)}e.closePath()}}}var ive=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),SH=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ive},t.prototype.buildPath=function(r,n){nve(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);SH.prototype.type="sector";const Tn=SH;var ave=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),bH=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ave},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}($e);bH.prototype.type="ring";const K1=bH;function ove(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=ove(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sJs[1]){if(s=!1,a)return s;var c=Math.abs(Js[0]-Qs[1]),f=Math.abs(Qs[0]-Js[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function nt(e,t,r,n,i,a){D2("update",e,t,r,n,i,a)}function kt(e,t,r,n,i,a){D2("enter",e,t,r,n,i,a)}function Bc(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function vR(e){return!e.isGroup}function Ave(e){return e.shape!=null}function Jp(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){vR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ave(o)&&(s.shape=j({},o.shape)),s}var a=n(e);t.traverse(function(o){if(vR(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),nt(o,l,r,Ie(o).dataIndex)}}})}function RH(e,t){return Z(e,function(r){var n=r[0];n=$m(n,t.x),n=Vm(n,t.x+t.width);var i=r[1];return i=$m(i,t.y),i=Vm(i,t.y+t.height),[n,i]})}function Mve(e,t){var r=$m(e.x,t.x),n=Vm(e.x+e.width,t.x+t.width),i=$m(e.y,t.y),a=Vm(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function ev(e,t,r){var n=j({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),xe(i,r),new Nr(n)):J1(e.replace("path://",""),n,r,"center")}function Hd(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=vb(h,p,c,f)/d;return!(g<0||g>1)}function vb(e,t,r,n){return e*n-r*t}function Ive(e){return e<=1e-6&&e>=-1e-6}function kf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=oe(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function gR(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Rs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Os(e,t){return Oe(Oe({},e,!0),t,!0)}const Vve={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Gve={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Hm="ZH",E2="EN",vp=E2,My={},R2={},GH=et.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Hm)>-1?Hm:vp}():vp;function HH(e,t){e=e.toUpperCase(),R2[e]=new bt(t),My[e]=t}function Hve(e){if(oe(e)){var t=My[e.toUpperCase()]||{};return e===Hm||e===E2?we(t):Oe(we(t),we(My[vp]),!1)}else return Oe(we(e),we(My[vp]),!1)}function nT(e){return R2[e]}function Wve(){return R2[vp]}HH(E2,Vve);HH(Hm,Gve);var O2=1e3,N2=O2*60,Th=N2*60,si=Th*24,bR=si*365,Wd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fg="{yyyy}-{MM}-{dd}",_R={year:"{yyyy}",month:"{yyyy}-{MM}",day:fg,hour:fg+" "+Wd.hour,minute:fg+" "+Wd.minute,second:fg+" "+Wd.second,millisecond:Wd.none},mb=["year","month","day","hour","minute","second","millisecond"],WH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Mo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Fc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Uve(e){return e===Fc(e)}function jve(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rx(e,t,r,n){var i=ka(e),a=i[z2(r)](),o=i[$c(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[nx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[gp(r)](),f=(c-1)%12+1,d=i[ix(r)](),h=i[ax(r)](),p=i[ox(r)](),v=n instanceof bt?n:nT(n||GH)||Wve(),g=v.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Mo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Mo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Mo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Mo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Mo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Mo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Mo(p,3)).replace(/{S}/g,p+"")}function Yve(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(ye(r))a=r(e.value,t,{level:e.level});else{var o=j({},Wd);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return rx(new Date(e.value),a,i,n)}function UH(e,t){var r=ka(e),n=r[$c(t)]()+1,i=r[nx(t)](),a=r[gp(t)](),o=r[ix(t)](),s=r[ax(t)](),l=r[ox(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function wR(e,t,r){var n=rt(e)?ka(e):e;switch(t=t||UH(e,r),t){case"year":return n[z2(r)]();case"half-year":return n[$c(r)]()>=6?1:0;case"quarter":return Math.floor((n[$c(r)]()+1)/4);case"month":return n[$c(r)]();case"day":return n[nx(r)]();case"half-day":return n[gp(r)]()/24;case"hour":return n[gp(r)]();case"minute":return n[ix(r)]();case"second":return n[ax(r)]();case"millisecond":return n[ox(r)]()}}function z2(e){return e?"getUTCFullYear":"getFullYear"}function $c(e){return e?"getUTCMonth":"getMonth"}function nx(e){return e?"getUTCDate":"getDate"}function gp(e){return e?"getUTCHours":"getHours"}function ix(e){return e?"getUTCMinutes":"getMinutes"}function ax(e){return e?"getUTCSeconds":"getSeconds"}function ox(e){return e?"getUTCMilliseconds":"getMilliseconds"}function qve(e){return e?"setUTCFullYear":"setFullYear"}function jH(e){return e?"setUTCMonth":"setMonth"}function YH(e){return e?"setUTCDate":"setDate"}function qH(e){return e?"setUTCHours":"setHours"}function XH(e){return e?"setUTCMinutes":"setMinutes"}function ZH(e){return e?"setUTCSeconds":"setSeconds"}function KH(e){return e?"setUTCMilliseconds":"setMilliseconds"}function QH(e){if(!LG(e))return oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function JH(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ef=u2;function iT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Li(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?ka(e):e;if(isNaN(+l)){if(s)return"-"}else return rx(l,n,r)}if(t==="ordinal")return wC(e)?i(e):rt(e)&&a(e)?e+"":"-";var u=so(e);return a(u)?QH(u):wC(e)?i(e):typeof e=="boolean"?e+"":"-"}var CR=["a","b","c","d","e","f","g"],xb=function(e,t){return"{"+e+(t??"")+"}"};function e6(e,t,r){q(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function uu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Wm(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Iy=D,t6=["left","right","top","bottom","width","height"],Rl=[["width","left","right"],["height","top","bottom"]];function B2(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var ql=B2;Pe(B2,"vertical");Pe(B2,"horizontal");function Kve(e,t,r){var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Ef(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function cr(e,t,r){r=Ef(r||0);var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i),u=ne(e.width,n),c=ne(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function sx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=cr(xe({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function Qve(e,t){return e[Rl[t][0]]!=null||e[Rl[t][1]]!=null&&e[Rl[t][2]]!=null}function yp(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Cs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(Rl[0],0),a=o(Rl[1],1);u(Rl[0],e,i),u(Rl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Iy(c,function(x){p[x]=e[x]}),Iy(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var y=0;y=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Zp(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(bt);GG(Of,bt);U1(Of);Fve(Of);$ve(Of,ege);function ege(e){var t=[];return D(Of.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return pa(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const Je=Of;var n6="";typeof navigator<"u"&&(n6=navigator.platform||"");var Gu="rgba(0, 0, 0, 0.2)";const tge={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Gu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Gu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Gu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Gu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Gu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Gu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:n6.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var i6=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Si="original",qr="arrayRows",bi="objectRows",Ea="keyedColumns",fs="typedArray",a6="unknown",_a="column",Nf="row",Mr={Must:1,Might:2,Not:3},o6=Qe();function rge(e){o6(e).datasetMap=ve()}function s6(e,t,r){var n={},i=$2(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=o6(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var y=Se(v)?v:e[g]={name:v};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});D(e,function(v,g){var y=v.name,m=p(v);if(c==null){var x=d.valueWayDim;h(n[y],x,m),h(o,x,m),d.valueWayDim+=m}else if(c===g)h(n[y],0,m),h(a,0,m);else{var x=d.categoryWayDim;h(n[y],x,m),h(o,x,m),d.categoryWayDim+=m}});function h(v,g,y){for(var m=0;mt)return e[n];return e[r-1]}function c6(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:sge(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function lge(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var dg,fd,AR,MR="\0_ec_inner",uge=1,f6=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new bt(a),this._locale=new bt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=kR(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,kR(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?AR(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ve(),u=n&&n.replaceMergeMainTypeMap;rge(this),D(r,function(f,d){f!=null&&(Je.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){Je.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Je.topologicalTravel(s,Je.getAllClassMainTypes(),c,this);function c(f){var d=age(this,f,dt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=zG(h,d,p);Che(v,f,Je),i[f]=null,a.set(f,null),o.set(f,0);var g=[],y=[],m=0,x;D(v,function(S,_){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=Je.getClass(f,S.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var T=j({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),j(b,T),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),i[f]=g,a.set(f,y),o.set(f,m),f==="series"&&dg(this)}this._seriesIndices||dg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(r,function(n,i){if(Je.hasClass(i)){for(var a=dt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!cp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[MR],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Sge(e,t){return e.join(",")===t.join(",")}const bge=gge;var wi=D,mp=Se,DR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function bb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=DR.length;r=0;g--){var y=e[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=hhe(d,m),v=m;break}}}return n[0]=d,n[1]=v,n})})}var lx=function(){function e(t){this.data=t.data||(t.sourceFormat===Ea?{}:[]),this.sourceFormat=t.sourceFormat||a6,this.seriesLayoutBy=t.seriesLayoutBy||_a,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nv&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};BR=(t={},t[qr+"_"+_a]={pure:!0,appendData:a},t[qr+"_"+Nf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[bi]={pure:!0,appendData:a},t[Ea]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Si]={appendData:a},t[fs]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return af(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function GR(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ah(e){return new Bge(e)}var Bge=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},$ge=function(){function e(t,r){if(!rt(r)){var n="";ot(n)}this._opFn=w6[t],this._rvalFloat=so(r)}return e.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(so(t),this._rvalFloat)},e}(),C6=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=rt(t)?t:so(t),i=rt(r)?r:so(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),Vge=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=so(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=so(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Gge(e,t){return e==="eq"||e==="ne"?new Vge(e==="eq",t):ce(w6,e)?new $ge(e,t):null}var Hge=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return ds(t,r)},e}();function Wge(e,t){var r=new Hge,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==_a&&ot(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var y=v.name,m={index:g,name:y,displayName:v.displayName};if(s.push(m),y!=null){var x="";ce(l,y)&&ot(x),l[y]=m}});else for(var c=0;c65535?Qge:Jge}function Hu(){return[1/0,-1/0]}function eye(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function UR(e,t,r,n,i){var a=M6[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(m){return m.property}),c=0;cy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&m<=d||isNaN(m))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],y=0;y=f&&m<=d||isNaN(m))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var y=0;y=f&&m<=d||isNaN(m))&&(l[u++]=w)}else for(var y=0;yt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(hd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=y),d[h++]=m}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return ds(r[a],this._dimensions[a])}Cb={arrayRows:t,objectRows:function(r,n,i,a){return ds(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ds(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),I6=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(hg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Vn(s)?fs:Si,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Re(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Re(f.sourceHeader,d.sourceHeader),v=Re(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[sT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var x=y.get("source",!0);i=[sT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&YR(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&YR(f),s.push(c),l.push(u._getVersionSign())}),n?o=Zge(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Dge(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=L6(i);a>=t&&(t=a+ +(n&&(!a||uT(i)&&!i.noHeader)))}),t}return 0}function nye(e,t,r,n){var i=t.noHeader,a=aye(L6(t)),o=[],s=t.blocks||[];an(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new C6(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,y=D6(p)(g?j(j({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):cT(o.join(""),i?r:a.html);if(i)return f;var d=iT(t.header,"ordinal",e.useUTC),h=k6(n,e.renderMode).nameStyle;return e.renderMode==="richText"?E6(e,d,h)+a.richText+f:cT('
'+pn(d)+"
"+f,r)}function iye(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=q(S)?S:[S],Z(S,function(_,b){return iT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":iT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,y=k6(n,i),m=y.nameStyle,x=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":E6(e,d,m))+(o?"":lye(e,p,v,g,x)):cT((s?"":f)+(a?"":oye(d,!s,m))+(o?"":sye(p,v,g,x)),r)}}function qR(e,t,r,n,i,a){if(e){var o=D6(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function aye(e){return{html:tye[e],richText:rye[e]}}function cT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function oye(e,t,r){var n=t?"margin-left:2px":"";return''+pn(e)+""}function sye(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return pn(o)}).join("  ")+""}function E6(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function lye(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(q(t)?t.join(" "):t,a)}function R6(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return uu(n)}function O6(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Tb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=EG()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Zve({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};q(r)?D(r,function(a){return j(n,a)}):j(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function N6(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=q(s),u=R6(t,r),c,f,d,h;if(o>1||l&&!o){var p=uye(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=af(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=m2(t),y=g&&t.name||"",m=i.getName(r),x=n?y:m;return gr("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[gr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Li(x),value:c,valueType:f})].concat(d||[])})}function uye(e,t,r,n,i){var a=t.getData(),o=Ma(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(af(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(gr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Io=Qe();function pg(e,t){return e.getName(t)||e.getId(t)}var Py="__universalTransitionEnabled",cx=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ah({count:fye,reset:dye}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Io(this).sourceManager=new I6(this);a.prepareSource();var o=this.getInitialData(r,i);ZR(o,this),this.dataTask.context.data=o,Io(this).dataBeforeProcessed=o,XR(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=yp(this),a=i?Rf(r):{},o=this.subType;Je.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),au(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Cs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=yp(this);i&&Cs(this.option,r,i);var a=Io(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ZR(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Io(this).dataBeforeProcessed=o,XR(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Vn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=V2.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[pg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Py])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Je.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Je);ar(cx,U2);ar(cx,V2);GG(cx,Je);function XR(e){var t=e.name;m2(e)||(e.name=cye(e)||t)}function cye(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function fye(e){return e.model.getRawData().count()}function dye(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),hye}function hye(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ZR(e,t){D(Im(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(pye,t))})}function pye(e,t){var r=fT(e);return r&&r.setOutputEnd((t||this).count()),t}function fT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Rt=cx;var Y2=function(){function e(){this.group=new Ae,this.uid=Lf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();S2(Y2);U1(Y2);const Ht=Y2;function zf(){var e=Qe();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var z6=Qe(),vye=zf(),q2=function(){function e(){this.group=new Ae,this.uid=Lf("viewChart"),this.renderTask=Ah({plan:gye,reset:yye}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&QR(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&QR(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Rs(this.group,t)},e.markUpdateMethod=function(t,r){z6(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function KR(e,t,r){e&&hp(e)&&(t==="emphasis"?lo:uo)(e,r)}function QR(e,t,r){var n=ou(e,t),i=t&&t.highlightKey!=null?Hpe(t.highlightKey):null;n!=null?D(dt(n),function(a){KR(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){KR(a,r,i)})}S2(q2);U1(q2);function gye(e){return vye(e.model)}function yye(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&z6(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),mye[l]}var mye={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const wt=q2;var Um="\0__throttleOriginMethod",JR="\0__throttleRate",eO="\0__throttleType";function X2(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Bf(e,t,r,n){var i=e[t];if(i){var a=i[Um]||i,o=i[eO],s=i[JR];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=X2(a,r,n==="debounce"),i[Um]=a,i[eO]=n,i[JR]=r}return i}}function xp(e,t){var r=e[t];r&&r[Um]&&(r.clear&&r.clear(),e[t]=r[Um])}var tO=Qe(),rO={itemStyle:su(VH,!0),lineStyle:su($H,!0)},xye={lineStyle:"stroke",itemStyle:"fill"};function B6(e,t){var r=e.visualStyleMapper||rO[t];return r||(console.warn("Unknown style type '"+t+"'."),rO.itemStyle)}function F6(e,t){var r=e.visualDrawType||xye[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Sye={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=B6(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=F6(e,n),u=o[l],c=ye(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ye(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ye(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=j({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},pd=new bt,bye={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=B6(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){pd.option=l[n];var u=i(pd),c=o.ensureUniqueItemVisual(s,"style");j(c,u),pd.option.decal&&(o.setItemVisual(s,"decal",pd.option.decal),pd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},_ye={performRawSeries:!0,overallReset:function(e){var t=ve();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),tO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=tO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=F6(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},vg=Math.PI;function wye(e,t){t=t||{},xe(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ae,n=new Ke({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new tt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ke({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new P2({shape:{startAngle:-vg/2,endAngle:-vg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:vg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:vg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Cye=function(){function e(t,r,n,i){this._stageTaskMap=ve(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ve();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";an(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ve(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Ah({plan:Pye,reset:kye,count:Lye}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ah({reset:Tye});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";an(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,y=l.set(g,s&&s.get(g)||(d=!0,Ah({reset:Aye,onDirty:Iye})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,a._pipe(v,y)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return ye(t)&&(t={overallReset:t,seriesType:Eye(t)}),t.uid=Lf("stageHandler"),r&&(t.visualType=r),t},e}();function Tye(e){e.overallReset(e.ecModel,e.api,e.payload)}function Aye(e){return e.overallProgress&&Mye}function Mye(){this.agent.dirty(),this.getDownstream().dirty()}function Iye(){this.agent&&this.agent.dirty()}function Pye(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function kye(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=dt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return $6(n)}):Dye}var Dye=$6(0);function $6(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),dT=["symbol","symbolSize","symbolRotate","symbolOffset"],oO=dT.concat(["symbolKeepAspect"]),zye={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Nl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function hT(e,t,r){for(var n=t.type==="radial"?Jye(e,t,r):Qye(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:rt(e)?[e]:q(e)?e:null}function K2(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&tme(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var rme=new Da(!0);function qm(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function sO(e){return typeof e=="string"&&e!=="none"}function Xm(e){var t=e.fill;return t!=null&&t!=="none"}function lO(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function uO(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function pT(e,t,r){var n=b2(t.image,t.__image,r);if(j1(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*vy),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function nme(e,t,r,n){var i,a=qm(r),o=Xm(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||rme,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,y=a&&!!h.image,m=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(m=f?hT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=m),v&&(x=f?hT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?pT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(_=f||!t.__canvasStrokePattern?pT(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=m:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:y&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=K2(t),C=i[0],A=i[1]);var T=!0;(u||f&ic)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&uO(e,r),o&&lO(e,r)):(o&&lO(e,r),a&&uO(e,r))),C&&e.setLineDash([])}function ime(e,t,r){var n=t.__image=b2(r.image,t.__image,t,t.onload);if(!(!n||!j1(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function ame(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Ss,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=K2(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(qm(r)&&e.strokeText(i,r.x,r.y),Xm(r)&&e.fillText(i,r.x,r.y)):(Xm(r)&&e.fillText(i,r.x,r.y),qm(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var cO=["shadowBlur","shadowOffsetX","shadowOffsetY"],fO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Y6(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){yn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Wl.opacity:o}(n||t.blend!==r.blend)&&(a||(yn(e,i),a=!0),e.globalCompositeOperation=t.blend||Wl.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Vr]){if(this._disposed){this.id;return}var a,o,s;if(Se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Vr]=!0,!this._model||n){var l=new bge(this._api),u=this._theme,c=this._model=new d6;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},gT);var f={seriesTransition:s,optionChanged:!0};if(i)this[fn]={silent:a,updateParams:f},this[Vr]=!1,this.getZr().wakeUp();else{try{Uu(this),Po.update.call(this,null,f)}catch(d){throw this[fn]=null,this[Vr]=!1,d}this._ssr||this._zr.flush(),this[fn]=null,this[Vr]=!1,vd.call(this,a),gd.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||et.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(et.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(AO[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Vc,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=bs.createCanvas(),y=PE(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:v}),n){var m="";return D(d,function(x){var S=x.left-l,_=x.top-u;m+=''+x.dom+""}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ke({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(d,function(x){var S=new Nr({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return kb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return kb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=bh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=bh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Z2(s,l,n):nv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(Dme,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ol(s,function(p){var v=Ie(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=j({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Mh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Fye(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&FG(this.getDom(),eI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Vc[n.id]},t.prototype.resize=function(r){if(!this[Vr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[fn]&&(a==null&&(a=this[fn].silent),i=!0,this[fn]=null),this[Vr]=!0;try{i&&Uu(this),Po.update.call(this,{type:"resize",animation:j({duration:0},r&&r.animation)})}catch(o){throw this[Vr]=!1,o}this[Vr]=!1,vd.call(this,a),gd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!yT[r]){var i=yT[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=j({},r);return n.type=Mh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!Km[r.type]&&this._model){if(this[Vr]){this._pendingActions.push(r);return}var i=n.silent;Lb.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&et.browser.weChat&&this._throttledZrFlush(),vd.call(this,i),gd.call(this,i)}},t.prototype.updateLabelLayout=function(){Mi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Uu=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Pb(f,!0),Pb(f,!1),d.plan()},Pb=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,x=0;xd.get("hoverLayerThreshold")&&!et.node&&!et.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Bc(y))return;if(y instanceof $e&&Wpe(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var x=y.getTextContent(),S=y.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}CO=function(f){return new(function(d){G(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){lo(p,v),Un(f)},h.prototype.leaveEmphasis=function(p,v){uo(p,v),Un(f)},h.prototype.enterBlur=function(p){sH(p),Un(f)},h.prototype.leaveBlur=function(p){T2(p),Un(f)},h.prototype.enterSelect=function(p){lH(p),Un(f)},h.prototype.leaveSelect=function(p){uH(p),Un(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(h6))(f)},lW=function(f){function d(h,p){for(var v=0;v=0)){MO.push(r);var a=H6.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function pW(e,t){yT[e]=t}function zme(e,t,r){var n=gme("registerMap");n&&n(e,t,r)}var Bme=Xge;bu(Q2,Sye);bu(fx,bye);bu(fx,_ye);bu(Q2,zye);bu(fx,Bye);bu(rW,hme);dW(v6);hW(xme,Pge);pW("default",wye);Ra({type:Ul,event:Ul,update:Ul},Jt);Ra({type:Cy,event:Cy,update:Cy},Jt);Ra({type:_h,event:_h,update:_h},Jt);Ra({type:Ty,event:Ty,update:Ty},Jt);Ra({type:wh,event:wh,update:wh},Jt);fW("light",Rye);fW("dark",Oye);var IO=[],Fme={registerPreprocessor:dW,registerProcessor:hW,registerPostInit:Eme,registerPostUpdate:Rme,registerUpdateLifecycle:tI,registerAction:Ra,registerCoordinateSystem:Ome,registerLayout:Nme,registerVisual:bu,registerTransform:Bme,registerLoading:pW,registerMap:zme,registerImpl:vme,PRIORITY:Ime,ComponentModel:Je,ComponentView:Ht,SeriesModel:Rt,ChartView:wt,registerComponentModel:function(e){Je.registerClass(e)},registerComponentView:function(e){Ht.registerClass(e)},registerSeriesModel:function(e){Rt.registerClass(e)},registerChartView:function(e){wt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Je.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){uhe(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(IO,e)>=0||(IO.push(e),ye(e)&&(e={install:e}),e.install(Fme))}function yd(e){return e==null?0:e.length||1}function PO(e){return e}var $me=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||PO,this._newKeyGetter=i||PO,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var md=Se,ko=Z,Yme=typeof Int32Array>"u"?Array:Int32Array,qme="e\0\0",kO=-1,Xme=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Zme=["_approximateExtent"],DO,Sg,xd,Sd,Ob,bg,Nb,Kme=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;gW(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Si;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),q(a)?a=a.slice():md(a)&&(a=j({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,md(r)?j(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){md(t)?j(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?j(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;XC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ko(this.dimensions,this._getDimInfo,this),this.hostModel)),Ob(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ye(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(l2(arguments)))})},e.internalField=function(){DO=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Yme(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const nn=Kme;function iv(e,t){G2(e)||(e=H2(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Jme(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xW(o),l=n===e.dimensionsDefine,u=l?mW(e):yW(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new A6(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Jme(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function e0e(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var t0e=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function r0e(e){var t=e.get("coordinateSystem"),r=new t0e(t),n=n0e[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var n0e={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",nr).models[0],a=e.getReferringComponents("yAxis",nr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ju(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ju(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",nr).models[0];t.coordSysDims=["single"],r.set("single",i),ju(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",nr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ju(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ju(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ju(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ju(e){return e.get("type")==="category"}function i0e(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;a0e(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(a,function(m,x){oe(m)&&(a[x]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(c=m))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(a,function(m){m.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function a0e(e){return!gW(e.schema)}function Ts(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function SW(e,t){return Ts(e,t)?e.getCalculationInfo("stackResultDimension"):t}function o0e(e,t){var r=e.get("coordinateSystem"),n=rv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=Jm(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function s0e(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function mo(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=H2(e)):(i=n.getSource(),a=i.sourceFormat===Si);var o=r0e(t),s=o0e(t,o),l=r.useEncodeDefaulter,u=ye(l)?l:l?Pe(s6,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=iv(i,c),d=s0e(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=i0e(t,{schema:f,store:h}),v=new nn(f,t);v.setCalculationInfo(p);var g=d!=null&&l0e(i)?function(y,m,x,S){return S===d?x:this.defaultDimValueGetter(y,m,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function l0e(e){if(e.sourceFormat===Si){var t=u0e(e.data||[]);return!q(Mf(t))}}function u0e(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();U1(bW);const xo=bW;var c0e=0,f0e=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++c0e}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,d0e);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},e}();function d0e(e){return Se(e)&&e.value!=null?e.value:e+""}const mT=f0e;function xT(e){return e.type==="interval"||e.type==="log"}function h0e(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=DG(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=_W(o),l=i.niceTickExtent=[jt(Math.ceil(e[0]/o)*o,s),jt(Math.floor(e[1]/o)*o,s)];return p0e(l,e),i}function zb(e){var t=Math.pow(10,y2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,jt(r*t)}function _W(e){return ha(e)+2}function LO(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function p0e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),LO(e,0,t),LO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function dx(e,t){return e>=t[0]&&e<=t[1]}function hx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function px(e,t){return e*(t[1]-t[0])+t[0]}var wW=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new mT({})),q(i)&&(i=new mT({categories:Z(i,function(a){return Se(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),dx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),hx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(px(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xo);xo.registerClass(wW);const nI=wW;var nl=jt,CW=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return dx(r,this._extent)},t.prototype.normalize=function(r){return hx(r,this._extent)},t.prototype.scale=function(r){return px(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=_W(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:nl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function MW(e){var t=y0e(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(LW(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:aI(a),stackId:iI(n)})}),IW(r)}function IW(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),D(a,function(y){var m=y.maxWidth,x=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),x&&(S=Math.max(S,x)),y.width=S,f-=S+c*S,d--}else{var S=h;m&&mS&&(S=x),S!==h&&(y.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;D(a,function(y,m){y.width||(y.width=h),v=y,p+=y.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function m0e(e,t,r){if(e&&t){var n=e[aI(t)];return n!=null&&r!=null?n[iI(r)]:n}}function PW(e,t){var r=AW(e,t),n=MW(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=iI(i),u=n[aI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function kW(e){return{seriesType:e,plan:zf(),reset:function(t){if(DW(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Ts(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=x0e(i,a),p=LW(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&va(_*3),w=p&&l&&va(_*3),C=p&&va(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),L=I.get(s,M),O=h,F=void 0;f&&(F=+k-I.get(o,M));var R=void 0,$=void 0,E=void 0,V=void 0;if(d){var W=n.dataToPoint([k,L]);if(f){var z=n.dataToPoint([F,L]);O=z[0]}R=O,$=W[1]+m,E=W[0]-O,V=y,Math.abs(E)>>1;e[i][1]i&&(this._approxInterval=i);var s=_g.length,l=Math.min(S0e(_g,this._approxInterval,0,s),s-1);this._interval=_g[l][1],this._minLevelUnit=_g[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return rt(r)?r:+ka(r)},t.prototype.contain=function(r){return dx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return hx(this.parse(r),this._extent)},t.prototype.scale=function(r){return px(r,this._extent)},t.type="time",t}(As),_g=[["second",O2],["minute",N2],["hour",Th],["quarter-day",Th*6],["half-day",Th*12],["day",si*1.2],["half-week",si*3.5],["week",si*7],["month",si*31],["quarter",si*95],["half-year",bR/2],["year",bR]];function b0e(e,t,r,n){var i=ka(t),a=ka(r),o=function(p){return wR(i,p,n)===wR(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function _0e(e,t){return e/=si,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function w0e(e){var t=30*si;return e/=t,e>6?6:e>3?3:e>2?2:1}function C0e(e){return e/=Th,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function EO(e,t){return e/=t?N2:O2,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function T0e(e){return DG(e,!0)}function A0e(e,t,r){var n=new Date(e);switch(Fc(t)){case"year":case"month":n[jH(r)](0);case"day":n[YH(r)](1);case"hour":n[qH(r)](0);case"minute":n[XH(r)](0);case"second":n[ZH(r)](0),n[KH(r)](0)}return n.getTime()}function M0e(e,t,r,n){var i=1e4,a=WH,o=0;function s(T,M,I,P,k,L,O){for(var F=new Date(M),R=M,$=F[P]();R1&&L===0&&I.unshift({value:I[0].value-R})}}for(var L=0;L=n[0]&&m<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=ct(Z(u,function(T){return ct(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[jt(k0e(n[0]/a)*a),jt(P0e(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Ih.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ci(r)/Ci(this.base),dx(r,this._extent)},t.prototype.normalize=function(r){return r=Ci(r)/Ci(this.base),hx(r,this._extent)},t.prototype.scale=function(r){return r=px(r,this._extent),wg(this.base,r)},t.type="log",t}(xo),OW=oI.prototype;OW.getMinorTicks=Ih.getMinorTicks;OW.getLabel=Ih.getLabel;function Cg(e,t){return I0e(e,ha(t))}xo.registerClass(oI);const D0e=oI;var L0e=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[R0e[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=E0e[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),E0e={min:"_determinedMin",max:"_determinedMax"},R0e={min:"_dataMin",max:"_dataMax"};function NW(e,t,r){var n=e.rawExtentInfo;return n||(n=new L0e(e,t,r),e.rawExtentInfo=n,n)}function Tg(e,t){return t==null?null:op(t)?NaN:e.parse(t)}function zW(e,t){var r=e.type,n=NW(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=AW("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=MW(s),c=O0e(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function O0e(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=m0e(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function sf(e,t){var r=t,n=zW(e,r),i=n.extent,a=r.get("splitNumber");e instanceof D0e&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function vx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new nI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new RW({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(xo.getClass(t)||As)}}function N0e(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function av(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):oe(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):ye(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(sI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function sI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function z0e(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof nI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=av(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var ov=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),$0e=1e-8;function OO(e,t){return Math.abs(e-t)<$0e}function _l(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;ai&&(n=o,i=l)}if(n)return G0e(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?NO(s.exterior,i,a,r):D(s.points,function(l){NO(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function U0e(e,t){return e=W0e(e),Z(ct(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new zO(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new zO(l[0],l.slice(1)))});break;case"LineString":a.push(new BO([i.coordinates]));break;case"MultiLineString":a.push(new BO(i.coordinates))}var s=new $W(n[t||"name"],a,n.cp);return s.properties=n,s})}var _p=Qe();function j0e(e){return e.type==="category"?q0e(e):Z0e(e)}function Y0e(e,t){return e.type==="category"?X0e(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function q0e(e){var t=e.getLabelModel(),r=GW(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function GW(e,t){var r=HW(e,"labels"),n=lI(t),i=WW(r,n);if(i)return i;var a,o;return ye(n)?a=YW(e,n):(o=n==="auto"?K0e(e):n,a=jW(e,o)),UW(r,n,{labels:a,labelCategoryInterval:o})}function X0e(e,t){var r=HW(e,"ticks"),n=lI(t),i=WW(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ye(n))a=YW(e,n,!0);else if(n==="auto"){var s=GW(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=jW(e,o,!0);return UW(r,n,{ticks:a,tickCategoryInterval:o})}function Z0e(e){var t=e.scale.getTicks(),r=av(e);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function HW(e,t){return _p(e)[t]||(_p(e)[t]=[])}function WW(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=Xp(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var y=d/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),S=_p(e.model),_=e.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&S.axisExtent0===_[0]&&S.axisExtent1===_[1]?x=b:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=_[0],S.axisExtent1=_[1]),x}function J0e(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function jW(e,t,r){var n=av(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=BW(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function YW(e,t,r){var n=e.scale,i=av(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var FO=[0,1],e1e=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return PG(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),$O(n,i.count())),ut(t,FO,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),$O(n,i.count()));var a=ut(t,n,FO,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Y0e(this,r),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return t1e(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return j0e(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Q0e(this)},e}();function $O(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function t1e(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=jt(h),p=jt(p),f?h>p:hi&&(i+=bd);var h=Math.atan2(s,o);if(h<0&&(h+=bd),h>=n&&h<=i||h+bd>=n&&h+bd<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,y=r*Math.sin(i)+t,m=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(y-s)*(y-s);return m0){t=t/180*Math.PI,Ri.fromArray(e[0]),xt.fromArray(e[1]),Qt.fromArray(e[2]),Ee.sub(ga,Ri,xt),Ee.sub(ua,Qt,xt);var r=ga.len(),n=ua.len();if(!(r<.001||n<.001)){ga.scale(1/r),ua.scale(1/n);var i=ga.dot(ua),a=Math.cos(t);if(a1&&Ee.copy(en,Qt),en.toArray(e[1])}}}}function s1e(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ri.fromArray(e[0]),xt.fromArray(e[1]),Qt.fromArray(e[2]),Ee.sub(ga,xt,Ri),Ee.sub(ua,Qt,xt);var n=ga.len(),i=ua.len();if(!(n<.001||i<.001)){ga.scale(1/n),ua.scale(1/i);var a=ga.dot(t),o=Math.cos(r);if(a=l)Ee.copy(en,Qt);else{en.scaleAndAdd(ua,s/Math.tan(Math.PI/2-c));var f=Qt.x!==xt.x?(en.x-xt.x)/(Qt.x-xt.x):(en.y-xt.y)/(Qt.y-xt.y);if(isNaN(f))return;f<0?Ee.copy(en,xt):f>1&&Ee.copy(en,Qt)}en.toArray(e[1])}}}}function GO(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function l1e(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Uo(n[0],n[1]),a=Uo(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=yy([],n[1],n[0],o/i),l=yy([],n[1],n[2],o/a),u=yy([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&_(-c/o,0,o);var v=e[0],g=e[o-1],y,m;x(),y<0&&b(-y,.8),m<0&&b(m,.8),x(),S(y,m,1),S(m,y,-1),x(),y<0&&w(-y),m<0&&w(m);function x(){y=v.rect[t]-n,m=i-g.rect[t]-g.rect[r]}function S(C,A,T){if(C<0){var M=Math.min(A,-C);if(M>0){_(M*T,0,o);var I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var O=T[I-1]*L;_(-O,I,o)}}}function w(C){var A=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(o-1)),M=0;M0?_(T,0,M+1):_(-T,o-M-1,o),C-=T,C<=0)return}return u}function u1e(e,t,r,n){return KW(e,"x","width",t,r,n)}function QW(e,t,r,n){return KW(e,"y","height",t,r,n)}function JW(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),nt(n,u,r,l)}else if(n.attr(u),!Df(n).valueAnimation){var f=Re(n.style.opacity,1);n.style.opacity=0,kt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Ag(h,u,Mg),Ag(h,n.states.select,Mg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Ag(p,u,Mg),Ag(p,n.states.emphasis,Mg)}FH(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=d1e(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),nt(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,kt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const p1e=h1e;var Vb=Qe();function v1e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Vb(r).labelManager;i||(i=Vb(r).labelManager=new p1e),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Vb(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var Gb=Math.sin,Hb=Math.cos,eU=Math.PI,al=Math.PI*2,g1e=180/eU,y1e=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Zo(f-al)||(c?u>=al:-u>=al),h=u>0?u%al:u%al+al,p=!1;d?p=!0:Zo(f)?p=!1:p=h>=eU==!!c;var v=t+n*Hb(o),g=r+i*Gb(o);this._start&&this._add("M",v,g);var y=Math.round(a*g1e);if(d){var m=1/this._p,x=(c?1:-1)*(al-m);this._add("A",n,i,y,1,+c,t+n*Hb(o+x),r+i*Gb(o+x)),m>.01&&this._add("A",n,i,y,0,+c,v,g)}else{var S=t+n*Hb(s),_=r+i*Gb(s);this._add("A",n,i,y,+p,+c,S,_)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function A1e(e){return""}function fI(e,t){t=t||{};var r=t.newline?` -`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return T1e(o,s)+(o!=="style"?pn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+A1e(o)}return n(e)}function M1e(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function _T(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function WO(e,t,r,n){return pr("svg","root",{width:e,height:t,xmlns:rU,"xmlns:xlink":nU,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var UO={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},pl="transform-origin";function I1e(e,t,r){var n=j({},e.shape);j(n,t),e.buildPath(r,n);var i=new tU;return i.reset(mG(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function P1e(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[pl]=r+"px "+n+"px")}var k1e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function aU(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function D1e(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=_T(r.zrId);u.animation=!0,gx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=aU(i,r);return a.replace(o,s)}}function jO(e){return oe(e)?UO[e]?"cubic-bezier("+UO[e]+")":h2(e)?e:"":""}function gx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof k2){var s=D1e(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ee=aU(w,r);return ee+" "+m[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var wp=Math.round;function oU(e){return e&&oe(e.src)}function sU(e){return e&&ye(e.toDataURL)}function dI(e,t,r,n){_1e(function(i,a){var o=i==="fill"||i==="stroke";o&&yG(a)?uU(t,e,i,n):o&&p2(a)?cU(r,e,i,n):e[i]=a},t,r,!1),B1e(r,e,n)}function YO(e){return Zo(e[0]-1)&&Zo(e[1])&&Zo(e[2])&&Zo(e[3]-1)}function L1e(e){return Zo(e[4])&&Zo(e[5])}function hI(e,t,r){if(t&&!(L1e(t)&&YO(t))){var n=r?10:1e4;e.transform=YO(t)?"translate("+wp(t[4]*n)/n+" "+wp(t[5]*n)/n+")":kde(t)}}function qO(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";an(d,g),an(h,g)}else if(d==null||h==null){var y=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},m=b2(p,null,e,function(T){l||y(b,T),y(f,T)});m&&m.width&&m.height&&(d=d||m.width,h=h||m.height)}f=pr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var _=xG(i);_&&(o.patternTransform=_);var b=pr("pattern","",o,[f]),w=fI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=pr("pattern",A,o,[f])),t[r]=H1(A)}}function F1e(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=pr("clipPath",a,o,[lU(e,r)])}t["clip-path"]=H1(a)}function KO(e){return document.createTextNode(e)}function wl(e,t,r){e.insertBefore(t,r)}function QO(e,t){e.removeChild(t)}function JO(e,t){e.appendChild(t)}function fU(e){return e.parentNode}function dU(e){return e.nextSibling}function Wb(e,t){e.textContent=t}var eN=58,$1e=120,V1e=pr("","");function wT(e){return e===void 0}function ra(e){return e!==void 0}function G1e(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function jd(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Cp(e){var t,r=e.children,n=e.tag;if(ra(n)){var i=e.elm=iU(n);if(pI(V1e,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,hU(e,p,r,i,l)):n0(e,t,n,a))}function oc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(pI(e,t),wT(t.text)?ra(n)&&ra(i)?n!==i&&H1e(r,n,i):ra(i)?(ra(e.text)&&Wb(r,""),hU(r,null,i,0,i.length-1)):ra(n)?n0(r,n,0,n.length-1):ra(e.text)&&Wb(r,""):e.text!==t.text&&(ra(n)&&n0(r,n,0,n.length-1),Wb(r,t.text)))}function W1e(e,t){if(jd(e,t))oc(e,t);else{var r=e.elm,n=fU(r);Cp(t),n!==null&&(wl(n,t.elm,dU(r)),n0(n,[e],0,0))}return t}var U1e=0,j1e=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=tN(),this.configLayer=tN(),this.storage=r,this._opts=n=j({},n),this.root=t,this._id="zr"+U1e++,this._oldVNode=WO(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=iU("svg");pI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",W1e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return ZO(t,_T(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=_T(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Y1e(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=pr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(pr("defs","defs",{},u)),t.animation){var c=M1e(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=pr("style","stl",{},[],c);o.push(f)}}return WO(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},fI(this.renderToVNode({animation:Re(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Re(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var y=v+1;y=s)}}for(var f=this.__startIndex;f15)break}}k.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var T=h.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?Ig:0),this._needsManuallyCompositing),c.__builtin__||o2("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Ln&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Rt);const ixe=nxe;function lf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=af(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var axe=function(e){G(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=ir(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=oxe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){lo(this.childAt(0))},t.prototype.downplay=function(){uo(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):nt(d,h,s,n),Hi(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,kt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=vr(m),g=x.getShallow("scale"),y=m.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var _=Su(r.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),y&&s.attr("cursor",y);var b=r.getItemVisual(n,"style"),w=b.fill;if(s instanceof Nr){var C=s.style;s.useStyle(j({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(j({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),T=this._z2;A!=null?T==null&&(this._z2=s.z2,s.z2+=A):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;Or(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(L){return M?r.getName(L):lf(r,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Gt(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ws(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ws(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Ff(r.getItemVisual(n,"symbolSize"))},t}(Ae);function oxe(e,t){this.parent.drift(e,t)}const sv=axe;function jb(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function iN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function aN(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:vr(t),cursorStyle:t.get("cursor")}}var sxe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||sv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=iN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=aN(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(jb(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!jb(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):nt(h,y,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=iN(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function gU(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function uxe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function cxe(e,t,r,n,i,a,o,s){for(var l=uxe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=vU(i,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],x=0;x=i||v<0)break;if(Xl(y,m)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](y,m),f=y,d=m;else{var x=y-u,S=m-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],w=t[_*2+1];b===y&&w===m&&g=n||Xl(b,w))h=y,p=m;else{T=b-u,M=w-c;var k=y-u,L=b-y,O=m-c,F=w-m,R=void 0,$=void 0;if(s==="x"){R=Math.abs(k),$=Math.abs(L);var E=T>0?1:-1;h=y-E*R*o,p=m,I=y+E*$*o,P=m}else if(s==="y"){R=Math.abs(O),$=Math.abs(F);var V=M>0?1:-1;h=y,p=m-V*R*o,I=y,P=m+V*$*o}else R=Math.sqrt(k*k+O*O),$=Math.sqrt(L*L+F*F),A=$/($+R),h=y-T*o*(1-A),p=m-M*o*(1-A),I=y+T*o*A,P=m+M*o*A,I=Do(I,Lo(b,y)),P=Do(P,Lo(w,m)),I=Lo(I,Do(b,y)),P=Lo(P,Do(w,m)),T=I-y,M=P-m,h=y-T*R/$,p=m-M*R/$,h=Do(h,Lo(u,y)),p=Do(p,Lo(c,m)),h=Lo(h,Do(u,y)),p=Lo(p,Do(c,m)),T=y-h,M=m-p,I=y+T*$/R,P=m+M*$/R}e.bezierCurveTo(f,d,h,p,y,m),f=I,d=P}else e.lineTo(y,m)}u=y,c=m,v+=a}return g}var yU=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),fxe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yU},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Xl(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],y=a[f++],m=a[f++];var _=u?km(s,h,v,y,r,c):km(l,p,g,m,r,c);if(_>0)for(var b=0;b<_;b++){var w=c[b];if(w<=1&&w>=0){var S=u?dr(l,p,g,m,w):dr(s,h,v,y,w);return u?[r,S]:[S,r]}}s=y,l=m;break}}},t}($e),dxe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yU),mU=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new dxe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Xl(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function vxe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=pxe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,y=g-v;if(y<.001)return"transparent";D(d,function(x){x.offset=(x.coord-v)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var m=new Qp(0,0,0,0,d,!0);return m[i]=v,m[i+"2"]=g,m}}}function gxe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&yxe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function yxe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function mxe(e,t){return isNaN(e)||isNaN(t)}function xxe(e){for(var t=e.length/2;t>0&&mxe(e[t*2-2],e[t*2-1]);t--);return t-1}function cN(e,t){return[e[t*2],e[t*2+1]]}function Sxe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function bU(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var E=v.getState("emphasis").style;E.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Gt(v,F,R,$);var V=uN(r.get("smooth")),W=r.get("smoothMonotone");if(v.setShape({smooth:V,smoothMonotone:W,connectNulls:C}),g){var z=l.getCalculationInfo("stackedOnSeries"),U=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(U=uN(z.get("smooth"))),g.setShape({smooth:V,stackedOnSmooth:U,smoothMonotone:W,connectNulls:C}),Rr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Gt(g,F,R,$)}var X=function(H){a._changePolyState(H)};l.eachItemGraphicEl(function(H){H&&(H.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Ie(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=ou(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new sv(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else wt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=ou(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else wt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Bm(this._polyline,r),n&&Bm(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new fxe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new mU({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ye(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ye(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],y=void 0,m=void 0,x=void 0;if(i)if(o){var S=i,_=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,x=-_[1]/180*Math.PI):(y=S.r0,m=S.r,x=_[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,x=h.x):(y=b.y+b.height,m=b.y,x=h.y)}var w=m===y?0:(x-y)/(m-y);l&&(w=1-w);var C=ye(f)?f(p):c*w+d,A=v.getSymbolPath(),T=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(bU(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=xxe(l);c>=0&&(Or(s,vr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?pU(o,h):lf(o,f)},enableTextSetter:!0},bxe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,x=n.shape,S=m?y?x.x:x.y+x.height:y?x.x+x.width:x.y,_=(y?v:0)*(m?-1:1),b=(y?0:-v)*(m?-1:1),w=y?"x":"y",C=Sxe(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=cN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=$G(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var L=r===1||a.lastFrameIndex>0?A[0]:0,I=cN(f,L);o&&(M=d.getRawValue(L)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var O=Df(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=cxe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=Eo(d.current,i,o,l),p=Eo(d.stackedOnCurrent,i,o,l),v=Eo(d.next,i,o,l),g=Eo(d.stackedOnNext,i,o,l)),lN(h,v)>3e3||c&&lN(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:v}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),nt(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),nt(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],x=d.status,S=0;St&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;oe(a)?p=Cxe[a]:ye(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,Txe))}}}}}function Axe(e){e.registerChartView(wxe),e.registerSeriesModel(ixe),e.registerLayout(uv("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_U("line"))}var wU=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return mo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,x=1,S=0;Sv){m=(_+y)/2;break}S===1&&(x=b-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[h]=d.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Rt);Rt.registerClass(wU);const i0=wU;var Mxe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return mo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Os(i0.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(i0);const Ixe=Mxe;var Pxe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),kxe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Pxe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){pp(a,r,Ie(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(wt),fN={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=qb(t.x,e.x),s=Xb(t.x+t.width,i),l=qb(t.y,e.y),u=Xb(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Xb(t.r,e.r),a=qb(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},dN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ke({shape:j({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?a0:Tn,c=new u({shape:n,z2:1});c.name="item";var f=CU(i);if(c.calculateTextPosition=Dxe(f,{isRoundCap:u===a0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?nt:kt)(c,{shape:p},a)}return c}};function Oxe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function hN(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?nt:kt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?nt:kt)(r,{shape:u},c,i)}function pN(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Bxe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function CU(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function gN(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Bl(n.getModel("itemStyle"),c,!0);j(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=vr(n);Or(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:lf(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,Lxe(e,g==="outside"?h:g,CU(o),n.get(["label","rotate"]))}BH(v,p,a.getRawValue(r),function(m){return pU(t,m)});var y=n.getModel(["emphasis"]);Gt(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Rr(e,n),Bxe(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Fxe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var $xe=function(){function e(){}return e}(),yN=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new $xe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Vxe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function TU(e,t,r){if(_u(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Gxe(e,t,r){var n=e.type==="polar"?Tn:Ke;return new n({shape:TU(t,r,e),silent:!0,z2:0})}const Hxe=Rxe;function Wxe(e){e.registerChartView(Hxe),e.registerSeriesModel(Ixe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(PW,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kW("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_U("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Lg=Math.PI*2,SN=Math.PI/180;function AU(e,t){return cr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function MU(e,t){var r=AU(e,t),n=e.get("center"),i=e.get("radius");q(i)||(i=[0,i]);var a=ne(r.width,t.getWidth()),o=ne(r.height,t.getHeight()),s=Math.min(a,o),l=ne(i[0],s/2),u=ne(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else q(n)||(n=[n,n]),c=ne(n[0],a)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Uxe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=AU(n,r),s=MU(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*SN,h=n.get("minAngle")*SN,p=0;i.each(a,function(T){!isNaN(T)&&p++});var v=i.getSum(a),g=Math.PI/(v||p)*2,y=n.get("clockwise"),m=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var _=Lg,b=0,w=d,C=y?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;if(isNaN(T)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?I=v===0&&x?g:T*g:I=Lg/p,Ir?y:g,_=Math.abs(x.label.y-r);if(_>=S.maxY){var b=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function Zb(e){return e.position==="center"}function qxe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*jxe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),T=w.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),L=I.get("alignTo"),O=ne(I.get("edgeDistance"),u),F=I.get("bleedMargin"),R=M.getModel("labelLine"),$=R.get("length");$=ne($,u);var E=R.get("length2");if(E=ne(E,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":W>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(rt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var it=W<0?-V+ke:-V;We=it}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var at=Math.atan2(W,z);at<0&&(at=ke*2+at);var At=z>0;At&&(at=ke+at),We=at-ke}if(a=!!We,A.x=U,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Wt=A.states.select;Wt&&(Wt.x+=A.x,Wt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Mt=(A.style.margin||0)+2.1;Be.y-=Mt/2,Be.height+=Mt,r.push({label:A,labelLine:T,position:P,len:$,len2:E,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new Ee(W,z),linePoints:H,textAlign:ee,labelDistance:k,labelAlignTo:L,edgeDistance:O,bleedMargin:F,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&Yxe(r,n,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(wt);const Kxe=Zxe;function $f(e,t,r){t=q(t)&&{coordDimensions:t}||j({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=iv(n,t).dimensions,a=new nn(i,e);return a.initData(n,r),a}var Qxe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const fv=Qxe;var Jxe=Qe(),eSe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new fv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $f(this,{coordDimensions:["value"],encodeDefaulter:Pe(F2,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=Jxe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=dhe(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){au(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Rt);const tSe=eSe;function rSe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(rt(o)&&!isNaN(o)&&o<0)})}}}function nSe(e){e.registerChartView(Kxe),e.registerSeriesModel(tSe),j6("pie",e.registerAction),e.registerLayout(Pe(Uxe,"pie")),e.registerProcessor(cv("pie")),e.registerProcessor(rSe("pie"))}var iSe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return mo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Rt);const aSe=iSe;var PU=4,oSe=function(){function e(){}return e}(),sSe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new oSe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const uSe=lSe;var cSe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=uv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new uSe:new lv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(wt);const fSe=cSe;var dSe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Je);const hSe=dSe;var TT=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",nr).models[0]},t.type="cartesian2dAxis",t}(Je);ar(TT,ov);var kU={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},pSe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},kU),vI=Oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},kU),vSe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vI),gSe=xe({logBase:10},vI);const DU={category:pSe,value:vI,time:vSe,log:gSe};var ySe={value:1,category:1,time:1,log:1};function uf(e,t,r,n){D(ySe,function(i,a){var o=Oe(Oe({},DU[a],!0),n,!0),s=function(l){G(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=yp(this),h=d?Rf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=_N(c),d&&Cs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=mT.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",_N)}function _N(e){return e.type||(e.data?"category":"value")}var mSe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ct(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const xSe=mSe;var AT=["x","y"];function wN(e){return e.type==="interval"||e.type==="time"}var SSe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=AT,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!wN(r)||!wN(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Af([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Dr(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Dr(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ne(i,a,o,s)},t}(xSe),bSe=function(e){G(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ui);const _Se=bSe;function MT(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),br(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function CN(e){return e.get("coordinateSystem")==="cartesian2d"}function TN(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,nr).models[0];t[n]=a}),t}var Kb=Math.log;function LU(e,t,r){var n=As.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=zW(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=Kb(e.base);u=[Kb(u[0])/d,Kb(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=zb(p),v=u[1]-p*o;else{var y=e.getTicks().length-1;y>o&&(p=zb(p));var m=p*o;g=Math.ceil(u[1]/p)*p,v=jt(g-m),v<0&&u[0]>=0?(v=0,g=jt(m)):g>0&&u[1]<=0&&(g=0,v=-jt(m))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var wSe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=AT,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;xT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(sf(v,p),xT(v)&&(s=h))}c.length&&(s||(s=c.pop(),sf(s.scale,s.model)),D(c,function(g){LU(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){AN(n,"y",o,a)}),D(n.y,function(o){AN(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=cr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=z0e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),CSe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Nm(i-Ko)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),IN={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Dr(s,s,o),Dr(l,l,o));var c=j({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new _r({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});nf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);oe(d)&&(d=[d,d]),(oe(h)||rt(h))&&(h=[h,h]);var p=Su(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var x=ir(d[m],-v/2,-g/2,v,g,c.stroke,!0),S=y.r+y.offset,_=u?l:s;x.attr({rotation:y.rotate,x:_[0]+S*Math.cos(e.rotation),y:_[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=ISe(r,n,t,e),a=kSe(r,n,t,e);if(MSe(t,a,i),PSe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ZW(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));JW(o)}},axisName:function(e,t,r,n){var i=br(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,kN(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Ko/180);var p;kN(a)?d=Zl.innerTextLayout(e.rotation,h??e.rotation,o):(d=ASe(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=br(e.nameTruncateMaxWidth,g.maxWidth,p),x=new tt({x:f[0],y:f[1],rotation:d.rotation,silent:Zl.isLabelSilent(t),style:St(s,{text:i,font:v,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(kf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=Zl.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function ASe(e,t,r,n){var i=kG(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Nm(i-Ko/2)?(o=l?"bottom":"top",a="center"):Nm(i-Ko*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iKo/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function MSe(e,t,r){if(!BW(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(jn(a),jn(u)):PN(a,o)&&(n?(jn(o),jn(c)):(jn(a),jn(u))),i===!1?(jn(s),jn(f)):PN(l,s)&&(i?(jn(l),jn(d)):(jn(s),jn(f)))}}function jn(e){e&&(e.ignore=!0)}function PN(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=G1([]);return mu(i,i,-e.rotation),r.applyTransform(Xa([],i,e.getLocalTransform())),n.applyTransform(Xa([],i,t.getLocalTransform())),r.intersect(n)}}function kN(e){return e==="middle"||e==="center"}function EU(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function NSe(e){var t=gI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=IT(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=xe({color:p.color},l));var g=Oe(we(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(oe(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else ye(c)&&(g.name=c(g.name,g));var m=new bt(g,null,this.ecModel);return ar(m,ov.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},_d.axisLine),axisLabel:Eg(_d.axisLabel,!1),axisTick:Eg(_d.axisTick,!1),splitLine:Eg(_d.splitLine,!0),splitArea:Eg(_d.splitArea,!0),indicator:[]},t}(Je);const QSe=KSe;var JSe=["axisLine","axisTickLabel","axisName"],ebe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new fo(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(JSe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=q(d)?d:[d],v=q(h)?h:[h],g=[],y=[];function m(L,O,F){var R=F%O.length;return L[R]=L[R]||[],R}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,_=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;e_(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);e_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!NN(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;e_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(xi);function e_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(oo(n.event),FU(e,t,r,n,i))}function FU(e,t,r,n,i){i.isAvailableBehavior=ue(Dy,null,r,n),e.trigger(t,i)}function Dy(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const dv=cbe;function mI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function xI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var fbe={axisPointer:1,tooltip:1,brush:1};function mx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!fbe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function $U(e){if(oe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var t_,o0={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},zN=He(o0),s0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},BN=He(s0),dbe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=$U(t);this._defsUsePending=[];var i=new Ae;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),In(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;vbe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=xx(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=GU(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ke({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=t_[s];if(c&&ce(t_,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=FN[s];if(h&&ce(FN,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new fp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Yn(r,n),In(t,n,this._defsUsePending,!1,!1),hbe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){t_={g:function(t,r){var n=new Ae;return Yn(r,n),In(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ke;return Yn(r,n),In(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new La;return Yn(r,n),In(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new _r;return Yn(r,n),In(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new I2;return Yn(r,n),In(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=GN(n));var a=new An({shape:{points:i||[]},silent:!0});return Yn(r,a),In(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=GN(n));var a=new Mn({shape:{points:i||[]},silent:!0});return Yn(r,a),In(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Nr;return Yn(r,n),In(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Ae;return Yn(r,s),In(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ae;return Yn(r,s),In(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=gH(n);return Yn(r,i),In(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),FN={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Qp(t,r,n,i);return $N(e,a),VN(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new PH(t,r,n);return $N(e,i),VN(e,i),i}};function $N(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function VN(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};VU(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Yn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function GN(e){for(var t=xx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=xx(o);switch(i=i||vi(),s){case"translate":Ia(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":d2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":mu(i,i,-parseFloat(l[0])*r_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*r_);Xa(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*r_);Xa(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var WN=/([^\s:;]+)\s*:\s*([^:;]+)/g;function VU(e,t,r){var n=e.getAttribute("style");if(n){WN.lastIndex=0;for(var i;(i=WN.exec(n))!=null;){var a=i[1],o=ce(o0,a)?o0[a]:null;o&&(t[o]=i[2]);var s=ce(s0,a)?s0[a]:null;s&&(r[s]=i[2])}}}function xbe(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ve(),n=ve(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Or(t,vr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(HU(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function XN(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function ZN(e,t,r,n,i){e.data||kf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function KN(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Gt(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Gpe(t,i,r),o}function QN(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Rt);const Vbe=$be;function Gbe(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var _=e.getBoxLayoutParams();_.aspect=g,S=cr(_,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Ybe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var qbe=function(){function e(){this.dimensions=UU}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new rz(l+s,l,j({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=nz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new rz(s,s,j({nameMap:s2(l)},i(o[0])));u.zoomLimit=br.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=nz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,Ybe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function n_e(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){o_e(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=s_e(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function i_e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function az(e){return arguments.length?e:c_e}function Yd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function a_e(e,t){return cr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function o_e(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function s_e(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=n_(s),a=i_(a),s&&a;){i=n_(i),o=i_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(u_e(l_e(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!n_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!i_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function n_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function i_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function l_e(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function u_e(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function c_e(e,t){return e.parentNode===t.parentNode?1:2}var f_e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),d_e=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new f_e},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ne(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;pm.x,_||(S=S-Math.PI));var w=_?"left":"right",C=s.getModel("label"),A=C.get("rotate"),T=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-S:T,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),P=I==="relative"?Im(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),p_e(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var L=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);L&&L.hoverState===Kp||Bm(r.__edge,k)}})}function p_e(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new Q1({shape:DT(c,f,d,i,i)})),nt(v,{shape:DT(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;mr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(oe(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function QU(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function CI(e,t){var r=QU(e);return ze(r,t)>=0}function Sx(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var T_e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new bt(i,this,this.ecModel),o=wI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return gr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Sx(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Rt);const A_e=T_e;function M_e(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function I_e(e,t){e.eachSeriesByType("tree",function(r){P_e(r,t)})}function P_e(e,t){var r=a_e(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=az(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=az());var s=e.getData().tree.root,l=s.children[0];if(l){r_e(s),M_e(l,n_e,o),s.hierNode.modifier=-l.hierNode.prelim,Cd(l,i_e);var u=l,c=l,f=l;Cd(l,function(x){var S=x.getLayout().x;Sc.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,y=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Cd(l,function(x){g=(x.getLayout().x+h)*p,y=(x.depth-1)*v;var S=Yd(g,y);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=e.getOrient();m==="RL"||m==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Cd(l,function(x){y=(x.getLayout().x+h)*v,g=m==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Cd(l,function(x){g=(x.getLayout().x+h)*p,y=m==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y},!0)}))}}}function k_e(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");j(s,o)})})}function D_e(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=bI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function L_e(e){e.registerChartView(v_e),e.registerSeriesModel(A_e),e.registerLayout(I_e),e.registerVisual(k_e),D_e(e)}var cz=["treemapZoomToNode","treemapRender","treemapMove"];function E_e(e){for(var t=0;t1;)a=a.parentNode;var o=oT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var R_e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};e8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new bt({itemStyle:o},this,n);a=r.levels=O_e(a,n);var l=Z(a||[],function(f){return new bt(f,s,n)},this),u=wI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return gr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=Sx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},j(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JU(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Rt);function e8(e){var t=0;D(e.children,function(n){e8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function O_e(e,t){var r=dt(t.get("color")),n=dt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(e,function(s){var l=new bt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}const N_e=R_e;var z_e=8,fz=8,a_=5,B_e=function(){function e(t){this.group=new Ae,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),sx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=ur(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+z_e*2,r.emptyItemWidth);r.totalWidth+=s+fz,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=Kve(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],y=g.node,m=g.width,x=g.text;d>f.width&&(d-=m-u,m=u,x=null);var S=new An({shape:{points:F_e(l,0,m,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new tt({style:St(a,{text:x})}),textConfig:{position:"inside"},z2:If*1e4,onclick:Pe(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=St(o,{text:x}),S.ensureState("emphasis").style=p,Gt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),$_e(S,t,y),l+=m+fz}},e.prototype.remove=function(){this.group.removeAll()},e}();function F_e(e,t,r,n,i,a){var o=[[i?e:e-a_,t],[e+r,t],[e+r,t+n],[i?e:e-a_,t+n]];return!a&&o.splice(2,0,[e+r+a_,t+n/2]),!i&&o.push([e,t+n/2]),o}function $_e(e,t,r){Ie(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Sx(r,t)}}const V_e=B_e;var G_e=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;ihz||Math.abs(r.dy)>hz)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ne(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=vi();Ia(u,u,[-n,-i]),d2(u,u,[r.scale,r.scale]),Ia(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Wm(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new V_e(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(CI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Td(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(wt);function Td(){return{nodeGroup:[],background:[],content:[]}}function q_e(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,_=x&&x.length,b=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,M=U("nodeGroup",LT);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),l0(M).nodeWidth=h,l0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=U("background",dz,u,U_e);I&&$(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),L=P.get("blurScope"),O=P.get("disabled"),F=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)hp(M)&&El(M,!1),I&&(El(I,!O),f.setItemGraphicEl(o.dataIndex,I),QC(I,F,L));else{var R=U("content",dz,u,j_e);R&&E(M,R),I.disableMorphing=!0,I&&hp(I)&&El(I,!1),El(M,!O),f.setItemGraphicEl(o.dataIndex,M),QC(M,F,L)}return M;function $(ee,te,ie){var re=Ie(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:p,r:T}),g)V(te);else{te.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,fe=gz(b);fe.fill=J;var de=gl(w);de.fill=w.get("borderColor");var ke=gl(C);ke.fill=C.get("borderColor");var We=gl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;W(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,lu(te)}ee.add(te)}function E(ee,te){var ie=Ie(te);ie.dataIndex=o.dataIndex,ie.seriesIndex=e.seriesIndex;var re=Math.max(h-2*v,0),Q=Math.max(p-2*v,0);if(te.culling=!0,te.setShape({x:v,y:v,width:re,height:Q,r:T}),g)V(te);else{te.invisible=!1;var J=o.getVisual("style"),fe=J.fill,de=gz(b);de.fill=fe,de.decal=J.decal;var ke=gl(w),We=gl(C),Ge=gl(A);W(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,lu(te)}ee.add(te)}function V(ee){!ee.invisible&&a.push(ee)}function W(ee,te,ie,re){var Q=d.getModel(re?vz:pz),J=ur(d.get("name"),null),fe=Q.getShallow("show");Or(ee,vr(d,re?vz:pz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=u2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var it=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),at=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==it||ke.height!==at)&&de.setStyle({width:it,height:at})},ke.truncateMinChar=2,ke.lineOverflow="truncate",z(ke,re,c);var Ge=de.getState("emphasis");z(Ge?Ge.style:null,re,c)}}function z(ee,te,ie){var re=ee?ee.text:null;if(!te&&ie.isLeafRoot&&re!=null){var Q=e.get("drillDownIcon",!0);ee.text=Q?Q+" "+re:re}}function U(ee,te,ie,re){var Q=m!=null&&r[ee][m],J=i[ee];return Q?(r[ee][m]=null,X(J,Q)):g||(Q=new te,Q instanceof gi&&(Q.z2=X_e(ie,re)),H(J,Q)),t[ee][y]=Q}function X(ee,te){var ie=ee[y]={};te instanceof LT?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=j({},te.shape)}function H(ee,te){var ie=ee[y]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function X_e(e,t){return e*W_e+t}const Z_e=Y_e;var Mp=D,K_e=Se,u0=-1,TI=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=ewe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(o_(i),Q_e(i)):r==="category"?i.categories?J_e(i):o_(i,!0):(an(r!=="linear"||i.dataExtent),o_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Mp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(K_e(t)){var r=[];Mp(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function o_(e,t){var r=e.visual,n=[];Se(r)?Mp(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),t8(e,n)}function Og(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:ET([0,1])}}function yz(e){var t=this.option.visual;return t[Math.round(ut(e,[0,1],[0,t.length-1],!0))]||{}}function Ad(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function qd(e){var t=this.option.visual;return t[this.option.loop&&e!==u0?e%t.length:e]}function yl(){return this.option.visual[0]}function ET(e){return{linear:function(t){return ut(t,e,this.option.visual,!0)},category:qd,piecewise:function(t,r){var n=RT.call(this,r);return n==null&&(n=ut(t,e,this.option.visual,!0)),n},fixed:yl}}function RT(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=TI.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function t8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=zn(r);return n||[0,0,0,1]})),t}var ewe={linear:function(e){return ut(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=TI.findPieceIndex(e,t,!0);if(r!=null)return ut(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??u0},fixed:Jt};function Ng(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var y=owe(i,l,v,g,p,n);n8(v,y,r,n)}})}}}function nwe(e,t,r){var n=j({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function mz(e){var t=s_(e,"color");if(t){var r=s_(e,"colorAlpha"),n=s_(e,"colorSaturation");return n&&(t=mh(t,null,null,n)),r&&(t=Dm(t,r)),t}}function iwe(e,t){return t!=null?mh(t,null,null,e):null}function s_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function awe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=l_(t,"color")||i.color!=null&&i.color!=="none"&&(l_(t,"colorAlpha")||l_(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Lr(f);return r8(d).drColorMappingBy=c,d}}}function l_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function owe(e,t,r,n,i,a){var o=j({},t);if(i){var s=i.type,l=s==="color"&&r8(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Ip=Math.max,c0=Math.min,xz=br,AI=D,i8=["itemStyle","borderWidth"],swe=["itemStyle","gapWidth"],lwe=["upperLabel","show"],uwe=["upperLabel","height"];const cwe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=cr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(xz(s.width,l[0]),i),c=ne(xz(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Ap(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=QU(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?gwe(e,h,v,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var x={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(S),a8(v,x,!1,0),S=v.getLayout(),AI(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(j({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(ywe(s,p,h),!0),e.setLayoutInfo(s),o8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function a8(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(i8),u=s.get(swe)/2,c=s8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Ip(i-2*d,0),a=Ip(a-d-h,0);var p=i*a,v=fwe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},y=c0(i,a),m=1/0,x=[];x.area=0;for(var S=0,_=v.length;S<_;){var b=v[S];x.push(b),x.area+=b.getLayout().area;var w=vwe(x,y,t.squareRatio);w<=m?(S++,m=w):(x.area-=x.pop().getLayout().area,Sz(x,y,g,u,!1),y=c0(g.width,g.height),x.length=x.area=0,m=1/0)}if(x.length&&Sz(x,y,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function vwe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Ip(u*n/l,l/(u*i)):1/0}function Sz(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;fDE&&(u=DE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*y+c[0],a.y=-d[1]*m+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*w+c[0],a.y=c[1]+A,p=S[0]<0?"right":"left",a.originX=-y*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,p="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*w+f[0],a.y=f[1]+A,p=S[0]>=0?"right":"left",a.originX=y*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Ae);const kI=Nwe;var zwe=function(){function e(t){this.group=new Ae,this._LineCtor=t||kI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=Az(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Az(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Bwe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function Az(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:vr(t)}}function Mz(e){return isNaN(e[0])||isNaN(e[1])}function h_(e){return e&&!Mz(e[0])&&!Mz(e[1])}const DI=zwe;var p_=[],v_=[],g_=[],Xu=xr,y_=Gl,Iz=Math.abs;function Pz(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){p_[0]=Xu(n[0],i[0],a[0],c),p_[1]=Xu(n[1],i[1],a[1],c);var f=Iz(y_(p_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function m_(e,t){var r=[],n=sp,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[qa(u[0]),qa(u[1])],u[2]&&u.__original.push(qa(u[2])));var d=u.__original;if(u[2]!=null){if(Kr(i[0],d[0]),Kr(i[1],d[2]),Kr(i[2],d[1]),c&&c!=="none"){var h=Zd(s.node1),p=Pz(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=Zd(s.node2),p=Pz(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}Kr(u[0],i[0]),Kr(u[1],i[2]),Kr(u[2],i[1])}else{if(Kr(a[0],d[0]),Kr(a[1],d[1]),Dl(o,a[1],a[0]),Tf(o,o),c&&c!=="none"){var h=Zd(s.node1);CC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=Zd(s.node2);CC(a[1],a[1],o,-h*t)}Kr(u[0],a[0]),Kr(u[1],a[1])}})}function kz(e){return e.type==="view"}var Fwe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new lv,a=new DI,o=this.group;this._controller=new dv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(kz(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):nt(u,c,r)}m_(r.getGraph(),Xd(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[_.x,_.y]);break;case"circular":f.setItemLayout(S,[_.x,_.y]),x.setLayout({fixed:!0},!0),PI(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),II(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),_.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(x){f8(x,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!mx(u,i,r)}),!kz(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){mI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){xI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),m_(r.getGraph(),Xd(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Xd(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){m_(r.getGraph(),Xd(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(wt);const $we=Fwe;function Zu(e){return"_EC_"+e}var Vwe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Zu(t)]){var i=new ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[Zu(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Zu(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(rt(t)&&(t=this.nodes[t]),rt(r)&&(r=this.nodes[r]),t instanceof ml||(t=i[Zu(t)]),r instanceof ml||(r=i[Zu(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new h8(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof ml&&(t=t.id),r instanceof ml&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof ml||(r=this._nodesMap[Zu(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}ar(ml,p8("hostGraph","data"));ar(h8,p8("hostGraph","edgeData"));const Gwe=Vwe;function v8(e,t,r,n,i){for(var a=new Gwe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=mo(e,r);else{var v=rv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var y=iv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new nn(y,r),p.initData(e)}var m=new nn(["value"],r);return m.initData(l,s),i&&i(p,m),ZU({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Hwe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new fv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),au(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){Cwe(this);var s=v8(a,i,this,!0,l);return D(s.edges,function(u){Twe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),y=v[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=bt.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),gr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=N6({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Z(this.option.categories||[],function(i){return i.value!=null?i:j({value:0},i)}),n=new nn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Rt);const Wwe=Hwe;var Uwe={type:"graphRoam",event:"graphRoam",update:"none"};function jwe(e){e.registerChartView($we),e.registerSeriesModel(Wwe),e.registerProcessor(xwe),e.registerVisual(Swe),e.registerVisual(bwe),e.registerLayout(Awe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Iwe),e.registerLayout(kwe),e.registerCoordinateSystem("graphView",{dimensions:hv.dimensions,create:Lwe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Jt),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Jt),e.registerAction(Uwe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=bI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Ywe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),qwe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new Ywe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}($e);const Xwe=qwe;function Zwe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=ne(r[0],t.getWidth()),s=ne(r[1],t.getHeight()),l=ne(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Bg(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):ye(t)&&(r=t(e))),r}var Kwe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=Zwe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?a0:Tn,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),y=[u,c];jG(y,!l),u=y[0],c=y[1];for(var m=c-u,x=u,S=[],_=0;p&&_=A&&(T===0?0:a[T-1][0])Math.PI/2&&(U+=Math.PI)):z==="tangential"?U=-C-Math.PI/2:rt(z)&&(U=z*Math.PI/180),U===0?f.add(new tt({style:St(x,{text:$,x:V,y:W,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:E}),silent:!0})):f.add(new tt({style:St(x,{text:$,x:V,y:W,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:V,originY:W,rotation:U}))}if(m.get("show")&&O!==S){var F=m.get("distance");F=F?F+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),L=Math.sin(C);var H=new _r({shape:{x1:k*(p-F)+d,y1:L*(p-F)+h,x2:k*(p-w-F)+d,y2:L*(p-w-F)+h},silent:!0,style:I});I.stroke==="auto"&&H.setStyle({stroke:a((O+X/_)/S)}),f.add(H),C+=T}C-=T}else C+=A}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),y=g.get("show"),m=r.getData(),x=m.mapDimension("value"),S=+r.get("min"),_=+r.get("max"),b=[S,_],w=[s,l];function C(T,M){var I=m.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),L=ne(P.get("length"),o.r),O=r.get(["pointer","icon"]),F=P.get("offsetCenter"),R=ne(F[0],o.r),$=ne(F[1],o.r),E=P.get("keepAspect"),V;return O?V=ir(O,R-k/2,$-L,k,L,null,E):V=new Xwe({shape:{angle:-Math.PI/2,width:k,r:L,x:R,y:$}}),V.rotation=-(M+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function A(T,M){var I=g.get("roundCap"),P=I?a0:Tn,k=g.get("overlap"),L=k?g.get("width"):c/m.count(),O=k?o.r-L:o.r-(T+1)*L,F=k?o.r:o.r-T*L,R=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:F}});return k&&(R.z2=_-m.get(x,T)%_),R}(y||v)&&(m.diff(d).add(function(T){var M=m.get(x,T);if(v){var I=C(T,s);kt(I,{rotation:-((isNaN(+M)?w[0]:ut(M,b,w,!0))+Math.PI/2)},r),f.add(I),m.setItemGraphicEl(T,I)}if(y){var P=A(T,s),k=g.get("clip");kt(P,{shape:{endAngle:ut(M,b,w,k)}},r),f.add(P),XC(r.seriesIndex,m.dataType,T,P),p[T]=P}}).update(function(T,M){var I=m.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,L=C(T,k);L.rotation=k,nt(L,{rotation:-((isNaN(+I)?w[0]:ut(I,b,w,!0))+Math.PI/2)},r),f.add(L),m.setItemGraphicEl(T,L)}if(y){var O=h[M],F=O?O.shape.endAngle:s,R=A(T,F),$=g.get("clip");nt(R,{shape:{endAngle:ut(I,b,w,$)}},r),f.add(R),XC(r.seriesIndex,m.dataType,T,R),p[T]=R}}).execute(),m.each(function(T){var M=m.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),L=I.get("disabled");if(v){var O=m.getItemGraphicEl(T),F=m.getItemVisual(T,"style"),R=F.fill;if(O instanceof Nr){var $=O.style;O.useStyle(j({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},F))}else O.useStyle(F),O.type!=="pointer"&&O.setColor(R);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",a(ut(m.get(x,T),b,[0,1],!0))),O.z2EmphasisLift=0,Rr(O,M),Gt(O,P,k,L)}if(y){var E=p[T];E.useStyle(m.getItemVisual(T,"style")),E.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),E.z2EmphasisLift=0,Rr(E,M),Gt(E,P,k,L)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=ir(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Ae,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new tt({silent:!0}),p[y]=new tt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),x=l.get(u,y),S=new Ae,_=a(ut(x,[c,f],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+ne(w[0],o.r),A=o.cy+ne(w[1],o.r),T=h[y];T.attr({z2:g?0:2,style:St(b,{x:C,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:_})}),S.add(T)}var M=m.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),L=ne(M.get("width"),o.r),O=ne(M.get("height"),o.r),F=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:_,T=p[y],R=M.get("formatter");T.attr({z2:g?0:2,style:St(M,{x:P,y:k,text:Bg(x,R),width:isNaN(L)?null:L,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:F})}),BH(T,{normal:M},x,function(E){return Bg(E,R)}),v&&FH(T,y,l,r,{getFormattedLabel:function(E,V,W,z,U,X){return Bg(X?X.interpolatedValue:x,R)}}),S.add(T)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(wt);const Qwe=Kwe;var Jwe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return $f(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Rt);const eCe=Jwe;function tCe(e){e.registerChartView(Qwe),e.registerSeriesModel(eCe)}var rCe=["itemStyle","opacity"],nCe=function(e){G(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Mn,s=new tt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(rCe);c=c??1,i||Hi(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,kt(a,{style:{opacity:c}},o,n)):nt(a,{style:{opacity:c},shape:{points:l.points}},o,n),Rr(a,s),this._updateLabel(r,n),Gt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Or(o,vr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Ee(h[0][0],h[0][1]):null},nt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),uI(i,cI(l),{stroke:d})},t}(An),iCe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new nCe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);pp(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(wt);const aCe=iCe;var oCe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new fv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return $f(this,{coordDimensions:["value"],encodeDefaulter:Pe(F2,this)})},t.prototype._defaultLabelLine=function(r){au(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Rt);const sCe=oCe;function lCe(e,t){return cr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uCe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oICe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!S_(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function S_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const DCe=PCe;var LCe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ct(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Je);const ECe=LCe;var RCe=function(e){G(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ui);const OCe=RCe;function Cu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Ku(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ku(s,[0,o]),i=a=Ku(s,[i,a]),n=0}t[0]=Ku(t[0],r),t[1]=Ku(t[1],r);var l=b_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Ku(t[n],c);var f;return f=b_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function b_(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Ku(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var __=D,y8=Math.min,m8=Math.max,Ez=Math.floor,NCe=Math.ceil,Rz=jt,zCe=Math.PI,BCe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;__(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new OCe(o,vx(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();__(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),sf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=cr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=Fg(t.get("axisExpandWidth"),l),f=Fg(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=Fg(h[1]-h[0],l),h[1]=h[0]+p;else{p=Fg(c*(f-1),l);var v=t.get("axisExpandCenter")||Ez(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[Ez(Rz(h[0]/c,1))+1,NCe(Rz(h[1]/c,1))-1],m=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),__(n,function(o,s){var l=(i.axisExpandable?$Ce:FCe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:zCe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=vi();mu(h,h,d),Ia(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Cu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[m8(0,p-h/2)],i[1]=y8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function Fg(e,t){return y8(m8(e,t[0]),t[1])}function FCe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function $Ce(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)ui(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aYCe}function T8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function A8(e,t,r,n){var i=new Ae;return i.add(new Ke({name:"main",style:OI(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(Bz,e,t,i,["n","s","w","e"]),ondragend:Pe(fu,t,{isEnd:!0})})),D(n,function(a){i.add(new Ke({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(Bz,e,t,i,a),ondragend:Pe(fu,t,{isEnd:!0})}))}),i}function M8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=cf(i,qCe),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,y=v+i;za(e,t,"main",o,s,p,v),n.transformable&&(za(e,t,"w",l,u,a,y),za(e,t,"e",d,u,a,y),za(e,t,"n",l,u,g,a),za(e,t,"s",l,h,g,a),za(e,t,"nw",l,u,a,a),za(e,t,"ne",d,u,a,a),za(e,t,"sw",l,h,a,a),za(e,t,"se",d,h,a,a))}function FT(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(OI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?$T(e,a[0]):tTe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?ZCe[s]+"-resize":null})})}function za(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(nTe(NI(e,t,[[n,i],[n+a,i+o]])))}function OI(e){return xe({strokeNoScale:!0},e.brushStyle)}function I8(e,t,r,n){var i=[kp(e,r),kp(t,n)],a=[cf(e,r),cf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function eTe(e){return Yl(e.group)}function $T(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=ex(r[t],eTe(e));return n[i]}function tTe(e,t){var r=[$T(e,t[0]),$T(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function Bz(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=P8(t,i,a);D(n,function(u){var c=XCe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(I8(s[0][0],s[1][0],s[0][1],s[1][1])),LI(t,r),fu(t,{isEnd:!1})}function rTe(e,t,r,n){var i=t.__brushOption.range,a=P8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),LI(e,t),fu(e,{isEnd:!1})}function P8(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function NI(e,t,r){var n=C8(e,t);return n&&n!==cu?n.clipPath(r,e._transform):we(r)}function nTe(e){var t=kp(e[0][0],e[1][0]),r=kp(e[0][1],e[1][1]),n=cf(e[0][0],e[1][0]),i=cf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function iTe(e,t,r){if(!(!e._brushType||oTe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=RI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var _x={lineX:Vz(0),lineY:Vz(1),rect:{createCover:function(e,t){function r(n){return n}return A8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=T8(e);return I8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){M8(e,t,r,n)},updateCommon:FT,contain:GT},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new Mn({name:"main",style:OI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new An({name:"main",draggable:!0,drift:Pe(rTe,e,t),ondragend:Pe(fu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:NI(e,t,r)})},updateCommon:FT,contain:GT}};function Vz(e){return{createCover:function(t,r){return A8({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=T8(t),n=kp(r[0][e],r[1][e]),i=cf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=C8(t,r);if(o!==cu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),M8(t,r,l,i)},updateCommon:FT,contain:GT}}const zI=QCe;function D8(e){return e=BI(e),function(t){return RH(t,e)}}function L8(e,t){return e=BI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function E8(e,t,r){var n=BI(e);return function(i,a){return n.contain(a[0],a[1])&&!mx(i,t,r)}}function BI(e){return Ne.create(e)}var sTe=["axisLine","axisTickLabel","axisName"],lTe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new zI(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!uTe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=fTe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=j({strokeContainThreshold:c},d),p=new fo(r,h);D(sTe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Jp(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:D8(f),isTargetByCursor:E8(f,s,a),getLinearBrushOtherExtent:L8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(cTe(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ht);function uTe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function cTe(e){var t=e.axis;return Z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function fTe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const dTe=lTe;var hTe={type:"axisAreaSelect",event:"axisAreaSelected"};function pTe(e){e.registerAction(hTe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var vTe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function R8(e){e.registerComponentView(DCe),e.registerComponentModel(ECe),e.registerCoordinateSystem("parallel",WCe),e.registerPreprocessor(TCe),e.registerComponentModel(Oz),e.registerComponentView(dTe),uf(e,"parallel",Oz,vTe),pTe(e)}function gTe(e){Fe(R8),e.registerChartView(yCe),e.registerSeriesModel(bCe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,CCe)}var yTe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),mTe=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yTe},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){lo(this)},t.prototype.downplay=function(){uo(this)},t}($e),xTe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new mTe,g=Ie(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),x=m.get("curveness"),S=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),T=A.get("localX"),M=A.get("localY"),I=p.getLayout(),P,k,L,O,F,R,$,E;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,L=(T!=null?T*u:C.x)+I.ty,O=M!=null?M*c:C.y,F=P,R=k*(1-x)+O*x,$=L,E=k*x+O*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,L=T!=null?T*u:C.x,O=(M!=null?M*c:C.y)+I.ty,F=P*(1-x)+L*x,R=k,$=P*x+L*(1-x),E=O),v.setShape({x1:P,y1:k,x2:L,y2:O,cpx1:F,cpy1:R,cpx2:$,cpy2:E}),v.useStyle(m.getItemStyle()),Gz(v.style,h,p);var V=""+y.get("value"),W=vr(y,"edgeLabel");Or(v,W,{labelFetcher:{getFormattedLabel:function(X,H,ee,te,ie,re){return r.getFormattedLabel(X,H,"edge",te,ba(ie,W.normal&&W.normal.get("formatter"),V),re)}},labelDataIndex:p.dataIndex,defaultText:V}),v.setTextConfig({position:"inside"});var z=y.getModel("emphasis");Rr(v,y,"lineStyle",function(X){var H=X.getItemStyle();return Gz(H,h,p),H}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var U=z.get("focus");Gt(v,U==="adjacency"?p.getAdjacentDataIndices():U==="trajectory"?p.getTrajectoryDataIndices():U,z.get("blurScope"),z.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),x=g.getModel("emphasis"),S=new Ke({shape:{x:y!=null?y*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Or(S,vr(g),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(b,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Rr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),Ie(S).dataType="node";var _=x.get("focus");Gt(S,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(y,m){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(STe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(wt);function Gz(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");oe(n)&&oe(i)&&(e.fill=new Qp(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function STe(e,t,r){var n=new Ke({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return kt(n,{shape:{width:e.width+20}},t,r),n}const bTe=xTe;var _Te=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new bt(o[l],this,n));if(a&&i){var u=v8(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var y=g.depth,m=v.levelModels[y];m&&(h.parentModel=m)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,x=v.levelModels[m];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return gr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return gr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Rt);const wTe=_Te;function CTe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=TTe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;MTe(u);var f=ct(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");ATe(u,c,n,i,o,s,d,h,p)})}function TTe(e,t){return cr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ATe(e,t,r,n,i,a,o,s,l){ITe(e,t,r,i,a,s,l),LTe(e,t,a,i,n,o,s),VTe(e,s)}function MTe(e){D(e,function(t){var r=hs(t.outEdges,f0),n=hs(t.inEdges,f0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function ITe(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;y&&g.depth>h&&(h=g.depth),v.setLayout({depth:y?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var m=0;mf-1?h:f-1;o&&o!=="left"&&PTe(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;DTe(e,C,a)}function O8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function PTe(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,OTe(s,l,o),w_(s,i,r,n,o),$Te(s,l,o),w_(s,i,r,n,o)}function ETe(e,t){var r=[],n=t==="vertical"?"y":"x",i=UC(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function RTe(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function OTe(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=hs(i.outEdges,NTe,r)/hs(i.outEdges,f0);if(isNaN(a)){var o=i.outEdges.length;a=o?hs(i.outEdges,zTe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Ms(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Ms(i,r))*t;i.setLayout({y:l},!0)}}})})}function NTe(e,t){return Ms(e.node2,t)*e.getValue()}function zTe(e,t){return Ms(e.node2,t)}function BTe(e,t){return Ms(e.node1,t)*e.getValue()}function FTe(e,t){return Ms(e.node1,t)}function Ms(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function f0(e){return e.getValue()}function hs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(n,function(s){var l=new Lr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function HTe(e){e.registerChartView(bTe),e.registerSeriesModel(wTe),e.registerLayout(CTe),e.registerVisual(GTe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var N8=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var y=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=j({},S),b.value=b.value.slice(),S.value.unshift(_)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,x=[{name:f,type:Jm(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Jm(v),dimsDef:m.slice()}];return $f(this,{coordDimensions:x,dimensionsCount:m.length+1,encodeDefaulter:Pe(s6,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),z8=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Rt);ar(z8,N8,!0);const WTe=z8;var UTe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=Hz(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(Hi(f),B8(d,f,a,u)):f=Hz(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(wt),jTe=function(){function e(){}return e}(),YTe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new jTe},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();av){var S=[y,x];n.push(S)}}}return{boxData:r,outliers:n}}var tAe={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==qr){var n="";ot(n)}var i=eAe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function rAe(e){e.registerSeriesModel(WTe),e.registerChartView(XTe),e.registerLayout(ZTe),e.registerTransform(tAe)}var nAe=["color","borderColor"],iAe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Rs(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&Wz(u,f))return;var d=C_(f,c,!0);kt(d,{shape:{points:f.ends}},r,c),T_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&Wz(u,h)){a.remove(d);return}d?(nt(d,{shape:{points:h.ends}},r,c),Hi(d)):d=C_(h),T_(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),Uz(r,this.group);var n=r.get("clip",!0)?yx(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=C_(s);T_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){Uz(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(wt),aAe=function(){function e(){}return e}(),oAe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new aAe},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}($e);function C_(e,t,r){var n=e.ends;return new oAe({shape:{points:r?sAe(n,e):n},z2:100})}function Wz(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(nAe);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const uAe=iAe;var F8=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Rt);ar(F8,N8,!0);const cAe=F8;function fAe(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var dAe=["itemStyle","borderColor"],hAe=["itemStyle","borderColor0"],pAe=["itemStyle","borderColorDoji"],vAe=["itemStyle","color"],gAe=["itemStyle","color0"],yAe={seriesType:"candlestick",plan:zf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?vAe:gAe)}function n(a,o){return o.get(a===0?pAe:a>0?dAe:hAe)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");j(f,c)}}}}}};const mAe=yAe;var xAe={seriesType:"candlestick",plan:zf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=SAe(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Z(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var y,m=g.getStore();(y=v.next())!=null;){var x=m.get(s,y),S=m.get(u,y),_=m.get(c,y),b=m.get(f,y),w=m.get(d,y),C=Math.min(S,_),A=Math.max(S,_),T=F(C,x),M=F(A,x),I=F(b,x),P=F(w,x),k=[];R(k,M,0),R(k,T,1),k.push(E(P),E(M),E(I),E(T));var L=g.getItemModel(y),O=!!L.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:jz(m,y,S,_,c,O),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:$(b,w,x)})}function F(V,W){var z=[];return z[i]=W,z[a]=V,isNaN(W)||isNaN(V)?[NaN,NaN]:t.dataToPoint(z)}function R(V,W,z){var U=W.slice(),X=W.slice();U[i]=Ay(U[i]+n/2,1,!1),X[i]=Ay(X[i]-n/2,1,!0),z?V.push(U,X):V.push(X,U)}function $(V,W,z){var U=F(V,z),X=F(W,z);return U[i]-=n/2,X[i]-=n/2,{x:U[0],y:U[1],width:n,height:X[1]-U[1]}}function E(V){return V[i]=Ay(V[i],1),V}}function p(v,g){for(var y=va(v.count*4),m=0,x,S=[],_=[],b,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var A=w.get(s,b),T=w.get(u,b),M=w.get(c,b),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){y[m++]=NaN,m+=3;continue}y[m++]=jz(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),y[m++]=x?x[0]:NaN,y[m++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),y[m++]=x?x[1]:NaN}g.setLayout("largePoints",y)}}};function jz(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function SAe(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ne(Re(e.get("barMaxWidth"),i),i),o=ne(Re(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?ne(s,i):Math.max(Math.min(i/2,a),o)}const bAe=xAe;function _Ae(e){e.registerChartView(uAe),e.registerSeriesModel(cAe),e.registerPreprocessor(fAe),e.registerVisual(mAe),e.registerLayout(bAe)}function Yz(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var wAe=function(e){G(t,e);function t(r,n){var i=e.call(this)||this,a=new sv(r,n),o=new Ae;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;ye(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Uo(r.__p1,r.__cp1)+Uo(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=xr,c=LC;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}($8);const EAe=LAe;var RAe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),OAe=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RAe},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],d=a[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,y=(d+v)/2-(p-f)*o;if(YG(f,d,g,y,p,v,s,r,n))return l}else if(Bo(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const zAe=NAe;var BAe={seriesType:"lines",plan:zf(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&yx(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=G8.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new zAe:new DI(o?a?EAe:V8:a?$8:kI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(wt);const $Ae=FAe;var VAe=typeof Uint32Array>"u"?Array:Uint32Array,GAe=typeof Float64Array>"u"?Array:Float64Array;function qz(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),s2([i,r[0],r[1]])}))}var HAe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],qz(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(qz(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Im(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Im(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Rt);const WAe=HAe;function $g(e){return e instanceof Array||(e=[e,e]),e}var UAe={seriesType:"lines",reset:function(e){var t=$g(e.get("symbol")),r=$g(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=$g(s.getShallow("symbol",!0)),u=$g(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const jAe=UAe;function YAe(e){e.registerChartView($Ae),e.registerSeriesModel(WAe),e.registerLayout(G8),e.registerVisual(jAe)}var qAe=256,XAe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=bs.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p0){var I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=bs.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();const ZAe=XAe;function KAe(e,t,r){var n=e[1]-e[0];t=Z(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function Xz(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var JAe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):Xz(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(Xz(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Rs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=_u(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),m=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),_=vr(r),b=r.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),T=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mf[1]||Ld[1])continue;var O=s.dataToPoint([k,L]);I=new Ke({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Ke({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var F=g.getItemModel(M),R=F.getModel("emphasis");y=R.getModel("itemStyle").getItemStyle(),m=F.getModel(["blur","itemStyle"]).getItemStyle(),x=F.getModel(["select","itemStyle"]).getItemStyle(),S=F.get(["itemStyle","borderRadius"]),w=R.get("focus"),C=R.get("blurScope"),A=R.get("disabled"),_=vr(F)}I.shape.r=S;var $=r.getRawValue(M),E="-";$&&$[2]!=null&&(E=$[2]+""),Or(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:E}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=x,Gt(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new ZAe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,y=v-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(m,function(w,C,A){var T=r.dataToPoint([w,C]);return T[0]-=d,T[1]-=h,T.push(A),T}),S=i.getExtent(),_=i.type==="visualMap.continuous"?QAe(S,i.option.range):KAe(S,i.getPieceList(),i.option.selected);u.update(x,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new Nr({style:{width:g,height:y,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(wt);const eMe=JAe;var tMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return mo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=rv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Rt);const rMe=tMe;function nMe(e){e.registerChartView(eMe),e.registerSeriesModel(rMe)}var iMe=["itemStyle","borderWidth"],Zz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],I_=new La,aMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Zz[+c],categoryDim:Zz[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=Qz(o,h),v=Kz(o,h,p,d),g=Jz(o,d,v);o.setItemGraphicEl(h,g),a.add(g),tB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=Qz(o,h),y=Kz(o,h,g,d),m=q8(o,y);v&&m!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?dMe(v,d,y):v=Jz(o,d,y,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=y,a.add(v),tB(v,d,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&eB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){eB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(wt);function Kz(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};oMe(r,a,i,n,d),sMe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),lMe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Su(r.get("symbolOffset"),h);return uMe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function oMe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(q(o)){var f=[P_(s,o[0])-l,P_(s,o[1])-l];f[1]0?1:-1}function P_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function sMe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;q(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=ne(p[f.index],d),p[c.index]=ne(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function lMe(e,t,r,n,i){var a=e.get(iMe)||0;a&&(I_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),I_.updateTransform(),a/=I_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function uMe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var y=Math.abs(l),m=br(e.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var S=ne(m,t[h.index]),_=Math.max(v+S*2,0),b=x?0:S*2,w=LG(n),C=w?n:rB((y+b)/_),A=y-C*v;S=A/2/(x?C:Math.max(C-1,1)),_=v+S*2,b=x?0:S*2,!w&&n!=="fixed"&&(C=u?rB((Math.abs(u)+b)/_):0),g=C*_-b,f.repeatTimes=C,f.symbolMargin=S}var T=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?T:o==="end"?l-T:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=j({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function H8(e){var t=e.symbolPatternSize,r=ir(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function W8(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(FI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:y<0)&&(m=u-1-v),g[l.index]=f*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function U8(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Gc(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=H8(r),i.add(a),Gc(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function j8(e,t,r){var n=j({},t.barRectShape),i=e.__pictorialBarRect;i?Gc(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ke({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function Y8(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=j({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)nt(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ke({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],tv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Qz(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=cMe,r.isAnimationEnabled=fMe,r}function cMe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function fMe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Jz(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?W8(i,t,r):U8(i,t,r),j8(i,r,n),Y8(i,t,r,n),i.__pictorialShapeStr=q8(e,r),i.__pictorialSymbolMeta=r,i}function dMe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;nt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?W8(e,t,r,!0):U8(e,t,r,!0),j8(e,r,!0),Y8(e,t,r,!0)}function eB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];FI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){ws(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function q8(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function FI(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Gc(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&tv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function tB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");FI(e,function(v){if(v instanceof Nr){var g=v.style;v.useStyle(j({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var y=v.ensureState("emphasis");y.style=o,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;Or(p,vr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:lf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Gt(e,c,f,a.get("disabled"))}function rB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const hMe=aMe;var pMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Os(i0.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(i0);const vMe=pMe;function gMe(e){e.registerChartView(hMe),e.registerSeriesModel(vMe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(PW,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kW("pictorialBar"))}var yMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new co(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(v,this,"remove")).execute();function v(g,y,m){var x=o._layers;if(g==="remove"){s.remove(x[y]);return}for(var S=[],_=[],b,w=l[y].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function CMe(e){e.registerChartView(xMe),e.registerSeriesModel(bMe),e.registerLayout(_Me),e.registerProcessor(cv("themeRiver"))}var TMe=2,AMe=4,MMe=function(e){G(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=TMe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new tt({z2:AMe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=j({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=of(h,o));var p=Bl(l.getModel("itemStyle"),f,!0);j(f,p),D(on,function(m){var x=s.ensureState(m),S=l.getModel([m,"itemStyle"]);x.style=S.getItemStyle();var _=Bl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,kt(s,{shape:{r:c.r}},i,n.dataIndex)):(nt(s,{shape:f},i),Hi(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Gt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(m,"rotate"),k=0;P==="radial"?(k=Ei(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):rt(P)&&(k=P*Math.PI/180),S.rotation=Ei(k)});function g(y,m){var x=y.get(m);return x??a.get(m)}d.dirtyStyle()},t}(Tn);const iB=MMe;var HT="sunburstRootToNode",aB="sunburstHighlight",IMe="sunburstUnhighlight";function PMe(e){e.registerAction({type:HT,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Ap(t,[HT],i);if(o){var s=i.getViewRoot();s&&(t.direction=CI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:aB,update:"none"},function(t,r,n){t=j({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Ap(t,[aB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(j(t,{type:"highlight"}))}),e.registerAction({type:IMe,update:"updateView"},function(t,r,n){t=j({},t),n.dispatchAction(j(t,{type:"downplay"}))})}var kMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(m){d.push(m)});var h=this._oldChildren||[];p(d,h),y(l,u),this._initEvents(),this._oldChildren=d;function p(m,x){if(m.length===0&&x.length===0)return;new co(x,m,S,S).add(_).update(_).remove(Pe(_,null)).execute();function S(b){return b.getId()}function _(b,w){var C=b==null?null:m[b],A=w==null?null:x[w];v(C,A)}}function v(m,x){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&x!==l){if(x&&x.piece)m?(x.piece.updateData(!1,m,r,n,i),s.setItemGraphicEl(m.dataIndex,x.piece)):g(x);else if(m){var S=new iB(m,r,n,i);c.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,i):(o.virtualPiece=new iB(m,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Wm(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:HT,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(wt);const DMe=kMe;var LMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};X8(i);var a=this._levelModels=Z(r.levels||[],function(l){return new bt(l,this,n)},this),o=wI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=Sx(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JU(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Rt);function X8(e){var t=0;D(e.children,function(n){X8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const EMe=LMe;var oB=Math.PI/180;function RMe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(i[0],o),c=ne(i[1],s),f=ne(a[0],l/2),d=ne(a[1],l/2),h=-n.get("startAngle")*oB,p=n.get("minAngle")*oB,v=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&Z8(g,m);var x=0;D(g.children,function(O){!isNaN(O.getValue())&&x++});var S=g.getValue(),_=Math.PI/(S||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(d-f)/(w||1),A=n.get("clockwise"),T=n.get("stillShowZeroSum"),M=A?1:-1,I=function(O,F){if(O){var R=F;if(O!==v){var $=O.getValue(),E=S===0&&T?_:$*_;E1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=OC(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");j(u,l)})})}function zMe(e){e.registerChartView(DMe),e.registerSeriesModel(EMe),e.registerLayout(Pe(RMe,"sunburst")),e.registerProcessor(Pe(cv,"sunburst")),e.registerVisual(NMe),PMe(e)}var sB={color:"fill",borderColor:"stroke"},BMe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ka=Qe(),FMe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return mo(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=Ka(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Rt);const $Me=FMe;function VMe(e,t){return t=t||[0,0],Z(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function GMe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(VMe,e)}}}function HMe(e,t){return t=t||[0,0],Z([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function WMe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ue(HMe,e)}}}function UMe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function jMe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ue(UMe,e)}}}function YMe(e,t){return t=t||[0,0],Z(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function qMe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ue(YMe,e)}}}function XMe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function K8(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function Q8(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return lB(o,e),D(o.rich,function(l){lB(l,l)}),{textConfig:i,textContent:a}}function lB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function uB(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";cB(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){cB(s,s)}),n}function cB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var J8={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},fB=He(J8);Ma(Pa,function(e,t){return e[t]=1,e},{});Pa.join(", ");var d0=["","style","shape","extra"],ff=Qe();function $I(e,t,r,n,i){var a=e+"Animation",o=Pf(e,n,i)||{},s=ff(t).userDuring;return o.duration>0&&(o.during=s?ue(e2e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),j(o,r[a]),o}function Ly(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ff(e),u=t.style;l.userDuring=t.during;var c={},f={};if(r2e(e,t,f),hB("shape",t,f),hB("extra",t,f),!a&&s&&(t2e(e,t,c),dB("shape",e,t,c),dB("extra",e,t,c),n2e(e,t,u,c)),f.style=u,ZMe(e,f,o),QMe(e,t),s)if(a){var d={};D(d0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),j(p?d[p]:d,v.enterFrom))});var h=$I("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else KMe(e,t,i||0,r,c);e9(e,t),u?e.dirty():e.markRedraw()}function e9(e,t){for(var r=ff(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function QMe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof gi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Qi={},JMe={setTransform:function(e,t){return Qi.el[e]=t,this},getTransform:function(e){return Qi.el[e]},setShape:function(e,t){var r=Qi.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Qi.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Qi.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Qi.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Qi.el.extra||(Qi.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Qi.el.extra;if(t)return t[e]}};function e2e(){var e=this,t=e.el;if(t){var r=ff(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Qi.el=t,n(JMe)}}function dB(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),Kl(l))j(o,a);else for(var u=dt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get(F,L):void 0}var R=t.get(O.name,L),$=O&&O.ordinalMeta;return $?$.categories[R]:R}function b(k,L){L==null&&(L=u);var O=t.getItemVisual(L,"style"),F=O&&O.fill,R=O&&O.opacity,$=m(L,Qo).getItemStyle();F!=null&&($.fill=F),R!=null&&($.opacity=R);var E={inheritColor:oe(F)?F:"#000"},V=x(L,Qo),W=St(V,null,E,!1,!0);W.text=V.getShallow("show")?Re(e.getFormattedLabel(L,Qo),lf(t,L)):null;var z=Gm(V,E,!1);return A(k,$),$=uB($,W,z),k&&C($,k),$.legacy=!0,$}function w(k,L){L==null&&(L=u);var O=m(L,Qa).getItemStyle(),F=x(L,Qa),R=St(F,null,null,!0,!0);R.text=F.getShallow("show")?ba(e.getFormattedLabel(L,Qa),e.getFormattedLabel(L,Qo),lf(t,L)):null;var $=Gm(F,null,!0);return A(k,O),O=uB(O,R,$),k&&C(O,k),O.legacy=!0,O}function C(k,L){for(var O in L)ce(L,O)&&(k[O]=L[O])}function A(k,L){k&&(k.textFill&&(L.textFill=k.textFill),k.textPosition&&(L.textPosition=k.textPosition))}function T(k,L){if(L==null&&(L=u),ce(sB,k)){var O=t.getItemVisual(L,"style");return O?O[sB[k]]:null}if(ce(BMe,k))return t.getItemVisual(L,k)}function M(k){if(a.type==="cartesian2d"){var L=a.getBaseAxis();return g0e(xe({axis:L},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return zH(k,r)}}function p2e(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function E_(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=UI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Gt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function UI(e,t,r,n,i,a){var o=-1,s=t;t&&i9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=HI(n),s&&u2e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),qn.normal.cfg=qn.normal.conOpt=qn.emphasis.cfg=qn.emphasis.conOpt=qn.blur.cfg=qn.blur.conOpt=qn.select.cfg=qn.select.conOpt=null,qn.isLegacy=!1,g2e(u,r,n,i,l,qn),v2e(u,r,n,i,l),WI(e,u,r,n,qn,i,l),ce(n,"info")&&(Ka(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function i9(e,t,r){var n=Ka(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&b2e(a)&&a9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function v2e(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&i9(o,a,n)&&(o=null),o||(o=HI(a),e.setClipPath(o)),WI(null,o,t,a,null,n,i)}}function g2e(e,t,r,n,i,a){if(!e.isGroup){vB(r,null,a),vB(r,Qa,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=HI(o),e.setTextContent(c)),WI(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);m2e(t,p,i)}}}function m2e(e,t,r){t&&Cx(t,Ka(e).option,r)}function x2e(e){new co(e.oldChildren,e.newChildren,gB,gB,e).add(yB).update(yB).remove(S2e).execute()}function gB(e,t){var r=e&&e.name;return r??s2e+t}function yB(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;UI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function S2e(e){var t=this.context,r=t.oldChildren[e];r&&Cx(r,Ka(r).option,t.seriesModel)}function a9(e){return e&&(e.pathData||e.d)}function b2e(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function _2e(e){e.registerChartView(f2e),e.registerSeriesModel($Me)}var Cl=Qe(),mB=we,R_=ue,w2e=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(xB,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}bB(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=gI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Cl(t).pointerEl=new tv[a.type](mB(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Cl(t).labelEl=new tt(mB(r.label));t.add(a),SB(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Cl(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Cl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),SB(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ev(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){oo(u.event)},onmousedown:R_(this._onHandleDragMove,this,0,0),drift:R_(this._onHandleDragMove,this),ondragend:R_(this._onHandleDragEnd,this)}),n.add(i)),bB(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Bf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){xB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,O_(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(O_(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(O_(i)),Cl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function xB(e,t,r,n){o9(Cl(r).lastProp,n)||(Cl(r).lastProp=n,t?nt(r,n,e):(r.stopAnimation(),r.attr(n)))}function o9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&o9(e[i],n)}),!!r}else return e===t}function SB(e,t){e[t.get(["label","show"])?"show":"hide"]()}function O_(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bB(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const YI=w2e;function qI(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function s9(e,t,r,n,i){var a=r.get("value"),o=l9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ef(s.get("padding")||0),u=s.getFont(),c=Xp(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),C2e(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:St(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function C2e(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function l9(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:sI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),oe(o)?a=o.replace("{value}",a):ye(o)&&(a=o(s))}return a}function XI(e,t,r){var n=vi();return mu(n,n,r.rotation),Ia(n,n,r.position),Bi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function u9(e,t,r,n,i,a){var o=fo.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),s9(t,n,i,a,{position:XI(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function c9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function _B(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var T2e=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=wB(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=qI(a),h=A2e[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=MT(l.model,i);u9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=MT(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=XI(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wB(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(YI);function wB(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var A2e={line:function(e,t,r){var n=ZI([t,r[0]],[t,r[1]],CB(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:c9([t-n/2,r[0]],[n,i],CB(e))}}};function CB(e){return e.dim==="x"?0:1}const M2e=T2e;var I2e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Je);const P2e=I2e;var ja=Qe(),k2e=D;function f9(e,t,r){if(!et.node){var n=t.getZr();ja(n).records||(ja(n).records={}),D2e(n,t);var i=ja(n).records[e]||(ja(n).records[e]={});i.handler=r}}function D2e(e,t){if(ja(e).initialized)return;ja(e).initialized=!0,r("click",Pe(TB,"click")),r("mousemove",Pe(TB,"mousemove")),r("globalout",E2e);function r(n,i){e.on(n,function(a){var o=R2e(t);k2e(ja(e).records,function(s){s&&i(s,a,o.dispatchAction)}),L2e(o.pendings,t)})}}function L2e(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function E2e(e,t,r){e.handler("leave",null,r)}function TB(e,t,r,n){t.handler(e,r,n)}function R2e(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function jT(e,t){if(!et.node){var r=t.getZr(),n=(ja(r).records||{})[e];n&&(ja(r).records[e]=null)}}var O2e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";f9("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){jT("axisPointer",n)},t.prototype.dispose=function(r,n){jT("axisPointer",n)},t.type="axisPointer",t}(Ht);const N2e=O2e;function d9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=ou(a,e);if(o==null||o<0||q(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var AB=Qe();function z2e(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ey(i)&&(i=d9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Ey(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Ey(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(F2e,h),showTooltip:Pe($2e,p)};D(s.coordSysMap,function(y,m){var x=l||y.containPoint(i);D(s.coordSysAxesInfo[m],function(S,_){var b=S.axis,w=W2e(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&MB(S,C,v,!1,d)}})});var g={};return D(c,function(y,m){var x=y.linkGroup;x&&!h[m]&&D(x.axesInfo,function(S,_){var b=h[_];if(S!==y&&b){var w=b.value;x.mapper&&(w=y.axis.scale.parse(x.mapper(w,IB(S),IB(y)))),g[y.key]=w}})}),D(g,function(y,m){MB(c[m],y,v,!0,d)}),V2e(h,c,d),G2e(p,i,e,o),H2e(c,o,r),d}}function MB(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=B2e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&j(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function B2e(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function F2e(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function $2e(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Tp(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function V2e(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function G2e(e,t,r,n){if(Ey(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function H2e(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=AB(n)[i]||{},o=AB(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function W2e(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function IB(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Ey(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function pv(e){wu.registerAxisPointerClass("CartesianAxisPointer",M2e),e.registerComponentModel(P2e),e.registerComponentView(N2e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=DSe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},z2e)}function U2e(e){Fe(BU),Fe(pv)}var j2e=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=qI(a),p=q2e[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=Y2e(n,i,a,l,v);s9(r,i,a,o,g)},t}(YI);function Y2e(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=vi();mu(d,d,s),Ia(d,d,[n.cx,n.cy]),u=Bi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=fo.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,y=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var q2e={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:ZI(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:_B(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:_B(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const X2e=j2e;var Z2e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Je);const K2e=Z2e;var KI=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",nr).models[0]},t.type="polarAxis",t}(Je);ar(KI,ov);var Q2e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(KI),J2e=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(KI),QI=function(e){G(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ui);QI.prototype.dataToRadius=Ui.prototype.dataToCoord;QI.prototype.radiusToData=Ui.prototype.coordToData;const eIe=QI;var tIe=Qe(),JI=function(e){G(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Xp(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=tIe(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(Ui);JI.prototype.dataToAngle=Ui.prototype.dataToCoord;JI.prototype.angleToData=Ui.prototype.coordToData;const rIe=JI;var h9=["radius","angle"],nIe=function(){function e(t){this.dimensions=h9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new eIe,this._angleAxis=new rIe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=PB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=PB(r);return i===this?this.pointToData(n):null},e}();function PB(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const iIe=nIe;function aIe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=ne(n[0],i),e.cy=ne(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:q(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function oIe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(e0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(e0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),sf(n.scale,n.model),sf(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function sIe(e){return e.mainType==="angleAxis"}function kB(e,t){if(e.type=t.get("type"),e.scale=vx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),sIe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var lIe={dimensions:h9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new iIe(i+"");a.update=oIe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");kB(o,l),kB(s,u),aIe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",nr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const uIe=lIe;var cIe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Vg(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Gg(e){var t=e.getRadiusAxis();return t.inverse?0:1}function DB(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var fIe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(c){c=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});DB(u),DB(s),D(cIe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&dIe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(wu),dIe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=Gg(r),l=s?0:1,u;a[l]===0?u=new La({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new K1({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Gg(r)],u=Z(n,function(c){return new _r({shape:Vg(r,[l,l+s],c.coord)})});e.add(oi(u,{style:xe(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Gg(r)],c=[],f=0;fy?"left":"right",S=Math.abs(g[1]-m)/v<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var _=s[p];Se(_)&&_.textStyle&&(h=new bt(_.textStyle,l,l.ecModel))}var b=new tt({silent:fo.isLabelSilent(t),style:St(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(b),c){var w=fo.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(b).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,L=void 0,O=void 0,F=void 0;if(p.dim==="radius"){var R=p.dataToCoord(T)-w,$=l.dataToCoord(M);Math.abs(R)=F})}}})}function bIe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=v9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=p9(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=ne(n.get("barWidth"),c),v=ne(n.get("barMaxWidth"),c),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),D(a,function(v,g){var y=v.maxWidth;y&&y=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=LB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=LB(r);return i===this?this.pointToData(n):null},e}();function LB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function RIe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new EIe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",nr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var OIe={create:RIe,dimensions:y9};const NIe=OIe;var EB=["x","y"],zIe=["width","height"],BIe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=z_(l,1-v0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=qI(a),h=FIe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=YT(i);u9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=YT(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=XI(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=v0(o),u=z_(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=z_(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(YI),FIe={line:function(e,t,r){var n=ZI([t,r[0]],[t,r[1]],v0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:c9([t-n/2,r[0]],[n,i],v0(e))}}};function v0(e){return e.isHorizontal()?0:1}function z_(e,t){var r=e.getRect();return[r[EB[t]],r[EB[t]]+r[zIe[t]]]}const $Ie=BIe;var VIe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Ht);function GIe(e){Fe(pv),wu.registerAxisPointerClass("SingleAxisPointer",$Ie),e.registerComponentView(VIe),e.registerComponentView(kIe),e.registerComponentModel(N_),uf(e,"single",N_,N_.defaultOption),e.registerCoordinateSystem("single",NIe)}var HIe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=Rf(r);e.prototype.init.apply(this,arguments),RB(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),RB(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Je);function RB(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return Qve(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Cs(e,t,{type:"box",ignoreSize:i})}const WIe=HIe;var UIe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ke({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Mn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return oe(r)&&r?Xve(r,n):ye(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(v,g),m=new tt({z2:30,style:St(o,{text:y})});m.attr(this._yearTextPositionControl(m,h[l],i,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||oe(s))&&(s&&(n=nT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/B_)-Math.floor(r[0].time/B_)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function OB(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const qIe=YIe;function XIe(e){e.registerComponentModel(WIe),e.registerComponentView(jIe),e.registerCoordinateSystem("calendar",qIe)}function ZIe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function NB(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function KIe(e,t,r){var n=j({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Cs(i,n,{ignoreSize:!0}),r6(r,i),Hg(r,i),Hg(r,i,"shape"),Hg(r,i,"style"),Hg(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var m9=["transition","enterFrom","leaveTo"],QIe=m9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Hg(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?m9:QIe,i=0;i=0;c--){var f=i[c],d=ur(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,y=Jn(p),m=p===a?{width:s,height:l}:{width:y.width,height:y.height},x={},S=sx(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},x);if(!Jn(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}nt(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Ry(i,Jn(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ht);function qT(e){var t=ce(zB,e)?zB[e]:L2(e),r=new t({});return Jn(r).type=e,r}function BB(e,t,r,n){var i=qT(r);return t.add(i),n.set(e,i),Jn(i).id=e,Jn(i).isNew=!0,i}function Ry(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Ry(a,t,r,n)}),Cx(e,t,n),r.removeKey(Jn(e).id))}function FB(e,t,r,n){e.isGroup||D([["cursor",gi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Re(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=ye(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function rPe(e){return e=j({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(t6),function(t){delete e[t]}),e}function nPe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function iPe(e){e.registerComponentModel(ePe),e.registerComponentView(tPe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var $B=["x","y","radius","angle","single"],aPe=["cartesian2d","polar","singleAxis"];function oPe(e){var t=e.get("coordinateSystem");return ze(aPe,t)>=0}function Jo(e){return e+"Axis"}function sPe(e,t){var r=ve(),n=[],i=ve();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function x9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(Jo(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var F_=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),lPe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=VB(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=VB(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ve(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D($B,function(i){var a=this.getReferringComponents(Jo(i),Ihe);if(a.specified){n=!0;var o=new F_;D(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new F_;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",nr).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",nr).models[0]&&d.add(p.componentIndex)})}}}a&&D($B,function(u){if(a){var c=i.findComponents({mainType:Jo(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new F_;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(Jo(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(Jo(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(x&&!S&&!_)return!0;x&&(g=!0),S&&(p=!0),_&&(v=!0)}return g&&p&&v})}else sc(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});sc(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;sc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ut(n[0]+o,n,[0,100],!0):a!=null&&(o=ut(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=PG(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function vPe(e,t,r){var n=[1/0,-1/0];sc(r,function(o){F0e(n,o.getData(),t)});var i=e.getAxisModel(),a=NW(i.axis.scale,i,n).calculate();return[a.min,a.max]}const gPe=pPe;var yPe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(Jo(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new gPe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const mPe=yPe;function xPe(e){e.registerAction("dataZoom",function(t,r){var n=sPe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var HB=!1;function tP(e){HB||(HB=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,mPe),xPe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function SPe(e){e.registerComponentModel(cPe),e.registerComponentView(hPe),tP(e)}var ai=function(){function e(){}return e}(),S9={};function lc(e,t){S9[e]=t}function b9(e){return S9[e]}var bPe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,i){var a=b9(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Je);const _Pe=bPe;function wPe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=cr(n,a,i);ql(t.get("orient"),e,t.get("itemGap"),o.width,o.height),sx(e,n,a,i)}function _9(e,t){var r=Ef(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ke({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var CPe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];D(u,function(p,v){f.push(v)}),new co(this._featureNames||[],f).add(d).update(d).remove(Pe(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],y=f[v],m=u[g],x=new bt(m,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(TPe(g))S={onclick:x.option.onclick,featureName:g};else{var _=b9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[y],!S)return;S.uid=Lf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof ai;if(!g&&y){b&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var A=this.option,T=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,T[w]&&(C==="emphasis"?lo:uo)(T[w])},S instanceof ai&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),x=v instanceof ai&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},_,b;oe(x)?(_={},_[g]=x):_=x,oe(S)?(b={},b[g]=S):b=S;var w=p.iconPaths={};D(_,function(C,A){var T=ev(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(y.getItemStyle());var M=T.ensureState("emphasis");M.style=m.getItemStyle();var I=new tt({style:{text:b[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),kf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=m.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),T.setTextConfig({position:m.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?lo:uo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}wPe(o,r,i),o.add(_9(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),x=m&&m.ensureState("emphasis");if(x&&!ye(x)&&v){var S=x.style||(x.style={}),_=Xp(v,tt.makeFont(S)),b=p.x+o.x,w=p.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(y.position="top",C=!0);var A=C?-5-_.height:s+10;b+_.width/2>i.getWidth()?(y.position=["100%",A],S.align="right"):b-_.width/2<0&&(y.position=[0,A],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){D(this._features,function(o){o instanceof ai&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof ai&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof ai&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Ht);function TPe(e){return e.indexOf("my")===0}const APe=CPe;var MPe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=et.browser;if(ye(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,_=S.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),S.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ai);const IPe=MPe;var WB="__ec_magicType_stack__",PPe=[["line","bar"],["stack"]],kPe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return D(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(UB[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=UB[i](d,h,f,a);p&&(xe(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",x=f.getReferringComponents(m,nr).models[0],S=x.componentIndex;s[m]=s[m]||[];for(var _=0;_<=S;_++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};D(PPe,function(f){ze(f,i)>=0&&D(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ai),UB={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===WB;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":WB},n.get(["option","stack"])||{},!0)}};Ra({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const DPe=kPe;var Tx=new Array(60).join("-"),df=" ";function LPe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function EPe(e){var t=[];return D(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Z(r.series,function(h){return h.name})),l=[i.model.getCategories()];D(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(df)],c=0;c=0)return!0}var XT=new RegExp("["+df+"]+","g");function zPe(e){for(var t=e.split(/\n+/g),r=g0(t.shift()).split(XT),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function WPe(e){var t=rP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return w9(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function UPe(e){C9(e).snapshots=null}function jPe(e){return rP(e).length}function rP(e){var t=C9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var YPe=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){UPe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ai);Ra({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const qPe=YPe;var XPe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ZPe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=jB(r,t);D(KPe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=$_[n.brushType](0,a,i);n.__rangeOffset={offset:ZB[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=$_[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=$_[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?ZB[n.brushType](a.values,o.offset,QPe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:D8(i),isTargetByCursor:E8(i,t,n.coordSysModel),getLinearBrushOtherExtent:L8(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=jB(r,t),a=0;ae[1]&&e.reverse(),e}function jB(e,t){return bh(e,t,{includeMainTypes:XPe})}var KPe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:qB.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:qB.geo})})}},YB=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],qB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Yl(e)),t}},$_={lineX:Pe(XB,0),lineY:Pe(XB,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[ZT([i[0],a[0]]),ZT([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function XB(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=ZT(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var ZB={lineX:Pe(KB,0),lineY:Pe(KB,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Z(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function KB(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function QPe(e,t){var r=QB(e),n=QB(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function QB(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const nP=ZPe;var KT=D,JPe=whe("toolbox-dataZoom_"),eke=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new zI(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),nke(r,n,this,a,i),rke(r,n)},t.prototype.onclick=function(r,n,i){tke[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new nP(iP(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),HPe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Cu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];KT(r,function(i,a){n.push(we(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ai),tke={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(WPe(this.ecModel))}};function iP(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function rke(e,t){e.setIconStatus("back",jPe(t)>1?"emphasis":"normal")}function nke(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new nP(iP(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}ige("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=iP(n),o=bh(e,a);KT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),KT(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:JPe+u+f};d[c]=f,i.push(d)}return i});const ike=eke;function ake(e){e.registerComponentModel(_Pe),e.registerComponentView(APe),lc("saveAsImage",IPe),lc("magicType",DPe),lc("dataView",GPe),lc("dataZoom",ike),lc("restore",qPe),Fe(SPe)}var oke=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Je);const ske=oke;function T9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function A9(e){if(et.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function pke(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=et.transformSupported?","+aP+n:",left"+n+",top"+n),cke+":"+i}function JB(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!et.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=et.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+aP+":"+o+";":[["top",0],["left",0],[M9,o]]}function vke(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function gke(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=O6(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(pke(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=JH(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(vke(c)),f!=null&&n.push("padding:"+Ef(f).join("px ")+"px"),n.join(";")+";"}function e5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&qfe(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var yke=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,et.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;e5(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Zn(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=uke(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=fke+gke(t,!this._firstShow,this._longHide)+JB(a[0],a[1],!0)+("border-color:"+uu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(oe(a)&&n.get("trigger")==="item"&&!T9(n)&&(s=hke(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||et.node||!i.getDom())){var o=n5(a,i);this._ticket="";var s=a.dataByCoordSys,l=Ake(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=bke;c.x=a.x,c.y=a.y,c.update(),Ie(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=d9(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(n5(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Md([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Ol(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ue(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Md([n.tooltipOption],a),l=this._renderMode,u=[],c=gr("section",{blocks:[],noHeader:!0}),f=[],d=new Tb;D(r,function(m){D(m.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=l9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=gr("section",{header:b,noHeader:!Li(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,M=A.getDataParams(T);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=sI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",uu(M.color),l);var I=GR(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Md([A],a).get("valueFormatter");w.blocks.push(k?j({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=qR(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` - -`:"
",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ie(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=Md([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new Tb;y.marker=m.makeTooltipMarker("item",uu(y.color),h);var x=GR(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?qR(_?j({valueFormatter:_},b):b,m,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,y,C,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=Ie(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Md(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new Tb;this._showOrMove(d,function(){var g=we(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),y=q(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,m&&(h=rx(y.axisValue,h,g)),h=e6(h,i,!0)}else if(ye(d)){var x=ue(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ye(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=cr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var y=Tke(n,p,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=wke(i,a,o,u,c,d?null:20,h?null:20);i=y[0],a=y[1]}if(d&&(i-=i5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=i5(h)?f[1]/2:h==="bottom"?f[1]:0),T9(r)){var y=Cke(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&D(v,function(y,m){var x=g[m];o=o&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),a&&D(d.seriesDataIndices,function(y){var m=y.seriesIndex,x=n[m],S=a[m];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){et.node||!n.getDom()||(xp(this,"_updatePosition"),this._tooltipContent.dispose(),jT("itemTooltip",n))},t.type="tooltip",t}(Ht);function Md(e,t,r){var n=t.ecModel,i;r?(i=new bt(r,n,n),i=new bt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof bt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new bt(o,i,n)))}return i}function n5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function wke(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function Cke(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Tke(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function i5(e){return e==="center"||e==="middle"}function Ake(e,t,r){var n=x2(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Zp(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const Mke=_ke;function Ike(e){Fe(pv),e.registerComponentModel(ske),e.registerComponentView(Mke),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jt)}var Pke=["rect","polygon","keep","clear"];function kke(e,t){var r=dt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Dke(s),t&&!s.length&&s.push.apply(s,Pke)}}function Dke(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var a5=D;function o5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function QT(e,t,r){var n={};return a5(t,function(a){var o=n[a]=i();a5(e[a],function(s,l){if(Lr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Lr(u),l==="opacity"&&(u=we(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Lr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function P9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&o5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&o5(t[i])?e[i]=we(t[i]):delete e[i]})}function Lke(e,t,r,n,i,a){var o={};D(e,function(f){var d=Lr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return Z2(r,s,f)}function u(f,d){U6(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],y=0,m=g.length;yt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&f5(t)}};function f5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var $ke=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new zI(n.getZr())).on("brush",ue(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){k9(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(Ht);const Vke=$ke;var Gke="#ddd",Hke=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&P9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Gke},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return d5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=d5(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Je);function d5(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new bt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const Wke=Hke;var Uke=["rect","polygon","lineX","lineY","keep","clear"],jke=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:Uke.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(ai);const Yke=jke;function qke(e){e.registerComponentView(Vke),e.registerComponentModel(Wke),e.registerPreprocessor(kke),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Oke),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Jt),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Jt),lc("brush",Yke)}var Xke=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Je),Zke=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Re(r.get("textBaseline"),r.get("textVerticalAlign")),c=new tt({style:St(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new tt({style:St(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){Wm(p,"_"+r.get("target"))}),v&&h.on("click",function(){Wm(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var y=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var x=cr(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Ke({shape:{x:y.x-_[3],y:y.y-_[0],width:y.width+_[1]+_[3],height:y.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ht);function Kke(e){e.registerComponentModel(Xke),e.registerComponentView(Zke)}var Qke=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=ur(Mf(u),""),d;Se(u)?(d=we(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new nn([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Je);const h5=Qke;var D9=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Os(h5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(h5);ar(D9,U2.prototype);const Jke=D9;var eDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Ht);const tDe=eDe;var rDe=function(e){G(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ui);const nDe=rDe;var G_=Math.PI,p5=Qe(),iDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return gr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=oDe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:G_/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,y=r.get(["label","rotate"])||0;y=y*G_/180;var m,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(m=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(m=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=vi(),l=o.x,u=o.y+o.height;Ia(s,s,[-l,-u]),mu(s,s,-G_/2),Ia(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(i.getBoundingRect()),d=m(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=aDe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new nDe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new _r({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:j({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new _r({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:xe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ue(o._changeTimeline,o,u.value)},g=v5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),jl(g);var y=Ie(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),y=new tt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ue(o._changeTimeline,o,f),silent:!1,style:St(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=St(p),y.ensureState("progress").style=St(v),n.add(y),jl(y),p5(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var y=Gi(Re(a.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],x=sDe(a,p+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),jl(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),g5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){g5(f,u._progressLine,s,i,a)}};this._currentPointer=v5(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=ui(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var H_={min:Pe(jg,"min"),max:Pe(jg,"max"),average:Pe(jg,"average"),median:Pe(jg,"median")};function Lp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!vDe(t)&&!q(t.coord)&&q(i)){var a=E9(t,r,n,e);if(t=we(t),t.type&&H_[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=H_[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)H_[u[c]]&&(u[c]=sP(r,r.mapDimension(i[c]),u[c]));return t}}function E9(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(gDe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function gDe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Ep(e,t){return e&&e.containData&&t.coord&&!eA(t)?e.containData(t.coord):!0}function yDe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!eA(t)&&!eA(r)?e.containZone(t.coord,r.coord):!0}function R9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return ds(o,t[a])}:function(r,n,i,a){return ds(r.value,t[a])}}function sP(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var W_=Qe(),mDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){W_(s).keep=!1}),n.eachSeries(function(s){var l=Ps.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!W_(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){W_(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=Ps.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?sH(l):T2(l))})}})},t.type="marker",t}(Ht);const lP=mDe;function m5(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var xDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ps.getMarkerModelFromSeries(a,"markPoint");o&&(m5(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new lv),f=SDe(o,r,n);n.setData(f),m5(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ye(p)||ye(v)||ye(g)||ye(y)){var x=n.getRawValue(d),S=n.getDataParams(d);ye(p)&&(p=p(x,S)),ye(v)&&(v=v(x,S)),ye(g)&&(g=g(x,S)),ye(y)&&(y=y(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=nv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(lP);function SDe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return j(j({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new nn(n,r),a=Z(r.get("data"),Pe(Lp,t));e&&(a=ct(a,Pe(Ep,e)));var o=R9(!!e,n);return i.initData(a,null,o),i}const bDe=xDe;function _De(e){e.registerComponentModel(pDe),e.registerComponentView(bDe),e.registerPreprocessor(function(t){oP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var wDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ps);const CDe=wDe;var Yg=Qe(),TDe=function(e,t,r,n){var i=e.getData(),a;if(q(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=br(n.yAxis,n.xAxis);else{var u=E9(n,i,t,e);s=u.valueAxis;var c=SW(i,u.valueDataDim);l=sP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&rt(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[Lp(e,a[0]),Lp(e,a[1]),j({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function y0(e){return!isNaN(e)&&!isFinite(e)}function x5(e,t,r,n){var i=1-e,a=n.dimensions[e];return y0(t[i])&&y0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function ADe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(x5(1,r,n,e)||x5(0,r,n,e)))return!0}return Ep(e,t[0])&&Ep(e,t[1])}function U_(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(_u(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;y0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):y0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var MDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ps.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Yg(o).from,u=Yg(o).to;l.each(function(c){U_(l,c,!0,a,i),U_(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new DI);this.group.add(c.group);var f=IDe(o,r,n),d=f.from,h=f.to,p=f.line;Yg(n).from=d,Yg(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(y)||(y=[y,y]),q(m)||(m=[m,m]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);U_(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=nv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Re(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:Re(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:Re(w.get("symbolSize"),g[b?0:1]),symbol:Re(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(lP);function IDe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return j(j({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new nn(n,r),a=new nn(n,r),o=new nn([],r),s=Z(r.get("data"),Pe(TDe,t,e,r));e&&(s=ct(s,Pe(ADe,e)));var l=R9(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const PDe=MDe;function kDe(e){e.registerComponentModel(CDe),e.registerComponentView(PDe),e.registerPreprocessor(function(t){oP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var DDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ps);const LDe=DDe;var qg=Qe(),EDe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Lp(e,i),s=Lp(e,a),l=o.coord,u=s.coord;l[0]=br(l[0],-1/0),l[1]=br(l[1],-1/0),u[0]=br(u[0],1/0),u[1]=br(u[1],1/0);var c=s2([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function m0(e){return!isNaN(e)&&!isFinite(e)}function S5(e,t,r,n){var i=1-e;return m0(t[i])&&m0(r[i])}function RDe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return _u(e,"cartesian2d")?r&&n&&(S5(1,r,n)||S5(0,r,n))?!0:yDe(e,i,a):Ep(e,i)||Ep(e,a)}function b5(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),y=[v,g];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(_u(a,"cartesian2d")){var m=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);m0(v)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):m0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var _5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ODe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ps.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(_5,function(f){return b5(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ae});this.group.add(c.group),this.markKeep(c);var f=NDe(o,r,n);n.setData(f),f.each(function(d){var h=Z(_5,function(C){return b5(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),y=v.getExtent(),m=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];ui(m),ui(x);var S=!(g[0]>m[1]||g[1]x[1]||y[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Je);const tA=$De;var Qu=Pe,rA=D,Xg=Ae,VDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Xg),this.group.add(this._selectorGroup=new Xg),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=cr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=cr(xe({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_9(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),rA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new Xg;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(v)[0];if(!c.get(v))if(y){var m=y.getData(),x=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),_=m.getVisual("style"),b=this._createItem(y,v,p,h,n,r,x,_,S,f,a);b.on("click",Qu(w5,v,null,a,d)).on("mouseover",Qu(nA,y.name,null,a,d)).on("mouseout",Qu(iA,y.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),I=zn(T.fill);I&&I[3]===0&&(I[3]=.2,T=j(j({},T),{fill:Za(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",Qu(w5,null,v,a,d)).on("mouseover",Qu(nA,null,v,a,d)).on("mouseout",Qu(iA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();rA(r,function(u){var c=u.type,f=new tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Or(f,{normal:d,emphasis:h},{defaultText:u.title}),jl(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=GDe(c,a,l,u,h,g,d),_=new Xg,b=a.getModel("textStyle");if(ye(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;_.add(HDe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):ye(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new tt({style:St(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Ke({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&kf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(L){L.silent=!0}),P.silent=!f,this.getContentGroup().add(_),jl(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ql(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ql("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",y=v===0?"height":"width",m=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[y]=Math.max(c[y],d[y]),x[m]=Math.min(0,d[m]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ht);function GDe(e,t,r,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),rA(g,function(m,x){g[x]==="inherit"&&(g[x]=y[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:of(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function HDe(e){var t=e.icon||"roundRect",r=ir(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function w5(e,t,r,n){iA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),nA(e,t,r,n)}function O9(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var y=[0,0],m=[-p.x,-p.y],x=Re(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-p[o]:y[a]+=p[o]+x}m[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(m);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+m[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Ke({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&nt(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=j_[o],l=Y_[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,y=v,m=v,x=null;g<=d;++g)x=S(c[g]),(!x&&m.e>y.s+a||x&&!_(x,y.s))&&(m.i>y.i?y=m:y=x,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=x;for(var g=u-1,y=v,m=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(m,x.s))&&y.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(N9);const XDe=qDe;function ZDe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function KDe(e){Fe(z9),e.registerComponentModel(YDe),e.registerComponentView(XDe),ZDe(e)}function QDe(e){Fe(z9),Fe(KDe)}var JDe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Os(Dp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Dp);const eLe=JDe;var uP=Qe();function tLe(e,t,r){uP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function rLe(e,t){for(var r=uP(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function sLe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=uP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=x9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,nLe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){B9(i,a);return}var c=oLe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Bf(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var lLe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),tLe(i,r,{pan:ue(q_.pan,this),zoom:ue(q_.zoom,this),scrollMove:ue(q_.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){rLe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(eP),q_={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=X_[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Cu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:A5(function(e,t,r,n,i,a){var o=X_[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:A5(function(e,t,r,n,i,a){var o=X_[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function A5(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Cu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var X_={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const uLe=lLe;function F9(e){tP(e),e.registerComponentModel(eLe),e.registerComponentView(uLe),sLe(e)}var cLe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Os(Dp.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Dp);const fLe=cLe;var kd=Ke,M5=7,dLe=1,Z_=30,hLe=7,Dd="horizontal",I5="vertical",pLe=5,vLe=["line","bar","candlestick","scatter"],gLe={easing:"cubicOut",duration:100,delay:0},yLe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Bf(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ae;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?hLe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Dd?{right:s.width-o.x-o.width,top:s.height-Z_-M5-a,width:o.width,height:Z_}:{right:M5,top:o.y,width:Z_,height:o.height},u=Rf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=cr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===I5&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Dd&&!o?{scaleY:l?1:-1,scaleX:1}:i===Dd&&o?{scaleY:l?1:-1,scaleX:-1}:i===I5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new kd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new kd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){m+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:ut(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([m,0]),g.push([m,0])),v.push([m,I]),g.push([m,I]),m+=y,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Ae,I=new An({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Mn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&ze(vLe,u.get("type"))<0)){var c=a.getComponent(Jo(o),s).axis,f=mLe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new kd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new kd({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:dLe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!Ym[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=ir(S,-1,0,2,2,null,!0);_.attr({cursor:P5(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),jl(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new tt({silent:!0,invisible:!0,style:St(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Ke({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=ir(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Ke({invisible:!0,shape:{y:s[1]-m,height:p+m}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:P5(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ut(r[0],[0,100],n,!0),ut(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Cu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ut(s.minSpan,l,o,!0):null,s.maxSpan!=null?ut(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=ui([ut(a[0],o,l,!0),ut(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=ui(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Ee(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ui([ut(i.x,o,s,!0),ut(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(oo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new kd({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?gLe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=x9(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(eP);function mLe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function P5(e){return e==="vertical"?"ns-resize":"ew-resize"}const xLe=yLe;function $9(e){e.registerComponentModel(fLe),e.registerComponentView(xLe),tP(e)}function SLe(e){Fe(F9),Fe($9)}var bLe={get:function(e,t,r){var n=we((_Le[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},_Le={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const V9=bLe;var k5=Lr.mapVisual,wLe=Lr.eachVisual,CLe=q,D5=D,TLe=ui,ALe=ut,MLe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&P9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=QT(this.option.controller,n,r),this.targetVisuals=QT(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=dt(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],q(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ye(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=TLe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){CLe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},D5(p,function(g,y){if(Lr.isValidType(y)){var m=V9.get(y,"inactive",s);m!=null&&(v[y]=m,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";D5(this.stateList,function(y){var m=this.itemSize,x=f[y];x||(x=f[y]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?m[0]:[m[0],m[0]])),x.symbol=k5(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;wLe(S,function(b){b>_&&(_=b)}),x.symbolSize=k5(S,function(b){return ALe(b,[0,_],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Je);const x0=MLe;var L5=[20,140],ILe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=L5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=L5[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=ui((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=E5(this,"outOfRange",this.getExtent()),i=E5(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Ae(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();DLe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=Ji(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Bi(i.handleLabelPoints[c],Yl(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=Ji(r,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=v,f.x=g;var m=Bi(c.indicatorLabelPoint,Yl(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;Mo[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||z5(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=Ahe(d,h);this._dispatchHighDown("downplay",Oy(p[0],i)),this._dispatchHighDown("highlight",Oy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ol(r.target,function(l){var u=Ie(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function $Le(e,t,r,n){for(var i=t.targetVisuals[n],a=Lr.prepareVisualTypes(i),o={color:nv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(zLe,BLe),D(FLe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(VLe))}function U9(e){e.registerComponentModel(PLe),e.registerComponentView(NLe),W9(e)}var GLe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],HLe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Lr.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=V9.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=we(r)},t.prototype.getValueState=function(r){var n=Lr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Lr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Os(x0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(x0),HLe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function V5(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const WLe=GLe;var ULe=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=br(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(g);v.add(new tt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),ql(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Oy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return H9(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Ae,l=this.visualMapModel.textStyleModel;s.add(new tt({style:St(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(ir(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(G9);const jLe=ULe;function j9(e){e.registerComponentModel(WLe),e.registerComponentView(jLe),W9(e)}function YLe(e){Fe(U9),Fe(j9)}var qLe={label:{enabled:!0},decal:{show:!1}},G5=Qe(),XLe={};function ZLe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(qLe);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),G5(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ye(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var m=oT(d.ecModel,d.name,XLe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,m))}else{var p=d.getRawData(),v={},g=G5(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var y=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=oT(d.ecModel,w,g,y),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?j(j({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A1?c.get(["series","multiple",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var L=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),F=[],R=0;R":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},JLe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):zfe(t)?t:null;if(r==null){var n="";ot(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):rt(r)?this._condVal.test(t+""):!1},e}(),eEe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),tEe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,L,O){Tc(P,L)&&Tc(k,O)||i.push(P,k,L,O,L,O)}function f(P,k,L,O,F,R){var $=Math.abs(k-P),E=Math.tan($/4)*4/3,V=kC:M2&&n.push(i),n}function oA(e,t,r,n,i,a,o,s,l,u){if(Tc(e,r)&&Tc(t,n)&&Tc(i,o)&&Tc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,y=i-o,m=a-s,x=v*v+g*g,S=y*y+m*m;if(x=0&&C=0){l.push(o,s);return}var A=[],T=[];_s(e,r,i,o,.5,A),_s(t,n,a,s,.5,T),oA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),oA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function vEe(e,t){var r=aA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=q9([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=q9([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d1?null:new Ee(v*l+e,v*u+t)}function mEe(e,t,r){var n=new Ee;Ee.sub(n,r,t),n.normalize();var i=new Ee;Ee.sub(i,e,t);var a=i.dot(n);return a}function ec(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function xEe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),xEe(t,u,c)}function S0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);S0(e,a[0],i,n),S0(e,a[1],r-i,n)}return n}function SEe(e,t){for(var r=[],n=0;n0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function w0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:PEe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function K9(e){return wEe(e.path,e.count)}function sA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function kEe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];b0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return sA();var o=r.dividePath||K9,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),sA();n=w0(n),s=w0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ua,d=0;d=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var LEe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;K5(e)&&(u=e,c=t),K5(t)&&(u=t,c=e);function f(y,m,x,S,_){var b=y.many,w=y.one;if(b.length===1&&!_){var C=m?b[0]:w,A=m?w:b[0];if(b0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;fP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:LEe[r],individualDelay:s&&function(F,R,$,E){return s(F+x,S)}},l),I=m?kEe(b,w,M):DEe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,L=P.length,O=0;Ot.length,h=u?Q5(c,u):Q5(d?t:e,[d?e:t]),p=0,v=0;vQ9))for(var i=n.getIndices(),a=REe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function eF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function tF(e){return q(e)?e.sort().join(","):e}function Fo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function zEe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=eF(a),c=tF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=eF(a),u=tF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Fo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Fo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Fo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Fo(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Fo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Fo(s)})}}}}),r}function rF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Fo(t.oldData[s]),dim:o.dimension})}),D(dt(e.to),function(o){var s=rF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Fo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&J9(i,a,n)}function FEe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(dt(n.seriesTransition),function(i){D(dt(i.to),function(a){for(var o=n.updatedSeries,s=0;s Locust - - +
@@ -18,11 +17,19 @@ // The server sets timestamps in UTC // We need to convert these timestamps to locale time window.templateArgs.history = - window.templateArgs.history.length ? window.templateArgs.history.map(({ time: serverTime, ...history }) => ({ - ...history, - time: new Date(new Date().setUTCHours(...(serverTime.split(":")))).toLocaleTimeString() - })) : [] + window.templateArgs.history.length ? window.templateArgs.history.map(({ time: serverTime, ...history }) => ({ + ...history, + time: new Date(new Date().setUTCHours(...(serverTime.split(":")))).toLocaleTimeString() + })) : [] - + + + {% if static_js %} + + {% else %} + + {% endif %} diff --git a/locust/webui/dist/report.html b/locust/webui/dist/report.html new file mode 100644 index 0000000000..e7a474f584 --- /dev/null +++ b/locust/webui/dist/report.html @@ -0,0 +1,23 @@ + + + + + + + + + Locust + + +
+ + + + + + diff --git a/locust/webui/public/report.html b/locust/webui/public/report.html new file mode 100644 index 0000000000..e7a474f584 --- /dev/null +++ b/locust/webui/public/report.html @@ -0,0 +1,23 @@ + + + + + + + + + Locust + + +
+ + + + + + diff --git a/locust/webui/src/Report.tsx b/locust/webui/src/Report.tsx new file mode 100644 index 0000000000..bd77e21632 --- /dev/null +++ b/locust/webui/src/Report.tsx @@ -0,0 +1,112 @@ +import { Box, Typography, Container, Link } from '@mui/material'; +import CssBaseline from '@mui/material/CssBaseline'; +import { ThemeProvider } from '@mui/material/styles'; + +import { ExceptionsTable } from 'components/ExceptionsTable/ExceptionsTable'; +import { FailuresTable } from 'components/FailuresTable/FailuresTable'; +import ResponseTimeTable from 'components/ResponseTimeTable/ResponseTimeTable'; +import { StatsTable } from 'components/StatsTable/StatsTable'; +import { SwarmCharts } from 'components/SwarmCharts/SwarmCharts'; +import { SwarmRatios } from 'components/SwarnRatios/SwarmRatios'; +import createTheme, { THEME_MODE } from 'styles/theme'; +import { IReport } from 'types/swarm.types'; + +const theme = createTheme(window.theme || THEME_MODE.LIGHT); + +export default function Report({ + locustfile, + showDownloadLink, + startTime, + endTime, + charts, + host, + exceptionsStatistics, + requestsStatistics, + failuresStatistics, + responseTimeStatistics, + tasks, +}: IReport) { + return ( + + + + + + + Locust Test Report + + {showDownloadLink && ( + Download the Report + )} + + + + During: + + {startTime} - {endTime} + + + + + Target Host: + {host || 'None'} + + + + Script: + {locustfile} + + + + + + + Request Statistics + + + + + + Response Time Statistics + + + + + + Failures Statistics + + + + {!!exceptionsStatistics.length && ( + + + Exceptions Statistics + + + + )} + + + + Charts + + + + + + Final ratio + + + + + + + ); +} diff --git a/locust/webui/src/components/ExceptionsTable/ExceptionsTable.tsx b/locust/webui/src/components/ExceptionsTable/ExceptionsTable.tsx index 33df82c133..4c52403ba9 100644 --- a/locust/webui/src/components/ExceptionsTable/ExceptionsTable.tsx +++ b/locust/webui/src/components/ExceptionsTable/ExceptionsTable.tsx @@ -9,10 +9,10 @@ const tableStructure = [ { key: 'traceback', title: 'Traceback' }, ]; -function FailuresTable({ exceptions }: { exceptions: ISwarmException[] }) { +export function ExceptionsTable({ exceptions }: { exceptions: ISwarmException[] }) { return rows={exceptions} structure={tableStructure} />; } const storeConnector = ({ ui: { exceptions } }: IRootState) => ({ exceptions }); -export default connect(storeConnector)(FailuresTable); +export default connect(storeConnector)(ExceptionsTable); diff --git a/locust/webui/src/components/FailuresTable/FailuresTable.tsx b/locust/webui/src/components/FailuresTable/FailuresTable.tsx index 8ac6632acf..10eaf32e39 100644 --- a/locust/webui/src/components/FailuresTable/FailuresTable.tsx +++ b/locust/webui/src/components/FailuresTable/FailuresTable.tsx @@ -11,7 +11,7 @@ const tableStructure = [ { key: 'error', title: 'Message', markdown: true }, ]; -function FailuresTable({ errors }: { errors: ISwarmError[] }) { +export function FailuresTable({ errors }: { errors: ISwarmError[] }) { return rows={errors} structure={tableStructure} />; } diff --git a/locust/webui/src/components/Layout/Navbar/Navbar.tsx b/locust/webui/src/components/Layout/Navbar/Navbar.tsx index 3e939de735..bfed2b2d6f 100644 --- a/locust/webui/src/components/Layout/Navbar/Navbar.tsx +++ b/locust/webui/src/components/Layout/Navbar/Navbar.tsx @@ -11,7 +11,7 @@ export default function Navbar() { diff --git a/locust/webui/src/components/LineChart/LineChart.tsx b/locust/webui/src/components/LineChart/LineChart.tsx index 0b76e6b01a..24ae65aa2b 100644 --- a/locust/webui/src/components/LineChart/LineChart.tsx +++ b/locust/webui/src/components/LineChart/LineChart.tsx @@ -8,10 +8,8 @@ import { TooltipComponentFormatterCallbackParams, DefaultLabelFormatterCallbackParams, } from 'echarts'; -import { connect } from 'react-redux'; import { IUiState } from 'redux/slice/ui.slice'; -import { IRootState } from 'redux/store'; import { ICharts } from 'types/ui.types'; interface ILine { @@ -151,7 +149,7 @@ registerTheme('locust', { }, }); -function LineChart({ charts, title, lines }: ILineChart) { +export default function LineChart({ charts, title, lines }: ILineChart) { const [chart, setChart] = useState(null); const chartContainer = useRef(null); @@ -188,7 +186,3 @@ function LineChart({ charts, title, lines }: ILineChart) { return
; } - -const storeConnector = ({ ui: { charts } }: IRootState) => ({ charts }); - -export default connect(storeConnector)(LineChart); diff --git a/locust/webui/src/components/Reports/Reports.tsx b/locust/webui/src/components/Reports/Reports.tsx index b5fcc4268d..a9a52c99db 100644 --- a/locust/webui/src/components/Reports/Reports.tsx +++ b/locust/webui/src/components/Reports/Reports.tsx @@ -1,13 +1,17 @@ import { Link, List, ListItem } from '@mui/material'; import { connect } from 'react-redux'; +import { useSelector } from 'redux/hooks'; import { ISwarmState } from 'redux/slice/swarm.slice'; import { IRootState } from 'redux/store'; +import { THEME_MODE } from 'styles/theme'; function Reports({ extendedCsvFiles, statsHistoryEnabled, }: Pick) { + const isDarkMode = useSelector(({ theme: { isDarkMode } }) => isDarkMode); + return ( @@ -27,7 +31,10 @@ function Reports({ Download exceptions CSV - + Download Report diff --git a/locust/webui/src/components/ResponseTimeTable/ResponseTimeTable.tsx b/locust/webui/src/components/ResponseTimeTable/ResponseTimeTable.tsx new file mode 100644 index 0000000000..2c7a815604 --- /dev/null +++ b/locust/webui/src/components/ResponseTimeTable/ResponseTimeTable.tsx @@ -0,0 +1,25 @@ +import { useMemo } from 'react'; + +import Table from 'components/Table/Table'; +import { IResponseTime } from 'types/ui.types'; + +const tableStructure = [ + { key: 'method', title: 'Method' }, + { key: 'name', title: 'Name' }, +]; + +interface IResponseTimeTable { + responseTimes: IResponseTime[]; +} + +export default function ResponseTimeTable({ responseTimes }: IResponseTimeTable) { + const percentileColumns = useMemo( + () => + Object.keys(responseTimes[0]) + .filter(value => Boolean(Number(value))) + .map(percentile => ({ key: percentile, title: `${Number(percentile) * 100}%ile (ms)` })), + [responseTimes], + ); + + return ; +} diff --git a/locust/webui/src/components/StatsTable/StatsTable.tsx b/locust/webui/src/components/StatsTable/StatsTable.tsx index 313528ed26..1bd2d5fc9d 100644 --- a/locust/webui/src/components/StatsTable/StatsTable.tsx +++ b/locust/webui/src/components/StatsTable/StatsTable.tsx @@ -20,7 +20,7 @@ const tableStructure = [ { key: 'currentFailPerSec', title: 'Current Failures/s', round: 2 }, ]; -function StatsTable({ stats }: { stats: ISwarmStat[] }) { +export function StatsTable({ stats }: { stats: ISwarmStat[] }) { return rows={stats} structure={tableStructure} />; } diff --git a/locust/webui/src/components/SwarmCharts/SwarmCharts.tsx b/locust/webui/src/components/SwarmCharts/SwarmCharts.tsx index dea71b4497..2cc8404c9f 100644 --- a/locust/webui/src/components/SwarmCharts/SwarmCharts.tsx +++ b/locust/webui/src/components/SwarmCharts/SwarmCharts.tsx @@ -1,4 +1,8 @@ +import { connect } from 'react-redux'; + import LineChart, { ILineChartProps } from 'components/LineChart/LineChart'; +import { IRootState } from 'redux/store'; +import { ICharts } from 'types/ui.types'; const availableSwarmCharts: ILineChartProps[] = [ { @@ -21,12 +25,16 @@ const availableSwarmCharts: ILineChartProps[] = [ }, ]; -export default function SwarmCharts() { +export function SwarmCharts({ charts }: { charts: ICharts }) { return (
{availableSwarmCharts.map((lineChartProps, index) => ( - + ))}
); } + +const storeConnector = ({ ui: { charts } }: IRootState) => ({ charts }); + +export default connect(storeConnector)(SwarmCharts); diff --git a/locust/webui/src/components/SwarnRatios/SwarmRatios.tsx b/locust/webui/src/components/SwarnRatios/SwarmRatios.tsx index 9464f220a9..fd4f694536 100644 --- a/locust/webui/src/components/SwarnRatios/SwarmRatios.tsx +++ b/locust/webui/src/components/SwarnRatios/SwarmRatios.tsx @@ -21,7 +21,7 @@ function NestedRatioList({ classRatio }: { classRatio: IClassRatio }) { ); } -function SwarmRatios({ ratios: { perClass, total } }: { ratios: IUiState['ratios'] }) { +export function SwarmRatios({ ratios: { perClass, total } }: { ratios: IUiState['ratios'] }) { if (!perClass && !total) { return null; } diff --git a/locust/webui/src/global.d.ts b/locust/webui/src/global.d.ts index 75b50504b7..9e0f7e2c66 100644 --- a/locust/webui/src/global.d.ts +++ b/locust/webui/src/global.d.ts @@ -1,7 +1,11 @@ +import { PaletteMode } from '@mui/material'; + import type { ISwarmState } from 'redux/slice/swarm.slice'; +import { IReportTemplateArgs } from 'types/swarm.types'; declare global { interface Window { - templateArgs: ISwarmState; + templateArgs: IReportTemplateArgs | ISwarmState; + theme?: PaletteMode; } } diff --git a/locust/webui/src/index.tsx b/locust/webui/src/index.tsx index 87602fe932..0be365fc63 100644 --- a/locust/webui/src/index.tsx +++ b/locust/webui/src/index.tsx @@ -3,11 +3,25 @@ import { Provider } from 'react-redux'; import App from 'App'; import { store } from 'redux/store'; +import Report from 'Report'; +import { IReportTemplateArgs } from 'types/swarm.types'; +import { ICharts } from 'types/ui.types'; +import { updateArraysAtProps } from 'utils/object'; +import { camelCaseKeys } from 'utils/string'; const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); -root.render( - - - , -); +if ((window.templateArgs as IReportTemplateArgs).is_report) { + const templateArgs = camelCaseKeys(window.templateArgs) as IReportTemplateArgs; + const reportProps = { + ...templateArgs, + charts: templateArgs.history.reduce(updateArraysAtProps, {}) as ICharts, + }; + root.render(); +} else { + root.render( + + + , + ); +} diff --git a/locust/webui/src/redux/slice/swarm.slice.ts b/locust/webui/src/redux/slice/swarm.slice.ts index bb689db28b..1c05655e42 100644 --- a/locust/webui/src/redux/slice/swarm.slice.ts +++ b/locust/webui/src/redux/slice/swarm.slice.ts @@ -37,7 +37,7 @@ export interface ISwarmState { export type SwarmAction = PayloadAction>; -const initialState: ISwarmState = camelCaseKeys(window.templateArgs); +const initialState = camelCaseKeys(window.templateArgs) as ISwarmState; const swarmSlice = createSlice({ name: 'swarm', diff --git a/locust/webui/src/types/swarm.types.ts b/locust/webui/src/types/swarm.types.ts index 49fedc1361..c49bfbc658 100644 --- a/locust/webui/src/types/swarm.types.ts +++ b/locust/webui/src/types/swarm.types.ts @@ -1,4 +1,11 @@ -import { ICharts } from 'types/ui.types'; +import { + ICharts, + ISwarmError, + ISwarmStat, + IResponseTime, + ISwarmRatios, + ISwarmException, +} from 'types/ui.types'; export interface IExtraOptionParameter { choices: string[] | null; @@ -12,3 +19,22 @@ export interface IExtraOptions { } export type History = Omit; + +export interface IReport { + locustfile: string; + showDownloadLink: boolean; + startTime: string; + endTime: string; + host: string; + charts: ICharts; + requestsStatistics: ISwarmStat[]; + failuresStatistics: ISwarmError[]; + responseTimeStatistics: IResponseTime[]; + exceptionsStatistics: ISwarmException[]; + tasks: ISwarmRatios; +} + +export interface IReportTemplateArgs extends IReport { + history: ICharts[]; + is_report?: boolean; +} diff --git a/locust/webui/src/types/ui.types.ts b/locust/webui/src/types/ui.types.ts index c46f67002e..8462e396ad 100644 --- a/locust/webui/src/types/ui.types.ts +++ b/locust/webui/src/types/ui.types.ts @@ -32,6 +32,12 @@ export interface ISwarmException { traceback: string; } +export interface IResponseTime { + method: string; + name: string; + [percentile: string]: string | number; +} + export interface ISwarmExceptionsResponse { exceptions: ISwarmException[]; } diff --git a/locust/webui/vite.config.ts b/locust/webui/vite.config.ts index 18a610f291..a960a8a559 100644 --- a/locust/webui/vite.config.ts +++ b/locust/webui/vite.config.ts @@ -1,24 +1,23 @@ import reactSwcPlugin from '@vitejs/plugin-react-swc'; -import { UserConfig, defineConfig, splitVendorChunkPlugin } from 'vite'; +import { UserConfig, defineConfig } from 'vite'; import checkerPlugin from 'vite-plugin-checker'; import tsconfigPaths from 'vite-tsconfig-paths'; - // https://vitejs.dev/config/ export default defineConfig((config: UserConfig) => ({ plugins: [ reactSwcPlugin(), tsconfigPaths(), - splitVendorChunkPlugin(), - config.mode !== 'production' && checkerPlugin({ - typescript: true, - eslint: { - lintCommand: 'eslint ./src/**/*.{ts,tsx}', - }, - }), + config.mode !== 'production' && + checkerPlugin({ + typescript: true, + eslint: { + lintCommand: 'eslint ./src/**/*.{ts,tsx}', + }, + }), ], server: { port: 4000, - open: './dev.html' + open: './dev.html', }, }));