Files
new-daping-vue/dist/assets/index-766f4bf0.js
PC-202306242200\Administrator 10ca82f012 first commit
2026-03-28 23:15:40 +08:00

314 lines
1.6 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var yV=Object.defineProperty;var mV=(r,e,t)=>e in r?yV(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ut=(r,e,t)=>(mV(r,typeof e!="symbol"?e+"":e,t),t);import{d as vt,o as he,c as de,a as ae,F as lt,r as dt,n as qt,m as _d,b as Ee,e as rt,f as St,w as Et,g as Qo,h as Ft,i as Je,j as ho,k as Sd,l as Mr,t as Dt,u as Q,p as uw,q as pt,s as nC,v as se,x as Tf,y as wV,z as It,A as BV,B as _n,C as CV,D as bV,E as xV,G as Zp,H as PU,I as _V,J as SV,K as TV}from"./vue-3f711dbc.js";import{L as IV,T as kU,E as LV,V as Ot,M as wA,a as BA,Q as Td,S as r_,b as xa,c as EV,P as MV,W as DV,d as aC,e as Bs,f as Rr,D as RU,G as ac,C as FV,g as QV,B as iC,A as OU,h as UV,i as PV,j as Id,k as gl,l as cw,m as fw,n as CA,o as n_,p as a_,q as i_,N as kV}from"./three-6ab3b202.js";import{g as RV}from"./gsap-54c24ddd.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();const OV="/assets/titles-0941b966.png",HV="/assets/light_bg-DEu33pwq-09f9d8c7.png",NV="/assets/20251231114626_961_154-3c8fdbef.png",VV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe4AAAAXCAYAAADN/awzAAAACXBIWXMAAAsSAAALEgHS3X78AAAJ8ElEQVR4nO2dgXKjSAxEZcjd/f/v7sbmavdgS+nrbgknWWcTdRVlGAaNZrB50oDtS4xGow+tbdt+fE6XiMDP61/E7x/1VlL+JPq4RcSVlH8X9ba0/XO5XC4bOX40Gr2TBtyj0RspATbSZ2tJZVkr+fwtUH7Y+2eH9JoAnpd4h8/yxiCdltsO8h+A/7Zv31L9Z2LvmtZz+Q22JxgYjYwG3KMvpW37yQOEa0BGm8tZprqCjQOwf++AXch+VC7D9bysuw9PAG5lX60zIRzZNluuCdzXHdJH2QbQD7IdEBREAvhtt/cd7AUJBiLVYWUvfJhgYPRZNOAefUjt2St7f7JpYAWvBfY9pWVJy4XYYRBn7VySnQzXA6wqIKjaQLsLATfLvNF2R11g3+Jltp3hfYX9mK3jOrYTCdzZnjpOrTOf8+wABhc52892WDnODMQEA6NHaMA9epV2wEYBuEPsPm2Q7PGyZ68LgS+2xbbRjwy7p/SK+xHcaj33YwHI5ululxWzPlQ2lya4O1m3gl8ImCIIGbSxXogsXK1jYIAQZv45mzdYnsFPPL47RtnHZ/KMAJsFiG4wsM8OkKqj0X+ad8cX0D49rKZrHUhd2QEPdu8113Fts3UGQAZQZY/VdxBcoE4AcBUgMaO+EGi7YMBto022oE/dcc9S0HKZK1sQiPl+Nt77dhC/wTEbORZ9rGywZQNfmU03TnlMnkVwoWywbRznY3aA9csFXAF1X7Q3wcDn0ZzJD6QCsKrMZZ/HBf1J3JfttoFleVnFQ1MdH9UUMYNXN6PE9ln2ygIDBkMGZ1cXAwEGVjU+zGfm/1FeBTXdz3Y3286vmHVjGdYLAkoWHGA9Bm2XbWOQ4fzuzABUY8MCgDOZO/M934KoAhdlT40Je2Cw8teWTTDwGM2o36GTgFXCunjhZxnu2XUHlCgu9g7aIYB4JsN05QzYnawSyzJ4V+Ev23bgrtbVVLbqJ44BCwZU20HWO+eyAxIG3ArYCuDMZhAoqQyTwYj5uok2nU+doAD3uT6wMcWxZnY2gLXy0/ns/FZ9xuNcGZ4bDM6cLTceL7YnGKj1aUdohyuT6nNnLBgQAi7GXSlQsQs+2q6gij6uAgzMlitXcEGooD9nYI5j7OyoV6yvprMx42ZT1K6fHbAqwCr/8TgWEOTyyp6TuuDndQfBDsg7IApR1sm41cKyazUDgPe8FRQrX9gxLiPGPqhZAjYWXT8c9JlfzGfVbzV7waT2Yzm7JaDUCTZ+6rMFAx+iNwKyr/Ht3gtZxya7SGObeFzHT3UvldntQKvKFs8EBswfBhEHpw6sVXDAfHNlKsBgmbW6182mqNW0tZrCrs4n61sGspqqZ3YXsKPOZZiLNAMlA5wDNT5dXsEzCFAqYCs/nb+svBtEqAAHfVB1qmOZX+gj6x/rvxu3qk9VH9R4d8fB2WTvt7Ny436PPezHLz06EHhI6+lJZJQC1D1y93OrdtU+dd/VtVH1yV2QXUaFxyt73alb9M8FBcw+g0jXxj2Aw7Fwtl223AE2PnDmptqx3cq3s+PCMnl1zjpyIGLw2GBKtwK4y7rPTIe7dQYzBcHuNLRqE8uwPJrlXXir86D67Xxmvqs+uL6eac/ZV3ZcUOEArNrGqfyO3Bj9T7/7a4HqZxCtDHhfow5gO+oA70w7XVhh3com8xEvxpX/FbgUtM8EBWoMKrA4oKBP7jgFb1bmfMMpa3Uc2kW/ENTsKXI1Ta76cgbkQcZOjU/eF+LCc9nL8+tRd4Fp5AuUV++HC7H/u8T6wfqAwjEI4fsF9mex8qrvOP6RfERf8/h37ebtyle2j/U/iM9sP9ZRPrM66poUBNRqPO557505d3cz8V7g3wXu10YXopNqwE+bTx9MdUI7b5yqDXZsfiNVb2Y8hl3gjm32oUY72K7zB9vE/exC371I3Ig/DAxHvcXUcX1V/Wf+ov1bgupxQczvlxv4uZIMwflbnSt3sez09Zb8VRcYd+FR2UTuf5D+uilwtrB73ey+KN5jxleW2bl7vi5TxTbZfrXg+LmszNVnr+hbpx9s9gDHqeuvG2tcx1f1/lK2sT+VHbWN+5yts+rw4pd+d8Z9V5TwHnqH+9x4z+81tlj2pjKkaLTlMrpsE+2p6FNlOmwKFzO/yi7zrTsFrOoEZKU4pp2x7bSh7Kp78+xeNn7nmy3V18rYmLlxYmN+dky6Yhd5vAAiHM48pIbbDpDYftzxgFqkNsIAGvep++HMJwdCtp/5V/XJBU/sXJwB7Vmf1fujGg8sx3HHB9Huhd9bQpuD6IM93PaxvHlDnXyqvDMODIxBLqKVDbSHcMW6zl/cl4HEHsZCf5Xv9wKb2cRtBVKEqhpvZbcKIjoP6+G+FdYX+N66ekitCkLOQLtTL6C8KwcmlR0hLBys8TUfi7YrP7pgU2Uui72KvjngMrH9yq9Of1UWjr5eC7tZCq5YtplxwGNZUKNsYvDkjjm976t8lexr9PKNlIIBBpGOGGjZhb6yqQCfIYVLECCoNtAHBlosd36hfwySLIBhth3AKx8ZxEP4gn4t8fI3zlkmzsa34xvrixpDNc5sbJxc9hfigq0eNqug3flJVNYu868CIavbWdjsgco42TpKQdgFAu6cIEyPV/XnLl1AK9/zODBfuqLtzne1X6cZvQfrzl9LQy1ke01LQJ0zwQELBi7EngpmFJjyw13MbsdfFVh04KkgyiC+QqaNvxZXPQSoghEHcDZ2bgxwzJzYFGV3HbM9BPiVQJtNlysoVtlqdX+0AqO6z82CD2dLSQUhLDN2djtjgeOLxyu7TAPYP0hzVj6pxAOACrBV2bGNfy0ZBUgq0GIW28m4lV0MCM5MVyvQsilyBDgDvoNztY+NlRrDapyzqqzWZbEZdPiq7nMjwG/wNTLWbhQAU1m7y4w7EMfA45nYZ745Mb+/A2BVAINtsXPxS/MPZV9PA+5RWxAMMLgG2Z+3F9i3wp+UqAxU2Quofyzst9NZEIDt5PbZNDmCuzNFzvxzoEf/XJ9fI5ZBRxPoLvtGcLOMG+1lMUiytth9XTyOlavA5LD7nP40BSGPYmWhst8B7OitNOAePVTmb0Fx2peVYXnO4p9OgJFBPYP1CDDw/7ZzsNG5b53X8RYB84n11W13pcDLoHzIZeEMqsfyrTFFntvAdQZY9t/aIQDLMmdXd6aHRx9e8w4dfTrtzw10wb9CnSBAXff/B8e/MFX34x2EcRqe/YAL+u2271GGJ3vy2wE0BIAZvL8lcGObLDNWWe3/ID7Z6+gra8A9GjW0zwyw7HmFoy8JxmGCgWUPBp7ItDnKfU7PfoYRtMc9XQRs7FktCh+EOuo+Q9k2gB2N3kcD7tHoQdpnBg7w588i+0XDlXxej0yfZaoqq72yspkeHo3+EEXEvw1P63b0/b+qAAAAAElFTkSuQmCC",GV="/assets/jitu-0ae999cf.png";/**
* @name: autofit.js
* @author: Larry Zhu
* @version: 3.2.8
* @description: autofit.js 是迄今为止最易用的自适应工具
* @license: MIT
*/let iy=null,Gc="",hw="",vw="",oy=null,o_=null,Tr=1,yl=!1;const jp={isAutofitRunning:!1,init(r={},e=!0){e&&console.log("autofit.js is running");const{dw:t=1920,dh:n=1080,el:a=typeof r=="string"?r:"body",resize:i=!0,ignore:o=[],transition:s="none",delay:A=0,limit:l=.1,cssMode:u="scale",allowScroll:c=!1}=r;iy=a;const f=document.querySelector(a);if(!f){console.error(`autofit: '${a}' is not exist`);return}const h=document.createElement("style"),v=document.createElement("style");h.lang="text/css",v.lang="text/css",h.id="autofit-style",v.id="ignoreStyle",!c&&(h.innerHTML="body {overflow: hidden;}");const d=document.querySelector("body");d.appendChild(h),d.appendChild(v),f.style.height=`${n}px`,f.style.width=`${t}px`,f.style.transformOrigin="0 0",!c&&(f.style.overflow="hidden"),sy(t,n,f,o,l,u),oy=()=>{clearTimeout(o_),A!=0?o_=setTimeout(()=>{sy(t,n,f,o,l,u),yl&&dw(Gc,vw,hw)},A):(sy(t,n,f,o,l,u),yl&&dw(Gc,vw,hw))},i&&window.addEventListener("resize",oy),this.isAutofitRunning=!0,setTimeout(()=>{f.style.transition=`${s}s`})},off(r="body"){try{window.removeEventListener("resize",oy);const e=document.querySelector("#autofit-style");e&&e.remove();const t=document.querySelector("#ignoreStyle");t&&t.remove();const n=document.querySelector(iy||r);n&&(n.style.cssText=""),yl&&HU()}catch(e){console.error("autofit: Failed to remove normally",e)}this.isAutofitRunning=!1,console.log("autofit.js is off")},elRectification:null,scale:Tr};function dw(r,e=!0,t=1){if(!jp.isAutofitRunning){console.error("autofit.js(elRectification): autofit has not been initialized yet");return}HU(),!r&&console.error(`autofit.jselRectification bad selector: ${r}`),Gc=r,hw=t,vw=e;const n=Array.from(document.querySelectorAll(r));if(n.length==0){console.error(`autofit.jselRectification found no element by selector: "${r}"`);return}for(const a of n){const i=Tr==1?1:Number(Tr)*Number(t);yl||(a.originalWidth=a.clientWidth,a.originalHeight=a.clientHeight),e?(a.style.width=`${a.originalWidth*i}px`,a.style.height=`${a.originalHeight*i}px`):(a.style.width=`${100*i}%`,a.style.height=`${100*i}%`),a.style.transform=`translateZ(0) scale(${1/Number(Tr)})`,a.style.transformOrigin="0 0"}yl=!0}function HU(){if(Gc){yl=!1;for(const r of Array.from(document.querySelectorAll(Gc)))r.style.width="",r.style.height="",r.style.transform=""}}function sy(r,e,t,n,a,i="scale"){const o=document.documentElement.clientHeight,s=document.documentElement.clientWidth;Tr=s/o<r/e?s/r:o/e,Tr=Math.abs(1-Tr)>a?Tr:1,jp.scale=+Tr;const A=Math.round(o/Number(Tr)),l=Math.round(s/Number(Tr));t.style.height=`${A}px`,t.style.width=`${l}px`,i==="zoom"?t.style.zoom=`${Tr}`:t.style.transform=`translateZ(0) scale(${Tr})`;const u=document.querySelector("#ignoreStyle");u.innerHTML="";for(const c of n){const f=c;let h=f.el||f.dom;if(typeof f=="string"&&(h=f),!h||typeof h=="object"&&!Object.keys(h).length){console.error(`autofit: found invalid or empty selector/object: ${h}`);continue}const v=f.scale?f.scale:1/Number(Tr),d=v!=Tr&&f.fontSize,p=v!=Tr&&f.width,g=v!=Tr&&f.height;u.innerHTML+=`
${h} {
transform: scale(${v})!important;
transform-origin: 0 0;
${p?`width: ${p}!important;`:""}
${g?`height: ${g}!important;`:""}
}`,d&&(u.innerHTML+=`
${h} div ,${h} span,${h} a,${h} * {
font-size: ${d}px;
}`)}}jp.elRectification=dw;const zV="/assets/gradient-b59efedb.png",$V="/assets/earth-74238849.jpg",KV="/assets/glow-ef19d813.png",WV="/assets/label-f2c3f6ed.png",XV="/assets/redCircle-61b74946.png",YV="/assets/label-f2c3f6ed.png",ZV="/assets/light_column-aa132c89.png",jV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA/CAYAAAC8aKvcAAAOHElEQVRogb2b268dVR3Hv3Pb+1zYqR7hGBCIgqg0LdbwgGJU5MEoMSQSfdEQJSbGBFFfjDz4D5AYDQneEh4wchENkcgDii8QUxBKEUpRaAqFFmlt6UG6z+m+zMwas37ru9asmT2zz96nhWmms8/ec1mf9fut322tCVAUeAe24Cze8qw2MD6Da2eF2gq8D9l2/ZY6YisSbmtA/ft20Ee9366Z2vD6b23nzgwxD3ATQND42QL1Gq5ZbPhuUGtw3/u72iFtn5t+b4GYDXia9MxnH9JCdbzzXp9BtS9kg8c82o6wHVDCz9MJtYZvDtwG2wyqIS1cl3/rLdkEOK3BjlBIB/jwVfAtQc8LPAlbB7WQGnCNR4h5NMd+A3iPjcxQCPgK/04FUjlwX+KT0p4Jeh7g6bAnEDrQPkIB1HAx94jXnW4AXkKB3INehKrAb0BVJG6lXYU+K8CTsFaFVwlopbqMUCS6iBADAmvIEUI56n3Aay28hVzkMRcg5TpgCCXwGrwHJbDn8bhF6GnAzbB1Fe4hFIkmAhRiAaFAdhBiTNiUx5C7vyk2TB8TKAHt8Kjhu1AOXEP70n4bagr0XMD1cTsJq1V4mbB10ByRQCYIkSEUyBghUgTyr74VAlsgg0Is6qwEXgN35LscI0IPCF4f21dCzSLpOnCTRa7CHkfoVLgvEBG6AhaJRJX8HckxF8mG7pgR2JeyEtxCrsjkqhLadJ3ZxwSvS9uq+HGoWdTbB54N1qqwHau6OYuuWQZU22SNoHcfOKe0rZQLNiQkdg6FgHdJ5exc5B7ys36Cht5Avgl0HdhBt8XSJXwbbCpgZt+QEWrsseLn2APXMoUbwWHlKQUNlIHO3TEWfcjlOnBgiIDYYbpD+tI+4AQg0D0RkPbTE6D2aVbCzb5WS9daYztmBzI+I1HhnHDgHrhjgpTQhbfrRhcO2OAqwipKN5SxmNFBZe6z3vVdR8ixjAwDSjxBXpF0acjsmPahi7qEJy1y3UCl0uAqrDZPEJkk/JwIbsbfIzomJchaOcsOjgTajFe43UKm0k0Fh1cq/wfYALAs0ZfpFr0toBCvsSr+v3AdWuObnh4uOtcTOAOVU4192EycUoJI+jsRncjlO3OOkqOVdFgzWlqyRro5YSMXdhiNyDlgQjlfx+gF3Vch3bnBqKwr3wU11a7Ax43Gypdul9FTJg80bmZIiYWeCofiSDpsRofRc8epOxiKFByLdrPqDFFno8a5dK3RCCVXGXnHDsCYO0XwBdEB5WKDUsqoSzqsgDZJt0PpDuhnc7oda6SyCmxXfjVpw4JWtINX49aHrsANn1jGqjiUAEsSTOo9kBhraVcPqw/uxFcOXo0fy3WBIJj7QEKPDiJ03LNGNI6KGjdi+/p0maWUJ3z+5BiuS9dY5cAZnCFVWnkSziVsMI0qCM5c6T0Rzv/yebjyunNxw/4NPH/XG3jq9sM4qMfiDy7Gpd88H1ftXMaOMEB0coyjMhqN9TfRWU6pFpQiOATsv658Zz1Am5SdpKeP4Q5H14BuBYIYMoqKZAQF4npiSjlxUoEZUfvW8eLnV3CBBrriHOz62Uew6ycfwpq+/UqCFf9x+zbwEoGtCwJNViGmzQLHMtojicJSOrUlIhspG9DJsVxRabiTrDontWwn5Rj2gws7hgMaKzN+u1bK1z6Dh395BA8qMwphQX3YvEB+xxH8+dq9+CuUAHedLSicAUwq9qAQ02baYpOUAWP6DveG6orvE0udt+oM5q/6hmPGxoXYYhM2+g3IKeEqvEDffAD7btyPe09lWK834FSO9Rv3475bDmC/gNrrAsLa+ykPWLfB+nircZEnHLRXWCYl7G9rvIFN8TIvRLQBBdxjSott8p2EDkSg7z2KN297FX+vP+K2Q9h933GcdGPfQvqwQU2yftgasnttZoZadaVWV5scw349SjGUy+h5lah1QEmHdCplA6pRV8JHW8l3xqaDKtvYXN9hyGhHrqLTySTIDOnHfV9uDZVi7q2vPM32DrzKS61A2CzhujpolKGXz2YCbx4WUNohpV3frZQKJKoBWJm7J57qxtSOqFGqNloLvfaMvcJC3KDKnnuartKxdyM/gbf/lJH0P6/Cd+7ejmu3L+EcRkdlNFaUDW8FVpWILPY6L7r8HPR+uwPX7L0K3yZswEA0ZBJh2hQ1j9lJpLYt8VS56s1sPuvAP7SEHbt6uO7r5yN/+TQOPHwS//75Ybx8aMDuMncJi2Kygwuwuca/iqpesoCl71+EHV96Hz522TIuDYDorbHoXfncQqKvZsjEq5bODDzH9t8hXtu2jIt1wz68hMtvWcLlN18I9a/TeO2hN/HKr47gP0cGKIp6eUcDG40ILlrEwnc/gEuvX8UHty/hojCods6xDK+6Dp+llD5uPkunh0HFLel00Oa+OttJGWCk6CAWn9hhcLCADAuIsKTLbvfsxBe/topvJNr71TZVQD23jqMnUoy+sIJL/F8fWcOhc2Ms7Orh/XVIvaUFBvccxf03vYBHxCyFUuQ5LSW+BENJGHWtJcFYYnCbaXWRN6SLxXTgIWH1rm+f0HUoxsq5lAIkHtYx8ue24YI7t+NbWspnQ3MODPDSTftx9+Nv4w2BVQQOcRrAUHbtNDOMERO4EDHlFWBT75KkY9JoDVgRtFvmZSSKhbaIJZnQpXb6b/XYW1i77An8+heH8cBI1xa3uOlrbz+CBz+6G3c+fgprrIIolzsX/Ke423Rxie1eaVd6H7h60pgZqQXORc5KHIyFtQ0JJGPNGern3zuAJz+zB3e8sI5X5kXev4FDn96D3/zwReyRlFG5aoiSCNqmk2Gt4LfINtpZjJE3TdMAXJ2s0ieOWPXvUYk77NvcA8xZobBHrySz5xTWdjyBe376Gv4y1DXHTbahwvi2V/G3nf/AH/b2JbnIK+Udv1P1nslTlcuJcwrHlg7s1t8s8PBPSL2b5HIjW5lQ8sCqZLNKacakGumPDuKZTz2Nu55fx+E25H3rOPzJp/C7Ww/iWXmKKdqlrvrRBB1RwiGj+LE3PTPmsKxPw7YGHgNvHsdCj1kcjydUuCy2hXJ2yupTah//7CmcvOJJ/PH+Y6Kmle33x/D0x5/En55bF6mOJW4yOmafnk4U9eyzQ5G00b6uVC2NVvrqXCvbhhMF67pa91j47rK+kLk4p1ThyGtYwMYGtV1hvG9dEvyqdPs4BmPgxuxWe33Ke6WuIyMPHmKbq9IdcB7KGt3+pIT9wKNwZR57or7wBKGP03BELKermhqHkorbINRWRAIXP+lqg1HTagPMdyMBNKAlfCntVFBCT8LV4rwxYtpwrUFhW8OqggbgctNS3sv+HdHsL9Iih5zcCpksKmlARkmUsLZWEbhyu4oxCRyZ8T7iuB8LvOmAMbXGSDeu1ajH4muNdG12pbz5pnKSrQJeBy4rfXUpp/TBxmCErGBmrG+lrEimXqoRsJ5s7htAxUGLhHXUVHA4WFhIFm4kXdqGdunGjKjGjcZqohBf1KqWhdSBHuXcrYlYTIpY0BEMpQKSy6i20LGrI5fJuC2nauAmlQ4o4cBBjd2YNuAppV+VbswJNivdrptCbZVum0pX4ctlBgorMseksMxxbBpgZiIsbOFmF+CSQVNFzpMGCXeMFIesSY+pLeX4DRgyBtwjWuvI8xQLMm5Viyq3+uH69KK5sE8VuZBLD+xcrZ0vLJhiGKMylt2qY87xCFHZYaNKG38tv3vjd+SptLlv7FnokNIdenPFk1OmTUyNY7hZtSGKFsgDhgIauNqDlXTBPo+oaFahI5F3nGAy4uJ3Q28uKXWQih1osyArWXj7Bg3V27Mtf5hW8SgmJL3KnuyxdweeL04o5Vjck2lo4CQsUt59Ci/WG7L7f1KLLjOfnBK2sMqZy9QBx96s4chb+oDK3iTlmdZ4wKWPexFiG0KZTVTMleHKMho5YWXYTrDFlXpygfDhXbj+s+/FV/VNH3sLD1z3HB4SQwgXtaWVYaLkrqkDXkIqE+KryLAmRzVlInwCbtZVPGC+HLbmy+AxJWDYUDi3RTh/nYc/N+yHqhY8qUVXTQm+l+9Og8UMJR5/Bs4EJI9CYRUQN2UjsGWO6dwMSrlu5M0FgXGXseYGLeAESsDz2hMRG75WrXLfCzBmWL0zK3BTb5lar/XNZs2FqTUtUjELzi4pzgkpzgVFTrpVYDB4yGrQoZsvNuM25NqODdqTQcVQbQo7D3C5GSmbgKQvbsGYG22qBvI9XHasGI4qNwFmgCNX/jXnRdIlilFTLnbZrgjwF7KYQq7t7CbpbrptZfnwpAHzlzCZWb1yrVaXk16xt2Yr9cZwwqJCIipqoFJvyVJXJGokuyALWVSLoZoJZB4JV310XxIK09snuJqm7+5qCgbLTCLhql9mGtQvx2dMTqz6Q2yCcXkxF6uUS5TK8LFs01zbVuvShRvLYP2oQ/+soTdY9Bvw+wXOPnYZj9e3gFJeZnAZsJqRcHarvh6reTXtTNtWgA2sHctgRvU6i7c9fhfTuQQiLZNIQlbwVYHtAtOI58YMYXtM6K1kR62Z0FzQ877z0L7gVI9nf720XXDatoy4Dm29b88dlatPNa+gndkVnQlwHXrzheJ9hq+JN7PnLxJvWhxuQdvXSNdB3zVgtEKD065NrwGsecD+6nd4tbT2VfBNkO8o8HRoNLzo4c83dxtUeuRVV1B7yaP5PYctweIsADd/rr/G4y8uaZrG9GcINn+TZcuwOANgzPRqD2ovZTW9x4SGcurs7yq9q8CY4eWttnOmbbO6nS01/EwnxKvZ1Bk0pOW+8/626fZOvF06r0Q3285eAwH8H5voqTrwCB3hAAAAAElFTkSuQmCC",JV=[{name:"gradient",url:zV},{name:"redCircle",url:XV},{name:"label",url:WV},{name:"aperture",url:YV},{name:"glow",url:KV},{name:"light_column",url:ZV},{name:"aircraft",url:jV},{name:"earth",url:$V}],qV={textures:JV};class eG{constructor(e){ut(this,"manager");ut(this,"callback");ut(this,"textureLoader");ut(this,"textures");this.callback=e,this.textures={},this.setLoadingManager(),this.loadResources()}setLoadingManager(){this.manager=new IV,this.manager.onStart=()=>{console.log("开始加载资源文件")},this.manager.onLoad=()=>{this.callback()},this.manager.onProgress=e=>{console.log(`正在加载:${e}`)},this.manager.onError=e=>{console.log("加载失败:"+e)}}loadResources(){var e;this.textureLoader=new kU(this.manager),(e=qV.textures)==null||e.forEach(t=>{this.textureLoader.load(t.url,n=>{this.textures[t.name]=n})})}destroy(){Object.keys(this.textures).forEach(e=>{const t=this.textures[e];t&&t.dispose&&t.dispose()}),this.textures={}}}const s_={type:"change"},Ay={type:"start"},A_={type:"end"};class tG extends LV{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new Ot,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:wA.ROTATE,MIDDLE:wA.DOLLY,RIGHT:wA.PAN},this.touches={ONE:BA.ROTATE,TWO:BA.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return s.phi},this.getAzimuthalAngle=function(){return s.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(Ae){Ae.addEventListener("keydown",Z),this._domElementKeyEvents=Ae},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(s_),n.update(),i=a.NONE},this.update=function(){const Ae=new Ot,Te=new Td().setFromUnitVectors(e.up,new Ot(0,1,0)),it=Te.clone().invert(),kt=new Ot,vr=new Td,Yr=2*Math.PI;return function(){const Ho=n.object.position;Ae.copy(Ho).sub(n.target),Ae.applyQuaternion(Te),s.setFromVector3(Ae),n.autoRotate&&i===a.NONE&&x(b()),n.enableDamping?(s.theta+=A.theta*n.dampingFactor,s.phi+=A.phi*n.dampingFactor):(s.theta+=A.theta,s.phi+=A.phi);let Mn=n.minAzimuthAngle,ea=n.maxAzimuthAngle;return isFinite(Mn)&&isFinite(ea)&&(Mn<-Math.PI?Mn+=Yr:Mn>Math.PI&&(Mn-=Yr),ea<-Math.PI?ea+=Yr:ea>Math.PI&&(ea-=Yr),Mn<=ea?s.theta=Math.max(Mn,Math.min(ea,s.theta)):s.theta=s.theta>(Mn+ea)/2?Math.max(Mn,s.theta):Math.min(ea,s.theta)),s.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,s.phi)),s.makeSafe(),s.radius*=l,s.radius=Math.max(n.minDistance,Math.min(n.maxDistance,s.radius)),n.enableDamping===!0?n.target.addScaledVector(u,n.dampingFactor):n.target.add(u),Ae.setFromSpherical(s),Ae.applyQuaternion(it),Ho.copy(n.target).add(Ae),n.object.lookAt(n.target),n.enableDamping===!0?(A.theta*=1-n.dampingFactor,A.phi*=1-n.dampingFactor,u.multiplyScalar(1-n.dampingFactor)):(A.set(0,0,0),u.set(0,0,0)),l=1,c||kt.distanceToSquared(n.object.position)>o||8*(1-vr.dot(n.object.quaternion))>o?(n.dispatchEvent(s_),kt.copy(n.object.position),vr.copy(n.object.quaternion),c=!1,!0):!1}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",fe),n.domElement.removeEventListener("pointerdown",$),n.domElement.removeEventListener("pointercancel",z),n.domElement.removeEventListener("wheel",Y),n.domElement.removeEventListener("pointermove",j),n.domElement.removeEventListener("pointerup",ie),n._domElementKeyEvents!==null&&n._domElementKeyEvents.removeEventListener("keydown",Z)};const n=this,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let i=a.NONE;const o=1e-6,s=new r_,A=new r_;let l=1;const u=new Ot;let c=!1;const f=new xa,h=new xa,v=new xa,d=new xa,p=new xa,g=new xa,y=new xa,m=new xa,w=new xa,B=[],C={};function b(){return 2*Math.PI/60/60*n.autoRotateSpeed}function _(){return Math.pow(.95,n.zoomSpeed)}function x(Ae){A.theta-=Ae}function S(Ae){A.phi-=Ae}const I=function(){const Ae=new Ot;return function(it,kt){Ae.setFromMatrixColumn(kt,0),Ae.multiplyScalar(-it),u.add(Ae)}}(),L=function(){const Ae=new Ot;return function(it,kt){n.screenSpacePanning===!0?Ae.setFromMatrixColumn(kt,1):(Ae.setFromMatrixColumn(kt,0),Ae.crossVectors(n.object.up,Ae)),Ae.multiplyScalar(it),u.add(Ae)}}(),T=function(){const Ae=new Ot;return function(it,kt){const vr=n.domElement;if(n.object.isPerspectiveCamera){const Yr=n.object.position;Ae.copy(Yr).sub(n.target);let mA=Ae.length();mA*=Math.tan(n.object.fov/2*Math.PI/180),I(2*it*mA/vr.clientHeight,n.object.matrix),L(2*kt*mA/vr.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(I(it*(n.object.right-n.object.left)/n.object.zoom/vr.clientWidth,n.object.matrix),L(kt*(n.object.top-n.object.bottom)/n.object.zoom/vr.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function M(Ae){n.object.isPerspectiveCamera?l/=Ae:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*Ae)),n.object.updateProjectionMatrix(),c=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function R(Ae){n.object.isPerspectiveCamera?l*=Ae:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/Ae)),n.object.updateProjectionMatrix(),c=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function P(Ae){f.set(Ae.clientX,Ae.clientY)}function E(Ae){y.set(Ae.clientX,Ae.clientY)}function k(Ae){d.set(Ae.clientX,Ae.clientY)}function D(Ae){h.set(Ae.clientX,Ae.clientY),v.subVectors(h,f).multiplyScalar(n.rotateSpeed);const Te=n.domElement;x(2*Math.PI*v.x/Te.clientHeight),S(2*Math.PI*v.y/Te.clientHeight),f.copy(h),n.update()}function U(Ae){m.set(Ae.clientX,Ae.clientY),w.subVectors(m,y),w.y>0?M(_()):w.y<0&&R(_()),y.copy(m),n.update()}function O(Ae){p.set(Ae.clientX,Ae.clientY),g.subVectors(p,d).multiplyScalar(n.panSpeed),T(g.x,g.y),d.copy(p),n.update()}function G(Ae){Ae.deltaY<0?R(_()):Ae.deltaY>0&&M(_()),n.update()}function X(Ae){let Te=!1;switch(Ae.code){case n.keys.UP:T(0,n.keyPanSpeed),Te=!0;break;case n.keys.BOTTOM:T(0,-n.keyPanSpeed),Te=!0;break;case n.keys.LEFT:T(n.keyPanSpeed,0),Te=!0;break;case n.keys.RIGHT:T(-n.keyPanSpeed,0),Te=!0;break}Te&&(Ae.preventDefault(),n.update())}function te(){if(B.length===1)f.set(B[0].pageX,B[0].pageY);else{const Ae=.5*(B[0].pageX+B[1].pageX),Te=.5*(B[0].pageY+B[1].pageY);f.set(Ae,Te)}}function ne(){if(B.length===1)d.set(B[0].pageX,B[0].pageY);else{const Ae=.5*(B[0].pageX+B[1].pageX),Te=.5*(B[0].pageY+B[1].pageY);d.set(Ae,Te)}}function ye(){const Ae=B[0].pageX-B[1].pageX,Te=B[0].pageY-B[1].pageY,it=Math.sqrt(Ae*Ae+Te*Te);y.set(0,it)}function re(){n.enableZoom&&ye(),n.enablePan&&ne()}function W(){n.enableZoom&&ye(),n.enableRotate&&te()}function ee(Ae){if(B.length==1)h.set(Ae.pageX,Ae.pageY);else{const it=Qe(Ae),kt=.5*(Ae.pageX+it.x),vr=.5*(Ae.pageY+it.y);h.set(kt,vr)}v.subVectors(h,f).multiplyScalar(n.rotateSpeed);const Te=n.domElement;x(2*Math.PI*v.x/Te.clientHeight),S(2*Math.PI*v.y/Te.clientHeight),f.copy(h)}function oe(Ae){if(B.length===1)p.set(Ae.pageX,Ae.pageY);else{const Te=Qe(Ae),it=.5*(Ae.pageX+Te.x),kt=.5*(Ae.pageY+Te.y);p.set(it,kt)}g.subVectors(p,d).multiplyScalar(n.panSpeed),T(g.x,g.y),d.copy(p)}function H(Ae){const Te=Qe(Ae),it=Ae.pageX-Te.x,kt=Ae.pageY-Te.y,vr=Math.sqrt(it*it+kt*kt);m.set(0,vr),w.set(0,Math.pow(m.y/y.y,n.zoomSpeed)),M(w.y),y.copy(m)}function N(Ae){n.enableZoom&&H(Ae),n.enablePan&&oe(Ae)}function K(Ae){n.enableZoom&&H(Ae),n.enableRotate&&ee(Ae)}function $(Ae){n.enabled!==!1&&(B.length===0&&(n.domElement.setPointerCapture(Ae.pointerId),n.domElement.addEventListener("pointermove",j),n.domElement.addEventListener("pointerup",ie)),we(Ae),Ae.pointerType==="touch"?J(Ae):q(Ae))}function j(Ae){n.enabled!==!1&&(Ae.pointerType==="touch"?ue(Ae):V(Ae))}function ie(Ae){xe(Ae),B.length===0&&(n.domElement.releasePointerCapture(Ae.pointerId),n.domElement.removeEventListener("pointermove",j),n.domElement.removeEventListener("pointerup",ie)),n.dispatchEvent(A_),i=a.NONE}function z(Ae){xe(Ae)}function q(Ae){let Te;switch(Ae.button){case 0:Te=n.mouseButtons.LEFT;break;case 1:Te=n.mouseButtons.MIDDLE;break;case 2:Te=n.mouseButtons.RIGHT;break;default:Te=-1}switch(Te){case wA.DOLLY:if(n.enableZoom===!1)return;E(Ae),i=a.DOLLY;break;case wA.ROTATE:if(Ae.ctrlKey||Ae.metaKey||Ae.shiftKey){if(n.enablePan===!1)return;k(Ae),i=a.PAN}else{if(n.enableRotate===!1)return;P(Ae),i=a.ROTATE}break;case wA.PAN:if(Ae.ctrlKey||Ae.metaKey||Ae.shiftKey){if(n.enableRotate===!1)return;P(Ae),i=a.ROTATE}else{if(n.enablePan===!1)return;k(Ae),i=a.PAN}break;default:i=a.NONE}i!==a.NONE&&n.dispatchEvent(Ay)}function V(Ae){switch(i){case a.ROTATE:if(n.enableRotate===!1)return;D(Ae);break;case a.DOLLY:if(n.enableZoom===!1)return;U(Ae);break;case a.PAN:if(n.enablePan===!1)return;O(Ae);break}}function Y(Ae){n.enabled===!1||n.enableZoom===!1||i!==a.NONE||(Ae.preventDefault(),n.dispatchEvent(Ay),G(Ae),n.dispatchEvent(A_))}function Z(Ae){n.enabled===!1||n.enablePan===!1||X(Ae)}function J(Ae){switch(_e(Ae),B.length){case 1:switch(n.touches.ONE){case BA.ROTATE:if(n.enableRotate===!1)return;te(),i=a.TOUCH_ROTATE;break;case BA.PAN:if(n.enablePan===!1)return;ne(),i=a.TOUCH_PAN;break;default:i=a.NONE}break;case 2:switch(n.touches.TWO){case BA.DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;re(),i=a.TOUCH_DOLLY_PAN;break;case BA.DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;W(),i=a.TOUCH_DOLLY_ROTATE;break;default:i=a.NONE}break;default:i=a.NONE}i!==a.NONE&&n.dispatchEvent(Ay)}function ue(Ae){switch(_e(Ae),i){case a.TOUCH_ROTATE:if(n.enableRotate===!1)return;ee(Ae),n.update();break;case a.TOUCH_PAN:if(n.enablePan===!1)return;oe(Ae),n.update();break;case a.TOUCH_DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;N(Ae),n.update();break;case a.TOUCH_DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;K(Ae),n.update();break;default:i=a.NONE}}function fe(Ae){n.enabled!==!1&&Ae.preventDefault()}function we(Ae){B.push(Ae)}function xe(Ae){delete C[Ae.pointerId];for(let Te=0;Te<B.length;Te++)if(B[Te].pointerId==Ae.pointerId){B.splice(Te,1);return}}function _e(Ae){let Te=C[Ae.pointerId];Te===void 0&&(Te=new xa,C[Ae.pointerId]=Te),Te.set(Ae.pageX,Ae.pageY)}function Qe(Ae){const Te=Ae.pointerId===B[0].pointerId?B[1]:B[0];return C[Te.pointerId]}n.domElement.addEventListener("contextmenu",fe),n.domElement.addEventListener("pointerdown",$),n.domElement.addEventListener("pointercancel",z),n.domElement.addEventListener("wheel",Y,{passive:!1}),this.update()}}class rG{constructor(e){ut(this,"scene");ut(this,"camera");ut(this,"renderer");ut(this,"controls");ut(this,"dom");this.dom=e,this.initScenes(),this.setControls()}initScenes(){this.scene=new EV,this.camera=new MV(45,window.innerWidth/window.innerHeight,1,1e5),this.camera.position.set(0,30,-250),this.renderer=new DV({alpha:!0,antialias:!0}),this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(window.innerWidth,window.innerHeight),this.dom.appendChild(this.renderer.domElement)}setControls(){this.controls=new tG(this.camera,this.renderer.domElement),this.controls.autoRotateSpeed=3,this.controls.enableDamping=!0,this.controls.dampingFactor=.05,this.controls.enableZoom=!0,this.controls.minDistance=100,this.controls.maxDistance=300,this.controls.enablePan=!0}destroy(){this.dom&&this.renderer&&this.renderer.domElement&&this.dom.contains(this.renderer.domElement)&&this.dom.removeChild(this.renderer.domElement),this.renderer&&this.renderer.dispose(),this.controls&&this.controls.dispose()}}/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
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 pw=function(r,e){return pw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},pw(r,e)};function ga(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pw(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gw=function(){return gw=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gw.apply(this,arguments)};function jr(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(u){try{l(n.next(u))}catch(c){o(c)}}function A(u){try{l(n.throw(u))}catch(c){o(c)}}function l(u){u.done?i(u.value):a(u.value).then(s,A)}l((n=n.apply(r,e||[])).next())})}function Or(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return A([l,u])}}function A(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,a=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function qf(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||e)}var _i=function(){function r(e,t,n,a){this.left=e,this.top=t,this.width=n,this.height=a}return r.prototype.add=function(e,t,n,a){return new r(this.left+e,this.top+t,this.width+n,this.height+a)},r.fromClientRect=function(e,t){return new r(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},r.fromDOMRectList=function(e,t){var n=Array.from(t).find(function(a){return a.width!==0});return n?new r(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),Jp=function(r,e){return _i.fromClientRect(r,e.getBoundingClientRect())},nG=function(r){var e=r.body,t=r.documentElement;if(!e||!t)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),a=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new _i(0,0,n,a)},qp=function(r){for(var e=[],t=0,n=r.length;t<n;){var a=r.charCodeAt(t++);if(a>=55296&&a<=56319&&t<n){var i=r.charCodeAt(t++);(i&64512)===56320?e.push(((a&1023)<<10)+(i&1023)+65536):(e.push(a),t--)}else e.push(a)}return e},jt=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var n=[],a=-1,i="";++a<t;){var o=r[a];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(a+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},l_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var eh=0;eh<l_.length;eh++)aG[l_.charCodeAt(eh)]=eh;var u_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var th=0;th<u_.length;th++)ic[u_.charCodeAt(th)]=th;var iG=function(r){var e=r.length*.75,t=r.length,n,a=0,i,o,s,A;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)i=ic[r.charCodeAt(n)],o=ic[r.charCodeAt(n+1)],s=ic[r.charCodeAt(n+2)],A=ic[r.charCodeAt(n+3)],u[a++]=i<<2|o>>4,u[a++]=(o&15)<<4|s>>2,u[a++]=(s&3)<<6|A&63;return l},oG=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},sG=function(r){for(var e=r.length,t=[],n=0;n<e;n+=4)t.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return t},ks=5,oC=6+5,ly=2,AG=oC-ks,NU=65536>>ks,lG=1<<ks,uy=lG-1,uG=1024>>ks,cG=NU+uG,fG=cG,hG=32,vG=fG+hG,dG=65536>>oC,pG=1<<AG,gG=pG-1,c_=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},yG=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},mG=function(r,e){var t=iG(r),n=Array.isArray(t)?sG(t):new Uint32Array(t),a=Array.isArray(t)?oG(t):new Uint16Array(t),i=24,o=c_(a,i/2,n[4]/2),s=n[5]===2?c_(a,(i+n[4])/2):yG(n,Math.ceil((i+n[4])/4));return new wG(n[0],n[1],n[2],n[3],o,s)},wG=function(){function r(e,t,n,a,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=a,this.index=i,this.data=o}return r.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>ks],t=(t<<ly)+(e&uy),this.data[t];if(e<=65535)return t=this.index[NU+(e-55296>>ks)],t=(t<<ly)+(e&uy),this.data[t];if(e<this.highStart)return t=vG-dG+(e>>oC),t=this.index[t],t+=e>>ks&gG,t=this.index[t],t=(t<<ly)+(e&uy),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),f_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",BG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var rh=0;rh<f_.length;rh++)BG[f_.charCodeAt(rh)]=rh;var CG="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",h_=50,bG=1,VU=2,GU=3,xG=4,_G=5,v_=7,zU=8,d_=9,to=10,yw=11,p_=12,mw=13,SG=14,oc=15,ww=16,nh=17,uu=18,TG=19,g_=20,Bw=21,cu=22,cy=23,bA=24,gn=25,sc=26,Ac=27,xA=28,IG=29,Cs=30,LG=31,ah=32,ih=33,Cw=34,bw=35,xw=36,zc=37,_w=38,Yv=39,Zv=40,fy=41,$U=42,EG=43,MG=[9001,65288],KU="!",ht="×",oh="÷",Sw=mG(CG),si=[Cs,xw],Tw=[bG,VU,GU,_G],WU=[to,zU],y_=[Ac,sc],DG=Tw.concat(WU),m_=[_w,Yv,Zv,Cw,bw],FG=[oc,mw],QG=function(r,e){e===void 0&&(e="strict");var t=[],n=[],a=[];return r.forEach(function(i,o){var s=Sw.get(i);if(s>h_?(a.push(!0),s-=h_):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(o),t.push(ww);if(s===xG||s===yw){if(o===0)return n.push(o),t.push(Cs);var A=t[o-1];return DG.indexOf(A)===-1?(n.push(n[o-1]),t.push(A)):(n.push(o),t.push(Cs))}if(n.push(o),s===LG)return t.push(e==="strict"?Bw:zc);if(s===$U||s===IG)return t.push(Cs);if(s===EG)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(zc):t.push(Cs);t.push(s)}),[n,t,a]},hy=function(r,e,t,n){var a=n[t];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==to)break}if(a===to)for(var i=t;i>0;){i--;var s=n[i];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var A=t;A<=n.length;){A++;var o=n[A];if(o===e)return!0;if(o!==to)break}if(s!==to)break}return!1},w_=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===to)t--;else return n}return 0},UG=function(r,e,t,n,a){if(t[n]===0)return ht;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return ht;var o=i-1,s=i+1,A=e[i],l=o>=0?e[o]:0,u=e[s];if(A===VU&&u===GU)return ht;if(Tw.indexOf(A)!==-1)return KU;if(Tw.indexOf(u)!==-1||WU.indexOf(u)!==-1)return ht;if(w_(i,e)===zU)return oh;if(Sw.get(r[i])===yw||(A===ah||A===ih)&&Sw.get(r[s])===yw||A===v_||u===v_||A===d_||[to,mw,oc].indexOf(A)===-1&&u===d_||[nh,uu,TG,bA,xA].indexOf(u)!==-1||w_(i,e)===cu||hy(cy,cu,i,e)||hy([nh,uu],Bw,i,e)||hy(p_,p_,i,e))return ht;if(A===to)return oh;if(A===cy||u===cy)return ht;if(u===ww||A===ww)return oh;if([mw,oc,Bw].indexOf(u)!==-1||A===SG||l===xw&&FG.indexOf(A)!==-1||A===xA&&u===xw||u===g_||si.indexOf(u)!==-1&&A===gn||si.indexOf(A)!==-1&&u===gn||A===Ac&&[zc,ah,ih].indexOf(u)!==-1||[zc,ah,ih].indexOf(A)!==-1&&u===sc||si.indexOf(A)!==-1&&y_.indexOf(u)!==-1||y_.indexOf(A)!==-1&&si.indexOf(u)!==-1||[Ac,sc].indexOf(A)!==-1&&(u===gn||[cu,oc].indexOf(u)!==-1&&e[s+1]===gn)||[cu,oc].indexOf(A)!==-1&&u===gn||A===gn&&[gn,xA,bA].indexOf(u)!==-1)return ht;if([gn,xA,bA,nh,uu].indexOf(u)!==-1)for(var c=i;c>=0;){var f=e[c];if(f===gn)return ht;if([xA,bA].indexOf(f)!==-1)c--;else break}if([Ac,sc].indexOf(u)!==-1)for(var c=[nh,uu].indexOf(A)!==-1?o:i;c>=0;){var f=e[c];if(f===gn)return ht;if([xA,bA].indexOf(f)!==-1)c--;else break}if(_w===A&&[_w,Yv,Cw,bw].indexOf(u)!==-1||[Yv,Cw].indexOf(A)!==-1&&[Yv,Zv].indexOf(u)!==-1||[Zv,bw].indexOf(A)!==-1&&u===Zv||m_.indexOf(A)!==-1&&[g_,sc].indexOf(u)!==-1||m_.indexOf(u)!==-1&&A===Ac||si.indexOf(A)!==-1&&si.indexOf(u)!==-1||A===bA&&si.indexOf(u)!==-1||si.concat(gn).indexOf(A)!==-1&&u===cu&&MG.indexOf(r[s])===-1||si.concat(gn).indexOf(u)!==-1&&A===uu)return ht;if(A===fy&&u===fy){for(var h=t[i],v=1;h>0&&(h--,e[h]===fy);)v++;if(v%2!==0)return ht}return A===ah&&u===ih?ht:oh},PG=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=QG(r,e.lineBreak),n=t[0],a=t[1],i=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(s){return[gn,Cs,$U].indexOf(s)!==-1?zc:s}));var o=e.wordBreak==="keep-all"?i.map(function(s,A){return s&&r[A]>=19968&&r[A]<=40959}):void 0;return[n,a,o]},kG=function(){function r(e,t,n,a){this.codePoints=e,this.required=t===KU,this.start=n,this.end=a}return r.prototype.slice=function(){return jt.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),RG=function(r,e){var t=qp(r),n=PG(t,e),a=n[0],i=n[1],o=n[2],s=t.length,A=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var u=ht;l<s&&(u=UG(t,i,a,++l,o))===ht;);if(u!==ht||l===s){var c=new kG(t,u,A,l);return A=l,{value:c,done:!1}}return{done:!0,value:null}}}},OG=1,HG=2,If=4,B_=8,Ld=10,C_=47,_c=92,NG=9,VG=32,sh=34,fu=61,GG=35,zG=36,$G=37,Ah=39,lh=40,hu=41,KG=95,An=45,WG=33,XG=60,YG=62,ZG=64,jG=91,JG=93,qG=61,ez=123,uh=63,tz=125,b_=124,rz=126,nz=128,x_=65533,vy=42,Ts=43,az=44,iz=58,oz=59,$c=46,sz=0,Az=8,lz=11,uz=14,cz=31,fz=127,_a=-1,XU=48,YU=97,ZU=101,hz=102,vz=117,dz=122,jU=65,JU=69,qU=70,pz=85,gz=90,Nr=function(r){return r>=XU&&r<=57},yz=function(r){return r>=55296&&r<=57343},_A=function(r){return Nr(r)||r>=jU&&r<=qU||r>=YU&&r<=hz},mz=function(r){return r>=YU&&r<=dz},wz=function(r){return r>=jU&&r<=gz},Bz=function(r){return mz(r)||wz(r)},Cz=function(r){return r>=nz},ch=function(r){return r===Ld||r===NG||r===VG},Ed=function(r){return Bz(r)||Cz(r)||r===KG},__=function(r){return Ed(r)||Nr(r)||r===An},bz=function(r){return r>=sz&&r<=Az||r===lz||r>=uz&&r<=cz||r===fz},Ji=function(r,e){return r!==_c?!1:e!==Ld},fh=function(r,e,t){return r===An?Ed(e)||Ji(e,t):Ed(r)?!0:!!(r===_c&&Ji(r,e))},dy=function(r,e,t){return r===Ts||r===An?Nr(e)?!0:e===$c&&Nr(t):Nr(r===$c?e:r)},xz=function(r){var e=0,t=1;(r[e]===Ts||r[e]===An)&&(r[e]===An&&(t=-1),e++);for(var n=[];Nr(r[e]);)n.push(r[e++]);var a=n.length?parseInt(jt.apply(void 0,n),10):0;r[e]===$c&&e++;for(var i=[];Nr(r[e]);)i.push(r[e++]);var o=i.length,s=o?parseInt(jt.apply(void 0,i),10):0;(r[e]===JU||r[e]===ZU)&&e++;var A=1;(r[e]===Ts||r[e]===An)&&(r[e]===An&&(A=-1),e++);for(var l=[];Nr(r[e]);)l.push(r[e++]);var u=l.length?parseInt(jt.apply(void 0,l),10):0;return t*(a+s*Math.pow(10,-o))*Math.pow(10,A*u)},_z={type:2},Sz={type:3},Tz={type:4},Iz={type:13},Lz={type:8},Ez={type:21},Mz={type:9},Dz={type:10},Fz={type:11},Qz={type:12},Uz={type:14},hh={type:23},Pz={type:1},kz={type:25},Rz={type:24},Oz={type:26},Hz={type:27},Nz={type:28},Vz={type:29},Gz={type:31},Iw={type:32},eP=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(qp(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Iw;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case sh:return this.consumeStringToken(sh);case GG:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(__(t)||Ji(n,a)){var i=fh(t,n,a)?HG:OG,o=this.consumeName();return{type:5,value:o,flags:i}}break;case zG:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Iz;break;case Ah:return this.consumeStringToken(Ah);case lh:return _z;case hu:return Sz;case vy:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Uz;break;case Ts:if(dy(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case az:return Tz;case An:var s=e,A=this.peekCodePoint(0),l=this.peekCodePoint(1);if(dy(s,A,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fh(s,A,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===An&&l===YG)return this.consumeCodePoint(),this.consumeCodePoint(),Rz;break;case $c:if(dy(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case C_:if(this.peekCodePoint(0)===vy)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===vy&&(u=this.consumeCodePoint(),u===C_))return this.consumeToken();if(u===_a)return this.consumeToken()}break;case iz:return Oz;case oz:return Hz;case XG:if(this.peekCodePoint(0)===WG&&this.peekCodePoint(1)===An&&this.peekCodePoint(2)===An)return this.consumeCodePoint(),this.consumeCodePoint(),kz;break;case ZG:var c=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(fh(c,f,h)){var o=this.consumeName();return{type:7,value:o}}break;case jG:return Nz;case _c:if(Ji(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case JG:return Vz;case qG:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Lz;break;case ez:return Fz;case tz:return Qz;case vz:case pz:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===Ts&&(_A(d)||d===uh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case b_:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Mz;if(this.peekCodePoint(0)===b_)return this.consumeCodePoint(),Ez;break;case rz:if(this.peekCodePoint(0)===fu)return this.consumeCodePoint(),Dz;break;case _a:return Iw}return ch(e)?(this.consumeWhiteSpace(),Gz):Nr(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Ed(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:jt(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();_A(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===uh&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(jt.apply(void 0,e.map(function(A){return A===uh?XU:A})),16),i=parseInt(jt.apply(void 0,e.map(function(A){return A===uh?qU:A})),16);return{type:30,start:a,end:i}}var o=parseInt(jt.apply(void 0,e),16);if(this.peekCodePoint(0)===An&&_A(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];_A(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var i=parseInt(jt.apply(void 0,s),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===lh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===lh?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===_a)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Ah||t===sh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===_a||this.peekCodePoint(0)===hu)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),hh)}for(;;){var a=this.consumeCodePoint();if(a===_a||a===hu)return{type:22,value:jt.apply(void 0,e)};if(ch(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===_a||this.peekCodePoint(0)===hu?(this.consumeCodePoint(),{type:22,value:jt.apply(void 0,e)}):(this.consumeBadUrlRemnants(),hh);if(a===sh||a===Ah||a===lh||bz(a))return this.consumeBadUrlRemnants(),hh;if(a===_c)if(Ji(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),hh;else e.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;ch(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===hu||e===_a)return;Ji(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var a=Math.min(t,e);n+=jt.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var a=this._value[n];if(a===_a||a===void 0||a===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(a===Ld)return this._value.splice(0,n),Pz;if(a===_c){var i=this._value[n+1];i!==_a&&i!==void 0&&(i===Ld?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ji(a,i)&&(t+=this.consumeStringSlice(n),t+=jt(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=If,n=this.peekCodePoint(0);for((n===Ts||n===An)&&e.push(this.consumeCodePoint());Nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===$c&&Nr(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=B_;Nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===JU||n===ZU)&&((a===Ts||a===An)&&Nr(i)||Nr(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=B_;Nr(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[xz(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(fh(a,i,o)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return a===$G?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(_A(e)){for(var t=jt(e);_A(this.peekCodePoint(0))&&t.length<6;)t+=jt(this.consumeCodePoint());ch(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||yz(n)||n>1114111?x_:n}return e===_a?x_:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(__(t))e+=jt(t);else if(Ji(t,this.peekCodePoint(0)))e+=jt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),tP=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new eP;return t.write(e),new r(t.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||$z(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Iw:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),Lf=function(r){return r.type===15},zl=function(r){return r.type===17},Tt=function(r){return r.type===20},zz=function(r){return r.type===0},Lw=function(r,e){return Tt(r)&&r.value===e},rP=function(r){return r.type!==31},_l=function(r){return r.type!==31&&r.type!==4},ri=function(r){var e=[],t=[];return r.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},$z=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},xo=function(r){return r.type===17||r.type===15},sr=function(r){return r.type===16||xo(r)},nP=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Dr={type:17,number:0,flags:If},sC={type:16,number:50,flags:If},ro={type:16,number:100,flags:If},lc=function(r,e,t){var n=r[0],a=r[1];return[Ht(n,e),Ht(typeof a<"u"?a:n,t)]},Ht=function(r,e){if(r.type===16)return r.number/100*e;if(Lf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},aP="deg",iP="grad",oP="rad",sP="turn",eg={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case aP:return Math.PI*e.number/180;case iP:return Math.PI/200*e.number;case oP:return e.number;case sP:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},AP=function(r){return r.type===15&&(r.unit===aP||r.unit===iP||r.unit===oP||r.unit===sP)},lP=function(r){var e=r.filter(Tt).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Dr,Dr];case"to top":case"bottom":return Kn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Dr,ro];case"to right":case"left":return Kn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ro,ro];case"to bottom":case"top":return Kn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ro,Dr];case"to left":case"right":return Kn(270)}return 0},Kn=function(r){return Math.PI*r/180},vo={name:"color",parse:function(r,e){if(e.type===18){var t=Kz[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3);return no(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return no(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6);return no(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return no(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var s=mi[e.value.toUpperCase()];if(typeof s<"u")return s}return mi.TRANSPARENT}},po=function(r){return(255&r)===0},wr=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,a=255&r>>24;return e<255?"rgba("+a+","+n+","+t+","+e/255+")":"rgb("+a+","+n+","+t+")"},no=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},S_=function(r,e){if(r.type===17)return r.number;if(r.type===16){var t=e===3?1:255;return e===3?r.number/100*t:Math.round(r.number/100*t)}return 0},T_=function(r,e){var t=e.filter(_l);if(t.length===3){var n=t.map(S_),a=n[0],i=n[1],o=n[2];return no(a,i,o,1)}if(t.length===4){var s=t.map(S_),a=s[0],i=s[1],o=s[2],A=s[3];return no(a,i,o,A)}return 0};function py(r,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-r)*t*6+r:t<1/2?e:t<2/3?(e-r)*6*(2/3-t)+r:r}var I_=function(r,e){var t=e.filter(_l),n=t[0],a=t[1],i=t[2],o=t[3],s=(n.type===17?Kn(n.number):eg.parse(r,n))/(Math.PI*2),A=sr(a)?a.number/100:0,l=sr(i)?i.number/100:0,u=typeof o<"u"&&sr(o)?Ht(o,1):1;if(A===0)return no(l*255,l*255,l*255,1);var c=l<=.5?l*(A+1):l+A-l*A,f=l*2-c,h=py(f,c,s+1/3),v=py(f,c,s),d=py(f,c,s-1/3);return no(h*255,v*255,d*255,u)},Kz={hsl:I_,hsla:I_,rgb:T_,rgba:T_},Sc=function(r,e){return vo.parse(r,tP.create(e).parseComponentValue())},mi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Wz={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Tt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xz={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tg=function(r,e){var t=vo.parse(r,e[0]),n=e[1];return n&&sr(n)?{color:t,stop:n}:{color:t,stop:null}},L_=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=Dr),n.stop===null&&(n.stop=ro);for(var a=[],i=0,o=0;o<r.length;o++){var s=r[o].stop;if(s!==null){var A=Ht(s,e);A>i?a.push(A):a.push(i),i=A}else a.push(null)}for(var l=null,o=0;o<a.length;o++){var u=a[o];if(u===null)l===null&&(l=o);else if(l!==null){for(var c=o-l,f=a[l-1],h=(u-f)/(c+1),v=1;v<=c;v++)a[l+v-1]=h*v;l=null}}return r.map(function(d,p){var g=d.color;return{color:g,stop:Math.max(Math.min(1,a[p]/e),0)}})},Yz=function(r,e,t){var n=e/2,a=t/2,i=Ht(r[0],e)-n,o=a-Ht(r[1],t);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},Zz=function(r,e,t){var n=typeof r=="number"?r:Yz(r,e,t),a=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),i=e/2,o=t/2,s=a/2,A=Math.sin(n-Math.PI/2)*s,l=Math.cos(n-Math.PI/2)*s;return[a,i-l,i+l,o-A,o+A]},ra=function(r,e){return Math.sqrt(r*r+e*e)},E_=function(r,e,t,n,a){var i=[[0,0],[0,e],[r,0],[r,e]];return i.reduce(function(o,s){var A=s[0],l=s[1],u=ra(t-A,n-l);return(a?u<o.optimumDistance:u>o.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},jz=function(r,e,t,n,a){var i=0,o=0;switch(r.size){case 0:r.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-a)):r.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-a)));break;case 2:if(r.shape===0)i=o=Math.min(ra(e,t),ra(e,t-a),ra(e-n,t),ra(e-n,t-a));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-a))/Math.min(Math.abs(e),Math.abs(e-n)),A=E_(n,a,e,t,!0),l=A[0],u=A[1];i=ra(l-e,(u-t)/s),o=s*i}break;case 1:r.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-a)):r.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-a)));break;case 3:if(r.shape===0)i=o=Math.max(ra(e,t),ra(e,t-a),ra(e-n,t),ra(e-n,t-a));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-a))/Math.max(Math.abs(e),Math.abs(e-n)),c=E_(n,a,e,t,!1),l=c[0],u=c[1];i=ra(l-e,(u-t)/s),o=s*i}break}return Array.isArray(r.size)&&(i=Ht(r.size[0],n),o=r.size.length===2?Ht(r.size[1],a):i),[i,o]},Jz=function(r,e){var t=Kn(180),n=[];return ri(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&o.value==="to"){t=lP(a);return}else if(AP(o)){t=eg.parse(r,o);return}}var s=tg(r,a);n.push(s)}),{angle:t,stops:n,type:1}},vh=function(r,e){var t=Kn(180),n=[];return ri(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=lP(a);return}else if(AP(o)){t=(eg.parse(r,o)+Kn(270))%Kn(360);return}}var s=tg(r,a);n.push(s)}),{angle:t,stops:n,type:1}},qz=function(r,e){var t=Kn(180),n=[],a=1,i=0,o=3,s=[];return ri(e).forEach(function(A,l){var u=A[0];if(l===0){if(Tt(u)&&u.value==="linear"){a=1;return}else if(Tt(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var c=vo.parse(r,u.values[0]);n.push({stop:Dr,color:c})}else if(u.name==="to"){var c=vo.parse(r,u.values[0]);n.push({stop:ro,color:c})}else if(u.name==="color-stop"){var f=u.values.filter(_l);if(f.length===2){var c=vo.parse(r,f[1]),h=f[0];zl(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:c})}}}}),a===1?{angle:(t+Kn(180))%Kn(360),stops:n,type:a}:{size:o,shape:i,stops:n,position:s,type:a}},uP="closest-side",cP="farthest-side",fP="closest-corner",hP="farthest-corner",vP="circle",dP="ellipse",pP="cover",gP="contain",e$=function(r,e){var t=0,n=3,a=[],i=[];return ri(e).forEach(function(o,s){var A=!0;if(s===0){var l=!1;A=o.reduce(function(c,f){if(l)if(Tt(f))switch(f.value){case"center":return i.push(sC),c;case"top":case"left":return i.push(Dr),c;case"right":case"bottom":return i.push(ro),c}else(sr(f)||xo(f))&&i.push(f);else if(Tt(f))switch(f.value){case vP:return t=0,!1;case dP:return t=1,!1;case"at":return l=!0,!1;case uP:return n=0,!1;case pP:case cP:return n=1,!1;case gP:case fP:return n=2,!1;case hP:return n=3,!1}else if(xo(f)||sr(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return c},A)}if(A){var u=tg(r,o);a.push(u)}}),{size:n,shape:t,stops:a,position:i,type:2}},dh=function(r,e){var t=0,n=3,a=[],i=[];return ri(e).forEach(function(o,s){var A=!0;if(s===0?A=o.reduce(function(u,c){if(Tt(c))switch(c.value){case"center":return i.push(sC),!1;case"top":case"left":return i.push(Dr),!1;case"right":case"bottom":return i.push(ro),!1}else if(sr(c)||xo(c))return i.push(c),!1;return u},A):s===1&&(A=o.reduce(function(u,c){if(Tt(c))switch(c.value){case vP:return t=0,!1;case dP:return t=1,!1;case gP:case uP:return n=0,!1;case cP:return n=1,!1;case fP:return n=2,!1;case pP:case hP:return n=3,!1}else if(xo(c)||sr(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},A)),A){var l=tg(r,o);a.push(l)}}),{size:n,shape:t,stops:a,position:i,type:2}},t$=function(r){return r.type===1},r$=function(r){return r.type===2},AC={name:"image",parse:function(r,e){if(e.type===22){var t={url:e.value,type:0};return r.cache.addImage(e.value),t}if(e.type===18){var n=yP[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function n$(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!yP[r.name])}var yP={"linear-gradient":Jz,"-moz-linear-gradient":vh,"-ms-linear-gradient":vh,"-o-linear-gradient":vh,"-webkit-linear-gradient":vh,"radial-gradient":e$,"-moz-radial-gradient":dh,"-ms-radial-gradient":dh,"-o-radial-gradient":dh,"-webkit-radial-gradient":dh,"-webkit-gradient":qz},a$={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return _l(n)&&n$(n)}).map(function(n){return AC.parse(r,n)})}},i$={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Tt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},o$={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return ri(e).map(function(t){return t.filter(sr)}).map(nP)}},s$={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return ri(e).map(function(t){return t.filter(Tt).map(function(n){return n.value}).join(" ")}).map(A$)}},A$=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ml;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(ml||(ml={}));var l$={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return ri(e).map(function(t){return t.filter(u$)})}},u$=function(r){return Tt(r)||sr(r)},rg=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},c$=rg("top"),f$=rg("right"),h$=rg("bottom"),v$=rg("left"),ng=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return nP(t.filter(sr))}}},d$=ng("top-left"),p$=ng("top-right"),g$=ng("bottom-right"),y$=ng("bottom-left"),ag=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},m$=ag("top"),w$=ag("right"),B$=ag("bottom"),C$=ag("left"),ig=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Lf(t)?t.number:0}}},b$=ig("top"),x$=ig("right"),_$=ig("bottom"),S$=ig("left"),T$={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},I$={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},L$={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(Tt).reduce(function(t,n){return t|E$(n.value)},0)}},E$=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},M$={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},D$={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Md;(function(r){r.NORMAL="normal",r.STRICT="strict"})(Md||(Md={}));var F$={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return Md.STRICT;case"normal":default:return Md.NORMAL}}},Q$={name:"line-height",initialValue:"normal",prefix:!1,type:4},M_=function(r,e){return Tt(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:sr(r)?Ht(r,e):e},U$={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:AC.parse(r,e)}},P$={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Ew={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},og=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},k$=og("top"),R$=og("right"),O$=og("bottom"),H$=og("left"),N$={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(Tt).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},V$={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},sg=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},G$=sg("top"),z$=sg("right"),$$=sg("bottom"),K$=sg("left"),W$={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},X$={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Y$={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&Lw(e[0],"none")?[]:ri(e).map(function(t){for(var n={color:mi.TRANSPARENT,offsetX:Dr,offsetY:Dr,blur:Dr},a=0,i=0;i<t.length;i++){var o=t[i];xo(o)?(a===0?n.offsetX=o:a===1?n.offsetY=o:n.blur=o,a++):n.color=vo.parse(r,o)}return n})}},Z$={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},j$={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(r,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=eK[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},J$=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},q$=function(r){var e=r.filter(function(A){return A.type===17}).map(function(A){return A.number}),t=e[0],n=e[1];e[2],e[3];var a=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[t,n,a,i,o,s]:null},eK={matrix:J$,matrix3d:q$},D_={type:16,number:50,flags:If},tK=[D_,D_],rK={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(sr);return t.length!==2?tK:[t[0],t[1]]}},nK={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Tc;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Tc||(Tc={}));var aK={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return Tc.BREAK_ALL;case"keep-all":return Tc.KEEP_ALL;case"normal":default:return Tc.NORMAL}}},iK={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(zl(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},mP={name:"time",parse:function(r,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},oK={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return zl(e)?e.number:1}},sK={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},AK={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(Tt).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},lK={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(a){switch(a.type){case 20:case 0:t.push(a.value);break;case 17:t.push(a.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},uK={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},cK={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(zl(e))return e.number;if(Tt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},fK={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(Tt).map(function(t){return t.value})}},hK={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},pr=function(r,e){return(r&e)!==0},vK={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},dK={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],a=e.filter(rP),i=0;i<a.length;i++){var o=a[i],s=a[i+1];if(o.type===20){var A=s&&zl(s)?s.number:1;n.push({counter:o.value,increment:A})}}return n}},pK={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return[];for(var t=[],n=e.filter(rP),a=0;a<n.length;a++){var i=n[a],o=n[a+1];if(Tt(i)&&i.value!=="none"){var s=o&&zl(o)?o.number:0;t.push({counter:i.value,reset:s})}}return t}},gK={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,e){return e.filter(Lf).map(function(t){return mP.parse(r,t)})}},yK={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var n=[],a=e.filter(zz);if(a.length%2!==0)return null;for(var i=0;i<a.length;i+=2){var o=a[i].value,s=a[i+1].value;n.push({open:o,close:s})}return n}},F_=function(r,e,t){if(!r)return"";var n=r[Math.min(e,r.length-1)];return n?t?n.open:n.close:""},mK={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&Lw(e[0],"none")?[]:ri(e).map(function(t){for(var n={color:255,offsetX:Dr,offsetY:Dr,blur:Dr,spread:Dr,inset:!1},a=0,i=0;i<t.length;i++){var o=t[i];Lw(o,"inset")?n.inset=!0:xo(o)?(a===0?n.offsetX=o:a===1?n.offsetY=o:a===2?n.blur=o:n.spread=o,a++):n.color=vo.parse(r,o)}return n})}},wK={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,e){var t=[0,1,2],n=[];return e.filter(Tt).forEach(function(a){switch(a.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(function(a){n.indexOf(a)===-1&&n.push(a)}),n}},BK={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},CK={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,e){return Lf(e)?e.number:0}},bK=function(){function r(e,t){var n,a;this.animationDuration=He(e,gK,t.animationDuration),this.backgroundClip=He(e,Wz,t.backgroundClip),this.backgroundColor=He(e,Xz,t.backgroundColor),this.backgroundImage=He(e,a$,t.backgroundImage),this.backgroundOrigin=He(e,i$,t.backgroundOrigin),this.backgroundPosition=He(e,o$,t.backgroundPosition),this.backgroundRepeat=He(e,s$,t.backgroundRepeat),this.backgroundSize=He(e,l$,t.backgroundSize),this.borderTopColor=He(e,c$,t.borderTopColor),this.borderRightColor=He(e,f$,t.borderRightColor),this.borderBottomColor=He(e,h$,t.borderBottomColor),this.borderLeftColor=He(e,v$,t.borderLeftColor),this.borderTopLeftRadius=He(e,d$,t.borderTopLeftRadius),this.borderTopRightRadius=He(e,p$,t.borderTopRightRadius),this.borderBottomRightRadius=He(e,g$,t.borderBottomRightRadius),this.borderBottomLeftRadius=He(e,y$,t.borderBottomLeftRadius),this.borderTopStyle=He(e,m$,t.borderTopStyle),this.borderRightStyle=He(e,w$,t.borderRightStyle),this.borderBottomStyle=He(e,B$,t.borderBottomStyle),this.borderLeftStyle=He(e,C$,t.borderLeftStyle),this.borderTopWidth=He(e,b$,t.borderTopWidth),this.borderRightWidth=He(e,x$,t.borderRightWidth),this.borderBottomWidth=He(e,_$,t.borderBottomWidth),this.borderLeftWidth=He(e,S$,t.borderLeftWidth),this.boxShadow=He(e,mK,t.boxShadow),this.color=He(e,T$,t.color),this.direction=He(e,I$,t.direction),this.display=He(e,L$,t.display),this.float=He(e,M$,t.cssFloat),this.fontFamily=He(e,lK,t.fontFamily),this.fontSize=He(e,uK,t.fontSize),this.fontStyle=He(e,hK,t.fontStyle),this.fontVariant=He(e,fK,t.fontVariant),this.fontWeight=He(e,cK,t.fontWeight),this.letterSpacing=He(e,D$,t.letterSpacing),this.lineBreak=He(e,F$,t.lineBreak),this.lineHeight=He(e,Q$,t.lineHeight),this.listStyleImage=He(e,U$,t.listStyleImage),this.listStylePosition=He(e,P$,t.listStylePosition),this.listStyleType=He(e,Ew,t.listStyleType),this.marginTop=He(e,k$,t.marginTop),this.marginRight=He(e,R$,t.marginRight),this.marginBottom=He(e,O$,t.marginBottom),this.marginLeft=He(e,H$,t.marginLeft),this.opacity=He(e,oK,t.opacity);var i=He(e,N$,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=He(e,V$,t.overflowWrap),this.paddingTop=He(e,G$,t.paddingTop),this.paddingRight=He(e,z$,t.paddingRight),this.paddingBottom=He(e,$$,t.paddingBottom),this.paddingLeft=He(e,K$,t.paddingLeft),this.paintOrder=He(e,wK,t.paintOrder),this.position=He(e,X$,t.position),this.textAlign=He(e,W$,t.textAlign),this.textDecorationColor=He(e,sK,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=He(e,AK,(a=t.textDecorationLine)!==null&&a!==void 0?a:t.textDecoration),this.textShadow=He(e,Y$,t.textShadow),this.textTransform=He(e,Z$,t.textTransform),this.transform=He(e,j$,t.transform),this.transformOrigin=He(e,rK,t.transformOrigin),this.visibility=He(e,nK,t.visibility),this.webkitTextStrokeColor=He(e,BK,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=He(e,CK,t.webkitTextStrokeWidth),this.wordBreak=He(e,aK,t.wordBreak),this.zIndex=He(e,iK,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return po(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return pr(this.display,4)||pr(this.display,33554432)||pr(this.display,268435456)||pr(this.display,536870912)||pr(this.display,67108864)||pr(this.display,134217728)},r}(),xK=function(){function r(e,t){this.content=He(e,vK,t.content),this.quotes=He(e,yK,t.quotes)}return r}(),Q_=function(){function r(e,t){this.counterIncrement=He(e,dK,t.counterIncrement),this.counterReset=He(e,pK,t.counterReset)}return r}(),He=function(r,e,t){var n=new eP,a=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(a);var i=new tP(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(r,Tt(o)?o.value:e.initialValue);case 0:return e.parse(r,i.parseComponentValue());case 1:return e.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return eg.parse(r,i.parseComponentValue());case"color":return vo.parse(r,i.parseComponentValue());case"image":return AC.parse(r,i.parseComponentValue());case"length":var s=i.parseComponentValue();return xo(s)?s:Dr;case"length-percentage":var A=i.parseComponentValue();return sr(A)?A:Dr;case"time":return mP.parse(r,i.parseComponentValue())}break}},_K="data-html2canvas-debug",SK=function(r){var e=r.getAttribute(_K);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Mw=function(r,e){var t=SK(r);return t===1||e===t},ni=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Mw(t,3))debugger;this.styles=new bK(e,window.getComputedStyle(t,null)),Qw(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Jp(this.context,t),Mw(t,4)&&(this.flags|=16)}return r}(),TK="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",U_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ph=0;ph<U_.length;ph++)uc[U_.charCodeAt(ph)]=ph;var IK=function(r){var e=r.length*.75,t=r.length,n,a=0,i,o,s,A;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)i=uc[r.charCodeAt(n)],o=uc[r.charCodeAt(n+1)],s=uc[r.charCodeAt(n+2)],A=uc[r.charCodeAt(n+3)],u[a++]=i<<2|o>>4,u[a++]=(o&15)<<4|s>>2,u[a++]=(s&3)<<6|A&63;return l},LK=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},EK=function(r){for(var e=r.length,t=[],n=0;n<e;n+=4)t.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return t},Rs=5,lC=6+5,gy=2,MK=lC-Rs,wP=65536>>Rs,DK=1<<Rs,yy=DK-1,FK=1024>>Rs,QK=wP+FK,UK=QK,PK=32,kK=UK+PK,RK=65536>>lC,OK=1<<MK,HK=OK-1,P_=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},NK=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},VK=function(r,e){var t=IK(r),n=Array.isArray(t)?EK(t):new Uint32Array(t),a=Array.isArray(t)?LK(t):new Uint16Array(t),i=24,o=P_(a,i/2,n[4]/2),s=n[5]===2?P_(a,(i+n[4])/2):NK(n,Math.ceil((i+n[4])/4));return new GK(n[0],n[1],n[2],n[3],o,s)},GK=function(){function r(e,t,n,a,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=a,this.index=i,this.data=o}return r.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Rs],t=(t<<gy)+(e&yy),this.data[t];if(e<=65535)return t=this.index[wP+(e-55296>>Rs)],t=(t<<gy)+(e&yy),this.data[t];if(e<this.highStart)return t=kK-RK+(e>>lC),t=this.index[t],t+=e>>Rs&HK,t=this.index[t],t=(t<<gy)+(e&yy),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),k_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zK=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var gh=0;gh<k_.length;gh++)zK[k_.charCodeAt(gh)]=gh;var $K=1,my=2,wy=3,R_=4,O_=5,KK=7,H_=8,By=9,Cy=10,N_=11,V_=12,G_=13,z_=14,by=15,WK=function(r){for(var e=[],t=0,n=r.length;t<n;){var a=r.charCodeAt(t++);if(a>=55296&&a<=56319&&t<n){var i=r.charCodeAt(t++);(i&64512)===56320?e.push(((a&1023)<<10)+(i&1023)+65536):(e.push(a),t--)}else e.push(a)}return e},XK=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var n=[],a=-1,i="";++a<t;){var o=r[a];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(a+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},YK=VK(TK),Pn="×",xy="÷",ZK=function(r){return YK.get(r)},jK=function(r,e,t){var n=t-2,a=e[n],i=e[t-1],o=e[t];if(i===my&&o===wy)return Pn;if(i===my||i===wy||i===R_||o===my||o===wy||o===R_)return xy;if(i===H_&&[H_,By,N_,V_].indexOf(o)!==-1||(i===N_||i===By)&&(o===By||o===Cy)||(i===V_||i===Cy)&&o===Cy||o===G_||o===O_||o===KK||i===$K)return Pn;if(i===G_&&o===z_){for(;a===O_;)a=e[--n];if(a===z_)return Pn}if(i===by&&o===by){for(var s=0;a===by;)s++,a=e[--n];if(s%2===0)return Pn}return xy},JK=function(r){var e=WK(r),t=e.length,n=0,a=0,i=e.map(ZK);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=Pn;n<t&&(o=jK(e,i,++n))===Pn;);if(o!==Pn||n===t){var s=XK.apply(null,e.slice(a,n));return a=n,{value:s,done:!1}}return{done:!0,value:null}}}},qK=function(r){for(var e=JK(r),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t},e8=function(r){var e=123;if(r.createRange){var t=r.createRange();if(t.getBoundingClientRect){var n=r.createElement("boundtest");n.style.height=e+"px",n.style.display="block",r.body.appendChild(n),t.selectNode(n);var a=t.getBoundingClientRect(),i=Math.round(a.height);if(r.body.removeChild(n),i===e)return!0}}return!1},t8=function(r){var e=r.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",r.body.appendChild(e);var t=r.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,a=qp(n.data).map(function(A){return jt(A)}),i=0,o={},s=a.every(function(A,l){t.setStart(n,i),t.setEnd(n,i+A.length);var u=t.getBoundingClientRect();i+=A.length;var c=u.x>o.x||u.y>o.y;return o=u,l===0?!0:c});return r.body.removeChild(e),s},r8=function(){return typeof new Image().crossOrigin<"u"},n8=function(){return typeof new XMLHttpRequest().responseType=="string"},a8=function(r){var e=new Image,t=r.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},$_=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},i8=function(r){var e=r.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var a=new Image,i=e.toDataURL();a.src=i;var o=Dw(t,t,0,0,a);return n.fillStyle="red",n.fillRect(0,0,t,t),K_(o).then(function(s){n.drawImage(s,0,0);var A=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=t+"px",$_(A)?K_(Dw(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),$_(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Dw=function(r,e,t,n,a){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",r.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(a),o},K_=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Er={get SUPPORT_RANGE_BOUNDS(){var r=e8(document);return Object.defineProperty(Er,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=Er.SUPPORT_RANGE_BOUNDS&&t8(document);return Object.defineProperty(Er,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=a8(document);return Object.defineProperty(Er,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?i8(document):Promise.resolve(!1);return Object.defineProperty(Er,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=r8();return Object.defineProperty(Er,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=n8();return Object.defineProperty(Er,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Er,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Er,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Ic=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),o8=function(r,e,t,n){var a=l8(e,t),i=[],o=0;return a.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(Er.SUPPORT_RANGE_BOUNDS){var A=W_(n,o,s.length).getClientRects();if(A.length>1){var l=uC(s),u=0;l.forEach(function(f){i.push(new Ic(f,_i.fromDOMRectList(r,W_(n,u+o,f.length).getClientRects()))),u+=f.length})}else i.push(new Ic(s,_i.fromDOMRectList(r,A)))}else{var c=n.splitText(s.length);i.push(new Ic(s,s8(r,n))),n=c}else Er.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),i},s8=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(n,e);var i=Jp(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return _i.EMPTY},W_=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,e),a.setEnd(r,e+t),a},uC=function(r){if(Er.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return qK(r)},A8=function(r,e){if(Er.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(r)).map(function(n){return n.segment})}return c8(r,e)},l8=function(r,e){return e.letterSpacing!==0?uC(r):A8(r,e)},u8=[32,160,4961,65792,65793,4153,4241],c8=function(r,e){for(var t=RG(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],a,i=function(){if(a.value){var o=a.value.slice(),s=qp(o),A="";s.forEach(function(l){u8.indexOf(l)===-1?A+=jt(l):(A.length&&n.push(A),n.push(jt(l)),A="")}),A.length&&n.push(A)}};!(a=t.next()).done;)i();return n},f8=function(){function r(e,t,n){this.text=h8(t.data,n.textTransform),this.textBounds=o8(e,this.text,n,t)}return r}(),h8=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(v8,d8);case 2:return r.toUpperCase();default:return r}},v8=/(^|\s|:|-|\(|\))([a-z])/g,d8=function(r,e,t){return r.length>0?e+t.toUpperCase():r},BP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return e}(ni),CP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return e}(ni),bP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this,i=new XMLSerializer,o=Jp(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(ni),xP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.value=n.value,a}return e}(ni),Fw=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return e}(ni),p8=[{type:15,flags:0,unit:"px",number:3}],g8=[{type:16,flags:0,number:50}],y8=function(r){return r.width>r.height?new _i(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new _i(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},m8=function(r){var e=r.type===w8?new Array(r.value.length+1).join("•"):r.value;return e.length===0?r.placeholder||"":e},Dd="checkbox",Fd="radio",w8="password",X_=707406591,cC=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=m8(n),(a.type===Dd||a.type===Fd)&&(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=y8(a.bounds)),a.type){case Dd:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=p8;break;case Fd:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=g8;break}return a}return e}(ni),_P=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return a.value=i&&i.text||"",a}return e}(ni),SP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.value=n.value,a}return e}(ni),TP=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;a.src=n.src,a.width=parseInt(n.width,10)||0,a.height=parseInt(n.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){a.tree=LP(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Sc(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):mi.TRANSPARENT,o=n.contentWindow.document.body?Sc(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):mi.TRANSPARENT;a.backgroundColor=po(i)?po(o)?a.styles.backgroundColor:o:i}}catch{}return a}return e}(ni),B8=["OL","UL","MENU"],jv=function(r,e,t,n){for(var a=e.firstChild,i=void 0;a;a=i)if(i=a.nextSibling,EP(a)&&a.data.trim().length>0)t.textNodes.push(new f8(r,a,t.styles));else if(ll(a))if(QP(a)&&a.assignedNodes)a.assignedNodes().forEach(function(s){return jv(r,s,t,n)});else{var o=IP(r,a);o.styles.isVisible()&&(C8(a,o,n)?o.flags|=4:b8(o.styles)&&(o.flags|=2),B8.indexOf(a.tagName)!==-1&&(o.flags|=8),t.elements.push(o),a.slot,a.shadowRoot?jv(r,a.shadowRoot,o,n):!Qd(a)&&!MP(a)&&!Ud(a)&&jv(r,a,o,n))}},IP=function(r,e){return Uw(e)?new BP(r,e):DP(e)?new CP(r,e):MP(e)?new bP(r,e):x8(e)?new xP(r,e):_8(e)?new Fw(r,e):S8(e)?new cC(r,e):Ud(e)?new _P(r,e):Qd(e)?new SP(r,e):FP(e)?new TP(r,e):new ni(r,e)},LP=function(r,e){var t=IP(r,e);return t.flags|=4,jv(r,e,t,t),t},C8=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fC(r)&&t.styles.isTransparent()},b8=function(r){return r.isPositioned()||r.isFloating()},EP=function(r){return r.nodeType===Node.TEXT_NODE},ll=function(r){return r.nodeType===Node.ELEMENT_NODE},Qw=function(r){return ll(r)&&typeof r.style<"u"&&!Jv(r)},Jv=function(r){return typeof r.className=="object"},x8=function(r){return r.tagName==="LI"},_8=function(r){return r.tagName==="OL"},S8=function(r){return r.tagName==="INPUT"},T8=function(r){return r.tagName==="HTML"},MP=function(r){return r.tagName==="svg"},fC=function(r){return r.tagName==="BODY"},DP=function(r){return r.tagName==="CANVAS"},Y_=function(r){return r.tagName==="VIDEO"},Uw=function(r){return r.tagName==="IMG"},FP=function(r){return r.tagName==="IFRAME"},Z_=function(r){return r.tagName==="STYLE"},I8=function(r){return r.tagName==="SCRIPT"},Qd=function(r){return r.tagName==="TEXTAREA"},Ud=function(r){return r.tagName==="SELECT"},QP=function(r){return r.tagName==="SLOT"},j_=function(r){return r.tagName.indexOf("-")>0},L8=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},r.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},r.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},r.prototype.parse=function(e){var t=this,n=e.counterIncrement,a=e.counterReset,i=!0;n!==null&&n.forEach(function(s){var A=t.counters[s.counter];A&&s.increment!==0&&(i=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=s.increment)});var o=[];return i&&a.forEach(function(s){var A=t.counters[s.counter];o.push(s.counter),A||(A=t.counters[s.counter]=[]),A.push(s.reset)}),o},r}(),J_={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},q_={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E8={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},M8={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},SA=function(r,e,t,n,a,i){return r<e||r>t?Kc(r,a,i.length>0):n.integers.reduce(function(o,s,A){for(;r>=s;)r-=s,o+=n.values[A];return o},"")+i},UP=function(r,e,t,n){var a="";do t||r--,a=n(r)+a,r/=e;while(r*e>=e);return a},Zt=function(r,e,t,n,a){var i=t-e+1;return(r<0?"-":"")+(UP(Math.abs(r),i,n,function(o){return jt(Math.floor(o%i)+e)})+a)},No=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return UP(Math.abs(r),n,!1,function(a){return e[Math.floor(a%n)]})+t},nl=1,Wi=2,Xi=4,cc=8,Ai=function(r,e,t,n,a,i){if(r<-9999||r>9999)return Kc(r,4,a.length>0);var o=Math.abs(r),s=a;if(o===0)return e[0]+s;for(var A=0;o>0&&A<=4;A++){var l=o%10;l===0&&pr(i,nl)&&s!==""?s=e[l]+s:l>1||l===1&&A===0||l===1&&A===1&&pr(i,Wi)||l===1&&A===1&&pr(i,Xi)&&r>100||l===1&&A>1&&pr(i,cc)?s=e[l]+(A>0?t[A-1]:"")+s:l===1&&A>0&&(s=t[A-1]+s),o=Math.floor(o/10)}return(r<0?n:"")+s},eS="十百千萬",tS="拾佰仟萬",rS="マイナス",_y="마이너스",Kc=function(r,e,t){var n=t?". ":"",a=t?"、":"",i=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Zt(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return No(r,"〇一二三四五六七八九",a);case 6:return SA(r,1,3999,J_,3,n).toLowerCase();case 7:return SA(r,1,3999,J_,3,n);case 8:return Zt(r,945,969,!1,n);case 9:return Zt(r,97,122,!1,n);case 10:return Zt(r,65,90,!1,n);case 11:return Zt(r,1632,1641,!0,n);case 12:case 49:return SA(r,1,9999,q_,3,n);case 35:return SA(r,1,9999,q_,3,n).toLowerCase();case 13:return Zt(r,2534,2543,!0,n);case 14:case 30:return Zt(r,6112,6121,!0,n);case 15:return No(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return No(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Ai(r,"零一二三四五六七八九",eS,"負",a,Wi|Xi|cc);case 47:return Ai(r,"零壹貳參肆伍陸柒捌玖",tS,"負",a,nl|Wi|Xi|cc);case 42:return Ai(r,"零一二三四五六七八九",eS,"负",a,Wi|Xi|cc);case 41:return Ai(r,"零壹贰叁肆伍陆柒捌玖",tS,"负",a,nl|Wi|Xi|cc);case 26:return Ai(r,"〇一二三四五六七八九","十百千万",rS,a,0);case 25:return Ai(r,"零壱弐参四伍六七八九","拾百千万",rS,a,nl|Wi|Xi);case 31:return Ai(r,"영일이삼사오육칠팔구","십백천만",_y,i,nl|Wi|Xi);case 33:return Ai(r,"零一二三四五六七八九","十百千萬",_y,i,0);case 32:return Ai(r,"零壹貳參四五六七八九","拾百千",_y,i,nl|Wi|Xi);case 18:return Zt(r,2406,2415,!0,n);case 20:return SA(r,1,19999,M8,3,n);case 21:return Zt(r,2790,2799,!0,n);case 22:return Zt(r,2662,2671,!0,n);case 22:return SA(r,1,10999,E8,3,n);case 23:return No(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return No(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Zt(r,3302,3311,!0,n);case 28:return No(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return No(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return Zt(r,3792,3801,!0,n);case 37:return Zt(r,6160,6169,!0,n);case 38:return Zt(r,4160,4169,!0,n);case 39:return Zt(r,2918,2927,!0,n);case 40:return Zt(r,1776,1785,!0,n);case 43:return Zt(r,3046,3055,!0,n);case 44:return Zt(r,3174,3183,!0,n);case 45:return Zt(r,3664,3673,!0,n);case 46:return Zt(r,3872,3881,!0,n);case 3:default:return Zt(r,48,57,!0,n)}},PP="data-html2canvas-ignore",nS=function(){function r(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new L8,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,t){var n=this,a=D8(e,t);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=a.contentWindow,A=s.document,l=U8(a).then(function(){return jr(n,void 0,void 0,function(){var u,c;return Or(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(O8),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Q8(A)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(A,c)}).then(function(){return a})]:[2,a]}})})});return A.open(),A.write(k8(document.doctype)+"<html></html>"),R8(this.referenceElement.ownerDocument,i,o),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),l},r.prototype.createElementClone=function(e){if(Mw(e,2))debugger;if(DP(e))return this.createCanvasClone(e);if(Y_(e))return this.createVideoClone(e);if(Z_(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Uw(t)&&(Uw(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),j_(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Sy(e.style,t),t},r.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),a=e.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var i=e.getContext("2d"),o=a.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var A=s.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},r.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},r.prototype.appendChildNode=function(e,t,n){(!ll(t)||!I8(t)&&!t.hasAttribute(PP)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!ll(t)||!Z_(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var a=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(ll(i)&&QP(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(s){return a.appendChildNode(t,s,n)})}else this.appendChildNode(t,i,n)},r.prototype.cloneNode=function(e,t){if(EP(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&ll(e)&&(Qw(e)||Jv(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&Qw(a)&&(this.clonedReferenceElement=a),fC(a)&&V8(a);var A=this.counters.parse(new Q_(this.context,i)),l=this.resolvePseudoContent(e,a,o,Lc.BEFORE);j_(e)&&(t=!0),Y_(e)||this.cloneChildNodes(e,a,t),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(e,a,s,Lc.AFTER);return u&&a.appendChild(u),this.counters.pop(A),(i&&(this.options.copyStyles||Jv(e))&&!FP(e)||t)&&Sy(i,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(Qd(e)||Ud(e))&&(Qd(a)||Ud(a))&&(a.value=e.value),a}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,a){var i=this;if(n){var o=n.content,s=t.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Q_(this.context,n));var A=new xK(this.context,n),l=s.createElement("html2canvaspseudoelement");Sy(n,l),A.content.forEach(function(c){if(c.type===0)l.appendChild(s.createTextNode(c.value));else if(c.type===22){var f=s.createElement("img");f.src=c.value,f.style.opacity="1",l.appendChild(f)}else if(c.type===18){if(c.name==="attr"){var h=c.values.filter(Tt);h.length&&l.appendChild(s.createTextNode(e.getAttribute(h[0].value)||""))}else if(c.name==="counter"){var v=c.values.filter(_l),d=v[0],p=v[1];if(d&&Tt(d)){var g=i.counters.getCounterValue(d.value),y=p&&Tt(p)?Ew.parse(i.context,p.value):3;l.appendChild(s.createTextNode(Kc(g,y,!1)))}}else if(c.name==="counters"){var m=c.values.filter(_l),d=m[0],w=m[1],p=m[2];if(d&&Tt(d)){var B=i.counters.getCounterValues(d.value),C=p&&Tt(p)?Ew.parse(i.context,p.value):3,b=w&&w.type===0?w.value:"",_=B.map(function(I){return Kc(I,C,!1)}).join(b);l.appendChild(s.createTextNode(_))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(s.createTextNode(F_(A.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(F_(A.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(c.value))}}),l.className=Pw+" "+kw;var u=a===Lc.BEFORE?" "+Pw:" "+kw;return Jv(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),Lc;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Lc||(Lc={}));var D8=function(r,e){var t=r.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(PP,"true"),r.body.appendChild(t),t},F8=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},Q8=function(r){return Promise.all([].slice.call(r.images,0).map(F8))},U8=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),e(r))},50)}})},P8=["all","d","content"],Sy=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);P8.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},k8=function(r){var e="";return r&&(e+="<!DOCTYPE ",r.name&&(e+=r.name),r.internalSubset&&(e+=r.internalSubset),r.publicId&&(e+='"'+r.publicId+'"'),r.systemId&&(e+='"'+r.systemId+'"'),e+=">"),e},R8=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},O8=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},H8=":before",N8=":after",Pw="___html2canvas___pseudoelement_before",kw="___html2canvas___pseudoelement_after",aS=`{
content: "" !important;
display: none !important;
}`,V8=function(r){G8(r,"."+Pw+H8+aS+`
.`+kw+N8+aS)},G8=function(r,e){var t=r.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,r.appendChild(n)}},kP=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),z8=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Iy(e)||X8(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return jr(this,void 0,void 0,function(){var t,n,a,i,o=this;return Or(this,function(s){switch(s.label){case 0:return t=kP.isSameOrigin(e),n=!Ty(e)&&this._options.useCORS===!0&&Er.SUPPORT_CORS_IMAGES&&!t,a=!Ty(e)&&!t&&!Iy(e)&&typeof this._options.proxy=="string"&&Er.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Ty(e)&&!Iy(e)&&!a&&!n?[2]:(i=e,a?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(A,l){var u=new Image;u.onload=function(){return A(u)},u.onerror=l,(Y8(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return A(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(i,o){var s=Er.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(s==="text")i(A.response);else{var c=new FileReader;c.addEventListener("load",function(){return i(c.result)},!1),c.addEventListener("error",function(f){return o(f)},!1),c.readAsDataURL(A.response)}else o("Failed to proxy resource "+a+" with status code "+A.status)},A.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;A.timeout=u,A.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+a)}}A.send()})},r}(),$8=/^data:image\/svg\+xml/i,K8=/^data:image\/.*;base64,/i,W8=/^data:image\/.*/i,X8=function(r){return Er.SUPPORT_SVG_DRAWING||!Z8(r)},Ty=function(r){return W8.test(r)},Y8=function(r){return K8.test(r)},Iy=function(r){return r.substr(0,4)==="blob"},Z8=function(r){return r.substr(-3).toLowerCase()==="svg"||$8.test(r)},Pe=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),TA=function(r,e,t){return new Pe(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},yh=function(){function r(e,t,n,a){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=a}return r.prototype.subdivide=function(e,t){var n=TA(this.start,this.startControl,e),a=TA(this.startControl,this.endControl,e),i=TA(this.endControl,this.end,e),o=TA(n,a,e),s=TA(a,i,e),A=TA(o,s,e);return t?new r(this.start,n,o,A):new r(A,s,i,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Nn=function(r){return r.type===1},j8=function(){function r(e){var t=e.styles,n=e.bounds,a=lc(t.borderTopLeftRadius,n.width,n.height),i=a[0],o=a[1],s=lc(t.borderTopRightRadius,n.width,n.height),A=s[0],l=s[1],u=lc(t.borderBottomRightRadius,n.width,n.height),c=u[0],f=u[1],h=lc(t.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+A)/n.width),p.push((v+c)/n.width),p.push((o+d)/n.height),p.push((l+f)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,o/=g,A/=g,l/=g,c/=g,f/=g,v/=g,d/=g);var y=n.width-A,m=n.height-f,w=n.width-c,B=n.height-d,C=t.borderTopWidth,b=t.borderRightWidth,_=t.borderBottomWidth,x=t.borderLeftWidth,S=Ht(t.paddingTop,e.bounds.width),I=Ht(t.paddingRight,e.bounds.width),L=Ht(t.paddingBottom,e.bounds.width),T=Ht(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Gt(n.left+x/3,n.top+C/3,i-x/3,o-C/3,wt.TOP_LEFT):new Pe(n.left+x/3,n.top+C/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Gt(n.left+y,n.top+C/3,A-b/3,l-C/3,wt.TOP_RIGHT):new Pe(n.left+n.width-b/3,n.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||f>0?Gt(n.left+w,n.top+m,c-b/3,f-_/3,wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b/3,n.top+n.height-_/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?Gt(n.left+x/3,n.top+B,v-x/3,d-_/3,wt.BOTTOM_LEFT):new Pe(n.left+x/3,n.top+n.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Gt(n.left+x*2/3,n.top+C*2/3,i-x*2/3,o-C*2/3,wt.TOP_LEFT):new Pe(n.left+x*2/3,n.top+C*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Gt(n.left+y,n.top+C*2/3,A-b*2/3,l-C*2/3,wt.TOP_RIGHT):new Pe(n.left+n.width-b*2/3,n.top+C*2/3),this.bottomRightBorderDoubleInnerBox=c>0||f>0?Gt(n.left+w,n.top+m,c-b*2/3,f-_*2/3,wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b*2/3,n.top+n.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?Gt(n.left+x*2/3,n.top+B,v-x*2/3,d-_*2/3,wt.BOTTOM_LEFT):new Pe(n.left+x*2/3,n.top+n.height-_*2/3),this.topLeftBorderStroke=i>0||o>0?Gt(n.left+x/2,n.top+C/2,i-x/2,o-C/2,wt.TOP_LEFT):new Pe(n.left+x/2,n.top+C/2),this.topRightBorderStroke=i>0||o>0?Gt(n.left+y,n.top+C/2,A-b/2,l-C/2,wt.TOP_RIGHT):new Pe(n.left+n.width-b/2,n.top+C/2),this.bottomRightBorderStroke=c>0||f>0?Gt(n.left+w,n.top+m,c-b/2,f-_/2,wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b/2,n.top+n.height-_/2),this.bottomLeftBorderStroke=v>0||d>0?Gt(n.left+x/2,n.top+B,v-x/2,d-_/2,wt.BOTTOM_LEFT):new Pe(n.left+x/2,n.top+n.height-_/2),this.topLeftBorderBox=i>0||o>0?Gt(n.left,n.top,i,o,wt.TOP_LEFT):new Pe(n.left,n.top),this.topRightBorderBox=A>0||l>0?Gt(n.left+y,n.top,A,l,wt.TOP_RIGHT):new Pe(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||f>0?Gt(n.left+w,n.top+m,c,f,wt.BOTTOM_RIGHT):new Pe(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?Gt(n.left,n.top+B,v,d,wt.BOTTOM_LEFT):new Pe(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Gt(n.left+x,n.top+C,Math.max(0,i-x),Math.max(0,o-C),wt.TOP_LEFT):new Pe(n.left+x,n.top+C),this.topRightPaddingBox=A>0||l>0?Gt(n.left+Math.min(y,n.width-b),n.top+C,y>n.width+b?0:Math.max(0,A-b),Math.max(0,l-C),wt.TOP_RIGHT):new Pe(n.left+n.width-b,n.top+C),this.bottomRightPaddingBox=c>0||f>0?Gt(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-_),Math.max(0,c-b),Math.max(0,f-_),wt.BOTTOM_RIGHT):new Pe(n.left+n.width-b,n.top+n.height-_),this.bottomLeftPaddingBox=v>0||d>0?Gt(n.left+x,n.top+Math.min(B,n.height-_),Math.max(0,v-x),Math.max(0,d-_),wt.BOTTOM_LEFT):new Pe(n.left+x,n.top+n.height-_),this.topLeftContentBox=i>0||o>0?Gt(n.left+x+T,n.top+C+S,Math.max(0,i-(x+T)),Math.max(0,o-(C+S)),wt.TOP_LEFT):new Pe(n.left+x+T,n.top+C+S),this.topRightContentBox=A>0||l>0?Gt(n.left+Math.min(y,n.width+x+T),n.top+C+S,y>n.width+x+T?0:A-x+T,l-(C+S),wt.TOP_RIGHT):new Pe(n.left+n.width-(b+I),n.top+C+S),this.bottomRightContentBox=c>0||f>0?Gt(n.left+Math.min(w,n.width-(x+T)),n.top+Math.min(m,n.height+C+S),Math.max(0,c-(b+I)),f-(_+L),wt.BOTTOM_RIGHT):new Pe(n.left+n.width-(b+I),n.top+n.height-(_+L)),this.bottomLeftContentBox=v>0||d>0?Gt(n.left+x+T,n.top+B,Math.max(0,v-(x+T)),d-(_+L),wt.BOTTOM_LEFT):new Pe(n.left+x+T,n.top+n.height-(_+L))}return r}(),wt;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(wt||(wt={}));var Gt=function(r,e,t,n,a){var i=4*((Math.sqrt(2)-1)/3),o=t*i,s=n*i,A=r+t,l=e+n;switch(a){case wt.TOP_LEFT:return new yh(new Pe(r,l),new Pe(r,l-s),new Pe(A-o,e),new Pe(A,e));case wt.TOP_RIGHT:return new yh(new Pe(r,e),new Pe(r+o,e),new Pe(A,l-s),new Pe(A,l));case wt.BOTTOM_RIGHT:return new yh(new Pe(A,e),new Pe(A,e+s),new Pe(r+o,l),new Pe(r,l));case wt.BOTTOM_LEFT:default:return new yh(new Pe(A,l),new Pe(A-o,l),new Pe(r,e+s),new Pe(r,e))}},Pd=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},J8=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},kd=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},q8=function(){function r(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return r}(),mh=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),eW=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),tW=function(r){return r.type===0},RP=function(r){return r.type===1},rW=function(r){return r.type===2},iS=function(r,e){return r.length===e.length?r.some(function(t,n){return t===e[n]}):!1},nW=function(r,e,t,n,a){return r.map(function(i,o){switch(o){case 0:return i.add(e,t);case 1:return i.add(e+n,t);case 2:return i.add(e+n,t+a);case 3:return i.add(e,t+a)}return i})},OP=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),HP=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new j8(this.container),this.container.styles.opacity<1&&this.effects.push(new eW(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new q8(n,a,i))}if(this.container.styles.overflowX!==0){var o=Pd(this.curves),s=kd(this.curves);iS(o,s)?this.effects.push(new mh(o,6)):(this.effects.push(new mh(o,2)),this.effects.push(new mh(s,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(A){return!RP(A)});if(t||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=Pd(n.curves),s=kd(n.curves);iS(o,s)||a.unshift(new mh(s,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(A){return pr(A.target,e)})},r}(),Rw=function(r,e,t,n){r.container.elements.forEach(function(a){var i=pr(a.flags,4),o=pr(a.flags,2),s=new HP(a,r);pr(a.styles.display,2048)&&n.push(s);var A=pr(a.flags,8)?[]:n;if(i||o){var l=i||a.styles.isPositioned()?t:e,u=new OP(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var c=a.styles.zIndex.order;if(c<0){var f=0;l.negativeZIndex.some(function(v,d){return c>v.element.container.styles.zIndex.order?(f=d,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(c>0){var h=0;l.positiveZIndex.some(function(v,d){return c>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Rw(s,u,i?u:t,A)}else a.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Rw(s,e,t,A);pr(a.flags,8)&&NP(a,A)})},NP=function(r,e){for(var t=r instanceof Fw?r.start:1,n=r instanceof Fw?r.reversed:!1,a=0;a<e.length;a++){var i=e[a];i.container instanceof xP&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=Kc(t,i.container.styles.listStyleType,!0),t+=n?-1:1}},aW=function(r){var e=new HP(r,null),t=new OP(e),n=[];return Rw(e,t,t,n),NP(e.container,n),t},oS=function(r,e){switch(e){case 0:return Wn(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return Wn(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return Wn(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return Wn(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},iW=function(r,e){switch(e){case 0:return Wn(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return Wn(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return Wn(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return Wn(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},oW=function(r,e){switch(e){case 0:return Wn(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return Wn(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return Wn(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return Wn(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},sW=function(r,e){switch(e){case 0:return wh(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return wh(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return wh(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return wh(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},wh=function(r,e){var t=[];return Nn(r)?t.push(r.subdivide(.5,!1)):t.push(r),Nn(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Wn=function(r,e,t,n){var a=[];return Nn(r)?a.push(r.subdivide(.5,!1)):a.push(r),Nn(t)?a.push(t.subdivide(.5,!0)):a.push(t),Nn(n)?a.push(n.subdivide(.5,!0).reverse()):a.push(n),Nn(e)?a.push(e.subdivide(.5,!1).reverse()):a.push(e),a},VP=function(r){var e=r.bounds,t=r.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Rd=function(r){var e=r.styles,t=r.bounds,n=Ht(e.paddingLeft,t.width),a=Ht(e.paddingRight,t.width),i=Ht(e.paddingTop,t.width),o=Ht(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+a),-(e.borderTopWidth+e.borderBottomWidth+i+o))},AW=function(r,e){return r===0?e.bounds:r===2?Rd(e):VP(e)},lW=function(r,e){return r===0?e.bounds:r===2?Rd(e):VP(e)},Ly=function(r,e,t){var n=AW(al(r.styles.backgroundOrigin,e),r),a=lW(al(r.styles.backgroundClip,e),r),i=uW(al(r.styles.backgroundSize,e),t,n),o=i[0],s=i[1],A=lc(al(r.styles.backgroundPosition,e),n.width-o,n.height-s),l=cW(al(r.styles.backgroundRepeat,e),A,i,n,a),u=Math.round(n.left+A[0]),c=Math.round(n.top+A[1]);return[l,u,c,o,s]},IA=function(r){return Tt(r)&&r.value===ml.AUTO},Bh=function(r){return typeof r=="number"},uW=function(r,e,t){var n=e[0],a=e[1],i=e[2],o=r[0],s=r[1];if(!o)return[0,0];if(sr(o)&&s&&sr(s))return[Ht(o,t.width),Ht(s,t.height)];var A=Bh(i);if(Tt(o)&&(o.value===ml.CONTAIN||o.value===ml.COVER)){if(Bh(i)){var l=t.width/t.height;return l<i!=(o.value===ml.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var u=Bh(n),c=Bh(a),f=u||c;if(IA(o)&&(!s||IA(s))){if(u&&c)return[n,a];if(!A&&!f)return[t.width,t.height];if(f&&A){var h=u?n:a*i,v=c?a:n/i;return[h,v]}var d=u?n:t.width,p=c?a:t.height;return[d,p]}if(A){var g=0,y=0;return sr(o)?g=Ht(o,t.width):sr(s)&&(y=Ht(s,t.height)),IA(o)?g=y*i:(!s||IA(s))&&(y=g/i),[g,y]}var m=null,w=null;if(sr(o)?m=Ht(o,t.width):s&&sr(s)&&(w=Ht(s,t.height)),m!==null&&(!s||IA(s))&&(w=u&&c?m/n*a:t.height),w!==null&&IA(o)&&(m=u&&c?w/a*n:t.width),m!==null&&w!==null)return[m,w];throw new Error("Unable to calculate background-size for element")},al=function(r,e){var t=r[e];return typeof t>"u"?r[0]:t},cW=function(r,e,t,n,a){var i=e[0],o=e[1],s=t[0],A=t[1];switch(r){case 2:return[new Pe(Math.round(n.left),Math.round(n.top+o)),new Pe(Math.round(n.left+n.width),Math.round(n.top+o)),new Pe(Math.round(n.left+n.width),Math.round(A+n.top+o)),new Pe(Math.round(n.left),Math.round(A+n.top+o))];case 3:return[new Pe(Math.round(n.left+i),Math.round(n.top)),new Pe(Math.round(n.left+i+s),Math.round(n.top)),new Pe(Math.round(n.left+i+s),Math.round(n.height+n.top)),new Pe(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Pe(Math.round(n.left+i),Math.round(n.top+o)),new Pe(Math.round(n.left+i+s),Math.round(n.top+o)),new Pe(Math.round(n.left+i+s),Math.round(n.top+o+A)),new Pe(Math.round(n.left+i),Math.round(n.top+o+A))];default:return[new Pe(Math.round(a.left),Math.round(a.top)),new Pe(Math.round(a.left+a.width),Math.round(a.top)),new Pe(Math.round(a.left+a.width),Math.round(a.height+a.top)),new Pe(Math.round(a.left),Math.round(a.height+a.top))]}},fW="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sS="Hidden Text",hW=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),a.src=fW,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(sS)),n.appendChild(i),n.appendChild(a);var s=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(sS)),n.style.lineHeight="normal",a.style.verticalAlign="super";var A=a.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:A}},r.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},r}(),GP=function(){function r(e,t){this.context=e,this.options=t}return r}(),vW=1e4,dW=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new hW(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(a){return n.applyEffect(a)})},e.prototype.applyEffect=function(t){this.ctx.save(),rW(t)&&(this.ctx.globalAlpha=t.opacity),tW(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),RP(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return jr(this,void 0,void 0,function(){var n;return Or(this,function(a){switch(a.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return jr(this,void 0,void 0,function(){return Or(this,function(n){switch(n.label){case 0:if(pr(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(t)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,n,a){var i=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+a);else{var o=uC(t.text);o.reduce(function(s,A){return i.ctx.fillText(A,s,t.bounds.top+a),s+i.ctx.measureText(A).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var n=t.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),a=wW(t.fontFamily).join(", "),i=Lf(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,i,a].join(" "),a,i]},e.prototype.renderTextNode=function(t,n){return jr(this,void 0,void 0,function(){var a,i,o,s,A,l,u,c,f=this;return Or(this,function(h){return a=this.createFontStyle(n),i=a[0],o=a[1],s=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(o,s),l=A.baseline,u=A.middle,c=n.paintOrder,t.textBounds.forEach(function(v){c.forEach(function(d){switch(d){case 0:f.ctx.fillStyle=wr(n.color),f.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){f.ctx.shadowColor=wr(g.color),f.ctx.shadowOffsetX=g.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=g.offsetY.number*f.options.scale,f.ctx.shadowBlur=g.blur.number,f.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),n.textDecorationLine.length&&(f.ctx.fillStyle=wr(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:f.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:f.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:f.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(f.ctx.strokeStyle=wr(n.webkitTextStrokeColor),f.ctx.lineWidth=n.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,a){if(a&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Rd(t),o=kd(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return jr(this,void 0,void 0,function(){var n,a,i,o,s,A,y,y,l,u,c,f,w,h,v,B,d,p,g,y,m,w,B;return Or(this,function(C){switch(C.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,a=t.curves,i=n.styles,o=0,s=n.textNodes,C.label=1;case 1:return o<s.length?(A=s[o],[4,this.renderTextNode(A,i)]):[3,4];case 2:C.sent(),C.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof BP))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return y=C.sent(),this.renderReplacedElement(n,a,y),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof CP&&this.renderReplacedElement(n,a,n.canvas),!(n instanceof bP))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return y=C.sent(),this.renderReplacedElement(n,a,y),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof TP&&n.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,l.render(n.tree)]):[3,14];case 13:u=C.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),C.label=14;case 14:if(n instanceof cC&&(c=Math.min(n.bounds.width,n.bounds.height),n.type===Dd?n.checked&&(this.ctx.save(),this.path([new Pe(n.bounds.left+c*.39363,n.bounds.top+c*.79),new Pe(n.bounds.left+c*.16,n.bounds.top+c*.5549),new Pe(n.bounds.left+c*.27347,n.bounds.top+c*.44071),new Pe(n.bounds.left+c*.39694,n.bounds.top+c*.5649),new Pe(n.bounds.left+c*.72983,n.bounds.top+c*.23),new Pe(n.bounds.left+c*.84,n.bounds.top+c*.34085),new Pe(n.bounds.left+c*.39363,n.bounds.top+c*.79)]),this.ctx.fillStyle=wr(X_),this.ctx.fill(),this.ctx.restore()):n.type===Fd&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+c/2,n.bounds.top+c/2,c/4,0,Math.PI*2,!0),this.ctx.fillStyle=wr(X_),this.ctx.fill(),this.ctx.restore())),pW(n)&&n.value.length){switch(f=this.createFontStyle(i),w=f[0],h=f[1],v=this.fontMetrics.getMetrics(w,h).baseline,this.ctx.font=w,this.ctx.fillStyle=wr(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=yW(n.styles.textAlign),B=Rd(n),d=0,n.styles.textAlign){case 1:d+=B.width/2;break;case 2:d+=B.width;break}p=B.add(d,0,0,-B.height/2+1),this.ctx.save(),this.path([new Pe(B.left,B.top),new Pe(B.left+B.width,B.top),new Pe(B.left+B.width,B.top+B.height),new Pe(B.left,B.top+B.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ic(n.value,p),i.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!pr(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(g=n.styles.listStyleImage,g.type!==0)return[3,18];y=void 0,m=g.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return y=C.sent(),this.ctx.drawImage(y,n.bounds.left-(y.width+10),n.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==-1&&(w=this.createFontStyle(i)[0],this.ctx.font=w,this.ctx.fillStyle=wr(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",B=new _i(n.bounds.left,n.bounds.top+Ht(n.styles.paddingTop,n.bounds.width),n.bounds.width,M_(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ic(t.listValue,B),i.letterSpacing,M_(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return jr(this,void 0,void 0,function(){var n,a,g,i,o,g,s,A,g,l,u,g,c,f,g,h,v,g,d,p,g;return Or(this,function(y){switch(y.label){case 0:if(pr(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:y.sent(),n=0,a=t.negativeZIndex,y.label=2;case 2:return n<a.length?(g=a[n],[4,this.renderStack(g)]):[3,5];case 3:y.sent(),y.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:y.sent(),i=0,o=t.nonInlineLevel,y.label=7;case 7:return i<o.length?(g=o[i],[4,this.renderNode(g)]):[3,10];case 8:y.sent(),y.label=9;case 9:return i++,[3,7];case 10:s=0,A=t.nonPositionedFloats,y.label=11;case 11:return s<A.length?(g=A[s],[4,this.renderStack(g)]):[3,14];case 12:y.sent(),y.label=13;case 13:return s++,[3,11];case 14:l=0,u=t.nonPositionedInlineLevel,y.label=15;case 15:return l<u.length?(g=u[l],[4,this.renderStack(g)]):[3,18];case 16:y.sent(),y.label=17;case 17:return l++,[3,15];case 18:c=0,f=t.inlineLevel,y.label=19;case 19:return c<f.length?(g=f[c],[4,this.renderNode(g)]):[3,22];case 20:y.sent(),y.label=21;case 21:return c++,[3,19];case 22:h=0,v=t.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return h<v.length?(g=v[h],[4,this.renderStack(g)]):[3,26];case 24:y.sent(),y.label=25;case 25:return h++,[3,23];case 26:d=0,p=t.positiveZIndex,y.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:y.sent(),y.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var n=this;t.forEach(function(a,i){var o=Nn(a)?a.start:a;i===0?n.ctx.moveTo(o.x,o.y):n.ctx.lineTo(o.x,o.y),Nn(a)&&n.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},e.prototype.renderRepeat=function(t,n,a,i){this.path(t),this.ctx.fillStyle=n,this.ctx.translate(a,i),this.ctx.fill(),this.ctx.translate(-a,-i)},e.prototype.resizeImage=function(t,n,a){var i;if(t.width===n&&t.height===a)return t;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=o.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,a);var A=s.getContext("2d");return A.drawImage(t,0,0,t.width,t.height,0,0,n,a),s},e.prototype.renderBackgroundImage=function(t){return jr(this,void 0,void 0,function(){var n,a,i,o,s,A;return Or(this,function(l){switch(l.label){case 0:n=t.styles.backgroundImage.length-1,a=function(u){var c,f,h,S,P,E,T,M,_,v,S,P,E,T,M,d,p,g,y,m,w,B,C,b,_,x,S,I,L,T,M,R,P,E,k,D,U,O,G,X,te,ne;return Or(this,function(ye){switch(ye.label){case 0:if(u.type!==0)return[3,5];c=void 0,f=u.url,ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return c=ye.sent(),[3,4];case 3:return ye.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return c&&(h=Ly(t,n,[c.width,c.height,c.width/c.height]),S=h[0],P=h[1],E=h[2],T=h[3],M=h[4],_=i.ctx.createPattern(i.resizeImage(c,T,M),"repeat"),i.renderRepeat(S,_,P,E)),[3,6];case 5:t$(u)?(v=Ly(t,n,[null,null,null]),S=v[0],P=v[1],E=v[2],T=v[3],M=v[4],d=Zz(u.angle,T,M),p=d[0],g=d[1],y=d[2],m=d[3],w=d[4],B=document.createElement("canvas"),B.width=T,B.height=M,C=B.getContext("2d"),b=C.createLinearGradient(g,m,y,w),L_(u.stops,p).forEach(function(re){return b.addColorStop(re.stop,wr(re.color))}),C.fillStyle=b,C.fillRect(0,0,T,M),T>0&&M>0&&(_=i.ctx.createPattern(B,"repeat"),i.renderRepeat(S,_,P,E))):r$(u)&&(x=Ly(t,n,[null,null,null]),S=x[0],I=x[1],L=x[2],T=x[3],M=x[4],R=u.position.length===0?[sC]:u.position,P=Ht(R[0],T),E=Ht(R[R.length-1],M),k=jz(u,P,E,T,M),D=k[0],U=k[1],D>0&&U>0&&(O=i.ctx.createRadialGradient(I+P,L+E,0,I+P,L+E,D),L_(u.stops,D*2).forEach(function(re){return O.addColorStop(re.stop,wr(re.color))}),i.path(S),i.ctx.fillStyle=O,D!==U?(G=t.bounds.left+.5*t.bounds.width,X=t.bounds.top+.5*t.bounds.height,te=U/D,ne=1/te,i.ctx.save(),i.ctx.translate(G,X),i.ctx.transform(1,0,0,te,0,0),i.ctx.translate(-G,-X),i.ctx.fillRect(I,ne*(L-X)+X,T,M*ne),i.ctx.restore()):i.ctx.fill())),ye.label=6;case 6:return n--,[2]}})},i=this,o=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<s.length?(A=s[o],[5,a(A)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,n,a){return jr(this,void 0,void 0,function(){return Or(this,function(i){return this.path(oS(a,n)),this.ctx.fillStyle=wr(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,n,a,i){return jr(this,void 0,void 0,function(){var o,s;return Or(this,function(A){switch(A.label){case 0:return n<3?[4,this.renderSolidBorder(t,a,i)]:[3,2];case 1:return A.sent(),[2];case 2:return o=iW(i,a),this.path(o),this.ctx.fillStyle=wr(t),this.ctx.fill(),s=oW(i,a),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return jr(this,void 0,void 0,function(){var n,a,i,o,s,A,l,u,c=this;return Or(this,function(f){switch(f.label){case 0:return this.applyEffects(t.getEffects(2)),n=t.container.styles,a=!po(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],o=gW(al(n.backgroundClip,0),t.curves),a||n.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),po(n.backgroundColor)||(this.ctx.fillStyle=wr(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(h){c.ctx.save();var v=Pd(t.curves),d=h.inset?0:vW,p=nW(v,-d+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(c.path(v),c.ctx.clip(),c.mask(p)):(c.mask(v),c.ctx.clip(),c.path(p)),c.ctx.shadowOffsetX=h.offsetX.number+d,c.ctx.shadowOffsetY=h.offsetY.number,c.ctx.shadowColor=wr(h.color),c.ctx.shadowBlur=h.blur.number,c.ctx.fillStyle=h.inset?wr(h.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),f.label=2;case 2:s=0,A=0,l=i,f.label=3;case 3:return A<l.length?(u=l[A],u.style!==0&&!po(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,a,i,o){return jr(this,void 0,void 0,function(){var s,A,l,u,c,f,h,v,d,p,g,y,m,w,B,C,B,C;return Or(this,function(b){return this.ctx.save(),s=sW(i,a),A=oS(i,a),o===2&&(this.path(A),this.ctx.clip()),Nn(A[0])?(l=A[0].start.x,u=A[0].start.y):(l=A[0].x,u=A[0].y),Nn(A[1])?(c=A[1].end.x,f=A[1].end.y):(c=A[1].x,f=A[1].y),a===0||a===2?h=Math.abs(l-c):h=Math.abs(u-f),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(A.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,o===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)<Math.abs(d-w)?m:w),p&&(o===3?this.ctx.setLineDash([0,v+d]):this.ctx.setLineDash([v,d])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=wr(t),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Nn(A[0])&&(B=A[3],C=A[0],this.ctx.beginPath(),this.formatPath([new Pe(B.end.x,B.end.y),new Pe(C.start.x,C.start.y)]),this.ctx.stroke()),Nn(A[1])&&(B=A[1],C=A[2],this.ctx.beginPath(),this.formatPath([new Pe(B.end.x,B.end.y),new Pe(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return jr(this,void 0,void 0,function(){var n;return Or(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=wr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=aW(t),[4,this.renderStack(n)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(GP),pW=function(r){return r instanceof SP||r instanceof _P?!0:r instanceof cC&&r.type!==Fd&&r.type!==Dd},gW=function(r,e){switch(r){case 0:return Pd(e);case 2:return J8(e);case 1:default:return kd(e)}},yW=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},mW=["-apple-system","system-ui"],wW=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(e){return mW.indexOf(e)===-1}):r},BW=function(r){ga(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=n,a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),a}return e.prototype.render=function(t){return jr(this,void 0,void 0,function(){var n,a;return Or(this,function(i){switch(i.label){case 0:return n=Dw(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,CW(n)];case 1:return a=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=wr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(GP),CW=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},bW=function(){function r(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qf([this.id,this.getTime()+"ms"],e))},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,qf([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.instances={},r}(),xW=function(){function r(e,t){var n;this.windowBounds=t,this.instanceName="#"+r.instanceCount++,this.logger=new bW({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new z8(this,e)}return r.instanceCount=1,r}(),_W=function(r,e){return e===void 0&&(e={}),SW(r,e)};typeof window<"u"&&kP.setContext(window);var SW=function(r,e){return jr(void 0,void 0,void 0,function(){var t,n,a,i,o,s,A,l,u,c,f,h,v,d,p,g,y,m,w,B,b,C,b,_,x,S,I,L,T,M,R,P,E,k,D,U,O,G,X,te;return Or(this,function(ne){switch(ne.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=r.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(n=t.defaultView,!n)throw new Error("Document is not attached to a Window");return a={allowTaint:(_=e.allowTaint)!==null&&_!==void 0?_:!1,imageTimeout:(x=e.imageTimeout)!==null&&x!==void 0?x:15e3,proxy:e.proxy,useCORS:(S=e.useCORS)!==null&&S!==void 0?S:!1},i=gw({logging:(I=e.logging)!==null&&I!==void 0?I:!0,cache:e.cache},a),o={windowWidth:(L=e.windowWidth)!==null&&L!==void 0?L:n.innerWidth,windowHeight:(T=e.windowHeight)!==null&&T!==void 0?T:n.innerHeight,scrollX:(M=e.scrollX)!==null&&M!==void 0?M:n.pageXOffset,scrollY:(R=e.scrollY)!==null&&R!==void 0?R:n.pageYOffset},s=new _i(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),A=new xW(i,s),l=(P=e.foreignObjectRendering)!==null&&P!==void 0?P:!1,u={allowTaint:(E=e.allowTaint)!==null&&E!==void 0?E:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},A.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),c=new nS(A,r,u),f=c.clonedReferenceElement,f?[4,c.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=ne.sent(),v=fC(f)||T8(f)?nG(f.ownerDocument):Jp(A,f),d=v.width,p=v.height,g=v.left,y=v.top,m=TW(A,f,e.backgroundColor),w={canvas:e.canvas,backgroundColor:m,scale:(D=(k=e.scale)!==null&&k!==void 0?k:n.devicePixelRatio)!==null&&D!==void 0?D:1,x:((U=e.x)!==null&&U!==void 0?U:0)+g,y:((O=e.y)!==null&&O!==void 0?O:0)+y,width:(G=e.width)!==null&&G!==void 0?G:Math.ceil(d),height:(X=e.height)!==null&&X!==void 0?X:Math.ceil(p)},l?(A.logger.debug("Document cloned, using foreign object rendering"),b=new BW(A,w),[4,b.render(f)]):[3,3];case 2:return B=ne.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+g+","+y+" with size "+d+"x"+p+" using computed rendering"),A.logger.debug("Starting DOM parsing"),C=LP(A,f),m===C.styles.backgroundColor&&(C.styles.backgroundColor=mi.TRANSPARENT),A.logger.debug("Starting renderer for element at "+w.x+","+w.y+" with size "+w.width+"x"+w.height),b=new dW(A,w),[4,b.render(C)];case 4:B=ne.sent(),ne.label=5;case 5:return(!((te=e.removeContainer)!==null&&te!==void 0)||te)&&(nS.destroy(h)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,B]}})})},TW=function(r,e,t){var n=e.ownerDocument,a=n.documentElement?Sc(r,getComputedStyle(n.documentElement).backgroundColor):mi.TRANSPARENT,i=n.body?Sc(r,getComputedStyle(n.body).backgroundColor):mi.TRANSPARENT,o=typeof t=="string"?Sc(r,t):t===null?mi.TRANSPARENT:4294967295;return e===n.documentElement?po(a)?po(i)?o:i:a:o};const Sl=(r,e,t)=>{let n=e*Math.PI/180;const a=t*Math.PI/180;n=-n;const i=r*Math.cos(a)*Math.cos(n),o=r*Math.sin(a),s=r*Math.cos(a)*Math.sin(n);return new Ot(i,o,s)},AS=r=>{const e=new aC(1,1),t=r.textures.aperture,n=new Bs({color:15310696,map:t,transparent:!0,opacity:1,depthWrite:!1}),a=new Rr(e,n),i=Sl(r.radius*1.001,r.lon,r.lat),o=r.radius*.08;a.scale.set(o,o,o),a.userData.size=o,a.userData.scale=Math.random()*1,a.position.set(i.x,i.y,i.z);const s=new Ot(i.x,i.y,i.z).normalize(),A=new Ot(0,0,1);return a.quaternion.setFromUnitVectors(A,s),a},lS=r=>{const e=r.radius*.3,t=new aC(r.radius*.05,e);t.rotateX(Math.PI/2),t.translate(0,0,e/2);const n=new Bs({map:r.textures.light_column,color:r.index==0?r.punctuation.lightColumn.startColor:r.punctuation.lightColumn.endColor,transparent:!0,side:RU,depthWrite:!1}),a=new Rr(t,n),i=new ac;i.add(a,a.clone().rotateZ(Math.PI/2));const o=Sl(r.radius,r.lon,r.lat);i.position.set(o.x,o.y,o.z);const s=new Ot(o.x,o.y,o.z).normalize(),A=new Ot(0,0,1);return i.quaternion.setFromUnitVectors(A,s),i},uS=r=>{const e=new aC(1,1),t=new Rr(e,r.material),n=Sl(r.radius*1.001,r.lon,r.lat),a=r.radius*.05;t.scale.set(a,a,a),t.position.set(n.x,n.y,n.z);const i=new Ot(n.x,n.y,n.z).normalize(),o=new Ot(0,0,1);return t.quaternion.setFromUnitVectors(o,i),t},IW=r=>{const e=[];for(let t=0;t<2*Math.PI-.1;t+=2*Math.PI/(r.number||100))e.push([parseFloat((Math.cos(t)*(r.radius||10)).toFixed(2)),0,parseFloat((Math.sin(t)*(r.radius||10)).toFixed(2))]);return r.closed&&e.push(e[0]),e},LW=r=>{const e=[];r.pointList.forEach(a=>e.push(new Ot(a[0],a[1],a[2])));const t=new FV(e),n=new QV(t,r.number||50,r.radius||1,r.radialSegments);return new Rr(n,r.material)};function EW(r,e,t,n){const a=new iC,o=new OU(0,0,r,e,t,!1).getSpacedPoints(100);a.setFromPoints(o);const s=[];for(let h=0;h<o.length;h++)s.push(h/o.length);const A=new Id(new Float32Array(s),1);a.attributes.percent=A;const l=[];for(let h=0;h<o.length;h++){const v=new gl(15503171),d=new gl(15969910),p=v.lerp(d,h/o.length);l.push(p.r,p.g,p.b)}a.attributes.color=new Id(new Float32Array(l),3);const u=.5,c=new cw({size:u,transparent:!0,depthWrite:!1});c.onBeforeCompile=function(h){h.vertexShader=h.vertexShader.replace("void main() {",["attribute float percent;","void main() {"].join(`
`)),h.vertexShader=h.vertexShader.replace("gl_PointSize = size;",["gl_PointSize = percent * size;"].join(`
`))};const f=new fw(a,c);return c.color=new gl(n),f.name="飞行线",f}function MW(r,e,t,n,a,i){const o=Sl(r,e,t),s=new Ot(o.x,o.y,o.z),A=Sl(r,n,a),l=new Ot(A.x,A.y,A.z),u=DW(s,l),c=FW(r,u.startPoint,u.endPoint,i);return c.quaternion.multiply(u.quaternion),c}function DW(r,e){const t=new Ot(0,0,0),n=r.clone().sub(t),a=e.clone().sub(t),i=n.clone().cross(a).normalize(),o=new Ot(0,0,1),s=new Td().setFromUnitVectors(i,o),A=r.clone().applyQuaternion(s),l=e.clone().applyQuaternion(s),c=A.clone().add(l).multiplyScalar(.5).clone().sub(t).normalize(),f=new Ot(0,1,0),h=new Td().setFromUnitVectors(c,f),v=A.clone().applyQuaternion(h),d=l.clone().applyQuaternion(h);return{quaternion:s.clone().invert().multiply(h.clone().invert()),startPoint:v,endPoint:d}}function FW(r,e,t,n){const i=new Ot().addVectors(e,t).multiplyScalar(.5).clone().normalize(),o=cS(e,t,new Ot(0,0,0)),s=i.multiplyScalar(r+o*r*.2),A=UW(e,t,s),l=Math.abs(A.y-s.y),u=cS(e,new Ot(0,-1,0),A),c=-Math.PI/2+u,f=Math.PI-c,h=QW(A.x,A.y,l,c,f,n.color);h.center=A,h.topCoord=s;const v=(f-c)/7,d=EW(l,c,c+v,n.flyLineColor);return d.position.y=A.y,h.add(d),d.flyEndAngle=f-c-v,d.startAngle=c,d.AngleZ=d.flyEndAngle*Math.random(),h.userData.flyLine=d,h}function cS(r,e,t){const n=r.clone().sub(t).normalize(),a=e.clone().sub(t).normalize(),i=n.clone().dot(a);return Math.acos(i)}function QW(r,e,t,n,a,i){const o=new iC,A=new OU(r,e,t,n,a,!1).getSpacedPoints(80);o.setFromPoints(A);const l=new UV({color:i||13731143});return new PV(o,l)}function UW(r,e,t){const n=r.lengthSq(),a=e.lengthSq(),i=t.lengthSq(),o=r.x,s=r.y,A=e.x,l=e.y,u=t.x,c=t.y,f=o*l+A*c+u*s-o*c-A*s-u*l,h=(a*c+n*l+i*s-a*s-i*l-n*c)/f/2,v=(i*A+a*o+n*u-n*A-a*u-i*o)/f/2;return new Ot(h,v,0)}const PW=`
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vp;
varying vec3 vPositionNormal;
void main(void){
vUv = uv;
vNormal = normalize( normalMatrix * normal ); // 转换到视图空间
vp = position;
vPositionNormal = normalize(( modelViewMatrix * vec4(position, 1.0) ).xyz);
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
`,kW=`
uniform vec3 glowColor;
uniform float bias;
uniform float power;
uniform float time;
varying vec3 vp;
varying vec3 vNormal;
varying vec3 vPositionNormal;
uniform float scale;
// 获取纹理
uniform sampler2D map;
// 纹理坐标
varying vec2 vUv;
void main(void){
float a = pow( bias + scale * abs(dot(vNormal, vPositionNormal)), power );
if(vp.y > time && vp.y < time + 20.0) {
float t = smoothstep(0.0, 0.8, (1.0 - abs(0.5 - (vp.y - time) / 20.0)) / 3.0 );
gl_FragColor = mix(gl_FragColor, vec4(glowColor, 1.0), t * t );
}
gl_FragColor = mix(gl_FragColor, vec4( glowColor, 1.0 ), a);
float b = 0.8;
gl_FragColor = gl_FragColor + texture2D( map, vUv );
}
`;class RW{constructor(e){ut(this,"group");ut(this,"earthGroup");ut(this,"around");ut(this,"aroundPoints");ut(this,"options");ut(this,"uniforms");ut(this,"timeValue");ut(this,"earth");ut(this,"punctuationMaterial");ut(this,"markupPoint");ut(this,"waveMeshArr");ut(this,"circleLineList");ut(this,"circleList");ut(this,"x");ut(this,"n");ut(this,"isRotation");ut(this,"flyLineArcGroup");this.options=e,this.group=new ac,this.group.name="group",this.group.scale.set(0,0,0),this.earthGroup=new ac,this.group.add(this.earthGroup),this.earthGroup.name="EarthGroup",this.markupPoint=new ac,this.markupPoint.name="markupPoint",this.waveMeshArr=[],this.circleLineList=[],this.circleList=[],this.x=0,this.n=0,this.isRotation=this.options.earth.isRotation,this.timeValue=100,this.uniforms={glowColor:{value:new gl(840171)},scale:{type:"f",value:-1},bias:{type:"f",value:1},power:{type:"f",value:3.3},time:{type:"f",value:this.timeValue},isHover:{value:!1},map:{value:null}}}async init(){return new Promise(async e=>{this.createEarth(),this.createStars(),this.createEarthGlow(),this.createEarthAperture(),await this.createMarkupPoint(),this.createFlyLine(),this.show(),e()})}async updateData(){return new Promise(async e=>{if(this.flyLineArcGroup){const n=[...this.flyLineArcGroup.children];for(const a of n)this.flyLineArcGroup.remove(a),a instanceof Rr&&(a.geometry&&a.geometry.dispose(),a.material&&(Array.isArray(a.material)?a.material:[a.material]).forEach(o=>{o.dispose&&o.dispose()}))}const t=[...this.markupPoint.children];for(const n of t)this.markupPoint.remove(n),n instanceof Rr&&(n.geometry&&n.geometry.dispose(),n.material&&(Array.isArray(n.material)?n.material:[n.material]).forEach(i=>{i.dispose&&i.dispose()}));await this.createMarkupPoint(),this.createFlyLine(),this.show(),e()})}createEarth(){const e=new CA(this.options.earth.radius,50,50),t=new CA(this.options.earth.radius+10,60,60),n=new cw({color:8519679,transparent:!0,sizeAttenuation:!0,opacity:.1,vertexColors:!1,size:.01}),a=new fw(t,n);this.earthGroup.add(a),this.uniforms.map.value=this.options.textures.earth;const i=new n_({uniforms:this.uniforms,vertexShader:PW,fragmentShader:kW});i.needsUpdate=!0,this.earth=new Rr(e,i),this.earth.name="earth",this.earthGroup.add(this.earth)}createStars(){const e=[],t=[];for(let i=0;i<500;i++){const o=new Ot;o.x=800*Math.random()-300,o.y=800*Math.random()-300,o.z=800*Math.random()-300,e.push(o.x,o.y,o.z),t.push(new gl(1,1,1))}this.around=new iC,this.around.setAttribute("position",new Id(new Float32Array(e),3));const n=t.flatMap(i=>[i.r,i.g,i.b]);this.around.setAttribute("color",new Id(new Float32Array(n),3));const a=new cw({size:2,sizeAttenuation:!0,color:5076687,transparent:!0,opacity:1,map:this.options.textures.gradient});this.aroundPoints=new fw(this.around,a),this.aroundPoints.name="星空",this.aroundPoints.scale.set(1,1,1),this.group.add(this.aroundPoints)}createEarthGlow(){const e=this.options.earth.radius,t=this.options.textures.glow,n=new a_({map:t,color:4427985,transparent:!0,opacity:.7,depthWrite:!1}),a=new i_(n);a.scale.set(e*3,e*3,1),this.earthGroup.add(a)}createEarthAperture(){const e=["varying vec3 vVertexWorldPosition;","varying vec3 vVertexNormal;","varying vec4 vFragColor;","void main(){"," vVertexNormal = normalize(normalMatrix * normal);"," vVertexWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;"," // set gl_Position"," gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);","}"].join(`
`),t={uniforms:{coeficient:{type:"f",value:1},power:{type:"f",value:3},glowColor:{type:"c",value:new gl(4427985)}},vertexShader:e,fragmentShader:["uniform vec3 glowColor;","uniform float coeficient;","uniform float power;","varying vec3 vVertexNormal;","varying vec3 vVertexWorldPosition;","varying vec4 vFragColor;","void main(){"," vec3 worldCameraToVertex = vVertexWorldPosition - cameraPosition;"," vec3 viewCameraToVertex = (viewMatrix * vec4(worldCameraToVertex, 0.0)).xyz;"," viewCameraToVertex= normalize(viewCameraToVertex);"," float intensity = pow(coeficient + dot(vVertexNormal, viewCameraToVertex), power);"," gl_FragColor = vec4(glowColor, intensity);","}"].join(`
`)},n=new n_({uniforms:t.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,blending:kV,transparent:!0,depthWrite:!1}),a=new CA(this.options.earth.radius+0,50,50),i=new Rr(a,n);this.earthGroup.add(i)}async createMarkupPoint(){await Promise.all(this.options.data.map(async e=>{const t=this.options.earth.radius,n=e.startArray.E,a=e.startArray.N;this.punctuationMaterial=new Bs({color:this.options.punctuation.circleColor,map:this.options.textures.label,transparent:!0,depthWrite:!1});const i=uS({radius:t,lon:n,lat:a,material:this.punctuationMaterial});i.userData={type:"markup",city:e.startArray},this.markupPoint.add(i);const o=lS({radius:this.options.earth.radius,lon:n,lat:a,index:0,textures:this.options.textures,punctuation:this.options.punctuation});o.userData={type:"markup",city:e.startArray},this.markupPoint.add(o);const s=AS({radius:t,lon:n,lat:a,textures:this.options.textures});this.markupPoint.add(s),this.waveMeshArr.push(s),await Promise.all(e.endArray.map(A=>{const l=A.E,u=A.N,c=uS({radius:t,lon:l,lat:u,material:this.punctuationMaterial});c.userData={type:"markup",city:A},this.markupPoint.add(c);const f=lS({radius:this.options.earth.radius,lon:l,lat:u,index:1,textures:this.options.textures,punctuation:this.options.punctuation});f.userData={type:"markup",city:A};const h=AS({radius:t,lon:l,lat:u,textures:this.options.textures});this.markupPoint.add(h),this.waveMeshArr.push(h)})),this.earthGroup.add(this.markupPoint)}))}async createSpriteLabel(){await Promise.all(this.options.data.map(async e=>{let t=[];t.push(e.startArray),t=t.concat(...e.endArray),await Promise.all(t.map(async n=>{const a=Sl(this.options.earth.radius*1.001,n.E,n.N),i=`<div class="fire-div">${n.name}</div>`,o=document.getElementById("html2canvas");o&&n.name&&(o.innerHTML=i);const s={backgroundColor:null,scale:6,dpi:window.devicePixelRatio},l=(await _W(document.getElementById("html2canvas"),s)).toDataURL("image/png"),u=new kU().load(l),c=new a_({map:u,transparent:!0}),f=new i_(c),h=5+(n.name.length-2)*2;f.scale.set(h,3,1),f.position.set(a.x*1.1,a.y*1.1,a.z*1.1),n.name&&this.earth.add(f)}))}))}createAnimateCircle(){const e=IW({radius:this.options.earth.radius+15,number:150,closed:!0}),t=new Bs({color:"#0c3172",transparent:!0,opacity:.4,side:RU}),n=LW({pointList:e,material:t,number:100,radius:.1});this.earthGroup.add(n);const a=n.clone();a.scale.set(1.2,1.2,1.2),a.rotateZ(Math.PI/6),this.earthGroup.add(a);const i=n.clone();i.scale.set(.8,.8,.8),i.rotateZ(-Math.PI/6),this.earthGroup.add(i);const o=new Rr(new CA(this.options.satellite.size,32,32),new Bs({color:"#e0b187"})),s=new Rr(new CA(this.options.satellite.size,32,32),new Bs({color:"#628fbb"})),A=new Rr(new CA(this.options.satellite.size,32,32),new Bs({color:"#806bdf"}));this.circleLineList.push(n,a,i),o.name=s.name=A.name="卫星";for(let l=0;l<this.options.satellite.number;l++){const u=o.clone(),c=Math.floor(e.length/this.options.satellite.number);u.position.set(e[c*(l+1)][0]*1,e[c*(l+1)][1]*1,e[c*(l+1)][2]*1),n.add(u);const f=s.clone(),h=Math.floor(e.length/this.options.satellite.number);f.position.set(e[h*(l+1)][0]*1,e[h*(l+1)][1]*1,e[h*(l+1)][2]*1),a.add(f);const v=s.clone(),d=Math.floor(e.length/this.options.satellite.number);v.position.set(e[d*(l+1)][0]*1,e[h*(l+1)][1]*1,e[d*(l+1)][2]*1),i.add(v)}}createFlyLine(){this.flyLineArcGroup=new ac,this.flyLineArcGroup.userData.flyLineArray=[],this.earthGroup.add(this.flyLineArcGroup),this.options.data.forEach(e=>{e.endArray.forEach(t=>{const n=MW(this.options.earth.radius,e.startArray.E,e.startArray.N,t.E,t.N,this.options.flyLine);this.flyLineArcGroup.add(n),this.flyLineArcGroup.userData.flyLineArray.push(n.userData.flyLine)})})}show(){RV.to(this.group.scale,{x:1,y:1,z:1,duration:2,ease:"Quadratic"})}render(){var e,t;(t=(e=this.flyLineArcGroup)==null?void 0:e.userData.flyLineArray)==null||t.forEach(n=>{n.rotation.z+=this.options.flyLine.speed,n.rotation.z>=n.flyEndAngle&&(n.rotation.z=0)}),this.isRotation&&(this.earthGroup.rotation.y+=this.options.earth.rotateSpeed),this.circleLineList.forEach(n=>{n.rotateY(this.options.satellite.rotateSpeed)}),this.uniforms.time.value=this.uniforms.time.value<-this.timeValue?this.timeValue:this.uniforms.time.value-1,this.waveMeshArr.length&&this.waveMeshArr.forEach(n=>{n.userData.scale+=.007,n.scale.set(n.userData.size*n.userData.scale,n.userData.size*n.userData.scale,n.userData.size*n.userData.scale),n.userData.scale<=1.5?n.material.opacity=(n.userData.scale-1)*2:n.userData.scale>1.5&&n.userData.scale<=2?n.material.opacity=1-(n.userData.scale-1.5)*2:n.userData.scale=1})}destroy(){if(this.earth&&(this.earth.geometry&&this.earth.geometry.dispose(),this.earth.material&&this.earth.material.dispose&&this.earth.material.dispose()),this.aroundPoints&&(this.aroundPoints.geometry&&this.aroundPoints.geometry.dispose(),this.aroundPoints.material&&this.aroundPoints.material.dispose&&this.aroundPoints.material.dispose()),this.earthGroup.children.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.flyLineArcGroup&&this.flyLineArcGroup.children.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.markupPoint.children.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.waveMeshArr.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.circleLineList.forEach(e=>{e instanceof Rr&&(e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose&&e.material.dispose())}),this.earth&&this.earth.material&&this.earth.material.uniforms){const e=this.earth.material;e.uniforms.map&&e.uniforms.map.value&&e.uniforms.map.value.dispose()}}}var zP={},hC={};hC.__esModule=!0;var OW=function(){function r(){this.handlers={}}return r.prototype.on=function(e,t){var n=this.handlers[e];return n||(n=[],this.handlers[e]=n),this.handlers[e].push(t),t},r.prototype.off=function(e,t){var n=this.handlers[e];if(t){var a=n.indexOf(t);a!==-1&&this.handlers[e].splice(a,1)}},r.prototype.offAll=function(){this.handlers={}},r.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=this.handlers[e];a&&a.forEach(function(i){return i.apply(void 0,t)})},r}();hC.EventEmitter=OW;(function(r){function e(t){for(var n in t)r.hasOwnProperty(n)||(r[n]=t[n])}r.__esModule=!0,e(hC)})(zP);class HW extends zP.EventEmitter{constructor(t){super();ut(this,"dom");ut(this,"viewport",{width:window.innerWidth,height:window.innerHeight});this.dom=t.dom,this.resize(),window.addEventListener("resize",this.resize.bind(this))}resize(){this.viewport.width=window.innerWidth,this.viewport.height=window.innerHeight,this.emit("resize")}destroy(){window.removeEventListener("resize",this.resize.bind(this))}}class NW extends rG{constructor(t){super(t.dom);ut(this,"sizes");ut(this,"res");ut(this,"earth");ut(this,"animationId",null);ut(this,"isAnimating",!1);ut(this,"currentDirection","none");ut(this,"animationSpeed",.5);ut(this,"tick",()=>{this.controls.update(),this.earth&&this.earth.render(),this.renderer.render(this.scene,this.camera),requestAnimationFrame(this.tick)});this.sizes=new HW({dom:t.dom}),this.res=new eG(()=>{this.earth=new RW({data:[{startArray:{name:"即途交付中心",E:113.849837,N:34.702114},endArray:t.data.map(a=>({name:"",E:a.latlng.split(",")[0],N:a.latlng.split(",")[1]}))}],dom:t.dom,textures:this.res.textures,earth:{radius:50,rotateSpeed:.001,isRotation:!0},satellite:{show:!0,rotateSpeed:.002,size:0,number:3},punctuation:{circleColor:840171,lightColumn:{startColor:840171,endColor:43775}},flyLine:{color:15969910,speed:.02,flyLineColor:16742164}}),console.log(this.earth),this.earth.init().then(()=>{this.scene.add(this.earth.earthGroup),this.earth.earthGroup.position.y=-999,setTimeout(()=>{this.startEntranceAnimation()},100),this.tick()});const n=195;this.earth.earthGroup.rotation.y=-n*Math.PI/180})}updateEarthData(t){this.earth.options.data[0].endArray=t.map(n=>({name:n.cityName,E:n.latlng.split(",")[0],N:n.latlng.split(",")[1]})),this.earth.updateData()}startEntranceAnimation(){if(!this.earth||!this.earth.earthGroup)return;this.stopAnimation();const t=Date.now(),n=3500,a=250,i=200,o=-80,s=.4,A=100,l=-60;this.camera.position.set(i,o,a),this.camera.lookAt(0,0,0),this.earth.earthGroup.position.set(A,l,0),this.earth.earthGroup.scale.setScalar(s);const u=f=>1-Math.pow(1-f,4),c=()=>{const f=Date.now()-t,h=Math.min(f/n,1),v=u(h),d=i*(1-v),p=o*(1-v),g=a*(1-v)+100*v;this.camera.position.set(d,p,g),this.camera.lookAt(0,0,0);const y=A*(1-v),m=l+(-30-l)*v;this.earth.earthGroup.position.set(y,m,0);const w=s+(1-s)*v;this.earth.earthGroup.scale.setScalar(w),h<1?this.animationId=requestAnimationFrame(c):(this.animationId=null,console.log("入场动画完成"))};c()}startAutoMoveDown(t=.5){this.isAnimating&&this.currentDirection==="down"||(this.stopAnimation(),this.animationSpeed=t,this.currentDirection="down",this.isAnimating=!0,this.animate())}startAutoMoveUp(t=.5){this.isAnimating&&this.currentDirection==="up"||(this.stopAnimation(),this.animationSpeed=t,this.currentDirection="up",this.isAnimating=!0,this.animate())}stopAnimation(){this.isAnimating=!1,this.currentDirection="none",this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}animate(){if(!this.isAnimating||!this.earth||!this.earth.earthGroup){this.stopAnimation();return}const t=16,n=this.animationSpeed*t/1e3;this.currentDirection==="down"?this.earth.earthGroup.position.y-=n:this.currentDirection==="up"&&(this.earth.earthGroup.position.y+=n),this.animationId=requestAnimationFrame(()=>this.animate())}moveToPosition(t,n=3e3){if(!this.earth||!this.earth.earthGroup)return;this.stopAnimation();const a=this.earth.earthGroup.position.y,i=Date.now(),o=A=>A<.5?4*A*A*A:(A-1)*(2*A-2)*(2*A-2)+1,s=()=>{const A=Date.now()-i,l=Math.min(A/n,1),u=o(l);this.earth.earthGroup.position.y=a+t*u,l<1?this.animationId=requestAnimationFrame(s):this.animationId=null};s()}resetPosition(){this.earth&&this.earth.earthGroup&&this.moveToPosition(-this.earth.earthGroup.position.y,2e3)}moveDown(t){this.earth&&this.earth.earthGroup&&(this.earth.earthGroup.position.y-=t)}setVerticalPosition(t){this.earth&&this.earth.earthGroup&&(this.earth.earthGroup.position.y=t)}getVerticalPosition(){return this.earth&&this.earth.earthGroup?this.earth.earthGroup.position.y:0}destroy(){this.stopAnimation(),cancelAnimationFrame(this.tick),this.earth&&this.earth.destroy(),this.res&&this.res.destroy(),this.sizes&&this.sizes.destroy(),super.destroy()}}function $P(r,e){return function(){return r.apply(e,arguments)}}const{toString:VW}=Object.prototype,{getPrototypeOf:vC}=Object,{iterator:Ag,toStringTag:KP}=Symbol,lg=(r=>e=>{const t=VW.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ya=r=>(r=r.toLowerCase(),e=>lg(e)===r),ug=r=>e=>typeof e===r,{isArray:$l}=Array,Tl=ug("undefined");function Ef(r){return r!==null&&!Tl(r)&&r.constructor!==null&&!Tl(r.constructor)&&fn(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const WP=ya("ArrayBuffer");function GW(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&WP(r.buffer),e}const zW=ug("string"),fn=ug("function"),XP=ug("number"),Mf=r=>r!==null&&typeof r=="object",$W=r=>r===!0||r===!1,qv=r=>{if(lg(r)!=="object")return!1;const e=vC(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(KP in r)&&!(Ag in r)},KW=r=>{if(!Mf(r)||Ef(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},WW=ya("Date"),XW=ya("File"),YW=ya("Blob"),ZW=ya("FileList"),jW=r=>Mf(r)&&fn(r.pipe),JW=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||fn(r.append)&&((e=lg(r))==="formdata"||e==="object"&&fn(r.toString)&&r.toString()==="[object FormData]"))},qW=ya("URLSearchParams"),[e6,t6,r6,n6]=["ReadableStream","Request","Response","Headers"].map(ya),a6=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Df(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,a;if(typeof r!="object"&&(r=[r]),$l(r))for(n=0,a=r.length;n<a;n++)e.call(null,r[n],n,r);else{if(Ef(r))return;const i=t?Object.getOwnPropertyNames(r):Object.keys(r),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,r[s],s,r)}}function YP(r,e){if(Ef(r))return null;e=e.toLowerCase();const t=Object.keys(r);let n=t.length,a;for(;n-- >0;)if(a=t[n],e===a.toLowerCase())return a;return null}const Is=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ZP=r=>!Tl(r)&&r!==Is;function Ow(){const{caseless:r,skipUndefined:e}=ZP(this)&&this||{},t={},n=(a,i)=>{const o=r&&YP(t,i)||i;qv(t[o])&&qv(a)?t[o]=Ow(t[o],a):qv(a)?t[o]=Ow({},a):$l(a)?t[o]=a.slice():(!e||!Tl(a))&&(t[o]=a)};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&Df(arguments[a],n);return t}const i6=(r,e,t,{allOwnKeys:n}={})=>(Df(e,(a,i)=>{t&&fn(a)?r[i]=$P(a,t):r[i]=a},{allOwnKeys:n}),r),o6=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),s6=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},A6=(r,e,t,n)=>{let a,i,o;const s={};if(e=e||{},r==null)return e;do{for(a=Object.getOwnPropertyNames(r),i=a.length;i-- >0;)o=a[i],(!n||n(o,r,e))&&!s[o]&&(e[o]=r[o],s[o]=!0);r=t!==!1&&vC(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},l6=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},u6=r=>{if(!r)return null;if($l(r))return r;let e=r.length;if(!XP(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},c6=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&vC(Uint8Array)),f6=(r,e)=>{const n=(r&&r[Ag]).call(r);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(r,i[0],i[1])}},h6=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},v6=ya("HTMLFormElement"),d6=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),fS=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),p6=ya("RegExp"),jP=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};Df(t,(a,i)=>{let o;(o=e(a,i,r))!==!1&&(n[i]=o||a)}),Object.defineProperties(r,n)},g6=r=>{jP(r,(e,t)=>{if(fn(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(fn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},y6=(r,e)=>{const t={},n=a=>{a.forEach(i=>{t[i]=!0})};return $l(r)?n(r):n(String(r).split(e)),t},m6=()=>{},w6=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function B6(r){return!!(r&&fn(r.append)&&r[KP]==="FormData"&&r[Ag])}const C6=r=>{const e=new Array(10),t=(n,a)=>{if(Mf(n)){if(e.indexOf(n)>=0)return;if(Ef(n))return n;if(!("toJSON"in n)){e[a]=n;const i=$l(n)?[]:{};return Df(n,(o,s)=>{const A=t(o,a+1);!Tl(A)&&(i[s]=A)}),e[a]=void 0,i}}return n};return t(r,0)},b6=ya("AsyncFunction"),x6=r=>r&&(Mf(r)||fn(r))&&fn(r.then)&&fn(r.catch),JP=((r,e)=>r?setImmediate:e?((t,n)=>(Is.addEventListener("message",({source:a,data:i})=>{a===Is&&i===t&&n.length&&n.shift()()},!1),a=>{n.push(a),Is.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",fn(Is.postMessage)),_6=typeof queueMicrotask<"u"?queueMicrotask.bind(Is):typeof process<"u"&&process.nextTick||JP,S6=r=>r!=null&&fn(r[Ag]),pe={isArray:$l,isArrayBuffer:WP,isBuffer:Ef,isFormData:JW,isArrayBufferView:GW,isString:zW,isNumber:XP,isBoolean:$W,isObject:Mf,isPlainObject:qv,isEmptyObject:KW,isReadableStream:e6,isRequest:t6,isResponse:r6,isHeaders:n6,isUndefined:Tl,isDate:WW,isFile:XW,isBlob:YW,isRegExp:p6,isFunction:fn,isStream:jW,isURLSearchParams:qW,isTypedArray:c6,isFileList:ZW,forEach:Df,merge:Ow,extend:i6,trim:a6,stripBOM:o6,inherits:s6,toFlatObject:A6,kindOf:lg,kindOfTest:ya,endsWith:l6,toArray:u6,forEachEntry:f6,matchAll:h6,isHTMLForm:v6,hasOwnProperty:fS,hasOwnProp:fS,reduceDescriptors:jP,freezeMethods:g6,toObjectSet:y6,toCamelCase:d6,noop:m6,toFiniteNumber:w6,findKey:YP,global:Is,isContextDefined:ZP,isSpecCompliantForm:B6,toJSONObject:C6,isAsyncFn:b6,isThenable:x6,setImmediate:JP,asap:_6,isIterable:S6};function tt(r,e,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}pe.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const qP=tt.prototype,ek={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{ek[r]={value:r}});Object.defineProperties(tt,ek);Object.defineProperty(qP,"isAxiosError",{value:!0});tt.from=(r,e,t,n,a,i)=>{const o=Object.create(qP);pe.toFlatObject(r,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const s=r&&r.message?r.message:"Error",A=e==null&&r?r.code:e;return tt.call(o,s,A,t,n,a),r&&o.cause==null&&Object.defineProperty(o,"cause",{value:r,configurable:!0}),o.name=r&&r.name||"Error",i&&Object.assign(o,i),o};const T6=null;function Hw(r){return pe.isPlainObject(r)||pe.isArray(r)}function tk(r){return pe.endsWith(r,"[]")?r.slice(0,-2):r}function hS(r,e,t){return r?r.concat(e).map(function(a,i){return a=tk(a),!t&&i?"["+a+"]":a}).join(t?".":""):e}function I6(r){return pe.isArray(r)&&!r.some(Hw)}const L6=pe.toFlatObject(pe,{},null,function(e){return/^is[A-Z]/.test(e)});function cg(r,e,t){if(!pe.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=pe.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!pe.isUndefined(p[d])});const n=t.metaTokens,a=t.visitor||u,i=t.dots,o=t.indexes,A=(t.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(e);if(!pe.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(pe.isDate(v))return v.toISOString();if(pe.isBoolean(v))return v.toString();if(!A&&pe.isBlob(v))throw new tt("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(v)||pe.isTypedArray(v)?A&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,d,p){let g=v;if(v&&!p&&typeof v=="object"){if(pe.endsWith(d,"{}"))d=n?d:d.slice(0,-2),v=JSON.stringify(v);else if(pe.isArray(v)&&I6(v)||(pe.isFileList(v)||pe.endsWith(d,"[]"))&&(g=pe.toArray(v)))return d=tk(d),g.forEach(function(m,w){!(pe.isUndefined(m)||m===null)&&e.append(o===!0?hS([d],w,i):o===null?d:d+"[]",l(m))}),!1}return Hw(v)?!0:(e.append(hS(p,d,i),l(v)),!1)}const c=[],f=Object.assign(L6,{defaultVisitor:u,convertValue:l,isVisitable:Hw});function h(v,d){if(!pe.isUndefined(v)){if(c.indexOf(v)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(v),pe.forEach(v,function(g,y){(!(pe.isUndefined(g)||g===null)&&a.call(e,g,pe.isString(y)?y.trim():y,d,f))===!0&&h(g,d?d.concat(y):[y])}),c.pop()}}if(!pe.isObject(r))throw new TypeError("data must be an object");return h(r),e}function vS(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function dC(r,e){this._pairs=[],r&&cg(r,this,e)}const rk=dC.prototype;rk.append=function(e,t){this._pairs.push([e,t])};rk.toString=function(e){const t=e?function(n){return e.call(this,n,vS)}:vS;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function E6(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nk(r,e,t){if(!e)return r;const n=t&&t.encode||E6;pe.isFunction(t)&&(t={serialize:t});const a=t&&t.serialize;let i;if(a?i=a(e,t):i=pe.isURLSearchParams(e)?e.toString():new dC(e,t).toString(n),i){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class M6{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,function(n){n!==null&&e(n)})}}const dS=M6,ak={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},D6=typeof URLSearchParams<"u"?URLSearchParams:dC,F6=typeof FormData<"u"?FormData:null,Q6=typeof Blob<"u"?Blob:null,U6={isBrowser:!0,classes:{URLSearchParams:D6,FormData:F6,Blob:Q6},protocols:["http","https","file","blob","url","data"]},pC=typeof window<"u"&&typeof document<"u",Nw=typeof navigator=="object"&&navigator||void 0,P6=pC&&(!Nw||["ReactNative","NativeScript","NS"].indexOf(Nw.product)<0),k6=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),R6=pC&&window.location.href||"http://localhost",O6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pC,hasStandardBrowserEnv:P6,hasStandardBrowserWebWorkerEnv:k6,navigator:Nw,origin:R6},Symbol.toStringTag,{value:"Module"})),Gr={...O6,...U6};function H6(r,e){return cg(r,new Gr.classes.URLSearchParams,{visitor:function(t,n,a,i){return Gr.isNode&&pe.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function N6(r){return pe.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function V6(r){const e={},t=Object.keys(r);let n;const a=t.length;let i;for(n=0;n<a;n++)i=t[n],e[i]=r[i];return e}function ik(r){function e(t,n,a,i){let o=t[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),A=i>=t.length;return o=!o&&pe.isArray(a)?a.length:o,A?(pe.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!pe.isObject(a[o]))&&(a[o]=[]),e(t,n,a[o],i)&&pe.isArray(a[o])&&(a[o]=V6(a[o])),!s)}if(pe.isFormData(r)&&pe.isFunction(r.entries)){const t={};return pe.forEachEntry(r,(n,a)=>{e(N6(n),a,t,0)}),t}return null}function G6(r,e,t){if(pe.isString(r))try{return(e||JSON.parse)(r),pe.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const gC={transitional:ak,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=pe.isObject(e);if(i&&pe.isHTMLForm(e)&&(e=new FormData(e)),pe.isFormData(e))return a?JSON.stringify(ik(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e)||pe.isReadableStream(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return H6(e,this.formSerializer).toString();if((s=pe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return cg(s?{"files[]":e}:e,A&&new A,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),G6(e)):e}],transformResponse:[function(e){const t=this.transitional||gC.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(pe.isResponse(e)||pe.isReadableStream(e))return e;if(e&&pe.isString(e)&&(n&&!this.responseType||a)){const o=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?tt.from(s,tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gr.classes.FormData,Blob:Gr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],r=>{gC.headers[r]={}});const yC=gC,z6=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$6=r=>{const e={};let t,n,a;return r&&r.split(`
`).forEach(function(o){a=o.indexOf(":"),t=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!t||e[t]&&z6[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},pS=Symbol("internals");function vu(r){return r&&String(r).trim().toLowerCase()}function ed(r){return r===!1||r==null?r:pe.isArray(r)?r.map(ed):String(r)}function K6(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const W6=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Ey(r,e,t,n,a){if(pe.isFunction(n))return n.call(this,e,t);if(a&&(e=t),!!pe.isString(e)){if(pe.isString(n))return e.indexOf(n)!==-1;if(pe.isRegExp(n))return n.test(e)}}function X6(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Y6(r,e){const t=pe.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(a,i,o){return this[n].call(this,e,a,i,o)},configurable:!0})})}class fg{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function i(s,A,l){const u=vu(A);if(!u)throw new Error("header name must be a non-empty string");const c=pe.findKey(a,u);(!c||a[c]===void 0||l===!0||l===void 0&&a[c]!==!1)&&(a[c||A]=ed(s))}const o=(s,A)=>pe.forEach(s,(l,u)=>i(l,u,A));if(pe.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(pe.isString(e)&&(e=e.trim())&&!W6(e))o($6(e),t);else if(pe.isObject(e)&&pe.isIterable(e)){let s={},A,l;for(const u of e){if(!pe.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(A=s[l])?pe.isArray(A)?[...A,u[1]]:[A,u[1]]:u[1]}o(s,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=vu(e),e){const n=pe.findKey(this,e);if(n){const a=this[n];if(!t)return a;if(t===!0)return K6(a);if(pe.isFunction(t))return t.call(this,a,n);if(pe.isRegExp(t))return t.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vu(e),e){const n=pe.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ey(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let a=!1;function i(o){if(o=vu(o),o){const s=pe.findKey(n,o);s&&(!t||Ey(n,n[s],s,t))&&(delete n[s],a=!0)}}return pe.isArray(e)?e.forEach(i):i(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const i=t[n];(!e||Ey(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const t=this,n={};return pe.forEach(this,(a,i)=>{const o=pe.findKey(n,i);if(o){t[o]=ed(a),delete t[i];return}const s=e?X6(i):String(i).trim();s!==i&&delete t[i],t[s]=ed(a),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pe.forEach(this,(n,a)=>{n!=null&&n!==!1&&(t[a]=e&&pe.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[pS]=this[pS]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=vu(o);n[s]||(Y6(a,o),n[s]=!0)}return pe.isArray(e)?e.forEach(i):i(e),this}}fg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(fg.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});pe.freezeMethods(fg);const Aa=fg;function My(r,e){const t=this||yC,n=e||t,a=Aa.from(n.headers);let i=n.data;return pe.forEach(r,function(s){i=s.call(t,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function ok(r){return!!(r&&r.__CANCEL__)}function Kl(r,e,t){tt.call(this,r??"canceled",tt.ERR_CANCELED,e,t),this.name="CanceledError"}pe.inherits(Kl,tt,{__CANCEL__:!0});function sk(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new tt("Request failed with status code "+t.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Z6(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function j6(r,e){r=r||10;const t=new Array(r),n=new Array(r);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(A){const l=Date.now(),u=n[i];o||(o=l),t[a]=A,n[a]=l;let c=i,f=0;for(;c!==a;)f+=t[c++],c=c%r;if(a=(a+1)%r,a===i&&(i=(i+1)%r),l-o<e)return;const h=u&&l-u;return h?Math.round(f*1e3/h):void 0}}function J6(r,e){let t=0,n=1e3/e,a,i;const o=(l,u=Date.now())=>{t=u,a=null,i&&(clearTimeout(i),i=null),r(...l)};return[(...l)=>{const u=Date.now(),c=u-t;c>=n?o(l,u):(a=l,i||(i=setTimeout(()=>{i=null,o(a)},n-c)))},()=>a&&o(a)]}const Od=(r,e,t=3)=>{let n=0;const a=j6(50,250);return J6(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,A=o-n,l=a(A),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:A,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};r(c)},t)},gS=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},yS=r=>(...e)=>pe.asap(()=>r(...e)),q6=Gr.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Gr.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Gr.origin),Gr.navigator&&/(msie|trident)/i.test(Gr.navigator.userAgent)):()=>!0,eX=Gr.hasStandardBrowserEnv?{write(r,e,t,n,a,i,o){if(typeof document>"u")return;const s=[`${r}=${encodeURIComponent(e)}`];pe.isNumber(t)&&s.push(`expires=${new Date(t).toUTCString()}`),pe.isString(n)&&s.push(`path=${n}`),pe.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),pe.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(r){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function tX(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function rX(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Ak(r,e,t){let n=!tX(e);return r&&(n||t==!1)?rX(r,e):e}const mS=r=>r instanceof Aa?{...r}:r;function Ys(r,e){e=e||{};const t={};function n(l,u,c,f){return pe.isPlainObject(l)&&pe.isPlainObject(u)?pe.merge.call({caseless:f},l,u):pe.isPlainObject(u)?pe.merge({},u):pe.isArray(u)?u.slice():u}function a(l,u,c,f){if(pe.isUndefined(u)){if(!pe.isUndefined(l))return n(void 0,l,c,f)}else return n(l,u,c,f)}function i(l,u){if(!pe.isUndefined(u))return n(void 0,u)}function o(l,u){if(pe.isUndefined(u)){if(!pe.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,c){if(c in e)return n(l,u);if(c in r)return n(void 0,l)}const A={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,u,c)=>a(mS(l),mS(u),c,!0)};return pe.forEach(Object.keys({...r,...e}),function(u){const c=A[u]||a,f=c(r[u],e[u],u);pe.isUndefined(f)&&c!==s||(t[u]=f)}),t}const lk=r=>{const e=Ys({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;if(e.headers=o=Aa.from(o),e.url=nk(Ak(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),pe.isFormData(t)){if(Gr.hasStandardBrowserEnv||Gr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(pe.isFunction(t.getHeaders)){const A=t.getHeaders(),l=["content-type","content-length"];Object.entries(A).forEach(([u,c])=>{l.includes(u.toLowerCase())&&o.set(u,c)})}}if(Gr.hasStandardBrowserEnv&&(n&&pe.isFunction(n)&&(n=n(e)),n||n!==!1&&q6(e.url))){const A=a&&i&&eX.read(i);A&&o.set(a,A)}return e},nX=typeof XMLHttpRequest<"u",aX=nX&&function(r){return new Promise(function(t,n){const a=lk(r);let i=a.data;const o=Aa.from(a.headers).normalize();let{responseType:s,onUploadProgress:A,onDownloadProgress:l}=a,u,c,f,h,v;function d(){h&&h(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function g(){if(!p)return;const m=Aa.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),B={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:m,config:r,request:p};sk(function(b){t(b),d()},function(b){n(b),d()},B),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){p&&(n(new tt("Request aborted",tt.ECONNABORTED,r,p)),p=null)},p.onerror=function(w){const B=w&&w.message?w.message:"Network Error",C=new tt(B,tt.ERR_NETWORK,r,p);C.event=w||null,n(C),p=null},p.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const B=a.transitional||ak;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new tt(w,B.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,r,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&pe.forEach(o.toJSON(),function(w,B){p.setRequestHeader(B,w)}),pe.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),s&&s!=="json"&&(p.responseType=a.responseType),l&&([f,v]=Od(l,!0),p.addEventListener("progress",f)),A&&p.upload&&([c,h]=Od(A),p.upload.addEventListener("progress",c),p.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=m=>{p&&(n(!m||m.type?new Kl(null,r,p):m),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const y=Z6(a.url);if(y&&Gr.protocols.indexOf(y)===-1){n(new tt("Unsupported protocol "+y+":",tt.ERR_BAD_REQUEST,r));return}p.send(i||null)})},iX=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,a;const i=function(l){if(!a){a=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof tt?u:new Kl(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,i(new tt(`timeout ${e} of ms exceeded`,tt.ETIMEDOUT))},e);const s=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),r=null)};r.forEach(l=>l.addEventListener("abort",i));const{signal:A}=n;return A.unsubscribe=()=>pe.asap(s),A}},oX=iX,sX=function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,a;for(;n<t;)a=n+e,yield r.slice(n,a),n=a},AX=async function*(r,e){for await(const t of lX(r))yield*sX(t,e)},lX=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},wS=(r,e,t,n)=>{const a=AX(r,e);let i=0,o,s=A=>{o||(o=!0,n&&n(A))};return new ReadableStream({async pull(A){try{const{done:l,value:u}=await a.next();if(l){s(),A.close();return}let c=u.byteLength;if(t){let f=i+=c;t(f)}A.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(A){return s(A),a.return()}},{highWaterMark:2})},BS=64*1024,{isFunction:Ch}=pe,uX=(({Request:r,Response:e})=>({Request:r,Response:e}))(pe.global),{ReadableStream:CS,TextEncoder:bS}=pe.global,xS=(r,...e)=>{try{return!!r(...e)}catch{return!1}},cX=r=>{r=pe.merge.call({skipUndefined:!0},uX,r);const{fetch:e,Request:t,Response:n}=r,a=e?Ch(e):typeof fetch=="function",i=Ch(t),o=Ch(n);if(!a)return!1;const s=a&&Ch(CS),A=a&&(typeof bS=="function"?(v=>d=>v.encode(d))(new bS):async v=>new Uint8Array(await new t(v).arrayBuffer())),l=i&&s&&xS(()=>{let v=!1;const d=new t(Gr.origin,{body:new CS,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!d}),u=o&&s&&xS(()=>pe.isReadableStream(new n("").body)),c={stream:u&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!c[v]&&(c[v]=(d,p)=>{let g=d&&d[v];if(g)return g.call(d);throw new tt(`Response type '${v}' is not supported`,tt.ERR_NOT_SUPPORT,p)})});const f=async v=>{if(v==null)return 0;if(pe.isBlob(v))return v.size;if(pe.isSpecCompliantForm(v))return(await new t(Gr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(v)||pe.isArrayBuffer(v))return v.byteLength;if(pe.isURLSearchParams(v)&&(v=v+""),pe.isString(v))return(await A(v)).byteLength},h=async(v,d)=>{const p=pe.toFiniteNumber(v.getContentLength());return p??f(d)};return async v=>{let{url:d,method:p,data:g,signal:y,cancelToken:m,timeout:w,onDownloadProgress:B,onUploadProgress:C,responseType:b,headers:_,withCredentials:x="same-origin",fetchOptions:S}=lk(v),I=e||fetch;b=b?(b+"").toLowerCase():"text";let L=oX([y,m&&m.toAbortSignal()],w),T=null;const M=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let R;try{if(C&&l&&p!=="get"&&p!=="head"&&(R=await h(_,g))!==0){let O=new t(d,{method:"POST",body:g,duplex:"half"}),G;if(pe.isFormData(g)&&(G=O.headers.get("content-type"))&&_.setContentType(G),O.body){const[X,te]=gS(R,Od(yS(C)));g=wS(O.body,BS,X,te)}}pe.isString(x)||(x=x?"include":"omit");const P=i&&"credentials"in t.prototype,E={...S,signal:L,method:p.toUpperCase(),headers:_.normalize().toJSON(),body:g,duplex:"half",credentials:P?x:void 0};T=i&&new t(d,E);let k=await(i?I(T,S):I(d,E));const D=u&&(b==="stream"||b==="response");if(u&&(B||D&&M)){const O={};["status","statusText","headers"].forEach(ne=>{O[ne]=k[ne]});const G=pe.toFiniteNumber(k.headers.get("content-length")),[X,te]=B&&gS(G,Od(yS(B),!0))||[];k=new n(wS(k.body,BS,X,()=>{te&&te(),M&&M()}),O)}b=b||"text";let U=await c[pe.findKey(c,b)||"text"](k,v);return!D&&M&&M(),await new Promise((O,G)=>{sk(O,G,{data:U,headers:Aa.from(k.headers),status:k.status,statusText:k.statusText,config:v,request:T})})}catch(P){throw M&&M(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,v,T),{cause:P.cause||P}):tt.from(P,P&&P.code,v,T)}}},fX=new Map,uk=r=>{let e=r&&r.env||{};const{fetch:t,Request:n,Response:a}=e,i=[n,a,t];let o=i.length,s=o,A,l,u=fX;for(;s--;)A=i[s],l=u.get(A),l===void 0&&u.set(A,l=s?new Map:cX(e)),u=l;return l};uk();const mC={http:T6,xhr:aX,fetch:{get:uk}};pe.forEach(mC,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const _S=r=>`- ${r}`,hX=r=>pe.isFunction(r)||r===null||r===!1;function vX(r,e){r=pe.isArray(r)?r:[r];const{length:t}=r;let n,a;const i={};for(let o=0;o<t;o++){n=r[o];let s;if(a=n,!hX(n)&&(a=mC[(s=String(n)).toLowerCase()],a===void 0))throw new tt(`Unknown adapter '${s}'`);if(a&&(pe.isFunction(a)||(a=a.get(e))))break;i[s||"#"+o]=a}if(!a){const o=Object.entries(i).map(([A,l])=>`adapter ${A} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
`+o.map(_S).join(`
`):" "+_S(o[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const ck={getAdapter:vX,adapters:mC};function Dy(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Kl(null,r)}function SS(r){return Dy(r),r.headers=Aa.from(r.headers),r.data=My.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),ck.getAdapter(r.adapter||yC.adapter,r)(r).then(function(n){return Dy(r),n.data=My.call(r,r.transformResponse,n),n.headers=Aa.from(n.headers),n},function(n){return ok(n)||(Dy(r),n&&n.response&&(n.response.data=My.call(r,r.transformResponse,n.response),n.response.headers=Aa.from(n.response.headers))),Promise.reject(n)})}const fk="1.13.2",hg={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{hg[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const TS={};hg.transitional=function(e,t,n){function a(i,o){return"[Axios v"+fk+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(e===!1)throw new tt(a(o," has been removed"+(t?" in "+t:"")),tt.ERR_DEPRECATED);return t&&!TS[o]&&(TS[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};hg.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function dX(r,e,t){if(typeof r!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let a=n.length;for(;a-- >0;){const i=n[a],o=e[i];if(o){const s=r[i],A=s===void 0||o(s,i,r);if(A!==!0)throw new tt("option "+i+" must be "+A,tt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const td={assertOptions:dX,validators:hg},Sa=td.validators;class Hd{constructor(e){this.defaults=e||{},this.interceptors={request:new dS,response:new dS}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ys(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:i}=t;n!==void 0&&td.assertOptions(n,{silentJSONParsing:Sa.transitional(Sa.boolean),forcedJSONParsing:Sa.transitional(Sa.boolean),clarifyTimeoutError:Sa.transitional(Sa.boolean)},!1),a!=null&&(pe.isFunction(a)?t.paramsSerializer={serialize:a}:td.assertOptions(a,{encode:Sa.function,serialize:Sa.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),td.assertOptions(t,{baseUrl:Sa.spelling("baseURL"),withXsrfToken:Sa.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&pe.merge(i.common,i[t.method]);i&&pe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),t.headers=Aa.concat(o,i);const s=[];let A=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(A=A&&d.synchronous,s.unshift(d.fulfilled,d.rejected))});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let u,c=0,f;if(!A){const v=[SS.bind(this),void 0];for(v.unshift(...s),v.push(...l),f=v.length,u=Promise.resolve(t);c<f;)u=u.then(v[c++],v[c++]);return u}f=s.length;let h=t;for(;c<f;){const v=s[c++],d=s[c++];try{h=v(h)}catch(p){d.call(this,p);break}}try{u=SS.call(this,h)}catch(v){return Promise.reject(v)}for(c=0,f=l.length;c<f;)u=u.then(l[c++],l[c++]);return u}getUri(e){e=Ys(this.defaults,e);const t=Ak(e.baseURL,e.url,e.allowAbsoluteUrls);return nk(t,e.params,e.paramsSerializer)}}pe.forEach(["delete","get","head","options"],function(e){Hd.prototype[e]=function(t,n){return this.request(Ys(n||{},{method:e,url:t,data:(n||{}).data}))}});pe.forEach(["post","put","patch"],function(e){function t(n){return function(i,o,s){return this.request(Ys(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Hd.prototype[e]=t(),Hd.prototype[e+"Form"]=t(!0)});const rd=Hd;class wC{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i,o,s){n.reason||(n.reason=new Kl(i,o,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new wC(function(a){e=a}),cancel:e}}}const pX=wC;function gX(r){return function(t){return r.apply(null,t)}}function yX(r){return pe.isObject(r)&&r.isAxiosError===!0}const Vw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vw).forEach(([r,e])=>{Vw[e]=r});const mX=Vw;function hk(r){const e=new rd(r),t=$P(rd.prototype.request,e);return pe.extend(t,rd.prototype,e,{allOwnKeys:!0}),pe.extend(t,e,null,{allOwnKeys:!0}),t.create=function(a){return hk(Ys(r,a))},t}const ur=hk(yC);ur.Axios=rd;ur.CanceledError=Kl;ur.CancelToken=pX;ur.isCancel=ok;ur.VERSION=fk;ur.toFormData=cg;ur.AxiosError=tt;ur.Cancel=ur.CanceledError;ur.all=function(e){return Promise.all(e)};ur.spread=gX;ur.isAxiosError=yX;ur.mergeConfig=Ys;ur.AxiosHeaders=Aa;ur.formToJSON=r=>ik(pe.isHTMLForm(r)?new FormData(r):r);ur.getAdapter=ck.getAdapter;ur.HttpStatusCode=mX;ur.default=ur;const vk=ur,fa=vk.create({baseURL:"http://39.105.28.231:1020",timeout:5e3});fa.interceptors.request.use(r=>{const e=localStorage.getItem("token");return e&&(r.headers.Authorization=`Bearer ${e}`),r},r=>Promise.reject(r));fa.interceptors.response.use(r=>r.data,r=>Promise.reject(r));function BC(r,e){let t=0;return function(...n){const a=Date.now();a-t>=r&&(t=a,e.apply(this,n))}}function wX(){return"xxxxxxxxxxxxaxxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const _o=()=>wX().replaceAll("-","");function CC(r){const e=new Set,t=new Set;return r.forEach(n=>{e.has(n.id)?t.add(n):e.add(n.id)}),t.size>0&&r.forEach(n=>{n.id=_o()}),r}function Il(r){return r.map((e,t)=>({id:_o(),index:t,data:e}))}var bC=vt({name:"VerticalScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"up"},delay:{type:Number,default:0}},setup(r,{expose:e,emit:t}){const n=Ee(null),a=Ee(null),i=Ee([]),o=Ee(0),s=Ee(!1),A=Ee(r.direction),l=rt(()=>r.hover?!s.value&&r.modelValue:r.modelValue),u=Ee([]),c=Il(r.list),f=Ee(r.visibleCount===void 0?0:r.visibleCount);let h=0,v=0,d=0,p=[],g=0,y=0,m=-1,w=0,B=null,C=!1,b=0,_=0,x=!1;const S=()=>{cancelAnimationFrame(B),B=null},I=()=>{const W=m+y;if(W>=c.length){const ee=W-c.length,oe=["splice",[0,y],[m],[0,ee]];i.value=oe,ee>c.length?m=c.length:m=ee}else{const ee=["splice",[0,y],[m,W]];i.value=ee,m=W}},L=()=>{const W=Array.from(n.value.children);p=(A.value==="up"?W.slice(0,y):W.slice(k.value.length-y,k.value.length)).map(oe=>oe.offsetHeight),g=p.reduce((oe,H)=>oe+H,0)},T=(W,ee)=>{if(S(),!x)return;const oe=()=>{const H=p[0];let N=!1;b>=H&&(N=!0),N&&(p.shift(),b=0,v+=1),v===h&&(d+=1,t("count",d),v=0),r.singleLine&&N?(C=!0,setTimeout(()=>{C=!1,W||T(!1,r.step)},r.singleWaitTime)):W||T(!1,r.step)};(l.value&&!C||W)&&(B=requestAnimationFrame(()=>{_+=ee,b+=ee,A.value==="up"?o.value+=ee:o.value-=ee,_>g?(t("offset",y,c),I(),Je(()=>{o.value=A.value==="up"?0:U()-w,_=0,L(),oe()})):oe()}))},M=()=>{s.value=!0},R=()=>{s.value=!1,r.hover&&T(!1,r.step)},P=BC(30,W=>{T(!0,10)}),E=W=>{r.hover&&r.wheel&&(P(W),W.preventDefault(),W.stopPropagation())},k=rt(()=>{let W=[];return i.value.length===0?W=c.slice(0,f.value):i.value[0]==="splice"?(W=A.value==="up"?k.value:k.value.reverse(),W.splice(...i.value[1]),i.value.slice(2).forEach(ee=>{W.push(...c.slice(...ee))})):i.value.slice(1).forEach(ee=>{W.push(...c.slice(...ee))}),A.value!=="up"&&W.reverse(),CC(W)}),D=()=>{if(m=f.value+y,m>=c.length){const W=m-c.length,ee=["slice",[0,m],[0,W]];return W>c.length?m=c.length:m=W,ee}else return["slice",[0,m]]},U=()=>Array.from(n.value.children).map(W=>W.offsetHeight).reduce((W,ee)=>W+ee,0),O=W=>{r.visibleCount===void 0?(u.value=Il([r.list[0]]),Je(()=>{f.value=Math.ceil(w/a.value.offsetHeight)+2,u.value=c.slice(0,f.value),Je(()=>{W()})})):(u.value=c.slice(0,f.value),Je(()=>{W()}))};St(()=>{n.value&&(n.value.parentElement.addEventListener("mouseenter",M),n.value.parentElement.addEventListener("mouseleave",R),n.value.parentElement.addEventListener("wheel",E),w=n.value.parentElement.offsetHeight,r.list.length>0&&O(()=>{a.value.offsetHeight>w?(y=X(),i.value=D(),Je(()=>{o.value=A.value==="up"?0:U()-w,L(),x=!0,setTimeout(()=>{T(!1,r.step)},r.delay)})):G(),u.value=[]})),h=c.length});const G=()=>{v=0,d=0,x=!1,y=0,i.value=[],Je(()=>{o.value=A.value==="up"?0:U()-w,_=0,b=0})},X=()=>{let W=c.length-f.value;return W=Math.max(1,W),W=Math.min(5,W),W};return e({add:(W,ee,oe)=>{if(ee&&ee.length>0){W>c.length&&(W=c.length),W<0&&(W=0);const H=[];ee.length===1&&k.value.forEach(($,j)=>{$.index===W&&H.push(j)});const N=[];ee.forEach($=>{N.push({id:_o(),data:$})}),c.splice(W,0,...N),c.forEach(($,j)=>{$.index=j});const K=X();if(x)W<m&&(m+=1,m>c.length&&(m=0)),ee.length===1&&H.length>0&&H.forEach($=>{k.value[$]=N[0]}),K!==y&&(y=K);else{const $=()=>{a.value.offsetHeight>w?(y=K,i.value=D(),Je(()=>{o.value=A.value==="up"?0:U()-w,_=0,b=0,L(),x=!0,T(!1,r.step)})):(r.visibleCount===void 0&&(f.value=0),G()),u.value=[]};f.value===0&&r.visibleCount===void 0?O(()=>{$()}):(u.value=c.slice(0,f.value),Je(()=>{$()}))}}oe&&typeof oe=="function"&&oe(c),h=c.length},remove:(W,ee=1,oe)=>{W>=0&&W<c.length&&(c.splice(W,ee),x?(u.value=c.slice(0,f.value),Je(()=>{if(a.value.offsetHeight>w){const N=X();N!==y&&(y=N),i.value=D()}else G();u.value=[]})):G()),oe&&typeof oe=="function"&&oe(c),h=c.length},update:(W,ee,oe)=>{if(W>=0&&W<c.length){const H=[];k.value.forEach((K,$)=>{K.index===W&&H.push($)});const N={id:_o(),index:W,data:ee};c[W]=N,H.length>0&&H.forEach(K=>{k.value[K]=N})}oe&&typeof oe=="function"&&oe(c)},reset:()=>{Je(()=>{u.value=c.slice(0,f.value),Je(()=>{a.value.offsetHeight>w?i.value[0]==="splice"?(I(),Je(()=>{L()})):(i.value=D(),Je(()=>{L()})):G()})})}}),Et(()=>r.modelValue,W=>{W&&T(!1,r.step)}),Qo(()=>{cancelAnimationFrame(B),n.value&&(n.value.parentElement.removeEventListener("mouseenter",M),n.value.parentElement.removeEventListener("mouseleave",R),n.value.parentElement.removeEventListener("wheel",E))}),{realWrapperRef:n,visibleItems:k,offset:o,testList:u,realWrapperHiddenRef:a}}});const BX={style:{position:"absolute !important",top:"-999999px !important"},ref:"realWrapperHiddenRef"};function CX(r,e,t,n,a,i){return he(),de(lt,null,[ae("div",{class:"vue3-seamless-vertical-wrapper",ref:"realWrapperRef",style:qt({transition:`transform ${r.ease}`,transform:`translateY(-${r.offset}px)`})},[(he(!0),de(lt,null,dt(r.visibleItems,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],4),ae("div",BX,[(he(!0),de(lt,null,dt(r.testList,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],512)],64)}function xC(r,e){e===void 0&&(e={});var t=e.insertAt;if(!(!r||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}}var bX=`
.vue3-seamless-vertical-wrapper[data-v-70134dc7] {\r
width: 100%;
}\r
`;xC(bX);bC.render=CX;bC.__scopeId="data-v-70134dc7";bC.__file="packages/VerticalScroll.vue";var _C=vt({name:"HorizontalScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"left"},delay:{type:Number,default:0}},setup(r,{emit:e,expose:t}){const n=Ee(null),a=Ee(null),i=Ee([]),o=Ee(0),s=Ee(!1),A=Ee(r.direction),l=rt(()=>r.hover?!s.value&&r.modelValue:r.modelValue),u=Ee([]),c=Ee(r.visibleCount===void 0?0:r.visibleCount),f=Il(r.list);let h=0,v=0,d=0,p=[],g=0,y=0,m=-1,w=0,B=null,C=!1,b=0,_=0,x=!1;const S=()=>{cancelAnimationFrame(B),B=null},I=()=>{const W=m+y;if(W>=f.length){const ee=W-f.length,oe=["splice",[0,y],[m],[0,ee]];i.value=oe,ee>f.length?m=f.length:m=ee}else{const ee=["splice",[0,y],[m,W]];i.value=ee,m=W}},L=()=>{const W=Array.from(n.value.children);p=(A.value==="left"?W.slice(0,y):W.slice(k.value.length-y,k.value.length)).map(oe=>oe.offsetWidth),g=p.reduce((oe,H)=>oe+H,0)},T=(W,ee)=>{if(S(),!x)return;const oe=()=>{const H=p[0];let N=!1;b>=H&&(N=!0),N&&(p.shift(),b=0,v+=1),v===h&&(d+=1,e("count",d),v=0),r.singleLine&&N?(C=!0,setTimeout(()=>{C=!1,W||T(!1,r.step)},r.singleWaitTime)):W||T(!1,r.step)};(l.value&&!C||W)&&(B=requestAnimationFrame(()=>{_+=ee,b+=ee,r?o.value+=ee:o.value-=ee,_>g?(e("offset",y,f),I(),Je(()=>{o.value=A.value==="left"?0:U()-w,_=0,L(),oe()})):oe()}))},M=()=>{s.value=!0},R=()=>{s.value=!1,r.hover&&T(!1,r.step)},P=BC(30,W=>{T(!0,10)}),E=W=>{r.hover&&r.wheel&&(P(W),W.preventDefault(),W.stopPropagation())},k=rt(()=>{let W=[];return i.value.length===0?W=f.slice(0,c.value):i.value[0]==="splice"?(W=A.value==="left"?k.value:k.value.reverse(),W.splice(...i.value[1]),i.value.slice(2).forEach(ee=>{W.push(...f.slice(...ee))})):i.value.slice(1).forEach(ee=>{W.push(...f.slice(...ee))}),A.value!=="left"&&W.reverse(),CC(W)}),D=()=>{if(m=c.value+y,m>=f.length){const W=m-f.length,ee=["slice",[0,m],[0,W]];return W>f.length?m=f.length:m=W,ee}else return["slice",[0,m]]},U=()=>Array.from(n.value.children).map(W=>W.offsetWidth).reduce((W,ee)=>W+ee,0),O=W=>{r.visibleCount===void 0?(u.value=Il([r.list[0]]),Je(()=>{c.value=Math.ceil(w/a.value.offsetWidth)+2,u.value=f.slice(0,c.value),Je(()=>{W()})})):(u.value=f.slice(0,c.value),Je(()=>{W()}))};St(()=>{n.value&&(n.value.parentElement.addEventListener("mouseenter",M),n.value.parentElement.addEventListener("mouseleave",R),n.value.parentElement.addEventListener("wheel",E),w=n.value.parentElement.offsetWidth,r.list.length>0&&O(()=>{a.value.offsetWidth>w?(y=X(),i.value=D(),Je(()=>{o.value=A.value==="left"?0:U()-w,L(),x=!0,setTimeout(()=>{T(!1,r.step)},r.delay)})):G(),u.value=[]})),h=f.length});const G=()=>{v=0,d=0,x=!1,y=0,i.value=[],Je(()=>{o.value=A.value==="left"?0:U()-w,_=0,b=0})},X=()=>{let W=f.length-c.value;return W=Math.max(1,W),W=Math.min(5,W),W};return t({add:(W,ee,oe)=>{if(ee&&ee.length>0){W>f.length&&(W=f.length),W<0&&(W=0);const H=[];ee.length===1&&k.value.forEach(($,j)=>{$.index===W&&H.push(j)});const N=[];ee.forEach($=>{N.push({id:_o(),data:$})}),f.splice(W,0,...N),f.forEach(($,j)=>{$.index=j});const K=X();if(x)W<m&&(m+=1,m>f.length&&(m=0)),ee.length===1&&H.forEach($=>{k.value[$]=N[0]}),K!==y&&(y=K);else{const $=()=>{a.value.offsetWidth>w?(y=K,i.value=D(),Je(()=>{o.value=A.value==="left"?0:U()-w,_=0,b=0,L(),x=!0,T(!1,r.step)})):(r.visibleCount===void 0&&(c.value=0),G()),u.value=[]};c.value===0&&r.visibleCount===void 0?O(()=>{$()}):(u.value=f.slice(0,c.value),Je(()=>{$()}))}}oe&&typeof oe=="function"&&oe(f),h=f.length},remove:(W,ee=1,oe)=>{W>=0&&W<f.length&&(f.splice(W,ee),x?(u.value=f.slice(0,c.value),Je(()=>{if(a.value.offsetWidth>w){const N=X();N!==y&&(y=N),i.value=D()}else G();u.value=[]})):G()),oe&&typeof oe=="function"&&oe(f),h=f.length},update:(W,ee,oe)=>{if(W>=0&&W<f.length){const H=[];k.value.forEach((K,$)=>{K.index===W&&H.push($)});const N={id:_o(),index:W,data:ee};f[W]=N,H.length>0&&H.forEach(K=>{k[K]=N})}oe&&typeof oe=="function"&&oe(f)},reset:()=>{Je(()=>{u.value=f.slice(0,c.value),Je(()=>{a.value.offsetWidth>w?i.value[0]==="splice"?(I(),Je(()=>{L()})):(i.value=D(),Je(()=>{L()})):G()})})}}),Et(()=>r.modelValue,W=>{W&&T(!1,r.step)}),Qo(()=>{cancelAnimationFrame(B),n.value&&(n.value.parentElement.removeEventListener("mouseenter",M),n.value.parentElement.removeEventListener("mouseleave",R),n.value.parentElement.removeEventListener("wheel",E))}),{visibleItems:k,offset:o,testList:u,realWrapperRef:n,realWrapperHiddenRef:a}}});function xX(r,e,t,n,a,i){return he(),de(lt,null,[ae("div",_d({class:"vue3-seamless-horizontal-wrapper",ref:"realWrapperRef",style:{transition:`transform ${r.ease}`,transform:`translateX(-${r.offset}px)`}},r.$attrs),[(he(!0),de(lt,null,dt(r.visibleItems,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index,style:"color: brown;"})),128))],16),ae("div",_d({style:{position:"absolute !important",top:"-999999px !important"},ref:"realWrapperHiddenRef"},r.$attrs),[(he(!0),de(lt,null,dt(r.testList,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],16)],64)}var _X=`
.vue3-seamless-horizontal-wrapper[data-v-530d6df5] {
height: 100%;
}
`;xC(_X);_C.render=xX;_C.__scopeId="data-v-530d6df5";_C.__file="packages/HorizontalScroll.vue";var Ll=vt({name:"Vue3SeamlessScroll",emits:["offset","count"],inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!0},list:{type:Array,required:!0},hover:{type:Boolean,default:!1},singleWaitTime:{type:Number,default:1e3},wheel:{type:Boolean,default:!1},singleLine:{type:Boolean,default:!1},step:{type:Number,default:.5},visibleCount:{type:Number},ease:{type:String,default:"cubic-bezier(0.03, 0.76, 1, 0.16)"},direction:{type:String,default:"up"},delay:{type:Number,default:0}},setup(r,{expose:e,emit:t}){const n=Ee(null),a=Ee(null),i=Ee(null),o=Ee([]),s=Ee(0),A=Ee(!1),l=Ee(r.direction),u=rt(()=>r.hover?!A.value&&r.modelValue:r.modelValue),c=Ee([]),f=Ee(r.visibleCount===void 0?0:r.visibleCount),h=Il(r.list);let v=0,d=0,p=0,g=[],y=0,m=0,w=-1,B=0,C=null,b=!1,_=0,x=0,S=!1;const I=rt(()=>l.value==="up"||l.value==="down"?`translateY(-${s.value}px)`:`translateX(-${s.value}px)`),L=()=>{cancelAnimationFrame(C),C=null},T=()=>{const H=w+m;if(H>=h.length){const N=H-h.length,K=["splice",[0,m],[w],[0,N]];o.value=K,N>h.length?w=h.length:w=N}else{const N=["splice",[0,m],[w,H]];o.value=N,w=H}},M=()=>{const H=Array.from(a.value.children);g=(l.value==="up"||l.value==="left"?H.slice(0,m):H.slice(O.value.length-m,O.value.length)).map(K=>l.value==="left"||l.value==="right"?K.offsetWidth:K.offsetHeight),y=g.reduce((K,$)=>K+$,0)},R=()=>{l.value==="up"||l.value==="left"?s.value=0:s.value=X()-B},P=(H,N)=>{if(L(),!S)return;const K=()=>{const $=g[0];let j=!1;_>=$&&(j=!0),j&&(g.shift(),_=0,d+=1),d===v&&(p+=1,t("count",p),d=0),r.singleLine&&j?(b=!0,setTimeout(()=>{b=!1,H||P(!1,r.step)},r.singleWaitTime)):H||P(!1,r.step)};(u.value&&!b||H)&&(C=requestAnimationFrame(()=>{x+=N,_+=N,l.value==="up"||l.value==="left"?s.value+=N:s.value-=N,x>y?(t("offset",m,h),T(),Je(()=>{R(),x=0,M(),K()})):K()}))},E=()=>{A.value=!0},k=()=>{A.value=!1,r.hover&&P(!1,r.step)},D=BC(30,H=>{P(!0,10)}),U=H=>{r.hover&&r.wheel&&(D(H),H.preventDefault(),H.stopPropagation())},O=rt(()=>{let H=[];return o.value.length===0?H=h.slice(0,f.value):o.value[0]==="splice"?(H=l.value==="up"||l.value==="left"?O.value:O.value.reverse(),H.splice(...o.value[1]),o.value.slice(2).forEach(N=>{H.push(...h.slice(...N))})):o.value.slice(1).forEach(N=>{H.push(...h.slice(...N))}),l.value==="up"||l.value==="left"||H.reverse(),CC(H)}),G=()=>{if(w=f.value+m,w>=h.length){const H=w-h.length,N=["slice",[0,w],[0,H]];return H>h.length?w=h.length:w=H,N}else return["slice",[0,w]]},X=()=>Array.from(a.value.children).map(N=>l.value==="left"||l.value==="right"?N.offsetWidth:N.offsetHeight).reduce((N,K)=>N+K,0),te=H=>{r.visibleCount===void 0?(c.value=Il([r.list[0]]),Je(()=>{l.value==="left"||l.value==="right"?f.value=Math.ceil(B/i.value.offsetWidth)+2:f.value=Math.ceil(B/i.value.offsetHeight)+2,c.value=h.slice(0,f.value),Je(()=>{H()})})):(c.value=h.slice(0,f.value),Je(()=>{H()}))};St(()=>{a.value&&(a.value.parentElement.addEventListener("mouseenter",E),a.value.parentElement.addEventListener("mouseleave",k),a.value.parentElement.addEventListener("wheel",U),B=a.value.parentElement.offsetHeight,(l.value==="left"||l.value==="right")&&(B=a.value.parentElement.offsetWidth),te(()=>{let H=i.value.offsetHeight>B;(l.value==="left"||l.value==="right")&&(H=i.value.offsetWidth>B),H?(m=ye(),o.value=G(),Je(()=>{R(),M(),S=!0,setTimeout(()=>{P(!1,r.step)},r.delay)})):ne(),c.value=[]})),v=h.length});const ne=()=>{d=0,p=0,S=!1,m=0,o.value=[],Je(()=>{R(),x=0,_=0})},ye=()=>{let H=h.length-f.value;return H=Math.max(1,H),H=Math.min(5,H),H};return e({add:(H,N,K)=>{if(N&&N.length>0){H>h.length&&(H=h.length),H<0&&(H=0);const $=[];N.length===1&&O.value.forEach((z,q)=>{z.index===H&&$.push(q)});const j=[];N.forEach(z=>{j.push({id:_o(),data:z})}),h.splice(H,0,...j),h.forEach((z,q)=>{z.index=q});const ie=ye();if(S)H<w&&(w+=1,w>h.length&&(w=0)),N.length===1&&$.length>0&&$.forEach(z=>{O[z]=j[0]}),ie!==m&&(m=ie);else{const z=()=>{let q=i.value.offsetHeight>B;(l.value==="left"||l.value==="right")&&(q=i.value.offsetWidth>B),q?(m=ie,o.value=G(),Je(()=>{R(),x=0,_=0,M(),S=!0,P(!1,r.step)})):(r.visibleCount===void 0&&(f.value=0),ne()),c.value=[]};f.value===0&&r.visibleCount===void 0?te(()=>{z()}):(c.value=h.slice(0,f.value),Je(()=>{z()}))}}K&&typeof K=="function"&&K(h),v=h.length},remove:(H,N=1,K)=>{H>=0&&H<h.length&&(h.splice(H,N),S?(c.value=h.slice(0,f.value),Je(()=>{let $=i.value.offsetHeight>B;if((l.value==="left"||l.value==="right")&&($=i.value.offsetWidth>B),$){const j=ye();j!==m&&(m=j),o.value=G()}else ne();c.value=[]})):ne()),K&&typeof K=="function"&&K(h),v=h.length},update:(H,N,K)=>{if(H>=0&&H<h.length){const $=[];O.value.forEach((ie,z)=>{ie.index===H&&$.push(z)});const j={id:_o(),index:H,data:N};h[H]=j,$.length>0&&$.forEach(ie=>{O[ie]=j})}K&&typeof K=="function"&&K(h)},reset:()=>{Je(()=>{c.value=h.slice(0,f.value),Je(()=>{let H=i.value.offsetHeight>B;(l.value==="left"||l.value==="right")&&(H=i.value.offsetWidth>B),H?o.value[0]==="splice"?(T(),Je(()=>{M()})):(o.value=G(),Je(()=>{M()})):ne()})})}}),Et(()=>r.modelValue,H=>{H&&P(!1,r.step)}),Qo(()=>{cancelAnimationFrame(C),a.value&&(a.value.parentElement.removeEventListener("mouseenter",E),a.value.parentElement.removeEventListener("mouseleave",k),a.value.parentElement.removeEventListener("wheel",U))}),{realBoxRef:n,realWrapperRef:a,visibleItems:O,offset:s,testList:c,realWrapperHiddenRef:i,transform:I}}});function SX(r,e,t,n,a,i){return he(),de(lt,null,[ae("div",_d({class:"vue3-seamless-wrapper",ref:"realWrapperRef",style:{transition:`transform ${r.ease}`,transform:r.transform}},r.$attrs),[(he(!0),de(lt,null,dt(r.visibleItems,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],16),ae("div",_d({style:{position:"absolute !important",left:"-999999px !important"},ref:"realWrapperHiddenRef"},r.$attrs),[(he(!0),de(lt,null,dt(r.testList,o=>Ft(r.$slots,"default",{key:o.id,data:o.data,index:o.index})),128))],16)],64)}var TX=`
.vue3-seamless-wrapper[data-v-b156a416] {\r
width: 100%;\r
height: 100%;
}\r
`;xC(TX);Ll.render=SX;Ll.__scopeId="data-v-b156a416";Ll.__file="packages/Vue3SeamlessScroll.vue";const IX=function(r,e={}){r.component(e.name||Ll.name,Ll)};function LX(r){r.use(IX)}const EX={style:{"max-height":"200px",padding:"10px",overflow:"hidden",width:"100%"}},MX={class:"inner_right"},DX={style:{display:"flex","align-items":"center","justify-content":"space-between"}},FX={class:"info"},QX={class:"contents zhuyao doudong"},UX={class:"types doudong typeGreen"},PX={class:"info"},kX={class:"contents",style:{"font-size":"12px"}},RX={class:"info addresswrap"},OX={class:"contents ciyao",style:{"font-size":"12px"}},HX=vt({__name:"left-bottom",setup(r){const e=Ee(!0),t=Ee(1),n=Ee([]);Ee(!0);const a=async()=>{try{n.value=[];const i=await fa("/orderStats/realTimeData");n.value=i}catch{n.value=[]}};return St(()=>{a(),setInterval(()=>{a()},3e4)}),(i,o)=>{const s=ho("dv-loading");return he(),de("div",EX,[n.value.length>0?(he(),Sd(Q(Ll),{key:0,class:"left_boottom_wrap",list:n.value,step:t.value,hover:e.value},{default:Mr(()=>[(he(!0),de(lt,null,dt(n.value,(A,l)=>(he(),de("div",{class:"left_boottom_item",key:l},[ae("div",MX,[o[2]||(o[2]=ae("div",{class:"dibu"},null,-1)),ae("div",DX,[ae("div",FX,[ae("span",QX,Dt(A.phone),1)]),ae("span",UX," ¥"+Dt(A.amount),1)]),ae("div",PX,[o[0]||(o[0]=ae("span",{class:"labels"},"时间:",-1)),ae("span",kX,Dt(A.createTime),1)]),ae("div",RX,[o[1]||(o[1]=ae("span",{class:"labels"},"电站名称:",-1)),ae("span",OX,Dt(A.stationName),1)])])]))),128))]),_:1},8,["list","step","hover"])):(he(),Sd(s,{key:1},{default:Mr(()=>[...o[3]||(o[3]=[uw("Loading...",-1)])]),_:1}))])}}});const Wl=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},NX=Wl(HX,[["__scopeId","data-v-14519b3f"]]);/*! *****************************************************************************
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 Gw=function(r,e){return Gw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},Gw(r,e)};function ce(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Gw(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var VX=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),GX=function(){function r(){this.browser=new VX,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 r}(),Yi=new GX;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Yi.wxa=!0,Yi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Yi.worker=!0:!Yi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Yi.node=!0,Yi.svgSupported=!0):zX(navigator.userAgent,Yi);function zX(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var A=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in A||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in A)&&!("OTransition"in A),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}const st=Yi;var SC=12,dk="sans-serif",Si=SC+"px "+dk,$X=20,KX=100,WX="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function XX(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-$X)/KX;e[n]=a}return e}var YX=XX(WX),ha={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var a=ha.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Si),r.measureText(t);t=t||"",n=n||Si;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||SC,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var A=0;A<t.length;A++){var l=YX[t[A]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},pk=Za(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),gk=Za(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Xl=Object.prototype.toString,vg=Array.prototype,ZX=vg.forEach,jX=vg.filter,TC=vg.slice,JX=vg.map,IS=(function(){}).constructor,bh=IS?IS.prototype:null,IC="__proto__",qX=2311;function yk(){return qX++}function LC(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function De(r){if(r==null||typeof r!="object")return r;var e=r,t=Xl.call(r);if(t==="[object Array]"){if(!Ec(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=De(r[n])}}else if(gk[t]){if(!Ec(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!pk[t]&&!Ec(r)&&!El(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==IC&&(e[o]=De(r[o]))}return e}function Ke(r,e,t){if(!Oe(e)||!Oe(r))return t?De(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==IC){var a=r[n],i=e[n];Oe(i)&&Oe(a)&&!ge(i)&&!ge(a)&&!El(i)&&!El(a)&&!LS(i)&&!LS(a)&&!Ec(i)&&!Ec(a)?Ke(a,i,t):(t||!(n in r))&&(r[n]=De(e[n]))}return r}function EC(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=Ke(t,r[n],e);return t}function ve(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==IC&&(r[t]=e[t]);return r}function Re(r,e,t){for(var n=je(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function $e(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function e7(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function ir(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else Re(r,e,t)}function $r(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function F(r,e,t){if(r&&e)if(r.forEach&&r.forEach===ZX)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function me(r,e,t){if(!r)return[];if(!e)return MC(r);if(r.map&&r.map===JX)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function Za(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function ft(r,e,t){if(!r)return[];if(!e)return MC(r);if(r.filter&&r.filter===jX)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function iA(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function je(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function t7(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(TC.call(arguments)))}}var be=bh&&Me(bh.bind)?bh.call.bind(bh.bind):t7;function ze(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(TC.call(arguments)))}}function ge(r){return Array.isArray?Array.isArray(r):Xl.call(r)==="[object Array]"}function Me(r){return typeof r=="function"}function Ce(r){return typeof r=="string"}function zw(r){return Xl.call(r)==="[object String]"}function qe(r){return typeof r=="number"}function Oe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function LS(r){return!!pk[Xl.call(r)]}function vn(r){return!!gk[Xl.call(r)]}function El(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function dg(r){return r.colorStops!=null}function r7(r){return r.image!=null}function n7(r){return Xl.call(r)==="[object RegExp]"}function zr(r){return r!==r}function Fr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Le(r,e){return r??e}function bn(r,e,t){return r??e??t}function MC(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return TC.apply(r,e)}function pg(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Kr(r,e){if(!r)throw new Error(e)}function Xn(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var mk="__ec_primitive__";function Nd(r){r[mk]=!0}function Ec(r){return r[mk]}var a7=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return je(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),wk=typeof Map=="function";function i7(){return wk?new Map:new a7}var o7=function(){function r(e){var t=ge(e);this.data=i7();var n=this;e instanceof r?e.each(a):e&&F(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return wk?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function Ie(r){return new o7(r)}function Wc(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function gg(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&ve(t,e),t}function Bk(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Se(r,e){return r.hasOwnProperty(e)}function Xt(){}var nd=180/Math.PI;/*! *****************************************************************************
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 $w=function(r,e){return $w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},$w(r,e)};function Mt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$w(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function oA(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Jr(r,e){return r[0]=e[0],r[1]=e[1],r}function wi(r){return[r[0],r[1]]}function DC(r,e,t){return r[0]=e,r[1]=t,r}function ES(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Kw(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Ls(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Ww(r){return Math.sqrt(s7(r))}function s7(r){return r[0]*r[0]+r[1]*r[1]}function ad(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Yl(r,e){var t=Ww(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Xw(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ao=Xw;function A7(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Os=A7;function id(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Yt(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function io(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function oo(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var LA=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),l7=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new LA(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new LA(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,A=this._dropTarget;this._dropTarget=s,t!==s&&(A&&s!==A&&this.handler.dispatchToElement(new LA(A,e),"dragleave",e.event),s&&s!==A&&this.handler.dispatchToElement(new LA(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new LA(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new LA(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}();const u7=l7;var c7=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var A={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,A):i[e].push(A),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,A=0;A<s;A++){var l=a[A];if(!(i&&i.filter&&l.query!=null&&!i.filter(e,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],A=a.length,l=0;l<A;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,t[0]);break;case 2:u.h.call(s,t[0],t[1]);break;default:u.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}();const qn=c7;var f7=Math.log(2);function Yw(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var A=Math.round(Math.log((1<<s)-1&~a)/f7);return r[t][A]}for(var l=n|1<<t,u=t+1;n&1<<u;)u++;for(var c=0,f=0,h=0;f<s;f++){var v=1<<f;v&a||(c+=(h%2?-1:1)*r[t][f]*Yw(r,e-1,u,l,a|v,i),h++)}return i[o]=c,c}function MS(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=Yw(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Yw(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(A,l,u){var c=l*i[6]+u*i[7]+1;A[0]=(l*i[0]+u*i[1]+i[2])/c,A[1]=(l*i[3]+u*i[4]+i[5])/c}}}var Vd="___zrEVENTSAVED",Fy=[];function h7(r,e,t,n,a){return Zw(Fy,e,n,a,!0)&&Zw(r,t,Fy[0],Fy[1])}function v7(r,e){r&&t(r),e&&t(e);function t(n){var a=n[Vd];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Vd])}}function Zw(r,e,t,n,a){if(e.getBoundingClientRect&&st.domSupported&&!Ck(e)){var i=e[Vd]||(e[Vd]={}),o=d7(e,i),s=p7(o,i,a);if(s)return s(r,t,n),!0}return!1}function d7(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,A=i%2,l=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[A]+":0",a[l]+":0",n[1-A]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){F(t,function(u){u.parentNode&&u.parentNode.removeChild(u)})},t}function p7(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],A=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),c=2*l,f=u.left,h=u.top;o.push(f,h),A=A&&i&&f===i[c]&&h===i[c+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return A&&a?a:(e.srcCoords=o,e[n]=t?MS(s,o):MS(o,s))}function Ck(r){return r.nodeName.toUpperCase()==="CANVAS"}var g7=/([&<>"'])/g,y7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Vr(r){return r==null?"":(r+"").replace(g7,function(e,t){return y7[t]})}var m7=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qy=[],w7=st.browser.firefox&&+st.browser.version.split(".")[0]<39;function jw(r,e,t,n){return t=t||{},n?DS(r,e,t):w7&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):DS(r,e,t),t}function DS(r,e,t){if(st.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Ck(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(Zw(Qy,r,n,a)){t.zrX=Qy[0],t.zrY=Qy[1];return}}t.zrX=t.zrY=0}function FC(r){return r||window.event}function kn(r,e,t){if(e=FC(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&jw(r,o,e,t)}else{jw(r,e,e,t);var i=B7(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&m7.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function B7(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Jw(r,e,t,n){r.addEventListener(e,t,n)}function C7(r,e,t,n){r.removeEventListener(e,t,n)}var Ti=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function FS(r){return r.which===2||r.which===3}var b7=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var A=a[o],l=jw(n,A,{});i.points.push([l.zrX,l.zrY]),i.touches.push(A)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in Uy)if(Uy.hasOwnProperty(t)){var n=Uy[t](this._track,e);if(n)return n}},r}();function QS(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function x7(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Uy={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=QS(n)/QS(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=x7(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function xr(){return[1,0,0,1,0,0]}function yg(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function mg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ka(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],A=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=A,r}function ja(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Uo(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],A=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return r[0]=a*c+s*u,r[1]=-a*u+s*c,r[2]=i*c+A*u,r[3]=-i*u+c*A,r[4]=c*(o-n[0])+u*(l-n[1])+n[0],r[5]=c*(l-n[1])-u*(o-n[0])+n[1],r}function QC(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function va(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],A=t*o-i*n;return A?(A=1/A,r[0]=o*A,r[1]=-i*A,r[2]=-n*A,r[3]=t*A,r[4]=(n*s-o*a)*A,r[5]=(i*a-t*s)*A,r):null}function _7(r){var e=xr();return mg(e,r),e}var S7=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r}();const ke=S7;var Es=Math.min,ul=Math.max,qw=Math.abs,US=["x","y"],T7=["width","height"],Vo=new ke,Go=new ke,zo=new ke,$o=new ke,mn=bk(),fc=mn.minTv,e1=mn.maxTv,Mc=[0,0],UC=function(){function r(e,t,n,a){r.set(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=Es(e.x,this.x),n=Es(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ul(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ul(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=xr();return ja(i,i,[-t.x,-t.y]),QC(i,i,[n,a]),ja(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,a){n&&ke.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(I7,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(L7,t.x,t.y,t.width,t.height));var s=!!n;mn.reset(a,s);var A=mn.touchThreshold,l=e.x+A,u=e.x+e.width-A,c=e.y+A,f=e.y+e.height-A,h=t.x+A,v=t.x+t.width-A,d=t.y+A,p=t.y+t.height-A;if(l>u||c>f||h>v||d>p)return!1;var g=!(u<h||v<l||f<d||p<c);return(s||i)&&(Mc[0]=1/0,Mc[1]=0,PS(l,u,h,v,0,s,i,o),PS(c,f,d,p,1,s,i,o),s&&ke.copy(n,g?mn.useDir?mn.dirMinTv:fc:e1)),g},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Vo.x=zo.x=t.x,Vo.y=$o.y=t.y,Go.x=$o.x=t.x+t.width,Go.y=zo.y=t.y+t.height,Vo.transform(n),$o.transform(n),Go.transform(n),zo.transform(n),e.x=Es(Vo.x,Go.x,zo.x,$o.x),e.y=Es(Vo.y,Go.y,zo.y,$o.y);var A=ul(Vo.x,Go.x,zo.x,$o.x),l=ul(Vo.y,Go.y,zo.y,$o.y);e.width=A-e.x,e.height=l-e.y},r}(),I7=new UC(0,0,0,0),L7=new UC(0,0,0,0);function PS(r,e,t,n,a,i,o,s){var A=qw(e-t),l=qw(n-r),u=Es(A,l),c=US[a],f=US[1-a],h=T7[a];e<t||n<r?A<l?(i&&(e1[c]=-A),s&&(o[c]=e,o[h]=0)):(i&&(e1[c]=l),s&&(o[c]=r,o[h]=0)):(o&&(o[c]=ul(r,t),o[h]=Es(e,n)-o[c]),i&&(u<Mc[0]||mn.useDir)&&(Mc[0]=Es(u,Mc[0]),(A<l||!mn.bidirectional)&&(fc[c]=A,fc[f]=0,mn.useDir&&mn.calcDirMTV()),(A>=l||!mn.bidirectional)&&(fc[c]=-l,fc[f]=0,mn.useDir&&mn.calcDirMTV())))}function bk(){var r=0,e=new ke,t=new ke,n={minTv:new ke,maxTv:new ke,useDir:!1,dirMinTv:new ke,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=ul(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,A=Math.sin(r),l=Math.cos(r),u=A*i.y+l*i.x;if(a(u)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(t.x=s*l/u,t.y=s*A/u,a(t.x)&&a(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(i){return qw(i)<1e-10}return n}const Ne=UC;var xk="silent";function E7(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:M7}}function M7(){Ti(this.event)}var D7=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qn),du=function(){function r(e,t){this.x=e,this.y=t}return r}(),F7=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Py=new Ne(0,0,0,0),_k=function(r){Mt(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new du(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new D7,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new u7(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(F(F7,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=Sk(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var A=this._hovered=i?new du(n,a):this.findHover(n,a),l=A.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(A,"mousemove",t),l&&l!==s&&this.dispatchToElement(A,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new du(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=E7(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(A){typeof A[o]=="function"&&A[o].call(A,s),A.trigger&&A.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new du(t,n);if(kS(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],A=this._pointerSize,l=A/2,u=new Ne(t-l,n-l,A,A),c=i.length-1;c>=0;c--){var f=i[c];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Py.copy(f.getBoundingRect()),f.transform&&Py.applyTransform(f.transform),Py.intersect(u)&&s.push(f))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p<l;p+=h)for(var g=0;g<d;g+=v){var y=t+p*Math.cos(g),m=n+p*Math.sin(g);if(kS(s,o,y,m,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new b7);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new du;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(qn);F(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){_k.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=Sk(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||ao(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function Q7(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?xk:!0}return!1}function kS(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=Q7(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==xk)){e.target=o;break}}}function Sk(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}const U7=_k;var Tk=32,pu=7;function P7(r){for(var e=0;r>=Tk;)e|=r&1,r>>=1;return r+e}function RS(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;k7(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function k7(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function OS(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,A;o<s;)A=o+s>>>1,a(i,r[A])<0?s=A:o=A+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=i}}function ky(r,e,t,n,a,i){var o=0,s=0,A=1;if(i(r,e[t+a])>0){for(s=n-a;A<s&&i(r,e[t+a+A])>0;)o=A,A=(A<<1)+1,A<=0&&(A=s);A>s&&(A=s),o+=a,A+=a}else{for(s=a+1;A<s&&i(r,e[t+a-A])<=0;)o=A,A=(A<<1)+1,A<=0&&(A=s);A>s&&(A=s);var l=o;o=a-A,A=a-l}for(o++;o<A;){var u=o+(A-o>>>1);i(r,e[t+u])>0?o=u+1:A=u}return A}function Ry(r,e,t,n,a,i){var o=0,s=0,A=1;if(i(r,e[t+a])<0){for(s=a+1;A<s&&i(r,e[t+a-A])<0;)o=A,A=(A<<1)+1,A<=0&&(A=s);A>s&&(A=s);var l=o;o=a-A,A=a-l}else{for(s=n-a;A<s&&i(r,e[t+a+A])>=0;)o=A,A=(A<<1)+1,A<=0&&(A=s);A>s&&(A=s),o+=a,A+=a}for(o++;o<A;){var u=o+(A-o>>>1);i(r,e[t+u])<0?A=u:o=u+1}return A}function R7(r,e){var t=pu,n,a,i=0,o=[];n=[],a=[];function s(h,v){n[i]=h,a[i]=v,i+=1}function A(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,u(h)}}function u(h){var v=n[h],d=a[h],p=n[h+1],g=a[h+1];a[h]=d+g,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var y=Ry(r[p],r,v,d,0,e);v+=y,d-=y,d!==0&&(g=ky(r[v+d-1],r,p,g,g-1,e),g!==0&&(d<=g?c(v,d,p,g):f(v,d,p,g)))}function c(h,v,d,p){var g=0;for(g=0;g<v;g++)o[g]=r[h+g];var y=0,m=d,w=h;if(r[w++]=r[m++],--p===0){for(g=0;g<v;g++)r[w+g]=o[y+g];return}if(v===1){for(g=0;g<p;g++)r[w+g]=r[m+g];r[w+p]=o[y];return}for(var B=t,C,b,_;;){C=0,b=0,_=!1;do if(e(r[m],o[y])<0){if(r[w++]=r[m++],b++,C=0,--p===0){_=!0;break}}else if(r[w++]=o[y++],C++,b=0,--v===1){_=!0;break}while((C|b)<B);if(_)break;do{if(C=Ry(r[m],o,y,v,0,e),C!==0){for(g=0;g<C;g++)r[w+g]=o[y+g];if(w+=C,y+=C,v-=C,v<=1){_=!0;break}}if(r[w++]=r[m++],--p===0){_=!0;break}if(b=ky(o[y],r,m,p,0,e),b!==0){for(g=0;g<b;g++)r[w+g]=r[m+g];if(w+=b,m+=b,p-=b,p===0){_=!0;break}}if(r[w++]=o[y++],--v===1){_=!0;break}B--}while(C>=pu||b>=pu);if(_)break;B<0&&(B=0),B+=2}if(t=B,t<1&&(t=1),v===1){for(g=0;g<p;g++)r[w+g]=r[m+g];r[w+p]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)r[w+g]=o[y+g]}}function f(h,v,d,p){var g=0;for(g=0;g<p;g++)o[g]=r[d+g];var y=h+v-1,m=p-1,w=d+p-1,B=0,C=0;if(r[w--]=r[y--],--v===0){for(B=w-(p-1),g=0;g<p;g++)r[B+g]=o[g];return}if(p===1){for(w-=v,y-=v,C=w+1,B=y+1,g=v-1;g>=0;g--)r[C+g]=r[B+g];r[w]=o[m];return}for(var b=t;;){var _=0,x=0,S=!1;do if(e(o[m],r[y])<0){if(r[w--]=r[y--],_++,x=0,--v===0){S=!0;break}}else if(r[w--]=o[m--],x++,_=0,--p===1){S=!0;break}while((_|x)<b);if(S)break;do{if(_=v-Ry(o[m],r,h,v,v-1,e),_!==0){for(w-=_,y-=_,v-=_,C=w+1,B=y+1,g=_-1;g>=0;g--)r[C+g]=r[B+g];if(v===0){S=!0;break}}if(r[w--]=o[m--],--p===1){S=!0;break}if(x=p-ky(r[y],o,0,p,p-1,e),x!==0){for(w-=x,m-=x,p-=x,C=w+1,B=m+1,g=0;g<x;g++)r[C+g]=o[B+g];if(p<=1){S=!0;break}}if(r[w--]=r[y--],--v===0){S=!0;break}b--}while(_>=pu||x>=pu);if(S)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(w-=v,y-=v,C=w+1,B=y+1,g=v-1;g>=0;g--)r[C+g]=r[B+g];r[w]=o[m]}else{if(p===0)throw new Error;for(B=w-(p-1),g=0;g<p;g++)r[B+g]=o[g]}}return{mergeRuns:A,forceMergeRuns:l,pushRun:s}}function od(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<Tk){i=RS(r,t,n,e),OS(r,t,n,t+i,e);return}var o=R7(r,e),s=P7(a);do{if(i=RS(r,t,n,e),i<s){var A=a;A>s&&(A=s),OS(r,t,t+A,t+i,e),i=A}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var wn=1,hc=2,il=4,HS=!1;function Oy(){HS||(HS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function NS(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var O7=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=NS}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,od(n,NS)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var A=0;A<t.length;A++)s[o++]=t[A];for(var l=a,u=e;l;)l.parent=u,l.updateTransform(),s[o++]=l,u=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),f=0;f<c.length;f++){var h=c[f];e.__dirty&&(h.__dirty|=wn),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(Oy(),v.z=0),isNaN(v.z2)&&(Oy(),v.z2=0),isNaN(v.zlevel)&&(Oy(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=$e(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const H7=O7;var Ik;Ik=st.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const t1=Ik;var sd={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-sd.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?sd.bounceIn(r*2)*.5:sd.bounceOut(r*2-1)*.5+.5}};const Lk=sd;var xh=Math.pow,go=Math.sqrt,Gd=1e-8,Ek=1e-4,VS=go(3),_h=1/3,ka=oA(),Vn=oA(),wl=oA();function so(r){return r>-Gd&&r<Gd}function Mk(r){return r>Gd||r<-Gd}function dr(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function GS(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function zd(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),A=3*(e-r),l=r-a,u=s*s-3*o*A,c=s*A-9*o*l,f=A*A-3*s*l,h=0;if(so(u)&&so(c))if(so(s))i[0]=0;else{var v=-A/s;v>=0&&v<=1&&(i[h++]=v)}else{var d=c*c-4*u*f;if(so(d)){var p=c/u,v=-s/o+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=go(d),m=u*s+1.5*o*(-c+y),w=u*s+1.5*o*(-c-y);m<0?m=-xh(-m,_h):m=xh(m,_h),w<0?w=-xh(-w,_h):w=xh(w,_h);var v=(-s-(m+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var B=(2*u*s-3*o*c)/(2*go(u*u*u)),C=Math.acos(B)/3,b=go(u),_=Math.cos(C),v=(-s-2*b*_)/(3*o),g=(-s+b*(_+VS*Math.sin(C)))/(3*o),x=(-s+b*(_-VS*Math.sin(C)))/(3*o);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function Dk(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,A=0;if(so(o)){if(Mk(i)){var l=-s/i;l>=0&&l<=1&&(a[A++]=l)}}else{var u=i*i-4*o*s;if(so(u))a[0]=-i/(2*o);else if(u>0){var c=go(u),l=(-i+c)/(2*o),f=(-i-c)/(2*o);l>=0&&l<=1&&(a[A++]=l),f>=0&&f<=1&&(a[A++]=f)}}return A}function So(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,A=(n-t)*a+t,l=(s-o)*a+o,u=(A-s)*a+s,c=(u-l)*a+l;i[0]=r,i[1]=o,i[2]=l,i[3]=c,i[4]=c,i[5]=u,i[6]=A,i[7]=n}function Fk(r,e,t,n,a,i,o,s,A,l,u){var c,f=.005,h=1/0,v,d,p,g;ka[0]=A,ka[1]=l;for(var y=0;y<1;y+=.05)Vn[0]=dr(r,t,a,o,y),Vn[1]=dr(e,n,i,s,y),p=Os(ka,Vn),p<h&&(c=y,h=p);h=1/0;for(var m=0;m<32&&!(f<Ek);m++)v=c-f,d=c+f,Vn[0]=dr(r,t,a,o,v),Vn[1]=dr(e,n,i,s,v),p=Os(Vn,ka),v>=0&&p<h?(c=v,h=p):(wl[0]=dr(r,t,a,o,d),wl[1]=dr(e,n,i,s,d),g=Os(wl,ka),d<=1&&g<h?(c=d,h=g):f*=.5);return u&&(u[0]=dr(r,t,a,o,c),u[1]=dr(e,n,i,s,c)),go(h)}function N7(r,e,t,n,a,i,o,s,A){for(var l=r,u=e,c=0,f=1/A,h=1;h<=A;h++){var v=h*f,d=dr(r,t,a,o,v),p=dr(e,n,i,s,v),g=d-l,y=p-u;c+=Math.sqrt(g*g+y*y),l=d,u=p}return c}function Cr(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function r1(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function V7(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,A=0;if(so(i)){if(Mk(o)){var l=-s/o;l>=0&&l<=1&&(a[A++]=l)}}else{var u=o*o-4*i*s;if(so(u)){var l=-o/(2*i);l>=0&&l<=1&&(a[A++]=l)}else if(u>0){var c=go(u),l=(-o+c)/(2*i),f=(-o-c)/(2*i);l>=0&&l<=1&&(a[A++]=l),f>=0&&f<=1&&(a[A++]=f)}}return A}function Qk(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Xc(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function Uk(r,e,t,n,a,i,o,s,A){var l,u=.005,c=1/0;ka[0]=o,ka[1]=s;for(var f=0;f<1;f+=.05){Vn[0]=Cr(r,t,a,f),Vn[1]=Cr(e,n,i,f);var h=Os(ka,Vn);h<c&&(l=f,c=h)}c=1/0;for(var v=0;v<32&&!(u<Ek);v++){var d=l-u,p=l+u;Vn[0]=Cr(r,t,a,d),Vn[1]=Cr(e,n,i,d);var h=Os(Vn,ka);if(d>=0&&h<c)l=d,c=h;else{wl[0]=Cr(r,t,a,p),wl[1]=Cr(e,n,i,p);var g=Os(wl,ka);p<=1&&g<c?(l=p,c=g):u*=.5}}return A&&(A[0]=Cr(r,t,a,l),A[1]=Cr(e,n,i,l)),go(c)}function G7(r,e,t,n,a,i,o){for(var s=r,A=e,l=0,u=1/o,c=1;c<=o;c++){var f=c*u,h=Cr(r,t,a,f),v=Cr(e,n,i,f),d=h-s,p=v-A;l+=Math.sqrt(d*d+p*p),s=h,A=v}return l}var z7=/cubic-bezier\(([0-9,\.e ]+)\)/;function PC(r){var e=r&&z7.exec(r);if(e){var t=e[1].split(","),n=+Xn(t[0]),a=+Xn(t[1]),i=+Xn(t[2]),o=+Xn(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(A){return A<=0?0:A>=1?1:zd(0,n,i,1,A,s)&&dr(0,a,o,1,s[0])}}}var $7=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Xt,this.ondestroy=e.ondestroy||Xt,this.onrestart=e.onrestart||Xt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var A=a%n;this._startTime=e-A,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Me(e)?e:Lk[e]||PC(e)},r}();const K7=$7;var Pk=function(){function r(e){this.value=e}return r}(),W7=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Pk(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),X7=function(){function r(e){this._list=new W7,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var A=n.head;n.remove(A),delete a[A.key],i=A.value,this._lastRemovedEntry=A}s?s.value=t:s=new Pk(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ml=X7;var zS={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 la(r){return r=Math.round(r),r<0?0:r>255?255:r}function Y7(r){return r=Math.round(r),r<0?0:r>360?360:r}function Yc(r){return r<0?0:r>1?1:r}function Hy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?la(parseFloat(e)/100*255):la(parseInt(e,10))}function yo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Yc(parseFloat(e)/100):Yc(parseFloat(e))}function Ny(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ao(r,e,t){return r+(e-r)*t}function Un(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function n1(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var kk=new Ml(20),Sh=null;function EA(r,e){Sh&&n1(Sh,e),Sh=kk.put(r,Sh||e.slice())}function hn(r,e){if(r){e=e||[];var t=kk.get(r);if(t)return n1(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in zS)return n1(e,zS[n]),EA(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Un(e,0,0,0,1);return}return Un(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),EA(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Un(e,0,0,0,1);return}return Un(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),EA(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var A=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),u=1;switch(A){case"rgba":if(l.length!==4)return l.length===3?Un(e,+l[0],+l[1],+l[2],1):Un(e,0,0,0,1);u=yo(l.pop());case"rgb":if(l.length>=3)return Un(e,Hy(l[0]),Hy(l[1]),Hy(l[2]),l.length===3?u:yo(l[3])),EA(r,e),e;Un(e,0,0,0,1);return;case"hsla":if(l.length!==4){Un(e,0,0,0,1);return}return l[3]=yo(l[3]),a1(l,e),EA(r,e),e;case"hsl":if(l.length!==3){Un(e,0,0,0,1);return}return a1(l,e),EA(r,e),e;default:return}}Un(e,0,0,0,1)}}function a1(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=yo(r[1]),a=yo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],Un(e,la(Ny(o,i,t+1/3)*255),la(Ny(o,i,t)*255),la(Ny(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Z7(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,A,l;if(o===0)A=0,l=0;else{s<.5?l=o/(i+a):l=o/(2-i-a);var u=((i-e)/6+o/2)/o,c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o;e===i?A=f-c:t===i?A=1/3+u-f:n===i&&(A=2/3+c-u),A<0&&(A+=1),A>1&&(A-=1)}var h=[A*360,l,s];return r[3]!=null&&h.push(r[3]),h}}function i1(r,e){var t=hn(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Wa(t,t.length===4?"rgba":"rgb")}}function Vy(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],A=n-a;return t[0]=la(Ao(o[0],s[0],A)),t[1]=la(Ao(o[1],s[1],A)),t[2]=la(Ao(o[2],s[2],A)),t[3]=Yc(Ao(o[3],s[3],A)),t}}function j7(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=hn(e[a]),s=hn(e[i]),A=n-a,l=Wa([la(Ao(o[0],s[0],A)),la(Ao(o[1],s[1],A)),la(Ao(o[2],s[2],A)),Yc(Ao(o[3],s[3],A))],"rgba");return t?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function mo(r,e,t,n){var a=hn(r);if(r)return a=Z7(a),e!=null&&(a[0]=Y7(Me(e)?e(a[0]):e)),t!=null&&(a[1]=yo(Me(t)?t(a[1]):t)),n!=null&&(a[2]=yo(Me(n)?n(a[2]):n)),Wa(a1(a),"rgba")}function $d(r,e){var t=hn(r);if(t&&e!=null)return t[3]=Yc(e),Wa(t,"rgba")}function Wa(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Kd(r,e){var t=hn(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var $S=new Ml(100);function o1(r){if(Ce(r)){var e=$S.get(r);return e||(e=i1(r,-.1),$S.put(r,e)),e}else if(dg(r)){var t=ve({},r);return t.colorStops=me(r.colorStops,function(n){return{offset:n.offset,color:i1(n.color,-.1)}}),t}return r}var Wd=Math.round;function Zc(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=hn(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var KS=1e-4;function lo(r){return r<KS&&r>-KS}function Th(r){return Wd(r*1e3)/1e3}function s1(r){return Wd(r*1e4)/1e4}function J7(r){return"matrix("+Th(r[0])+","+Th(r[1])+","+Th(r[2])+","+Th(r[3])+","+s1(r[4])+","+s1(r[5])+")"}var q7={left:"start",right:"end",center:"middle",middle:"middle"};function e9(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function t9(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function r9(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Rk(r){return r&&!!r.image}function n9(r){return r&&!!r.svgElement}function kC(r){return Rk(r)||n9(r)}function Ok(r){return r.type==="linear"}function Hk(r){return r.type==="radial"}function Nk(r){return r&&(r.type==="linear"||r.type==="radial")}function wg(r){return"url(#"+r+")"}function Vk(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Gk(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*nd,a=Le(r.scaleX,1),i=Le(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,A=[];return(e||t)&&A.push("translate("+e+"px,"+t+"px)"),n&&A.push("rotate("+n+")"),(a!==1||i!==1)&&A.push("scale("+a+","+i+")"),(o||s)&&A.push("skew("+Wd(o*nd)+"deg, "+Wd(s*nd)+"deg)"),A.join(" ")}var a9=function(){return st.hasGlobalWindow&&Me(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),A1=Array.prototype.slice;function vi(r,e,t){return(e-r)*t+r}function Gy(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=vi(e[i],t[i],n);return r}function i9(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=vi(e[o][s],t[o][s],n)}return r}function Ih(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function WS(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function o9(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function s9(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var A=i;A<o;A++)n.push(t===1?a[A]:A1.call(a[A]))}for(var l=n[0]&&n[0].length,A=0;A<n.length;A++)if(t===1)isNaN(n[A])&&(n[A]=a[A]);else for(var u=0;u<l;u++)isNaN(n[A][u])&&(n[A][u]=a[A][u])}}function Dc(r){if($r(r)){var e=r.length;if($r(r[0])){for(var t=[],n=0;n<e;n++)t.push(A1.call(r[n]));return t}return A1.call(r)}return r}function Ad(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function A9(r){return $r(r&&r[0])?2:1}var Lh=0,ld=1,zk=2,vc=3,l1=4,u1=5,XS=6;function YS(r){return r===l1||r===u1}function Eh(r){return r===ld||r===zk}var gu=[0,0,0,0],l9=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=XS,A=t;if($r(t)){var l=A9(t);s=l,(l===1&&!qe(t[0])||l===2&&!qe(t[0][0]))&&(o=!0)}else if(qe(t)&&!zr(t))s=Lh;else if(Ce(t))if(!isNaN(+t))s=Lh;else{var u=hn(t);u&&(A=u,s=vc)}else if(dg(t)){var c=ve({},A);c.colorStops=me(t.colorStops,function(h){return{offset:h.offset,color:hn(h.color)}}),Ok(t)?s=l1:Hk(t)&&(s=u1),A=c}i===0?this.valType=s:(s!==this.valType||s===XS)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:A,rawValue:t,percent:0};return n&&(f.easing=n,f.easingFunc=Me(n)?n:Lk[n]||PC(n)),a.push(f),f},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,A=Eh(a),l=YS(a),u=0;u<i;u++){var c=n[u],f=c.value,h=o.value;c.percent=c.time/e,s||(A&&u!==i-1?s9(f,h,a):l&&o9(f.colorStops,h.colorStops))}if(!s&&a!==u1&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var v=n[0].value,u=0;u<i;u++)a===Lh?n[u].additiveValue=n[u].value-v:a===vc?n[u].additiveValue=Ih([],n[u].value,v,-1):Eh(a)&&(n[u].additiveValue=a===ld?Ih([],n[u].value,v,-1):WS([],n[u].value,v,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,A=this.propName,l=i===vc,u,c=this._lastFr,f=Math.min,h,v;if(s===1)h=v=o[0];else{if(t<0)u=0;else if(t<this._lastFrP){var d=f(c+1,s-1);for(u=d;u>=0&&!(o[u].percent<=t);u--);u=f(u,s-2)}else{for(u=c;u<s&&!(o[u].percent>t);u++);u=f(u-1,s-2)}v=o[u+1],h=o[u]}if(h&&v){this._lastFr=u,this._lastFrP=t;var p=v.percent-h.percent,g=p===0?1:f((t-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?gu:e[A];if((Eh(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)e[A]=g<1?h.rawValue:v.rawValue;else if(Eh(i))i===ld?Gy(y,h[a],v[a],g):i9(y,h[a],v[a],g);else if(YS(i)){var m=h[a],w=v[a],B=i===l1;e[A]={type:B?"linear":"radial",x:vi(m.x,w.x,g),y:vi(m.y,w.y,g),colorStops:me(m.colorStops,function(b,_){var x=w.colorStops[_];return{offset:vi(b.offset,x.offset,g),color:Ad(Gy([],b.color,x.color,g))}}),global:w.global},B?(e[A].x2=vi(m.x2,w.x2,g),e[A].y2=vi(m.y2,w.y2,g)):e[A].r=vi(m.r,w.r,g)}else if(l)Gy(y,h[a],v[a],g),n||(e[A]=Ad(y));else{var C=vi(h[a],v[a],g);n?this._additiveValue=C:e[A]=C}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===Lh?e[n]=e[n]+a:t===vc?(hn(e[n],gu),Ih(gu,gu,a,1),e[n]=Ad(gu)):t===ld?Ih(e[n],e[n],a,1):t===zk&&WS(e[n],e[n],a,1)},r}(),RC=function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){LC("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,je(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],A=i[s];if(!A){A=i[s]=new l9(s);var l=void 0,u=this._getAdditiveTrack(s);if(u){var c=u.keyframes,f=c[c.length-1];l=f&&f.value,u.valType===vc&&l&&(l=Ad(l))}else l=this._target[s];if(l==null)continue;e>0&&A.addKeyframe(0,Dc(l),a),this._trackKeys.push(s)}A.addKeyframe(e,Dc(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],A=this._getAdditiveTrack(o),l=s.keyframes,u=l.length;if(s.prepare(a,A),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=l[u-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new K7({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var v=t._additiveAnimators;if(v){for(var d=!1,p=0;p<v.length;p++)if(v[p]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(t._target,h);var g=t._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return me(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,A=s[n?0:s.length-1];A&&(e[i]=Dc(A.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||je(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function cl(){return new Date().getTime()}var u9=function(r){Mt(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=cl()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(t1(n),!t._paused&&t.update())}t1(n)},e.prototype.start=function(){this._running||(this._time=cl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=cl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=cl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new RC(t,n.loop);return this.addAnimator(a),a},e}(qn);const c9=u9;var f9=300,zy=st.domSupported,$y=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=me(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}}(),ZS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jS=!1;function c1(r){var e=r.pointerType;return e==="pen"||e==="touch"}function h9(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Ky(r){r&&(r.zrByTouch=!0)}function v9(r,e){return kn(r.dom,new d9(r,e),!0)}function $k(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var d9=function(){function r(e,t){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),aa={mousedown:function(r){r=kn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=kn(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=kn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=kn(this.dom,r);var e=r.toElement||r.relatedTarget;$k(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){jS=!0,r=kn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){jS||(r=kn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=kn(this.dom,r),Ky(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),aa.mousemove.call(this,r),aa.mousedown.call(this,r)},touchmove:function(r){r=kn(this.dom,r),Ky(r),this.handler.processGesture(r,"change"),aa.mousemove.call(this,r)},touchend:function(r){r=kn(this.dom,r),Ky(r),this.handler.processGesture(r,"end"),aa.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<f9&&aa.click.call(this,r)},pointerdown:function(r){aa.mousedown.call(this,r)},pointermove:function(r){c1(r)||aa.mousemove.call(this,r)},pointerup:function(r){aa.mouseup.call(this,r)},pointerout:function(r){c1(r)||aa.mouseout.call(this,r)}};F(["click","dblclick","contextmenu"],function(r){aa[r]=function(e){e=kn(this.dom,e),this.trigger(r,e)}});var f1={pointermove:function(r){c1(r)||f1.mousemove.call(this,r)},pointerup:function(r){f1.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function p9(r,e){var t=e.domHandlers;st.pointerEventsSupported?F($y.pointer,function(n){ud(e,n,function(a){t[n].call(r,a)})}):(st.touchEventsSupported&&F($y.touch,function(n){ud(e,n,function(a){t[n].call(r,a),h9(e)})}),F($y.mouse,function(n){ud(e,n,function(a){a=FC(a),e.touching||t[n].call(r,a)})}))}function g9(r,e){st.pointerEventsSupported?F(ZS.pointer,t):st.touchEventsSupported||F(ZS.mouse,t);function t(n){function a(i){i=FC(i),$k(r,i.target)||(i=v9(r,i),e.domHandlers[n].call(r,i))}ud(e,n,a,{capture:!0})}}function ud(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Jw(r.domTarget,e,t,n)}function Wy(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&C7(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var JS=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),y9=function(r){Mt(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new JS(t,aa),zy&&(a._globalHandlerScope=new JS(document,f1)),p9(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Wy(this._localHandlerScope),zy&&Wy(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,zy&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?g9(this,n):Wy(n)}},e}(qn);const m9=y9;var Kk=1;st.hasGlobalWindow&&(Kk=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xd=Kk,h1=.4,v1="#333",d1="#ccc",w9="#eee",qS=yg,eT=5e-5;function Ko(r){return r>eT||r<-eT}var Wo=[],MA=[],Xy=xr(),Yy=Math.abs,B9=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ko(this.rotation)||Ko(this.x)||Ko(this.y)||Ko(this.scaleX-1)||Ko(this.scaleY-1)||Ko(this.skewX)||Ko(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(qS(n),this.invTransform=null);return}n=n||xr(),t?this.getLocalTransform(n):qS(n),e&&(t?Ka(n,e,n):mg(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Wo);var n=Wo[0]<0?-1:1,a=Wo[1]<0?-1:1,i=((Wo[0]-n)*t+n)/Wo[0]||0,o=((Wo[1]-a)*t+a)/Wo[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xr(),va(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||xr(),Ka(MA,e.invTransform,t),t=MA);var n=this.originX,a=this.originY;(n||a)&&(Xy[4]=n,Xy[5]=a,Ka(MA,t,Xy),MA[4]-=n,MA[5]-=a,t=MA),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&Yt(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&Yt(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Yy(e[0]-1)>1e-10&&Yy(e[3]-1)>1e-10?Math.sqrt(Yy(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Yd(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,A=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||A){var v=n+s,d=a+A;t[4]=-v*i-f*d*o,t[5]=-d*o-h*v*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,l&&Uo(t,t,l),t[4]+=n+u,t[5]+=a+c,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Ja=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yd(r,e){for(var t=0;t<Ja.length;t++){var n=Ja[t];r[n]=e[n]}}const gi=B9;function Xa(r){Mh||(Mh=new Ml(100)),r=r||Si;var e=Mh.get(r);return e||(e={font:r,strWidthCache:new Ml(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ha.measureText("国",r).width,asciiCharWidth:ha.measureText("a",r).width},Mh.put(r,e)),e}var Mh;function C9(r){if(!(Zy>=tT)){r=r||Si;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=ha.measureText(String.fromCharCode(n),r).width;var a=+new Date-t;return a>16?Zy=tT:a>2&&Zy++,e}}var Zy=0,tT=5;function Wk(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=C9(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ya(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=ha.measureText(e,r.font).width,t.put(e,n)),n}function rT(r,e,t,n){var a=Ya(Xa(e),r),i=Ff(e),o=Dl(0,a,t),s=Hs(0,i,n),A=new Ne(o,s,a,i);return A}function Bg(r,e,t,n){var a=((r||"")+"").split(`
`),i=a.length;if(i===1)return rT(a[0],e,t,n);for(var o=new Ne(0,0,0,0),s=0;s<a.length;s++){var A=rT(a[s],e,t,n);s===0?o.copy(A):o.union(A)}return o}function Dl(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function Hs(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function Ff(r){return Xa(r).stWideCharWidth}function da(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Zd(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,A=t.x,l=t.y,u="left",c="top";if(n instanceof Array)A+=da(n[0],t.width),l+=da(n[1],t.height),u=null,c=null;else switch(n){case"left":A-=a,l+=s,u="right",c="middle";break;case"right":A+=a+o,l+=s,c="middle";break;case"top":A+=o/2,l-=a,u="center",c="bottom";break;case"bottom":A+=o/2,l+=i+a,u="center";break;case"inside":A+=o/2,l+=s,u="center",c="middle";break;case"insideLeft":A+=a,l+=s,c="middle";break;case"insideRight":A+=o-a,l+=s,u="right",c="middle";break;case"insideTop":A+=o/2,l+=a,u="center";break;case"insideBottom":A+=o/2,l+=i-a,u="center",c="bottom";break;case"insideTopLeft":A+=a,l+=a;break;case"insideTopRight":A+=o-a,l+=a,u="right";break;case"insideBottomLeft":A+=a,l+=i-a,c="bottom";break;case"insideBottomRight":A+=o-a,l+=i-a,u="right",c="bottom";break}return r=r||{},r.x=A,r.y=l,r.align=u,r.verticalAlign=c,r}var jy="__zr_normal__",Jy=Ja.concat(["ignore"]),b9=Za(Ja,function(r,e){return r[e]=!0,r},{ignore:!1}),DA={},x9=new Ne(0,0,0,0),Dh=[],OC=function(){function r(e){this.id=yk(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,A=!1;i.parent=a?this:null;var l=!1;i.copyTransform(t);var u=n.position!=null,c=n.autoOverflowArea,f=void 0;if((c||u)&&(f=x9,n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(DA,n,f):Zd(DA,n,f),i.x=DA.x,i.y=DA.y,o=DA.align,s=DA.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=f.width*.5,d=f.height*.5):(v=da(h[0],f.width),d=da(h[1],f.height)),l=!0,i.originX=-i.x+v+(a?0:f.x),i.originY=-i.y+d+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new Ne(0,0,0,0);i.getLocalTransform(Dh),va(Dh,Dh),Ne.copy(y,f),y.applyTransform(Dh)}else g.overflowRect=null;var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,w=void 0,B=void 0,C=void 0;m&&this.canBeInsideText()?(w=n.insideFill,B=n.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(B==null||B==="auto")&&(B=this.getInsideTextStroke(w),C=!0)):(w=n.outsideFill,B=n.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(B==null||B==="auto")&&(B=this.getOutsideStroke(w),C=!0)),w=w||"#000",(w!==g.fill||B!==g.stroke||C!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(A=!0,g.fill=w,g.stroke=B,g.autoStroke=C,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=wn,A&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?d1:v1},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&hn(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Wa(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},ve(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Oe(e))for(var n=e,a=je(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==jy)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Jy)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(jy,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===jy,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,A=this.stateTransition;if(!($e(s,e)>=0&&(t||s.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i){LC("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&A&&A.duration>0,A);var c=this._textContent,f=this._textGuide;return c&&c.useState(e,t,n,u),f&&f.useState(e,t,n,u),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wn),l}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var A=0;A<o;A++)if(e[A]!==i[A]){s=!1;break}}if(s)return;for(var A=0;A<o;A++){var l=e[A],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&a.push(u)}var c=a[o-1],f=!!(c&&c.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&v&&v.duration>0,v);var d=this._textContent,p=this._textGuide;d&&d.useStates(e,t,f),p&&p.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wn)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=$e(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=$e(a,e),o=$e(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a<e.length;a++){var i=e[a];ve(t,i),i.textConfig&&(n=n||{},ve(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){var s=!(t&&a);t&&t.textConfig?(this.textConfig=ve({},a?this.textConfig:n.textConfig),ve(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var A={},l=!1,u=0;u<Jy.length;u++){var c=Jy[u],f=i&&b9[c];t&&t[c]!=null?f?(l=!0,A[c]=t[c]):this[c]=t[c]:s&&n[c]!=null&&(f?(l=!0,A[c]=n[c]):this[c]=n[c])}if(!i)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(t||n)[v]:t||n)}l&&this._transitionState(e,A,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new gi,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ve(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=wn;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this,i=new RC(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=$e(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){qy(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){qy(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=qy(this,t,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=wn;function t(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var A=this[a]=[];s(this,A)}return this[a]},set:function(A){this[i]=A[0],this[o]=A[1],this[a]=A,s(this,A)}});function s(A,l){Object.defineProperty(l,0,{get:function(){return A[i]},set:function(u){A[i]=u}}),Object.defineProperty(l,1,{get:function(){return A[o]},set:function(u){A[o]=u}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();ir(OC,qn);ir(OC,gi);function qy(r,e,t,n,a){t=t||{};var i=[];Xk(r,"",r,e,t,n,i,a);var o=i.length,s=!1,A=t.done,l=t.aborted,u=function(){s=!0,o--,o<=0&&(s?A&&A():l&&l())},c=function(){o--,o<=0&&(s?A&&A():l&&l())};o||A&&A(),i.length>0&&t.during&&i[0].during(function(v,d){t.during(d)});for(var f=0;f<i.length;f++){var h=i[f];u&&h.done(u),c&&h.aborted(c),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function em(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function _9(r){return $r(r[0])}function S9(r,e,t){if($r(e[t]))if($r(r[t])||(r[t]=[]),vn(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),em(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(_9(a))for(var s=a[0].length,A=0;A<o;A++)i[A]?em(i[A],a[A],s):i[A]=Array.prototype.slice.call(a[A]);else em(i,a,o);i.length=a.length}else r[t]=e[t]}function T9(r,e){return r===e||$r(r)&&$r(e)&&I9(r,e)}function I9(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function Xk(r,e,t,n,a,i,o,s){for(var A=je(n),l=a.duration,u=a.delay,c=a.additive,f=a.setToFinal,h=!Oe(i),v=r.animators,d=[],p=0;p<A.length;p++){var g=A[p],y=n[g];if(y!=null&&t[g]!=null&&(h||i[g]))if(Oe(y)&&!$r(y)&&!dg(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}Xk(r,g,t[g],y,a,i&&i[g],o,s)}else d.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),d.push(g))}var m=d.length;if(!c&&m)for(var w=0;w<v.length;w++){var B=v[w];if(B.targetName===e){var C=B.stopTracks(d);if(C){var b=$e(v,B);v.splice(b,1)}}}if(a.force||(d=ft(d,function(I){return!T9(n[I],t[I])}),m=d.length),m>0||a.force&&!o.length){var _=void 0,x=void 0,S=void 0;if(s){x={},f&&(_={});for(var w=0;w<m;w++){var g=d[w];x[g]=t[g],f?_[g]=n[g]:t[g]=n[g]}}else if(f){S={};for(var w=0;w<m;w++){var g=d[w];S[g]=Dc(t[g]),S9(t,n,g)}}var B=new RC(t,!1,!1,c?ft(v,function(L){return L.targetName===e}):null);B.targetName=e,a.scope&&(B.scope=a.scope),f&&_&&B.whenWithKeys(0,_,d),S&&B.whenWithKeys(0,S,d),B.whenWithKeys(l??500,s?x:n,d).delay(u||0),r.addAnimator(B,e),o.push(B)}}const Yk=OC;var Zk=function(r){Mt(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=$e(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=$e(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new Ne(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var A=a[s];if(!(A.ignore||A.invisible)){var l=A.getBoundingRect(),u=A.getLocalTransform(i);u?(Ne.applyTransform(n,l,u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},e}(Yk);Zk.prototype.type="group";const Fe=Zk;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var cd={},jk={};function L9(r){delete jk[r]}function E9(r){if(!r)return!1;if(typeof r=="string")return Kd(r,1)<h1;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=Kd(e[a].color,1);return t/=n,t<h1}return!1}var M9=function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new H7,o=n.renderer||"canvas";cd[o]||(o=je(cd)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new cd[o](t,i,n,e),A=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var l=!st.node&&!st.worker&&!A?new m9(s.getViewportRoot(),s.root):null,u=n.useCoarsePointer,c=u==null||u==="auto"?st.touchEventsSupported:!!u,f=44,h;c&&(h=Le(n.pointerSize,f)),this.handler=new U7(i,s,l,s.root,h),this.animation=new c9({stage:{update:A?null:function(){return a._flush(!0)}}}),A||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=E9(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=cl();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=cl();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Fe&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,L9(this.id))},r}();function nT(r,e){var t=new M9(yk(),r,e);return jk[t.id]=t,t}function D9(r,e){cd[r]=e}var p1;function F9(r){if(typeof p1=="function")return p1(r)}function Q9(r){p1=r}var aT=1e-4,Jk=20;function U9(r){return r.replace(/^\s+|\s+$/g,"")}var xn=Math.min,Wt=Math.max,Ha=Math.abs;function ct(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],A=i-a,l=s-o;if(A===0)return l===0?o:(o+s)/2;if(n)if(A>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/A*l+o}var Be=P9;function P9(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return jd(r,e,t)}function jd(r,e,t){return Ce(r)?U9(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function er(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Jk),r=(+r).toFixed(e),t?r:+r}function Yn(r){return r.sort(function(e,t){return e-t}),r}function Na(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return k9(r)}function k9(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function qk(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(Ha(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function R9(r,e){var t=Za(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=me(r,function(h){return(isNaN(h)?0:h)/t*n*100}),i=n*100,o=me(a,function(h){return Math.floor(h)}),s=Za(o,function(h,v){return h+v},0),A=me(a,function(h,v){return h-o[v]});s<i;){for(var l=Number.NEGATIVE_INFINITY,u=null,c=0,f=A.length;c<f;++c)A[c]>l&&(l=A[c],u=c);++o[u],A[u]=0,++s}return me(o,function(h){return h/n})}function O9(r,e){var t=Math.max(Na(r),Na(e)),n=r+e;return t>Jk?n:er(n,t)}var iT=9007199254740991;function eR(r){var e=Math.PI*2;return(r%e+e)%e}function jc(r){return r>-aT&&r<aT}var H9=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function sA(r){if(r instanceof Date)return r;if(Ce(r)){var e=H9.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function N9(r){return Math.pow(10,HC(r))}function HC(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function tR(r,e){var t=HC(r),n=Math.pow(10,t),a=r/n,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function tm(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function oT(r){r.sort(function(A,l){return s(A,l,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(A,l,u){return A.interval[u]<l.interval[u]||A.interval[u]===l.interval[u]&&(A.close[u]-l.close[u]===(u?-1:1)||!u&&s(A,l,1))}}function Ii(r){var e=parseFloat(r);return e==r&&(e!==0||!Ce(r)||r.indexOf("x")<=0)?e:NaN}function rR(r){return!isNaN(Ii(r))}function nR(){return Math.round(Math.random()*9)}function aR(r,e){return e===0?r:aR(e,r%e)}function sT(r,e){return r==null?e:e==null?r:r*e/aR(r,e)}var V9="[ECharts] ",AT={},G9=typeof console<"u"&&console.warn&&console.log;function z9(r,e,t){if(G9){if(t){if(AT[e])return;AT[e]=!0}console[r](V9+e)}}function iR(r,e){z9("error",r,e)}function At(r){throw new Error(r)}function lT(r,e,t){return(e-r)*t+r}var oR="series\0",sR="\0_ec_\0";function gt(r){return r instanceof Array?r:r==null?[]:[r]}function Zs(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var uT=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Zl(r){return Oe(r)&&!ge(r)&&!(r instanceof Date)?r.value:r}function $9(r){return Oe(r)&&!(r instanceof Array)}function AR(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Ie();F(e,function(A,l){if(!Oe(A)){e[l]=null;return}});var s=K9(r,o,t);return(n||a)&&W9(s,r,o,e),n&&X9(s,e),n||a?Y9(s,e,a):i&&Z9(s,e),j9(s),s}function K9(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||Jc(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function W9(r,e,t,n){F(n,function(a,i){if(!(!a||a.id==null)){var o=Fc(a.id),s=t.get(o);if(s!=null){var A=r[s];Kr(!A.newOption,'Duplicated option on id "'+o+'".'),A.newOption=a,A.existing=e[s],n[i]=null}}})}function X9(r,e){F(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!Jc(t)&&!Jc(i)&&lR("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function Y9(r,e,t){F(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Jc(a.existing)||a.existing&&n.id!=null&&!lR("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function Z9(r,e){F(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function j9(r){var e=Ie();F(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),F(r,function(t){var n=t.newOption;Kr(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),F(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(Oe(i)){if(o.name=i.name!=null?Fc(i.name):a?a.name:oR+n,a)o.id=Fc(a.id);else if(i.id!=null)o.id=Fc(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function lR(r,e,t){var n=Ar(e[r],null),a=Ar(t[r],null);return n!=null&&a!=null&&n===a}function Fc(r){return Ar(r,"")}function Ar(r,e){return r==null?e:Ce(r)?r:qe(r)||zw(r)?r+"":e}function NC(r){var e=r.name;return!!(e&&e.indexOf(oR))}function Jc(r){return r&&r.id!=null&&Fc(r.id).indexOf(sR)===0}function J9(r){return sR+r}function q9(r,e,t){F(r,function(n){var a=n.newOption;Oe(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=eY(e,a,n.existing,t))})}function eY(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function tY(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,A){for(var l=0,u=o.length;l<u;l++){var c=Ar(o[l].seriesId,null);if(c==null)return;for(var f=gt(o[l].dataIndex),h=A&&A[c],v=0,d=f.length;v<d;v++){var p=f[v];h&&h[p]?h[p]=null:(s[c]||(s[c]={}))[p]=1}}}function i(o,s){var A=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)A.push(+l);else{var u=i(o[l],!0);u.length&&A.push({seriesId:l,dataIndex:u})}return A}}function js(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ge(e.dataIndex)?me(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ge(e.name)?me(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ye(){var r="__ec_inner_"+rY++;return function(e){return e[r]||(e[r]={})}}var rY=nR();function Bl(r,e,t){var n=VC(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,A=t?t.defaultMainType:null;return!a&&A&&i.set(A,{}),i.each(function(l,u){var c=jl(r,u,l,{useDefault:A===u,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[u+"Models"]=c.models,s[u+"Model"]=c.models[0]}),s}function VC(r,e){var t;if(Ce(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=Ie(),i={},o=!1;return F(t,function(s,A){if(A==="dataIndex"||A==="dataIndexInside"){i[A]=s;return}var l=A.match(/^(\w+)(Index|Id|Name)$/)||[],u=l[1],c=(l[2]||"").toLowerCase();if(!(!u||!c||e&&e.includeMainTypes&&$e(e.includeMainTypes,u)<0)){o=o||!!u;var f=a.get(u)||a.set(u,{});f[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var zt={useDefault:!0,enableAll:!1,enableNone:!1},nY={useDefault:!1,enableAll:!0,enableNone:!0};function jl(r,e,t,n){n=n||zt;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var A=void 0;return s.models=n.useDefault&&(A=r.getComponent(e))?[A]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s}function uR(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function aY(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function iY(r){return r==="auto"?st.domSupported?"html":"richText":r||"html"}function g1(r,e){var t=Ie(),n=[];return F(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function cR(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(qe(n)){var o=lT(t||0,n,a);return er(o,i?Math.max(Na(t||0),Na(n)):e)}else{if(Ce(n))return a<1?t:n;for(var s=[],A=t,l=n,u=Math.max(A?A.length:0,l.length),c=0;c<u;++c){var f=r.getDimensionInfo(c);if(f&&f.type==="ordinal")s[c]=(a<1&&A?A:l)[c];else{var h=A&&A[c]?A[c]:0,v=l[c],o=lT(h,v,a);s[c]=er(o,i?Math.max(Na(h),Na(v)):e)}}return s}}var wo=function(){function r(){}return r.prototype.reset=function(e,t,n,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=n??(a>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function rm(r){r.option=r.parentModel=r.ecModel=null}var oY=".",Xo="___EC__COMPONENT__CONTAINER___",fR="___EC__EXTENDED_CLASS___";function Va(r){var e={main:"",sub:""};if(r){var t=r.split(oY);e.main=t[0]||"",e.sub=t[1]||""}return e}function sY(r){Kr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function AY(r){return!!(r&&r[fR])}function GC(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return lY(n)?a=function(i){ce(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(t.$constructor||n).apply(this,arguments)},e7(a,this)),ve(a.prototype,t),a[fR]=!0,a.extend=this.extend,a.superCall=fY,a.superApply=hY,a.superClass=n,a}}function lY(r){return Me(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function hR(r,e){r.extend=e.extend}var uY=Math.round(Math.random()*10);function cY(r){var e=["__\0is_clz",uY++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function fY(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function hY(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Cg(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){sY(a),n.prototype.type=a;var i=Va(a);if(!i.sub)e[i.main]=n;else if(i.sub!==Xo){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[Xo]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=Va(n),i=[],o=e[a.main];return o&&o[Xo]?F(o,function(s,A){A!==Xo&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=Va(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return F(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=Va(n),i=e[a.main];return i&&i[Xo]};function t(n){var a=e[n.main];return(!a||!a[Xo])&&(a=e[n.main]={},a[Xo]=!0),a}}function Js(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var A=r[s][1];if(!(a&&$e(a,A)>=0||i&&$e(i,A)<0)){var l=n.getShallow(A,e);l!=null&&(o[r[s][0]]=l)}}return o}}var vY=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dY=Js(vY),pY=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return dY(this,e,t)},r}(),y1=new Ml(50);function gY(r){if(typeof r=="string"){var e=y1.get(r);return e&&e.image}else return r}function zC(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=y1.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!bg(e)&&i.pending.push(o)):(e=ha.loadImage(r,cT,cT),e.__zrImageSrc=r,y1.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function cT(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function bg(r){return r&&r.width&&r.height}var nm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yY(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
`);i=vR(t,n,a,i);for(var s=!1,A={},l=0,u=o.length;l<u;l++)dR(A,o[l],i),o[l]=A.textLine,s=s||A.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function vR(r,e,t,n){n=n||{};var a=ve({},n);t=Le(t,"..."),a.maxIterations=Le(n.maxIterations,2);var i=a.minChar=Le(n.minChar,0),o=a.fontMeasureInfo=Xa(e),s=o.asciiCharWidth;a.placeholder=Le(n.placeholder,"");for(var A=r=Math.max(0,r-1),l=0;l<i&&A>=s;l++)A-=s;var u=Ya(o,t);return u>A&&(t="",u=0),A=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=A,a.containerWidth=r,a}function dR(r,e,t){var n=t.containerWidth,a=t.contentWidth,i=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Ya(i,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var A=s===0?mY(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,A),o=Ya(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function mY(r,e,t){for(var n=0,a=0,i=r.length;a<i&&n<e;a++)n+=Wk(t,r.charCodeAt(a));return a}function wY(r,e,t,n){var a=$C(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,A=o?o[0]+o[2]:0,l=e.font,u=i==="truncate",c=Ff(l),f=Le(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&t!=null&&(d=t-s);var p=e.height;p==null&&n!=null&&(p=n-A);var g;d!=null&&(i==="break"||i==="breakAll")?g=a?pR(a,e.font,d,i==="breakAll",0).lines:[]:g=a?a.split(`
`):[];var y=g.length*f;if(p==null&&(p=y),y>p&&h){var m=Math.floor(p/f);v=v||g.length>m,g=g.slice(0,m),y=g.length*f}if(a&&u&&d!=null)for(var w=vR(d,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),B={},C=0;C<g.length;C++)dR(B,g[C],w),g[C]=B.textLine,v=v||B.isTruncated;for(var b=p,_=0,x=Xa(l),C=0;C<g.length;C++)_=Math.max(Ya(x,g[C]),_);d==null&&(d=_);var S=d;return b+=A,S+=s,{lines:g,height:p,outerWidth:S,outerHeight:b,lineHeight:f,calculatedLineHeight:c,contentWidth:_,contentHeight:y,width:d,isTruncated:v}}var BY=function(){function r(){}return r}(),fT=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),CY=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function bY(r,e,t,n,a){var i=new CY,o=$C(r);if(!o)return i;var s=e.padding,A=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=e.width;u==null&&t!=null&&(u=t-A);var c=e.height;c==null&&n!=null&&(c=n-l);for(var f=e.overflow,h=(f==="break"||f==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:f==="breakAll"}:null,v=nm.lastIndex=0,d;(d=nm.exec(o))!=null;){var p=d.index;p>v&&am(i,o.substring(v,p),e,h),am(i,d[2],e,h,d[1]),v=nm.lastIndex}v<o.length&&am(i,o.substring(v,o.length),e,h);var g=[],y=0,m=0,w=f==="truncate",B=e.lineOverflow==="truncate",C={};function b(ye,re,W){ye.width=re,ye.lineHeight=W,y+=W,m=Math.max(m,re)}e:for(var _=0;_<i.lines.length;_++){for(var x=i.lines[_],S=0,I=0,L=0;L<x.tokens.length;L++){var T=x.tokens[L],M=T.styleName&&e.rich[T.styleName]||{},R=T.textPadding=M.padding,P=R?R[1]+R[3]:0,E=T.font=M.font||e.font;T.contentHeight=Ff(E);var k=Le(M.height,T.contentHeight);if(T.innerHeight=k,R&&(k+=R[0]+R[2]),T.height=k,T.lineHeight=bn(M.lineHeight,e.lineHeight,k),T.align=M&&M.align||a,T.verticalAlign=M&&M.verticalAlign||"middle",B&&c!=null&&y+T.lineHeight>c){var D=i.lines.length;L>0?(x.tokens=x.tokens.slice(0,L),b(x,I,S),i.lines=i.lines.slice(0,_+1)):i.lines=i.lines.slice(0,_),i.isTruncated=i.isTruncated||i.lines.length<D;break e}var U=M.width,O=U==null||U==="auto";if(typeof U=="string"&&U.charAt(U.length-1)==="%")T.percentWidth=U,g.push(T),T.contentWidth=Ya(Xa(E),T.text);else{if(O){var G=M.backgroundColor,X=G&&G.image;X&&(X=gY(X),bg(X)&&(T.width=Math.max(T.width,X.width*k/X.height)))}var te=w&&u!=null?u-I:null;te!=null&&te<T.width?!O||te<P?(T.text="",T.width=T.contentWidth=0):(yY(C,T.text,te-P,E,e.ellipsis,{minChar:e.truncateMinChar}),T.text=C.text,i.isTruncated=i.isTruncated||C.isTruncated,T.width=T.contentWidth=Ya(Xa(E),T.text)):T.contentWidth=Ya(Xa(E),T.text)}T.width+=P,I+=T.width,M&&(S=Math.max(S,T.lineHeight))}b(x,I,S)}i.outerWidth=i.width=Le(u,m),i.outerHeight=i.height=Le(c,y),i.contentHeight=y,i.contentWidth=m,i.outerWidth+=A,i.outerHeight+=l;for(var _=0;_<g.length;_++){var T=g[_],ne=T.percentWidth;T.width=parseInt(ne,10)/100*i.width}return i}function am(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,A=o.font||t.font,l=!1,u,c;if(n){var f=o.padding,h=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var v=da(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(u=e.split(`
`),l=!0),n.accumWidth=v}else{var d=pR(e,A,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,c=d.linesWidths,u=d.lines}}u||(u=e.split(`
`));for(var p=Xa(A),g=0;g<u.length;g++){var y=u[g],m=new BY;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:Ya(p,y),!g&&!l){var w=(s[s.length-1]||(s[0]=new fT)).tokens,B=w.length;B===1&&w[0].isLineHolder?w[0]=m:(y||!B||i)&&w.push(m)}else s.push(new fT([m]))}}function xY(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var _Y=Za(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function SY(r){return xY(r)?!!_Y[r]:!0}function pR(r,e,t,n,a){for(var i=[],o=[],s="",A="",l=0,u=0,c=Xa(e),f=0;f<r.length;f++){var h=r.charAt(f);if(h===`
`){A&&(s+=A,u+=l),i.push(s),o.push(u),s="",A="",l=0,u=0;continue}var v=Wk(c,h.charCodeAt(0)),d=n?!1:!SY(h);if(i.length?u+v>t:a+u+v>t){u?(s||A)&&(d?(s||(s=A,A="",l=0,u=l),i.push(s),o.push(u-l),A+=h,l+=v,s="",u=l):(A&&(s+=A,A="",l=0),i.push(s),o.push(u),s=h,u=v)):d?(i.push(A),o.push(l),A=h,l=v):(i.push(h),o.push(v));continue}u+=v,d?(A+=h,l+=v):(A&&(s+=A,A="",l=0),s+=h)}return A&&(s+=A),s&&(i.push(s),o.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:o}}function hT(r,e,t,n,a,i){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;Ne.set(vT,Dl(t,o,a),Hs(n,s,i),o,s),Ne.intersect(e,vT,null,dT);var A=dT.outIntersectRect;r.outerWidth=A.width,r.outerHeight=A.height,r.baseX=Dl(A.x,A.width,a,!0),r.baseY=Hs(A.y,A.height,i,!0)}}var vT=new Ne(0,0,0,0),dT={outIntersectRect:{},clamp:!0};function $C(r){return r!=null?r+="":r=""}function TY(r){var e=$C(r.text),t=r.font,n=Ya(Xa(t),e),a=Ff(t);return m1(r,n,a,null)}function m1(r,e,t,n){var a=new Ne(Dl(r.x||0,e,r.textAlign),Hs(r.y||0,t,r.textBaseline),e,t),i=n??(gR(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function gR(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var w1="__zr_style_"+Math.round(Math.random()*10),Ns={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},xg={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ns[w1]=!0;var pT=["z","z2","invisible"],IY=["invisible"],LY=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=je(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&EY(this,t,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var A=this.parent;A;){if(A.ignore)return!1;A=A.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,A=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Ne(0,0,0,0)),n?Ne.applyTransform(t,a,n):t.copy(a),(o||s||A)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(A),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+A-o));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+l*2),t.height=Math.ceil(t.height+1+l*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Ne(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:ve(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=hc,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&hc)},e.prototype.styleUpdated=function(){this.__dirty&=~hc},e.prototype.createStyle=function(t){return gg(Ns,t)},e.prototype.useStyle=function(t){t[w1]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[w1]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,pT)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var A=!(n&&i),l;if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(l,n.style)):A&&(l=a.style),l)if(o){var u=this.style;if(this.style=this.createStyle(A?{}:u),A)for(var c=je(u),f=0;f<c.length;f++){var h=c[f];h in l&&(l[h]=l[h],this.style[h]=u[h])}for(var v=je(l),f=0;f<v.length;f++){var h=v[f];this.style[h]=this.style[h]}this._transitionState(t,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var d=this.__inHover?IY:pT,f=0;f<d.length;f++){var h=d[f];n&&n[h]!=null?this[h]=n[h]:A&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return ve(t,n),t},e.prototype.getAnimationStyleProps=function(){return xg},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=wn|hc}(),e}(Yk),im=new Ne(0,0,0,0),om=new Ne(0,0,0,0);function EY(r,e,t){return im.copy(r.getBoundingRect()),r.transform&&im.applyTransform(r.transform),om.width=e,om.height=t,!im.intersect(om)}const jn=LY;var ln=Math.min,un=Math.max,sm=Math.sin,Am=Math.cos,Yo=Math.PI*2,Fh=oA(),Qh=oA(),Uh=oA();function _g(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],A=1;A<r.length;A++)n=r[A],a=ln(a,n[0]),i=un(i,n[0]),o=ln(o,n[1]),s=un(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function gT(r,e,t,n,a,i){a[0]=ln(r,t),a[1]=ln(e,n),i[0]=un(r,t),i[1]=un(e,n)}var yT=[],mT=[];function MY(r,e,t,n,a,i,o,s,A,l){var u=Dk,c=dr,f=u(r,t,a,o,yT);A[0]=1/0,A[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<f;h++){var v=c(r,t,a,o,yT[h]);A[0]=ln(v,A[0]),l[0]=un(v,l[0])}f=u(e,n,i,s,mT);for(var h=0;h<f;h++){var d=c(e,n,i,s,mT[h]);A[1]=ln(d,A[1]),l[1]=un(d,l[1])}A[0]=ln(r,A[0]),l[0]=un(r,l[0]),A[0]=ln(o,A[0]),l[0]=un(o,l[0]),A[1]=ln(e,A[1]),l[1]=un(e,l[1]),A[1]=ln(s,A[1]),l[1]=un(s,l[1])}function DY(r,e,t,n,a,i,o,s){var A=Qk,l=Cr,u=un(ln(A(r,t,a),1),0),c=un(ln(A(e,n,i),1),0),f=l(r,t,a,u),h=l(e,n,i,c);o[0]=ln(r,a,f),o[1]=ln(e,i,h),s[0]=un(r,a,f),s[1]=un(e,i,h)}function FY(r,e,t,n,a,i,o,s,A){var l=io,u=oo,c=Math.abs(a-i);if(c%Yo<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-n,A[0]=r+t,A[1]=e+n;return}if(Fh[0]=Am(a)*t+r,Fh[1]=sm(a)*n+e,Qh[0]=Am(i)*t+r,Qh[1]=sm(i)*n+e,l(s,Fh,Qh),u(A,Fh,Qh),a=a%Yo,a<0&&(a=a+Yo),i=i%Yo,i<0&&(i=i+Yo),a>i&&!o?i+=Yo:a<i&&o&&(a+=Yo),o){var f=i;i=a,a=f}for(var h=0;h<i;h+=Math.PI/2)h>a&&(Uh[0]=Am(h)*t+r,Uh[1]=sm(h)*n+e,l(s,Uh,s),u(A,Uh,A))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Zo=[],jo=[],Ta=[],Ri=[],Ia=[],La=[],lm=Math.min,um=Math.max,Jo=Math.cos,qo=Math.sin,li=Math.abs,B1=Math.PI,Zi=B1*2,cm=typeof Float32Array<"u",yu=[];function fm(r){var e=Math.round(r/B1*1e8)/1e8;return e%2*B1}function Sg(r,e){var t=fm(r[0]);t<0&&(t+=Zi);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Zi?a=t+Zi:e&&t-a>=Zi?a=t-Zi:!e&&t>a?a=t+(Zi-fm(t-a)):e&&t<a&&(a=t-(Zi-fm(a-t))),r[0]=t,r[1]=a}var qa=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=li(n/Xd/e)||0,this._uy=li(n/Xd/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(mt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=li(e-this._xi),a=li(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(mt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(mt.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(mt.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),yu[0]=a,yu[1]=i,Sg(yu,o),a=yu[0],i=yu[1];var s=i-a;return this.addData(mt.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=Jo(i)*n+e,this._yi=qo(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(mt.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&cm&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();var o=this.data;if(cm&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<t;i++)for(var A=e[i].data,s=0;s<A.length;s++)this.data[a++]=A[s];this._len=a}},r.prototype.addData=function(e,t,n,a,i,o,s,A,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,cm&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Ta[0]=Ta[1]=Ia[0]=Ia[1]=Number.MAX_VALUE,Ri[0]=Ri[1]=La[0]=La[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],A=o===1;switch(A&&(t=e[o],n=e[o+1],a=t,i=n),s){case mt.M:t=a=e[o++],n=i=e[o++],Ia[0]=a,Ia[1]=i,La[0]=a,La[1]=i;break;case mt.L:gT(t,n,e[o],e[o+1],Ia,La),t=e[o++],n=e[o++];break;case mt.C:MY(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ia,La),t=e[o++],n=e[o++];break;case mt.Q:DY(t,n,e[o++],e[o++],e[o],e[o+1],Ia,La),t=e[o++],n=e[o++];break;case mt.A:var l=e[o++],u=e[o++],c=e[o++],f=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];A&&(a=Jo(h)*c+l,i=qo(h)*f+u),FY(l,u,c,f,h,v,d,Ia,La),t=Jo(v)*c+l,n=qo(v)*f+u;break;case mt.R:a=t=e[o++],i=n=e[o++];var p=e[o++],g=e[o++];gT(a,i,a+p,i+g,Ia,La);break;case mt.Z:t=a,n=i;break}io(Ta,Ta,Ia),oo(Ri,Ri,La)}return o===0&&(Ta[0]=Ta[1]=Ri[0]=Ri[1]=0),new Ne(Ta[0],Ta[1],Ri[0]-Ta[0],Ri[1]-Ta[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,A=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,f=0;f<t;){var h=e[f++],v=f===1;v&&(i=e[f],o=e[f+1],s=i,A=o);var d=-1;switch(h){case mt.M:i=s=e[f++],o=A=e[f++];break;case mt.L:{var p=e[f++],g=e[f++],y=p-i,m=g-o;(li(y)>n||li(m)>a||f===t-1)&&(d=Math.sqrt(y*y+m*m),i=p,o=g);break}case mt.C:{var w=e[f++],B=e[f++],p=e[f++],g=e[f++],C=e[f++],b=e[f++];d=N7(i,o,w,B,p,g,C,b,10),i=C,o=b;break}case mt.Q:{var w=e[f++],B=e[f++],p=e[f++],g=e[f++];d=G7(i,o,w,B,p,g,10),i=p,o=g;break}case mt.A:var _=e[f++],x=e[f++],S=e[f++],I=e[f++],L=e[f++],T=e[f++],M=T+L;f+=1,v&&(s=Jo(L)*S+_,A=qo(L)*I+x),d=um(S,I)*lm(Zi,Math.abs(T)),i=Jo(M)*S+_,o=qo(M)*I+x;break;case mt.R:{s=i=e[f++],A=o=e[f++];var R=e[f++],P=e[f++];d=R*2+P*2;break}case mt.Z:{var y=s-i,m=A-o;d=Math.sqrt(y*y+m*m),i=s,o=A;break}}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,A,l,u,c,f,h=t<1,v,d,p=0,g=0,y,m=0,w,B;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))e:for(var C=0;C<o;){var b=n[C++],_=C===1;switch(_&&(l=n[C],u=n[C+1],s=l,A=u),b!==mt.L&&m>0&&(e.lineTo(w,B),m=0),b){case mt.M:s=l=n[C++],A=u=n[C++],e.moveTo(l,u);break;case mt.L:{c=n[C++],f=n[C++];var x=li(c-l),S=li(f-u);if(x>a||S>i){if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;e.lineTo(l*(1-L)+c*L,u*(1-L)+f*L);break e}p+=I}e.lineTo(c,f),l=c,u=f,m=0}else{var T=x*x+S*S;T>m&&(w=c,B=f,m=T)}break}case mt.C:{var M=n[C++],R=n[C++],P=n[C++],E=n[C++],k=n[C++],D=n[C++];if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;So(l,M,P,k,L,Zo),So(u,R,E,D,L,jo),e.bezierCurveTo(Zo[1],jo[1],Zo[2],jo[2],Zo[3],jo[3]);break e}p+=I}e.bezierCurveTo(M,R,P,E,k,D),l=k,u=D;break}case mt.Q:{var M=n[C++],R=n[C++],P=n[C++],E=n[C++];if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;Xc(l,M,P,L,Zo),Xc(u,R,E,L,jo),e.quadraticCurveTo(Zo[1],jo[1],Zo[2],jo[2]);break e}p+=I}e.quadraticCurveTo(M,R,P,E),l=P,u=E;break}case mt.A:var U=n[C++],O=n[C++],G=n[C++],X=n[C++],te=n[C++],ne=n[C++],ye=n[C++],re=!n[C++],W=G>X?G:X,ee=li(G-X)>.001,oe=te+ne,H=!1;if(h){var I=v[g++];p+I>y&&(oe=te+ne*(y-p)/I,H=!0),p+=I}if(ee&&e.ellipse?e.ellipse(U,O,G,X,ye,te,oe,re):e.arc(U,O,W,te,oe,re),H)break e;_&&(s=Jo(te)*G+U,A=qo(te)*X+O),l=Jo(oe)*G+U,u=qo(oe)*X+O;break;case mt.R:s=l=n[C],A=u=n[C+1],c=n[C++],f=n[C++];var N=n[C++],K=n[C++];if(h){var I=v[g++];if(p+I>y){var $=y-p;e.moveTo(c,f),e.lineTo(c+lm($,N),f),$-=N,$>0&&e.lineTo(c+N,f+lm($,K)),$-=K,$>0&&e.lineTo(c+um(N-$,0),f+K),$-=N,$>0&&e.lineTo(c,f+um(K-$,0));break e}p+=I}e.rect(c,f,N,K);break;case mt.Z:if(h){var I=v[g++];if(p+I>y){var L=(y-p)/I;e.lineTo(l*(1-L)+s*L,u*(1-L)+A*L);break e}p+=I}e.closePath(),l=s,u=A}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=mt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function qi(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,A=0,l=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)A=(e-n)/(r-t),l=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var u=A*i-o+l,c=u*u/(A*A+1);return c<=s/2*s/2}function QY(r,e,t,n,a,i,o,s,A,l,u){if(A===0)return!1;var c=A;if(u>e+c&&u>n+c&&u>i+c&&u>s+c||u<e-c&&u<n-c&&u<i-c&&u<s-c||l>r+c&&l>t+c&&l>a+c&&l>o+c||l<r-c&&l<t-c&&l<a-c&&l<o-c)return!1;var f=Fk(r,e,t,n,a,i,o,s,l,u,null);return f<=c/2}function yR(r,e,t,n,a,i,o,s,A){if(o===0)return!1;var l=o;if(A>e+l&&A>n+l&&A>i+l||A<e-l&&A<n-l&&A<i-l||s>r+l&&s>t+l&&s>a+l||s<r-l&&s<t-l&&s<a-l)return!1;var u=Uk(r,e,t,n,a,i,s,A,null);return u<=l/2}var wT=Math.PI*2;function Bn(r){return r%=wT,r<0&&(r+=wT),r}var mu=Math.PI*2;function UY(r,e,t,n,a,i,o,s,A){if(o===0)return!1;var l=o;s-=r,A-=e;var u=Math.sqrt(s*s+A*A);if(u-l>t||u+l<t)return!1;if(Math.abs(n-a)%mu<1e-4)return!0;if(i){var c=n;n=Bn(a),a=Bn(c)}else n=Bn(n),a=Bn(a);n>a&&(a+=mu);var f=Math.atan2(A,s);return f<0&&(f+=mu),f>=n&&f<=a||f+mu>=n&&f+mu<=a}function di(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var A=o*(t-r)+r;return A===a?1/0:A>a?s:0}var Oi=qa.CMD,es=Math.PI*2,PY=1e-4;function kY(r,e){return Math.abs(r-e)<PY}var qr=[-1,-1,-1],On=[-1,-1];function RY(){var r=On[0];On[0]=On[1],On[1]=r}function OY(r,e,t,n,a,i,o,s,A,l){if(l>e&&l>n&&l>i&&l>s||l<e&&l<n&&l<i&&l<s)return 0;var u=zd(e,n,i,s,l,qr);if(u===0)return 0;for(var c=0,f=-1,h=void 0,v=void 0,d=0;d<u;d++){var p=qr[d],g=p===0||p===1?.5:1,y=dr(r,t,a,o,p);y<A||(f<0&&(f=Dk(e,n,i,s,On),On[1]<On[0]&&f>1&&RY(),h=dr(e,n,i,s,On[0]),f>1&&(v=dr(e,n,i,s,On[1]))),f===2?p<On[0]?c+=h<e?g:-g:p<On[1]?c+=v<h?g:-g:c+=s<v?g:-g:p<On[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function HY(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var A=V7(e,n,i,s,qr);if(A===0)return 0;var l=Qk(e,n,i);if(l>=0&&l<=1){for(var u=0,c=Cr(e,n,i,l),f=0;f<A;f++){var h=qr[f]===0||qr[f]===1?.5:1,v=Cr(r,t,a,qr[f]);v<o||(qr[f]<l?u+=c<e?h:-h:u+=i<c?h:-h)}return u}else{var h=qr[0]===0||qr[0]===1?.5:1,v=Cr(r,t,a,qr[0]);return v<o?0:i<e?h:-h}}function NY(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var A=Math.sqrt(t*t-s*s);qr[0]=-A,qr[1]=A;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=es-1e-4){n=0,a=es;var u=i?1:-1;return o>=qr[0]+r&&o<=qr[1]+r?u:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=es,a+=es);for(var f=0,h=0;h<2;h++){var v=qr[h];if(v+r>o){var d=Math.atan2(s,v),u=i?1:-1;d<0&&(d=es+d),(d>=n&&d<=a||d+es>=n&&d+es<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(u=-u),f+=u)}}return f}function mR(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,A=0,l=0,u=0,c=0,f,h,v=0;v<o;){var d=i[v++],p=v===1;switch(d===Oi.M&&v>1&&(t||(s+=di(A,l,u,c,n,a))),p&&(A=i[v],l=i[v+1],u=A,c=l),d){case Oi.M:u=i[v++],c=i[v++],A=u,l=c;break;case Oi.L:if(t){if(qi(A,l,i[v],i[v+1],e,n,a))return!0}else s+=di(A,l,i[v],i[v+1],n,a)||0;A=i[v++],l=i[v++];break;case Oi.C:if(t){if(QY(A,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=OY(A,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;A=i[v++],l=i[v++];break;case Oi.Q:if(t){if(yR(A,l,i[v++],i[v++],i[v],i[v+1],e,n,a))return!0}else s+=HY(A,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;A=i[v++],l=i[v++];break;case Oi.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],B=i[v++],C=i[v++];v+=1;var b=!!(1-i[v++]);f=Math.cos(B)*m+g,h=Math.sin(B)*w+y,p?(u=f,c=h):s+=di(A,l,f,h,n,a);var _=(n-g)*w/m+g;if(t){if(UY(g,y,w,B,B+C,b,e,_,a))return!0}else s+=NY(g,y,w,B,B+C,b,_,a);A=Math.cos(B+C)*m+g,l=Math.sin(B+C)*w+y;break;case Oi.R:u=A=i[v++],c=l=i[v++];var x=i[v++],S=i[v++];if(f=u+x,h=c+S,t){if(qi(u,c,f,c,e,n,a)||qi(f,c,f,h,e,n,a)||qi(f,h,u,h,e,n,a)||qi(u,h,u,c,e,n,a))return!0}else s+=di(f,c,f,h,n,a),s+=di(u,h,u,c,n,a);break;case Oi.Z:if(t){if(qi(A,l,u,c,e,n,a))return!0}else s+=di(A,l,u,c,n,a);A=u,l=c;break}}return!t&&!kY(l,c)&&(s+=di(A,l,u,c,n,a)||0),s!==0}function VY(r,e,t){return mR(r,0,!1,e,t)}function GY(r,e,t,n){return mR(r,e,!0,t,n)}var Jd=Re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ns),zY={style:Re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},xg.style)},hm=Ja.concat(["invisible","culling","z","z2","zlevel","parent"]),$Y=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(A){t.buildPath(A,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<hm.length;++s)a[hm[s]]=this[hm[s]];a.__dirty|=wn}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=je(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?ve(this.style,s):this.useStyle(s):o==="shape"?ve(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Ce(t)){var n=Kd(t,0);return n>.5?v1:n>.2?w9:d1}else if(t)return d1}return v1},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(Ce(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Kd(t,0)<h1;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~il},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new qa(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&il)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var A=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}A>1e-10&&(s.width+=l/A,s.height+=l/A,s.x-=l/A/2,s.y-=l/A/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){var s=this.path;if(this.hasStroke()){var A=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(A=Math.max(A,this.strokeContainThreshold)),GY(s,A/l,t,n)))return!0}if(this.hasFill())return VY(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=il,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:ve(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&il)},e.prototype.createStyle=function(t){return gg(Jd,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=ve({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var A=!(n&&i),l;if(n&&n.shape?o?i?l=n.shape:(l=ve({},a.shape),ve(l,n.shape)):(l=ve({},i?this.shape:a.shape),ve(l,n.shape)):A&&(l=a.shape),l)if(o){this.shape=ve({},this.shape);for(var u={},c=je(l),f=0;f<c.length;f++){var h=c[f];typeof l[h]=="object"?this.shape[h]=l[h]:u[h]=l[h]}this._transitionState(t,{shape:u},s)}else this.shape=l,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return zY},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(i){Mt(o,i);function o(s){var A=i.call(this,s)||this;return t.init&&t.init.call(A,s),A}return o.prototype.getDefaultStyle=function(){return De(t.style)},o.prototype.getDefaultShape=function(){return De(t.shape)},o}(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=wn|hc|il}(),e}(jn);const Ze=$Y;var KY=Re({strokeFirst:!0,font:Si,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Jd),wR=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return gR(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return gg(KY,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=TY(this.style)),this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(jn);wR.prototype.type="tspan";const qc=wR;var WY=Re({x:0,y:0},Ns),XY={style:Re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},xg.style)};function YY(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var BR=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return gg(WY,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=YY(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return XY},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ne(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(jn);BR.prototype.type="image";const Ur=BR;function ZY(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,A,l,u;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=A=l=u=o:o instanceof Array?o.length===1?s=A=l=u=o[0]:o.length===2?(s=l=o[0],A=u=o[1]):o.length===3?(s=o[0],A=u=o[1],l=o[2]):(s=o[0],A=o[1],l=o[2],u=o[3]):s=A=l=u=0;var c;s+A>a&&(c=s+A,s*=a/c,A*=a/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),A+l>i&&(c=A+l,A*=i/c,l*=i/c),s+u>i&&(c=s+u,s*=i/c,u*=i/c),r.moveTo(t+s,n),r.lineTo(t+a-A,n),A!==0&&r.arc(t+a-A,n+A,A,-Math.PI/2,0),r.lineTo(t+a,n+i-l),l!==0&&r.arc(t+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(t+u,n+i),u!==0&&r.arc(t+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var fl=Math.round;function Tg(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(fl(n*2)===fl(a*2)&&(r.x1=r.x2=Cn(n,s,!0)),fl(i*2)===fl(o*2)&&(r.y1=r.y2=Cn(i,s,!0))),r}}function CR(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Cn(n,s,!0),r.y=Cn(a,s,!0),r.width=Math.max(Cn(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Cn(a+o,s,!1)-r.y,o===0?0:1)),r}}function Cn(r,e,t){if(!e)return r;var n=fl(r*2);return(n+fl(e))%2===0?n/2:(n+(t?1:-1))/2}var jY=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),JY={},bR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jY},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var A=CR(JY,n,this.style);a=A.x,i=A.y,o=A.width,s=A.height,A.r=n.r,n=A}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?ZY(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ze);bR.prototype.type="rect";const Xe=bR;var BT={fill:"#000"},CT=2,Ea={},qY={style:Re({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},xg.style)},xR=function(r){Mt(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=BT,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,rZ(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Ne(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],A=s.getBoundingRect(),l=s.getLocalTransform(a);l?(t.copy(A),t.applyTransform(l),i=i||t.clone(),i.union(t)):(i=i||A.clone(),i.union(A))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||BT},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return ve(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=je(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},ve(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return qY},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||Si,a=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,A=t.align||i.align||"left",l=t.verticalAlign||i.verticalAlign||"top";hT(Ea,i.overflowRect,o,s,A,l),o=Ea.baseX,s=Ea.baseY;var u=LT(t),c=wY(u,t,Ea.outerWidth,Ea.outerHeight),f=vm(t),h=!!t.backgroundColor,v=c.outerHeight,d=c.outerWidth,p=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,m=Hs(s,c.contentHeight,l);if(f||a){var w=Dl(o,d,A),B=Hs(s,v,l);f&&this._renderBackground(t,t,w,B,d,v)}m+=g/2,a&&(y=IT(o,A,a),l==="top"?m+=a[0]:l==="bottom"&&(m-=a[2]));for(var C=0,b=!1,_=!1,x=TT("fill"in t?t.fill:(_=!0,i.fill)),S=ST("stroke"in t?t.stroke:!h&&(!i.autoStroke||_)?(C=CT,b=!0,i.stroke):null),I=t.textShadowBlur>0,L=0;L<p.length;L++){var T=this._getOrCreateChild(qc),M=T.createStyle();T.useStyle(M),M.text=p[L],M.x=y,M.y=m,A&&(M.textAlign=A),M.textBaseline="middle",M.opacity=t.opacity,M.strokeFirst=!0,I&&(M.shadowBlur=t.textShadowBlur||0,M.shadowColor=t.textShadowColor||"transparent",M.shadowOffsetX=t.textShadowOffsetX||0,M.shadowOffsetY=t.textShadowOffsetY||0),M.stroke=S,M.fill=x,S&&(M.lineWidth=t.lineWidth||C,M.lineDash=t.lineDash,M.lineDashOffset=t.lineDashOffset||0),M.font=n,xT(M,t),m+=g,T.setBoundingRect(m1(M,c.contentWidth,c.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,a=t.align||n.align,i=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;hT(Ea,n.overflowRect,o,s,a,i),o=Ea.baseX,s=Ea.baseY;var A=LT(t),l=bY(A,t,Ea.outerWidth,Ea.outerHeight,a),u=l.width,c=l.outerWidth,f=l.outerHeight,h=t.padding;this.isTruncated=!!l.isTruncated;var v=Dl(o,c,a),d=Hs(s,f,i),p=v,g=d;h&&(p+=h[3],g+=h[0]);var y=p+u;vm(t)&&this._renderBackground(t,t,v,d,c,f);for(var m=!!t.backgroundColor,w=0;w<l.lines.length;w++){for(var B=l.lines[w],C=B.tokens,b=C.length,_=B.lineHeight,x=B.width,S=0,I=p,L=y,T=b-1,M=void 0;S<b&&(M=C[S],!M.align||M.align==="left");)this._placeToken(M,t,_,g,I,"left",m),x-=M.width,I+=M.width,S++;for(;T>=0&&(M=C[T],M.align==="right");)this._placeToken(M,t,_,g,L,"right",m),x-=M.width,L-=M.width,T--;for(I+=(u-(I-p)-(y-L)-x)/2;S<=T;)M=C[S],this._placeToken(M,t,_,g,I+M.width/2,"center",m),I+=M.width,S++;g+=_}},e.prototype._placeToken=function(t,n,a,i,o,s,A){var l=n.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,c=i+a/2;u==="top"?c=i+t.height/2:u==="bottom"&&(c=i+a-t.height/2);var f=!t.isLineHolder&&vm(l);f&&this._renderBackground(l,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var h=!!l.backgroundColor,v=t.textPadding;v&&(o=IT(o,s,v),c-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(qc),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=!1,B=TT("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),C=ST("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!A&&(!g.autoStroke||y)?(m=CT,w=!0,g.stroke):null),b=l.textShadowBlur>0||n.textShadowBlur>0;p.text=t.text,p.x=o,p.y=c,b&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=t.font||Si,p.opacity=bn(l.opacity,n.opacity,1),xT(p,l),C&&(p.lineWidth=bn(l.lineWidth,n.lineWidth,m),p.lineDash=Le(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=C),B&&(p.fill=B),d.setBoundingRect(m1(p,t.contentWidth,t.contentHeight,w?0:null))},e.prototype._renderBackground=function(t,n,a,i,o,s){var A=t.backgroundColor,l=t.borderWidth,u=t.borderColor,c=A&&A.image,f=A&&!c,h=t.borderRadius,v=this,d,p;if(f||t.lineHeight||l&&u){d=this._getOrCreateChild(Xe),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(f){var y=d.style;y.fill=A||null,y.fillOpacity=Le(t.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Ur),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=A.image,m.x=a,m.y=i,m.width=o,m.height=s}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=Le(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=t.shadowBlur||0,w.shadowColor=t.shadowColor||"transparent",w.shadowOffsetX=t.shadowOffsetX||0,w.shadowOffsetY=t.shadowOffsetY||0,w.opacity=bn(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return SR(t)&&(n=[t.fontStyle,t.fontWeight,_R(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Xn(n)||t.textFont||t.font},e}(jn),eZ={left:!0,right:1,center:1},tZ={top:1,bottom:1,middle:1},bT=["fontStyle","fontWeight","fontSize","fontFamily"];function _R(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?SC+"px":r+"px"}function xT(r,e){for(var t=0;t<bT.length;t++){var n=bT[t],a=e[n];a!=null&&(r[n]=a)}}function SR(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function rZ(r){return _T(r),F(r.rich,_T),r}function _T(r){if(r){r.font=xR.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||eZ[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||tZ[t]?t:"top";var n=r.padding;n&&(r.padding=pg(r.padding))}}function ST(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function TT(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function IT(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function LT(r){var e=r.text;return e!=null&&(e+=""),e}function vm(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const nt=xR;var Ve=Ye(),C1=function(r,e,t,n){if(n){var a=Ve(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Ve(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},ET=1,MT={},TR=Ye(),KC=Ye(),WC=0,Qf=1,Ig=2,rn=["emphasis","blur","select"],ef=["normal","emphasis","blur","select"],Jl=10,nZ=9,Vs="highlight",fd="downplay",qd="select",b1="unselect",ep="toggleSelect",XC="selectchanged";function FA(r){return r!=null&&r!=="none"}function Lg(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function IR(r){Lg(r,"emphasis",Ig)}function LR(r){r.hoverState===Ig&&Lg(r,"normal",WC)}function YC(r){Lg(r,"blur",Qf)}function ER(r){r.hoverState===Qf&&Lg(r,"normal",WC)}function aZ(r){r.selected=!0}function iZ(r){r.selected=!1}function DT(r,e,t){e(r,t)}function Ui(r,e,t){DT(r,e,t),r.isGroup&&r.traverse(function(n){DT(n,e,t)})}function tp(r,e){switch(e){case"emphasis":r.hoverState=Ig;break;case"normal":r.hoverState=WC;break;case"blur":r.hoverState=Qf;break;case"select":r.selected=!0}}function oZ(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],A=a[s];i[s]=A??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(t)<0&&l.targetName==="style"&&l.saveTo(i,e)}return i}function sZ(r,e,t,n){var a=t&&$e(t,"select")>=0,i=!1;if(r instanceof Ze){var o=TR(r),s=a&&o.selectFill||o.normalFill,A=a&&o.selectStroke||o.normalStroke;if(FA(s)||FA(A)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=ve({},n),l=ve({},l),l.fill=s):!FA(l.fill)&&FA(s)?(i=!0,n=ve({},n),l=ve({},l),l.fill=o1(s)):!FA(l.stroke)&&FA(A)&&(i||(n=ve({},n),l=ve({},l)),l.stroke=o1(A)),n.style=l}}if(n&&n.z2==null){i||(n=ve({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Jl)}return n}function AZ(r,e,t){if(t&&t.z2==null){t=ve({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??nZ)}return t}function lZ(r,e,t){var n=$e(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:oZ(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=ve({},t),o=ve({opacity:n?a:i.opacity*.1},o),t.style=o),t}function dm(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return sZ(this,r,e,t);if(r==="blur")return lZ(this,r,t);if(r==="select")return AZ(this,r,t)}return t}function qs(r){r.stateProxy=dm;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=dm),t&&(t.stateProxy=dm)}function FT(r,e){!QR(r,e)&&!r.__highByOuter&&Ui(r,IR)}function QT(r,e){!QR(r,e)&&!r.__highByOuter&&Ui(r,LR)}function Li(r,e){r.__highByOuter|=1<<(e||0),Ui(r,IR)}function Ei(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ui(r,LR)}function MR(r){Ui(r,YC)}function ZC(r){Ui(r,ER)}function DR(r){Ui(r,aZ)}function FR(r){Ui(r,iZ)}function QR(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function UR(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=KC(i),s=a==="series",A=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(A),o.isBlured&&(A.group.traverse(function(l){ER(l)}),s&&t.push(i)),o.isBlured=!1}),F(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function x1(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(l,u){for(var c=0;c<u.length;c++){var f=l.getItemGraphicEl(u[c]);f&&ZC(f)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var A=[];a.eachSeries(function(l){var u=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var f=c&&s?c===s:u;if(!(t==="series"&&!u||t==="coordinateSystem"&&!f||e==="series"&&u)){var h=n.getViewOfSeriesModel(l);if(h.group.traverse(function(p){p.__highByOuter&&u&&e==="self"||YC(p)}),$r(e))i(l.getData(),e);else if(Oe(e))for(var v=je(e),d=0;d<v.length;d++)i(l.getData(v[d]),e[v[d]]);A.push(l),KC(l).isBlured=!0}}),a.eachComponent(function(l,u){if(l!=="series"){var c=n.getViewOfComponentModel(u);c&&c.toggleBlurSeries&&c.toggleBlurSeries(A,!0,a)}})}}function _1(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){KC(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){YC(i)})}}}function uZ(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=js(a,e);i=(ge(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),A=0;!o&&A<s;)o=a.getItemGraphicEl(A++);if(o){var l=Ve(o);x1(n,l.focus,l.blurScope,t)}else{var u=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);u!=null&&x1(n,u,c,t)}}}function jC(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),A,l=0;l<s.length;l++)if(Ve(s[l]).focus==="self"){A=!0;break}return{focusSelf:A,dispatchers:s}}function cZ(r,e,t){var n=Ve(r),a=jC(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&_1(n.componentMainType,n.componentIndex,t),F(i,function(s){return FT(s,e)})):(x1(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&_1(n.componentMainType,n.componentIndex,t),FT(r,e))}function fZ(r,e,t){UR(t);var n=Ve(r),a=jC(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?F(a,function(i){return QT(i,e)}):QT(r,e)}function hZ(r,e,t){if(T1(e)){var n=e.dataType,a=r.getData(n),i=js(a,e);ge(i)||(i=[i]),r[e.type===ep?"toggleSelect":e.type===qd?"select":"unselect"](i,n)}}function UT(r){var e=r.getAllData();F(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?DR(i):FR(i)})})}function vZ(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();F(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Gs(r,e,t){Ms(r,!0),Ui(r,qs),S1(r,e,t)}function dZ(r){Ms(r,!1)}function Qt(r,e,t,n){n?dZ(r):Gs(r,e,t)}function S1(r,e,t){var n=Ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var PT=["emphasis","blur","select"],pZ={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cr(r,e,t,n){t=t||"itemStyle";for(var a=0;a<PT.length;a++){var i=PT[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[pZ[t]]()}}function Ms(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function tf(r){return!!(r&&r.__highDownDispatcher)}function gZ(r,e,t){var n=Ve(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function yZ(r){var e=MT[r];return e==null&&ET<=32&&(e=MT[r]=ET++),e}function T1(r){var e=r.type;return e===qd||e===b1||e===ep}function kT(r){var e=r.type;return e===Vs||e===fd}function mZ(r){var e=TR(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var QA=qa.CMD,wZ=[[],[],[]],RT=Math.sqrt,BZ=Math.atan2;function PR(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,A,l,u=QA.M,c=QA.C,f=QA.L,h=QA.R,v=QA.A,d=QA.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case u:i=1;break;case f:i=1;break;case c:i=3;break;case d:i=2;break;case v:var p=e[4],g=e[5],y=RT(e[0]*e[0]+e[1]*e[1]),m=RT(e[2]*e[2]+e[3]*e[3]),w=BZ(-e[1]/m,e[0]/y);t[o]*=y,t[o++]+=p,t[o]*=m,t[o++]+=g,t[o++]*=y,t[o++]*=m,t[o++]+=w,t[o++]+=w,o+=2,s=o;break;case h:l[0]=t[o++],l[1]=t[o++],Yt(l,l,e),t[s++]=l[0],t[s++]=l[1],l[0]+=t[o++],l[1]+=t[o++],Yt(l,l,e),t[s++]=l[0],t[s++]=l[1]}for(A=0;A<i;A++){var B=wZ[A];B[0]=t[o++],B[1]=t[o++],Yt(B,B,e),t[s++]=B[0],t[s++]=B[1]}}r.increaseVersion()}}var pm=Math.sqrt,Ph=Math.sin,kh=Math.cos,wu=Math.PI;function OT(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function I1(r,e){return(r[0]*e[0]+r[1]*e[1])/(OT(r)*OT(e))}function HT(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(I1(r,e))}function NT(r,e,t,n,a,i,o,s,A,l,u){var c=A*(wu/180),f=kh(c)*(r-t)/2+Ph(c)*(e-n)/2,h=-1*Ph(c)*(r-t)/2+kh(c)*(e-n)/2,v=f*f/(o*o)+h*h/(s*s);v>1&&(o*=pm(v),s*=pm(v));var d=(a===i?-1:1)*pm((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,p=d*o*h/s,g=d*-s*f/o,y=(r+t)/2+kh(c)*p-Ph(c)*g,m=(e+n)/2+Ph(c)*p+kh(c)*g,w=HT([1,0],[(f-p)/o,(h-g)/s]),B=[(f-p)/o,(h-g)/s],C=[(-1*f-p)/o,(-1*h-g)/s],b=HT(B,C);if(I1(B,C)<=-1&&(b=wu),I1(B,C)>=1&&(b=0),b<0){var _=Math.round(b/wu*1e6)/1e6;b=wu*2+_%2*wu}u.addData(l,y,m,o,s,w,b,c,i)}var CZ=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bZ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xZ(r){var e=new qa;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=qa.CMD,A=r.match(CZ);if(!A)return e;for(var l=0;l<A.length;l++){for(var u=A[l],c=u.charAt(0),f=void 0,h=u.match(bZ)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var p=0;p<v;){var g=void 0,y=void 0,m=void 0,w=void 0,B=void 0,C=void 0,b=void 0,_=t,x=n,S=void 0,I=void 0;switch(c){case"l":t+=h[p++],n+=h[p++],f=s.L,e.addData(f,t,n);break;case"L":t=h[p++],n=h[p++],f=s.L,e.addData(f,t,n);break;case"m":t+=h[p++],n+=h[p++],f=s.M,e.addData(f,t,n),a=t,i=n,c="l";break;case"M":t=h[p++],n=h[p++],f=s.M,e.addData(f,t,n),a=t,i=n,c="L";break;case"h":t+=h[p++],f=s.L,e.addData(f,t,n);break;case"H":t=h[p++],f=s.L,e.addData(f,t,n);break;case"v":n+=h[p++],f=s.L,e.addData(f,t,n);break;case"V":n=h[p++],f=s.L,e.addData(f,t,n);break;case"C":f=s.C,e.addData(f,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),t=h[p-2],n=h[p-1];break;case"c":f=s.C,e.addData(f,h[p++]+t,h[p++]+n,h[p++]+t,h[p++]+n,h[p++]+t,h[p++]+n),t+=h[p-2],n+=h[p-1];break;case"S":g=t,y=n,S=e.len(),I=e.data,o===s.C&&(g+=t-I[S-4],y+=n-I[S-3]),f=s.C,_=h[p++],x=h[p++],t=h[p++],n=h[p++],e.addData(f,g,y,_,x,t,n);break;case"s":g=t,y=n,S=e.len(),I=e.data,o===s.C&&(g+=t-I[S-4],y+=n-I[S-3]),f=s.C,_=t+h[p++],x=n+h[p++],t+=h[p++],n+=h[p++],e.addData(f,g,y,_,x,t,n);break;case"Q":_=h[p++],x=h[p++],t=h[p++],n=h[p++],f=s.Q,e.addData(f,_,x,t,n);break;case"q":_=h[p++]+t,x=h[p++]+n,t+=h[p++],n+=h[p++],f=s.Q,e.addData(f,_,x,t,n);break;case"T":g=t,y=n,S=e.len(),I=e.data,o===s.Q&&(g+=t-I[S-4],y+=n-I[S-3]),t=h[p++],n=h[p++],f=s.Q,e.addData(f,g,y,t,n);break;case"t":g=t,y=n,S=e.len(),I=e.data,o===s.Q&&(g+=t-I[S-4],y+=n-I[S-3]),t+=h[p++],n+=h[p++],f=s.Q,e.addData(f,g,y,t,n);break;case"A":m=h[p++],w=h[p++],B=h[p++],C=h[p++],b=h[p++],_=t,x=n,t=h[p++],n=h[p++],f=s.A,NT(_,x,t,n,C,b,m,w,B,f,e);break;case"a":m=h[p++],w=h[p++],B=h[p++],C=h[p++],b=h[p++],_=t,x=n,t+=h[p++],n+=h[p++],f=s.A,NT(_,x,t,n,C,b,m,w,B,f,e);break}}(c==="z"||c==="Z")&&(f=s.Z,e.addData(f),t=a,n=i),o=f}return e.toStatic(),e}var kR=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(Ze);function RR(r){return r.setData!=null}function OR(r,e){var t=xZ(r),n=ve({},e);return n.buildPath=function(a){var i=RR(a);if(i&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&t.rebuildPath(o,1)}},n.applyTransform=function(a){PR(t,a),this.dirtyShape()},n}function HR(r,e){return new kR(OR(r,e))}function _Z(r,e){var t=OR(r,e),n=function(a){Mt(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i}(kR);return n}function SZ(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new Ze(e);return o.createPathProxy(),o.buildPath=function(s){if(RR(s)){s.appendPath(t);var A=s.getContext();A&&s.rebuildPath(A,1)}},o}function JC(r,e){e=e||{};var t=new Ze;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?PR(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var TZ=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),NR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new TZ},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Ze);NR.prototype.type="circle";const Po=NR;var IZ=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),VR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new IZ},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,A=n.ry,l=s*a,u=A*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-u,i-l,o-A,i,o-A),t.bezierCurveTo(i+l,o-A,i+s,o-u,i+s,o),t.bezierCurveTo(i+s,o+u,i+l,o+A,i,o+A),t.bezierCurveTo(i-l,o+A,i-s,o+u,i-s,o),t.closePath()},e}(Ze);VR.prototype.type="ellipse";const qC=VR;var GR=Math.PI,gm=GR*2,ts=Math.sin,UA=Math.cos,LZ=Math.acos,kr=Math.atan2,VT=Math.abs,Qc=Math.sqrt,dc=Math.max,Ma=Math.min,na=1e-4;function EZ(r,e,t,n,a,i,o,s){var A=t-r,l=n-e,u=o-a,c=s-i,f=c*A-u*l;if(!(f*f<na))return f=(u*(e-i)-c*(r-a))/f,[r+f*A,e+f*l]}function Rh(r,e,t,n,a,i,o){var s=r-t,A=e-n,l=(o?i:-i)/Qc(s*s+A*A),u=l*A,c=-l*s,f=r+u,h=e+c,v=t+u,d=n+c,p=(f+v)/2,g=(h+d)/2,y=v-f,m=d-h,w=y*y+m*m,B=a-i,C=f*d-v*h,b=(m<0?-1:1)*Qc(dc(0,B*B*w-C*C)),_=(C*m-y*b)/w,x=(-C*y-m*b)/w,S=(C*m+y*b)/w,I=(-C*y+m*b)/w,L=_-p,T=x-g,M=S-p,R=I-g;return L*L+T*T>M*M+R*R&&(_=S,x=I),{cx:_,cy:x,x0:-u,y0:-c,x1:_*(a/B-1),y1:x*(a/B-1)}}function MZ(r){var e;if(ge(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function DZ(r,e){var t,n=dc(e.r,0),a=dc(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var A=e.startAngle,l=e.endAngle;if(!(isNaN(A)||isNaN(l))){var u=e.cx,c=e.cy,f=!!e.clockwise,h=VT(l-A),v=h>gm&&h%gm;if(v>na&&(h=v),!(n>na))r.moveTo(u,c);else if(h>gm-na)r.moveTo(u+n*UA(A),c+n*ts(A)),r.arc(u,c,n,A,l,!f),a>na&&(r.moveTo(u+a*UA(l),c+a*ts(l)),r.arc(u,c,a,l,A,f));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,B=void 0,C=void 0,b=void 0,_=void 0,x=void 0,S=void 0,I=void 0,L=void 0,T=void 0,M=void 0,R=n*UA(A),P=n*ts(A),E=a*UA(l),k=a*ts(l),D=h>na;if(D){var U=e.cornerRadius;U&&(t=MZ(U),d=t[0],p=t[1],g=t[2],y=t[3]);var O=VT(n-a)/2;if(m=Ma(O,g),w=Ma(O,y),B=Ma(O,d),C=Ma(O,p),x=b=dc(m,w),S=_=dc(B,C),(b>na||_>na)&&(I=n*UA(l),L=n*ts(l),T=a*UA(A),M=a*ts(A),h<GR)){var G=EZ(R,P,T,M,I,L,E,k);if(G){var X=R-G[0],te=P-G[1],ne=I-G[0],ye=L-G[1],re=1/ts(LZ((X*ne+te*ye)/(Qc(X*X+te*te)*Qc(ne*ne+ye*ye)))/2),W=Qc(G[0]*G[0]+G[1]*G[1]);x=Ma(b,(n-W)/(re+1)),S=Ma(_,(a-W)/(re-1))}}}if(!D)r.moveTo(u+R,c+P);else if(x>na){var ee=Ma(g,x),oe=Ma(y,x),H=Rh(T,M,R,P,n,ee,f),N=Rh(I,L,E,k,n,oe,f);r.moveTo(u+H.cx+H.x0,c+H.cy+H.y0),x<b&&ee===oe?r.arc(u+H.cx,c+H.cy,x,kr(H.y0,H.x0),kr(N.y0,N.x0),!f):(ee>0&&r.arc(u+H.cx,c+H.cy,ee,kr(H.y0,H.x0),kr(H.y1,H.x1),!f),r.arc(u,c,n,kr(H.cy+H.y1,H.cx+H.x1),kr(N.cy+N.y1,N.cx+N.x1),!f),oe>0&&r.arc(u+N.cx,c+N.cy,oe,kr(N.y1,N.x1),kr(N.y0,N.x0),!f))}else r.moveTo(u+R,c+P),r.arc(u,c,n,A,l,!f);if(!(a>na)||!D)r.lineTo(u+E,c+k);else if(S>na){var ee=Ma(d,S),oe=Ma(p,S),H=Rh(E,k,I,L,a,-oe,f),N=Rh(R,P,T,M,a,-ee,f);r.lineTo(u+H.cx+H.x0,c+H.cy+H.y0),S<_&&ee===oe?r.arc(u+H.cx,c+H.cy,S,kr(H.y0,H.x0),kr(N.y0,N.x0),!f):(oe>0&&r.arc(u+H.cx,c+H.cy,oe,kr(H.y0,H.x0),kr(H.y1,H.x1),!f),r.arc(u,c,a,kr(H.cy+H.y1,H.cx+H.x1),kr(N.cy+N.y1,N.cx+N.x1),f),ee>0&&r.arc(u+N.cx,c+N.cy,ee,kr(N.y1,N.x1),kr(N.y0,N.x0),!f))}else r.lineTo(u+E,c+k),r.arc(u,c,a,l,A,f)}r.closePath()}}}var FZ=function(){function r(){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 r}(),zR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FZ},e.prototype.buildPath=function(t,n){DZ(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ze);zR.prototype.type="sector";const nn=zR;var QZ=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),$R=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QZ},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e}(Ze);$R.prototype.type="ring";const Eg=$R;function UZ(r,e,t,n){var a=[],i=[],o=[],s=[],A,l,u,c;if(n){u=[1/0,1/0],c=[-1/0,-1/0];for(var f=0,h=r.length;f<h;f++)io(u,u,r[f]),oo(c,c,r[f]);io(u,u,n[0]),oo(c,c,n[1])}for(var f=0,h=r.length;f<h;f++){var v=r[f];if(t)A=r[f?f-1:h-1],l=r[(f+1)%h];else if(f===0||f===h-1){a.push(wi(r[f]));continue}else A=r[f-1],l=r[f+1];Ls(i,l,A),ad(i,i,e);var d=Xw(v,A),p=Xw(v,l),g=d+p;g!==0&&(d/=g,p/=g),ad(o,i,-d),ad(s,i,p);var y=ES([],v,o),m=ES([],v,s);n&&(oo(y,y,u),io(y,y,c),oo(m,m,u),io(m,m,c)),a.push(y),a.push(m)}return t&&a.push(a.shift()),a}function KR(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=UZ(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var A=i[s*2],l=i[s*2+1],u=a[(s+1)%o];r.bezierCurveTo(A[0],A[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var PZ=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),WR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new PZ},e.prototype.buildPath=function(t,n){KR(t,n,!0)},e}(Ze);WR.prototype.type="polygon";const an=WR;var kZ=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),XR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kZ},e.prototype.buildPath=function(t,n){KR(t,n,!1)},e}(Ze);XR.prototype.type="polyline";const Wr=XR;var RZ={},OZ=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),YR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new OZ},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var A=Tg(RZ,n,this.style);a=A.x1,i=A.y1,o=A.x2,s=A.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(t.moveTo(a,i),l<1&&(o=a*(1-l)+o*l,s=i*(1-l)+s*l),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e}(Ze);YR.prototype.type="line";const lr=YR;var sn=[],HZ=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function GT(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?GS:dr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?GS:dr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?r1:Cr)(r.x1,r.cpx1,r.x2,e),(t?r1:Cr)(r.y1,r.cpy1,r.y2,e)]}var ZR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HZ},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,A=n.cpx1,l=n.cpy1,u=n.cpx2,c=n.cpy2,f=n.percent;f!==0&&(t.moveTo(a,i),u==null||c==null?(f<1&&(Xc(a,A,o,f,sn),A=sn[1],o=sn[2],Xc(i,l,s,f,sn),l=sn[1],s=sn[2]),t.quadraticCurveTo(A,l,o,s)):(f<1&&(So(a,A,u,o,f,sn),A=sn[1],u=sn[2],o=sn[3],So(i,l,c,s,f,sn),l=sn[1],c=sn[2],s=sn[3]),t.bezierCurveTo(A,l,u,c,o,s)))},e.prototype.pointAt=function(t){return GT(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=GT(this.shape,t,!0);return Yl(n,n)},e}(Ze);ZR.prototype.type="bezier-curve";const Mg=ZR;var NZ=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),jR=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NZ},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,A=n.endAngle,l=n.clockwise,u=Math.cos(s),c=Math.sin(s);t.moveTo(u*o+a,c*o+i),t.arc(a,i,o,s,A,!l)},e}(Ze);jR.prototype.type="arc";const eb=jR;var VZ=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ze.prototype.getBoundingRect.call(this)},e}(Ze);const Dg=VZ;var GZ=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}();const JR=GZ;var zZ=function(r){Mt(e,r);function e(t,n,a,i,o,s){var A=r.call(this,o)||this;return A.x=t??0,A.y=n??0,A.x2=a??1,A.y2=i??0,A.type="linear",A.global=s||!1,A}return e}(JR);const AA=zZ;var $Z=function(r){Mt(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(JR);const qR=$Z;var ym=Math.min,KZ=Math.max,Oh=Math.abs,rs=[0,0],ns=[0,0],Br=bk(),Hh=Br.minTv,Nh=Br.maxTv,WZ=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ke;for(var n=0;n<2;n++)this._axes[n]=new ke;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,A=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,A),n[3].set(i,A),t)for(var l=0;l<4;l++)n[l].transform(t);ke.sub(a[0],n[1],n[0]),ke.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},r.prototype.intersect=function(e,t,n){var a=!0,i=!t;return t&&ke.set(t,0,0),Br.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!Br.negativeSize&&ke.copy(t,a?Br.useDir?Br.dirMinTv:Hh:Nh),a},r.prototype._intersectCheckOneSide=function(e,t,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,rs),e._getProjMinMaxOnAxis(o,t._corners,ns),Br.negativeSize||rs[1]<ns[0]||rs[0]>ns[1]){if(i=!1,Br.negativeSize||n)return i;var A=Oh(ns[0]-rs[1]),l=Oh(rs[0]-ns[1]);ym(A,l)>Nh.len()&&(A<l?ke.scale(Nh,s,-A*a):ke.scale(Nh,s,l*a))}else if(!n){var A=Oh(ns[0]-rs[1]),l=Oh(rs[0]-ns[1]);(Br.useDir||ym(A,l)<Hh.len())&&((A<l||!Br.bidirectional)&&(ke.scale(Hh,s,A*a),Br.useDir&&Br.calcDirMTV()),(A>=l||!Br.bidirectional)&&(ke.scale(Hh,s,-l*a),Br.useDir&&Br.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,A=o,l=1;l<t.length;l++){var u=t[l].dot(a)+i[e];s=ym(u,s),A=KZ(u,A)}n[0]=s+Br.touchThreshold,n[1]=A-Br.touchThreshold,Br.negativeSize=n[1]<n[0]},r}();const eO=WZ;var XZ=[],YZ=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(XZ)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(jn);const ZZ=YZ;var tO=Ye();function ql(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),A=r==="update";if(s){var l=void 0,u=void 0,c=void 0;n?(l=Le(n.duration,200),u=Le(n.easing,"cubicOut"),c=0):(l=e.getShallow(A?"animationDurationUpdate":"animationDuration"),u=e.getShallow(A?"animationEasingUpdate":"animationEasing"),c=e.getShallow(A?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(u=i.easing),i.delay!=null&&(c=i.delay)),Me(c)&&(c=c(t,a)),Me(l)&&(l=l(t));var f={duration:l||0,delay:c,easing:u};return f}else return null}function tb(r,e,t,n,a,i,o){var s=!1,A;Me(a)?(o=i,i=a,a=null):Oe(a)&&(i=a.cb,o=a.during,s=a.isFrom,A=a.removeOpt,a=a.dataIndex);var l=r==="leave";l||e.stopAnimation("leave");var u=ql(r,n,a,l?A||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(u&&u.duration>0){var c=u.duration,f=u.delay,h=u.easing,v={duration:c,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!l,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function at(r,e,t,n,a,i){tb("update",r,e,t,n,a,i)}function Lt(r,e,t,n,a,i){tb("enter",r,e,t,n,a,i)}function Cl(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function To(r,e,t,n,a,i){Cl(r)||tb("leave",r,e,t,n,a,i)}function zT(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),To(r,{style:{opacity:0}},e,t,n)}function Bi(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||zT(a,e,t,n)}):zT(r,e,t,n)}function Jn(r){tO(r).oldStyle=r.style}function jZ(r){return tO(r).oldStyle}var L1={},Ge=["x","y"],rr=["width","height"];function JZ(r){return Ze.extend(r)}var qZ=_Z;function ej(r,e){return qZ(r,e)}function ma(r,e){L1[r]=e}function rp(r){if(L1.hasOwnProperty(r))return L1[r]}function rf(r,e,t,n){var a=HR(r,e);return t&&(n==="center"&&(t=nO(t,a.getBoundingRect())),aO(a,t)),a}function rO(r,e,t){var n=new Ur({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(nO(e,i))}}});return n}function nO(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var zn=SZ;function aO(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Fl(r,e){return Tg(r,r,{lineWidth:e}),r}function tj(r,e){return CR(r,r,e),r}var hd=Cn;function zs(r,e){for(var t=yg([]);r&&r!==e;)Ka(t,r.getLocalTransform(),t),r=r.parent;return t}function ua(r,e,t){return e&&!$r(e)&&(e=gi.getLocalTransform(e)),t&&(e=va([],e)),Yt([],r,e)}function Fg(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Ha(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Ha(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=ua(i,e,t),Ha(i[0])>Ha(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function $T(r){return!r.isGroup}function rj(r){return r.shape!=null}function Uf(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(A){$T(A)&&A.anid&&(s[A.anid]=A)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rj(o)&&(s.shape=De(o.shape)),s}var i=n(r);e.traverse(function(o){if($T(o)&&o.anid){var s=i[o.anid];if(s){var A=a(o);o.attr(a(s)),at(o,A,t,Ve(o).dataIndex)}}})}function iO(r,e){return me(r,function(t){var n=t[0];n=Wt(n,e.x),n=xn(n,e.x+e.width);var a=t[1];return a=Wt(a,e.y),a=xn(a,e.y+e.height),[n,a]})}function nj(r,e){var t=Wt(r.x,e.x),n=xn(r.x+r.width,e.x+e.width),a=Wt(r.y,e.y),i=xn(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Pf(r,e,t){var n=ve({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),Re(a,t),new Ur(n)):rf(r.replace("path://",""),n,t,"center")}function pc(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(oO(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function oO(r,e,t,n,a,i,o,s){var A=t-r,l=n-e,u=o-a,c=s-i,f=mm(u,c,A,l);if(aj(f))return!1;var h=r-a,v=e-i,d=mm(h,v,A,l)/f;if(d<0||d>1)return!1;var p=mm(h,v,u,c)/f;return!(p<0||p>1)}function mm(r,e,t,n){return r*n-t*e}function aj(r){return r<=1e-6&&r>=-1e-6}function eA(r,e,t,n,a){return e==null||(qe(e)?Rt[0]=Rt[1]=Rt[2]=Rt[3]=e:(Rt[0]=e[0],Rt[1]=e[1],Rt[2]=e[2],Rt[3]=e[3]),n&&(Rt[0]=Wt(0,Rt[0]),Rt[1]=Wt(0,Rt[1]),Rt[2]=Wt(0,Rt[2]),Rt[3]=Wt(0,Rt[3])),t&&(Rt[0]=-Rt[0],Rt[1]=-Rt[1],Rt[2]=-Rt[2],Rt[3]=-Rt[3]),KT(r,Rt,"x","width",3,1,a&&a[0]||0),KT(r,Rt,"y","height",0,2,a&&a[1]||0)),r}var Rt=[0,0,0,0];function KT(r,e,t,n,a,i,o){var s=e[i]+e[a],A=r[n];r[n]+=s,o=Wt(0,xn(o,A)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?A+e[i]:Ha(s)>1e-8?(A-o)*e[a]/s:0):r[t]-=e[a]}function Pi(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=Ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var A=r.formatterParamsExtra;A&&F(je(A),function(u){Se(s,u)||(s[u]=A[u],s.$vars.push(u))});var l=Ve(r.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:Re({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function E1(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ko(r,e){if(r)if(ge(r))for(var t=0;t<r.length;t++)E1(r[t],e);else E1(r,e)}function rb(r){return!r||Ha(r[1])<Vh&&Ha(r[2])<Vh||Ha(r[0])<Vh&&Ha(r[3])<Vh}var Vh=1e-5;function nf(r,e){return r?Ne.copy(r,e):e.clone()}function nb(r,e){return e?mg(r||xr(),e):void 0}function tA(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function sO(r){var e=-1/0,t=1/0;E1(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Qg(r,e,t){AO(r,e,t,-1/0)}function AO(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),A=0;A<s.length;A++)n=Wt(AO(s[A],e,t,n),n);else r.z=e,r.zlevel=t,n=Wt(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var l=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(l&&l.showAbove?1:-1))}return n}ma("circle",Po);ma("ellipse",qC);ma("sector",nn);ma("ring",Eg);ma("polygon",an);ma("polyline",Wr);ma("rect",Xe);ma("line",lr);ma("bezierCurve",Mg);ma("arc",eb);const lA=Object.freeze(Object.defineProperty({__proto__:null,Arc:eb,BezierCurve:Mg,BoundingRect:Ne,Circle:Po,CompoundPath:Dg,Ellipse:qC,Group:Fe,Image:Ur,IncrementalDisplayable:ZZ,Line:lr,LinearGradient:AA,OrientedBoundingRect:eO,Path:Ze,Point:ke,Polygon:an,Polyline:Wr,RadialGradient:qR,Rect:Xe,Ring:Eg,Sector:nn,Text:nt,WH:rr,XY:Ge,applyTransform:ua,calcZ2Range:sO,clipPointsByRect:iO,clipRectByRect:nj,createIcon:Pf,ensureCopyRect:nf,ensureCopyTransform:nb,expandOrShrinkRect:eA,extendPath:ej,extendShape:JZ,getShapeClass:rp,getTransform:zs,groupTransition:Uf,initProps:Lt,isBoundingRectAxisAligned:rb,isElementRemoved:Cl,lineLineIntersect:oO,linePolygonIntersect:pc,makeImage:rO,makePath:rf,mergePath:zn,registerShape:ma,removeElement:To,removeElementWithFadeOut:Bi,resizePath:aO,retrieveZInfo:tA,setTooltipConfig:Pi,subPixelOptimize:hd,subPixelOptimizeLine:Fl,subPixelOptimizeRect:tj,transformDirection:Fg,traverseElements:ko,traverseUpdateZ:Qg,updateProps:at},Symbol.toStringTag,{value:"Module"}));var Ug={};function lO(r,e){for(var t=0;t<rn.length;t++){var n=rn[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function M1(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Me(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var A={normal:s},l=0;l<rn.length;l++){var u=rn[l],c=e[u];A[u]=Le(n?n.getFormattedLabel(a,u,null,i,c&&c.get("formatter")):null,s)}return A}function yr(r,e,t,n){t=t||Ug;for(var a=r instanceof nt,i=!1,o=0;o<ef.length;o++){var s=e[ef[o]];if(s&&s.getShallow("show")){i=!0;break}}var A=a?r:r.getTextContent();if(i){a||(A||(A=new nt,r.setTextContent(A)),r.stateProxy&&(A.stateProxy=r.stateProxy));var l=M1(t,e),u=e.normal,c=!!u.getShallow("show"),f=Ct(u,n&&n.normal,t,!1,!a);f.text=l.normal,a||r.setTextConfig(np(u,t,!1));for(var o=0;o<rn.length;o++){var h=rn[o],s=e[h];if(s){var v=A.ensureState(h),d=!!Le(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=Ct(s,n&&n[h],t,!0,!a),v.style.text=l[h],!a){var p=r.ensureState(h);p.textConfig=np(s,t,!0)}}}A.silent=!!u.getShallow("silent"),A.style.x!=null&&(f.x=A.style.x),A.style.y!=null&&(f.y=A.style.y),A.ignore=!c,A.useStyle(f),A.dirty(),t.enableTextSetter&&(eu(A).setLabelText=function(g){var y=M1(t,e,g);lO(A,y)})}else A&&(A.ignore=!0);r.dirty()}function fr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<rn.length;n++){var a=rn[n];t[a]=r.getModel([a,e])}return t}function Ct(r,e,t,n,a){var i={};return ij(i,r,t,n,a),e&&ve(i,e),i}function np(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Le(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function ij(r,e,t,n,a){t=t||Ug;var i=e.ecModel,o=i&&i.option.textStyle,s=oj(e),A;if(s){A={};var l="richInheritPlainLabel",u=Le(e.get(l),i?i.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var f=e.getModel(["rich",c]);ZT(A[c]={},f,o,e,u,t,n,a,!1,!0)}}A&&(r.rich=A);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("lineOverflow");v&&(r.lineOverflow=v);var d=r,p=e.get("minMargin");if(p!=null)p=qe(p)?p/2:0,d.margin=[p,p,p,p],d.__marginType=hl.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=pg(g),d.__marginType=hl.textMargin)}ZT(r,e,o,null,null,t,n,a,!0,!1)}function oj(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Ug).rich;if(t){e=e||{};for(var n=je(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var WT=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],XT=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],YT=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ZT(r,e,t,n,a,i,o,s,A,l){t=!o&&t||Ug;var u=i&&i.inheritColor,c=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=Le(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(u?c=u:c=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),s||(c=c||t.color,f=f||t.textBorderColor),c!=null&&(r.fill=c),f!=null&&(r.stroke=f);var v=Le(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var d=Le(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(r.lineDash=d);var p=Le(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!o&&h==null&&!l&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<WT.length;g++){var y=WT[g],m=a!==!1&&n?bn(e.getShallow(y),n.getShallow(y),t[y]):Le(e.getShallow(y),t[y]);m!=null&&(r[y]=m)}for(var g=0;g<XT.length;g++){var y=XT[g],m=e.getShallow(y);m!=null&&(r[y]=m)}if(r.verticalAlign==null){var w=e.getShallow("baseline");w!=null&&(r.verticalAlign=w)}if(!A||!i.disableBox){for(var g=0;g<YT.length;g++){var y=YT[g],m=e.getShallow(y);m!=null&&(r[y]=m)}var B=e.getShallow("borderType");B!=null&&(r.borderDash=B),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&u&&(r.backgroundColor=u),(r.borderColor==="auto"||r.borderColor==="inherit")&&u&&(r.borderColor=u)}}function ab(r,e){var t=e&&e.getModel("textStyle");return Xn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var eu=Ye();function uO(r,e,t,n){if(r){var a=eu(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function cO(r,e,t,n,a){var i=eu(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Le(i.interpolatedValue,i.prevValue),A=i.value;function l(u){var c=cR(t,i.precision,s,A,u);i.interpolatedValue=u===1?null:c;var f=M1({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);lO(r,f)}r.percent=0,(i.prevValue==null?Lt:at)(r,{percent:1},n,e,null,l)}var hl={minMargin:1,textMargin:2},sj=["textStyle","color"],wm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Bm=new nt,Aj=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(sj):null)},r.prototype.getFont=function(){return ab({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<wm.length;n++)t[wm[n]]=this.getShallow(wm[n]);return Bm.useStyle(t),Bm.update(),Bm.getBoundingRect()},r}();const lj=Aj;var fO=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],uj=Js(fO),cj=function(){function r(){}return r.prototype.getLineStyle=function(e){return uj(this,e)},r}(),hO=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],fj=Js(hO),hj=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return fj(this,e,t)},r}(),uA=function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){Ke(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(De(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!st.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();GC(uA);cY(uA);ir(uA,cj);ir(uA,hj);ir(uA,pY);ir(uA,lj);const ot=uA;var vj=Math.round(Math.random()*10);function tu(r){return[r||"",vj++].join("_")}function dj(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=Va(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=Va(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function pj(r,e){r.topologicalTravel=function(i,o,s,A){if(!i.length)return;var l=t(o),u=l.graph,c=l.noEntryList,f={};for(F(i,function(y){f[y]=!0});c.length;){var h=c.pop(),v=u[h],d=!!f[h];d&&(s.call(A,h,v.originalDeps.slice()),delete f[h]),F(v.successor,d?g:p)}F(f,function(){var y="";throw new Error(y)});function p(y){u[y].entryCount--,u[y].entryCount===0&&c.push(y)}function g(y){f[y]=!0,p(y)}};function t(i){var o={},s=[];return F(i,function(A){var l=n(o,A),u=l.originalDeps=e(A),c=a(u,i);l.entryCount=c.length,l.entryCount===0&&s.push(A),F(c,function(f){$e(l.predecessor,f)<0&&l.predecessor.push(f);var h=n(o,f);$e(h.successor,f)<0&&h.successor.push(A)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return F(i,function(A){$e(o,A)>=0&&s.push(A)}),s}}function Ro(r,e){return Ke(Ke({},r,!0),e,!0)}const gj={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},yj={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:"旭日图",custom:"自定义图表",chart:"图表"}},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 ap="ZH",ib="EN",bl=ib,vd={},ob={},vO=st.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bl).toUpperCase();return r.indexOf(ap)>-1?ap:bl}():bl;function dO(r,e){r=r.toUpperCase(),ob[r]=new ot(e),vd[r]=e}function mj(r){if(Ce(r)){var e=vd[r.toUpperCase()]||{};return r===ap||r===ib?De(e):Ke(De(e),De(vd[bl]),!1)}else return Ke(De(r),De(vd[bl]),!1)}function D1(r){return ob[r]}function wj(){return ob[bl]}dO(ib,gj);dO(ap,yj);var F1=null;function Bj(r){F1||(F1=r)}function tr(){return F1}var sb=1e3,Ab=sb*60,Uc=Ab*60,$n=Uc*24,jT=$n*365,Cj={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},dd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},bj="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Gh="{yyyy}-{MM}-{dd}",JT={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gh,hour:Gh+" "+dd.hour,minute:Gh+" "+dd.minute,second:Gh+" "+dd.second,millisecond:bj},yn=["year","month","day","hour","minute","second","millisecond"],xj=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _j(r){return!Ce(r)&&!Me(r)?Sj(r):r}function Sj(r){r=r||{};var e={},t=!0;return F(yn,function(n){t&&(t=r[n]==null)}),F(yn,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var A=yn[s],l=Oe(i)&&!ge(i)?i[A]:i,u=void 0;ge(l)?(u=l.slice(),o=u[0]||""):Ce(l)?(o=l,u=[o]):(o==null?o=dd[n]:Cj[A].test(o)||(o=e[A][A][0]+" "+o),u=[o],t&&(u[1]="{primary|"+o+"}")),e[n][A]=u}}),e}function Hi(r,e){return r+="","0000".substr(0,e-r.length)+r}function Pc(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Tj(r){return r===Pc(r)}function Ij(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Pg(r,e,t,n){var a=sA(r),i=a[pO(t)](),o=a[lb(t)]()+1,s=Math.floor((o-1)/3)+1,A=a[ub(t)](),l=a["get"+(t?"UTC":"")+"Day"](),u=a[cb(t)](),c=(u-1)%12+1,f=a[fb(t)](),h=a[hb(t)](),v=a[vb(t)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof ot?n:D1(n||vO)||wj(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),B=y.get("dayOfWeek"),C=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Hi(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Hi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Hi(A,2)).replace(/{d}/g,A+"").replace(/{eeee}/g,B[l]).replace(/{ee}/g,C[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Hi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Hi(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Hi(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Hi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Hi(v,3)).replace(/{S}/g,v+"")}function Lj(r,e,t,n,a){var i=null;if(Ce(t))i=t;else if(Me(t)){var o={time:r.time,level:r.time.level},s=tr();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var A=r.time;if(A){var l=t[A.lowerTimeUnit][A.upperTimeUnit];i=l[Math.min(A.level,l.length-1)]||""}else{var u=vl(r.value,a);i=t[u][u][0]}}return Pg(new Date(r.value),i,a,n)}function vl(r,e){var t=sA(r),n=t[lb(e)]()+1,a=t[ub(e)](),i=t[cb(e)](),o=t[fb(e)](),s=t[hb(e)](),A=t[vb(e)](),l=A===0,u=l&&s===0,c=u&&o===0,f=c&&i===0,h=f&&a===1,v=h&&n===1;return v?"year":h?"month":f?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Q1(r,e,t){switch(e){case"year":r[gO(t)](0);case"month":r[yO(t)](1);case"day":r[mO(t)](0);case"hour":r[wO(t)](0);case"minute":r[BO(t)](0);case"second":r[CO(t)](0)}return r}function pO(r){return r?"getUTCFullYear":"getFullYear"}function lb(r){return r?"getUTCMonth":"getMonth"}function ub(r){return r?"getUTCDate":"getDate"}function cb(r){return r?"getUTCHours":"getHours"}function fb(r){return r?"getUTCMinutes":"getMinutes"}function hb(r){return r?"getUTCSeconds":"getSeconds"}function vb(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Ej(r){return r?"setUTCFullYear":"setFullYear"}function gO(r){return r?"setUTCMonth":"setMonth"}function yO(r){return r?"setUTCDate":"setDate"}function mO(r){return r?"setUTCHours":"setHours"}function wO(r){return r?"setUTCMinutes":"setMinutes"}function BO(r){return r?"setUTCSeconds":"setSeconds"}function CO(r){return r?"setUTCMilliseconds":"setMilliseconds"}function bO(r){if(!rR(r))return Ce(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function xO(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var kf=pg;function U1(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&Xn(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var o=e==="time",s=r instanceof Date;if(o||s){var A=o?sA(r):r;if(isNaN(+A)){if(s)return"-"}else return Pg(A,n,t)}if(e==="ordinal")return zw(r)?a(r):qe(r)&&i(r)?r+"":"-";var l=Ii(r);return i(l)?bO(l):zw(r)?a(r):typeof r=="boolean"?r+"":"-"}var qT=["a","b","c","d","e","f","g"],Cm=function(r,e){return"{"+r+(e??"")+"}"};function _O(r,e,t){ge(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=qT[i];r=r.replace(Cm(o),Cm(o,0))}for(var s=0;s<n;s++)for(var A=0;A<a.length;A++){var l=e[s][a[A]];r=r.replace(Cm(qT[A],s),t?Vr(l):l)}return r}function Mj(r,e,t){return F(e,function(n,a){r=r.replace("{"+a+"}",t?Vr(n):n)}),r}function Dj(r,e){var t=Ce(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Vr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Vr(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rA(r,e){return e=e||"transparent",Ce(r)?r:Oe(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function ip(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var pd={},bm={},Rf=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(pd),this._normalMasterList=n(bm);function n(a,i){var o=[];return F(a,function(s,A){var l=s.create(e,t);o=o.concat(l||[])}),o}},r.prototype.update=function(e,t){F(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){pd[e]=t;return}bm[e]=t},r.get=function(e){return bm[e]||pd[e]},r}();function Fj(r){return!!pd[r]}var P1={coord:1,coord2:2};function Qj(r){SO.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var SO=Ie();function Uj(r){var e=r.getShallow("coord",!0),t=P1.coord;if(e==null){var n=SO.get(r.type);n&&n.getCoord2&&(t=P1.coord2,e=n.getCoord2(r))}return{coord:e,from:t}}var Ra={none:0,dataCoordSys:1,boxCoordSys:2};function TO(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=Ra.none;if(t){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Ra.dataCoordSys,i||(a=Ra.none)):n==="box"&&(a=Ra.boxCoordSys,!i&&!Fj(t)&&(a=Ra.none))}return{coordSysType:t,kind:a}}function Of(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=TO(e),o=i.kind,s=i.coordSysType;if(a&&o!==Ra.dataCoordSys&&(o=Ra.dataCoordSys,s=t),o===Ra.none||s!==t)return!1;var A=n(t,e);return A?(o===Ra.dataCoordSys?e.coordinateSystem=A:e.boxCoordinateSystem=A,!0):!1}var IO=function(r,e){var t=e.getReferringComponents(r,zt).models[0];return t&&t.coordinateSystem},gd=F,LO=["left","right","top","bottom","width","height"],Ds=[["width","left","right"],["height","top","bottom"]];function db(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(A,l){var u=A.getBoundingRect(),c=e.childAt(l+1),f=c&&c.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(f?-f.x+u.x:0);h=i+d,h>n||A.newline?(i=0,h=d,o+=s+t,s=u.height):s=Math.max(s,u.height)}else{var p=u.height+(f?-f.y+u.y:0);v=o+p,v>a||A.newline?(i+=s+t,o=0,v=p,s=u.width):s=Math.max(s,u.width)}A.newline||(A.x=i,A.y=o,A.markRedraw(),r==="horizontal"?i=h+t:o=v+t)})}var $s=db;ze(db,"vertical");ze(db,"horizontal");function EO(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function Pj(r,e){var t=hr(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===gc.point)i=t.refPoint,a=Ut(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=ge(o)?o:[o,o];a=Ut(n,t.refContainer),i=t.boxCoordFrom===P1.coord2?t.refPoint:[Be(s[0],a.width)+a.x,Be(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function MO(r,e){var t=Pj(r,e),n=t.viewRect,a=t.center,i=r.get("radius");ge(i)||(i=[0,i]);var o=Be(n.width,e.getWidth()),s=Be(n.height,e.getHeight()),A=Math.min(o,s),l=Be(i[0],A/2),u=Be(i[1],A/2);return{cx:a[0],cy:a[1],r0:l,r:u,viewRect:n}}function Ut(r,e,t){t=kf(t||0);var n=e.width,a=e.height,i=Be(r.left,n),o=Be(r.top,a),s=Be(r.right,n),A=Be(r.bottom,a),l=Be(r.width,n),u=Be(r.height,a),c=t[2]+t[0],f=t[1]+t[3],h=r.aspect;switch(isNaN(l)&&(l=n-s-f-i),isNaN(u)&&(u=a-A-c-o),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-s-l-f),isNaN(o)&&(o=a-A-u-c),r.left||r.right){case"center":i=n/2-l/2-t[3];break;case"right":i=n-l-f;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-u/2-t[0];break;case"bottom":o=a-u-c;break}i=i||0,o=o||0,isNaN(l)&&(l=n-f-i-(s||0)),isNaN(u)&&(u=a-c-o-(A||0));var v=new Ne((e.x||0)+i+t[3],(e.y||0)+o+t[0],l,u);return v.margin=t,v}function DO(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},A=n==="cover";return a>t&&!A||a<t&&A?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Ut(s,e)}var gc={rect:1,point:2};function hr(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var A=Uj(r),l=A.coord,u=A.from;if(o.dataToLayout){i=gc.rect,s=u;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=gc.point,s=u,a=o.dataToPoint(l))}return i==null&&(i=gc.rect),i===gc.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function kg(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],A=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var l;if(A==="raw")l=r.type==="group"?new Ne(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var c=Ut(Re({width:l.width,height:l.height},e),t,n),f=o?c.x-l.x:0,h=s?c.y-l.y:0;return A==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===r&&r.markRedraw(),!0}function kj(r,e){return r[Ds[e][0]]!=null||r[Ds[e][1]]!=null&&r[Ds[e][2]]!=null}function af(r){var e=r.layoutMode||r.constructor.layoutMode;return Oe(e)?e:e?{type:e}:null}function ei(r,e,t){var n=t&&t.ignoreSize;!ge(n)&&(n=[n,n]);var a=o(Ds[0],0),i=o(Ds[1],1);A(Ds[0],r,a),A(Ds[1],r,i);function o(l,u){var c={},f=0,h={},v=0,d=2;if(gd(l,function(y){h[y]=r[y]}),gd(l,function(y){Se(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&f++,s(h,y)&&v++}),n[u])return s(e,l[1])?h[l[2]]=null:s(e,l[2])&&(h[l[1]]=null),h;if(v===d||!f)return h;if(f>=d)return c;for(var p=0;p<l.length;p++){var g=l[p];if(!Se(c,g)&&Se(r,g)){c[g]=r[g];break}}return c}function s(l,u){return l[u]!=null&&l[u]!=="auto"}function A(l,u,c){gd(l,function(f){u[f]=c[f]})}}function cA(r){return FO({},r)}function FO(r,e){return e&&r&&gd(LO,function(t){Se(e,t)&&(r[t]=e[t])}),r}var Rj=Ye(),ru=function(r){ce(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=tu("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=af(this),i=a?cA(t):{},o=n.getTheme();Ke(t,o.get(this.mainType)),Ke(t,this.getDefaultOption()),a&&ei(t,i,a)},e.prototype.mergeOption=function(t,n){Ke(this.option,t,!0);var a=af(this);a&&ei(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!AY(t))return t.defaultOption;var n=Rj(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},A=a.length-1;A>=0;A--)s=Ke(s,a[A],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return jl(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return EO(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(ot);hR(ru,ot);Cg(ru);dj(ru);pj(ru,Oj);function Oj(r){var e=[];return F(ru.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=me(e,function(t){return Va(t).main}),r!=="dataset"&&$e(e,"dataset")<=0&&e.unshift("dataset"),e}const et=ru;var Fs={color:{},darkColor:{},size:{}},$t=Fs.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};ve($t,{primary:$t.neutral80,secondary:$t.neutral70,tertiary:$t.neutral60,quaternary:$t.neutral50,disabled:$t.neutral20,border:$t.neutral30,borderTint:$t.neutral20,borderShade:$t.neutral40,background:$t.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:$t.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:$t.neutral70,axisLineTint:$t.neutral40,axisTick:$t.neutral70,axisTickMinor:$t.neutral60,axisLabel:$t.neutral70,axisSplitLine:$t.neutral15,axisMinorSplitLine:$t.neutral05});for(var as in $t)if($t.hasOwnProperty(as)){var eI=$t[as];as==="theme"?Fs.darkColor.theme=$t.theme.slice():as==="highlight"?Fs.darkColor.highlight="rgba(255,231,130,0.4)":as.indexOf("accent")===0?Fs.darkColor[as]=mo(eI,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Fs.darkColor[as]=mo(eI,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Fs.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const le=Fs;var QO="";typeof navigator<"u"&&(QO=navigator.platform||"");var PA="rgba(0, 0, 0, 0.2)",UO=le.color.theme[0],Hj=mo(UO,null,null,.9);const Nj={darkMode:"auto",colorBy:"series",color:le.color.theme,gradientColor:[Hj,UO],aria:{decal:{decals:[{color:PA,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:PA,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:PA,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:PA,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:PA,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:PA,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:QO.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 PO=Ie(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sn="original",_r="arrayRows",Tn="objectRows",wa="keyedColumns",Bo="typedArray",kO="unknown",ca="column",fA="row",Ir={Must:1,Might:2,Not:3},RO=Ye();function Vj(r){RO(r).datasetMap=Ie()}function OO(r,e,t){var n={},a=gb(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,A=RO(s).datasetMap,l=a.uid+"_"+t.seriesLayoutBy,u,c;r=r.slice(),F(r,function(d,p){var g=Oe(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,c=v(g)),n[g.name]=[]});var f=A.get(l)||A.set(l,{categoryWayDim:c,valueWayDim:0});F(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=f.valueWayDim;h(n[g],m,y),h(o,m,y),f.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=f.categoryWayDim;h(n[g],m,y),h(o,m,y),f.categoryWayDim+=y}});function h(d,p,g){for(var y=0;y<g;y++)d.push(p+y)}function v(d){var p=d.dimsDef;return p?p.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function pb(r,e,t){var n={},a=gb(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Tn||i===wa)&&F(o,function(u,c){(Oe(u)?u.name:u)==="name"&&(s=c)});var A=function(){for(var u={},c={},f=[],h=0,v=Math.min(5,t);h<v;h++){var d=NO(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);f.push(d);var p=d===Ir.Not;if(p&&u.v==null&&h!==s&&(u.v=h),(u.n==null||u.n===u.v||!p&&f[u.n]===Ir.Not)&&(u.n=h),g(u)&&f[u.n]!==Ir.Not)return u;p||(d===Ir.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(u)?u:g(c)?c:null}();if(A){n.value=[A.v];var l=s??A.n;n.itemName=[l],n.seriesName=[l]}return n}function gb(r){var e=r.get("data",!0);if(!e)return jl(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},zt).models[0]}function Gj(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:jl(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},zt).models}function HO(r,e){return NO(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function NO(r,e,t,n,a,i){var o,s=5;if(vn(r))return Ir.Not;var A,l;if(n){var u=n[i];Oe(u)?(A=u.name,l=u.type):Ce(u)&&(A=u)}if(l!=null)return l==="ordinal"?Ir.Must:Ir.Not;if(e===_r){var c=r;if(t===fA){for(var f=c[i],h=0;h<(f||[]).length&&h<s;h++)if((o=w(f[a+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[a+h];if(v&&(o=w(v[i]))!=null)return o}}else if(e===Tn){var d=r;if(!A)return Ir.Not;for(var h=0;h<d.length&&h<s;h++){var p=d[h];if(p&&(o=w(p[A]))!=null)return o}}else if(e===wa){var g=r;if(!A)return Ir.Not;var f=g[A];if(!f||vn(f))return Ir.Not;for(var h=0;h<f.length&&h<s;h++)if((o=w(f[h]))!=null)return o}else if(e===Sn)for(var y=r,h=0;h<y.length&&h<s;h++){var p=y[h],m=Zl(p);if(!ge(m))return Ir.Not;if((o=w(m[i]))!=null)return o}function w(B){var C=Ce(B);if(B!=null&&Number.isFinite(Number(B))&&B!=="")return C?Ir.Might:Ir.Not;if(C&&B!=="-")return Ir.Must}return Ir.Not}var k1=Ie();function zj(r,e){Kr(k1.get(r)==null&&e),k1.set(r,e)}function $j(r,e,t){var n=k1.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var tI=Ye(),Kj=Ye(),yb=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=gt(this.get("color",!0)),i=this.get("colorLayer",!0);return VO(this,tI,a,i,e,t,n)},r.prototype.clearColorPalette=function(){Xj(this,tI)},r}();function R1(r,e,t,n){var a=gt(r.get(["aria","decal","decals"]));return VO(r,Kj,a,null,e,t,n)}function Wj(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function VO(r,e,t,n,a,i,o){i=i||r;var s=e(i),A=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=o==null||!n?t:Wj(n,o);if(u=u||t,!(!u||!u.length)){var c=u[A];return a&&(l[a]=c),s.paletteIdx=(A+1)%u.length,c}}function Xj(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var zh,Bu,rI,nI="\0_ec_inner",Yj=1,GO=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ot(i),this._locale=new ot(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=oI(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,oI(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?rI(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var A=i.getMediaOption(this);A.length&&F(A,function(l){a=!0,this._mergeOption(l,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],A=Ie(),l=n&&n.replaceMergeMainTypeMap;Vj(this),F(t,function(c,f){c!=null&&(et.hasClass(f)?f&&(s.push(f),A.set(f,!0)):a[f]=a[f]==null?De(c):Ke(a[f],c,!0))}),l&&l.each(function(c,f){et.hasClass(f)&&!A.get(f)&&(s.push(f),A.set(f,!0))}),et.topologicalTravel(s,et.getAllClassMainTypes(),u,this);function u(c){var f=$j(this,c,gt(t[c])),h=i.get(c),v=h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=AR(h,f,v);q9(d,c,et),a[c]=null,i.set(c,null),o.set(c,0);var p=[],g=[],y=0,m;F(d,function(w,B){var C=w.existing,b=w.newOption;if(!b)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var _=c==="series",x=et.getClass(c,w.keyInfo.subType,!_);if(!x)return;if(c==="tooltip"){if(m)return;m=!0}if(C&&C.constructor===x)C.name=w.keyInfo.name,C.mergeOption(b,this),C.optionUpdated(b,!1);else{var S=ve({componentIndex:B},w.keyInfo);C=new x(b,this,this,S),ve(C,S),w.brandNew&&(C.__requireNewView=!0),C.init(b,this,this),C.optionUpdated(null,!0)}}C?(p.push(C.option),g.push(C),y++):(p.push(void 0),g.push(void 0))},this),a[c]=p,i.set(c,g),o.set(c,y),c==="series"&&zh(this)}this._seriesIndices||zh(this)},e.prototype.getOption=function(){var t=De(this.option);return F(t,function(n,a){if(et.hasClass(a)){for(var i=gt(n),o=i.length,s=!1,A=o-1;A>=0;A--)i[A]&&!Jc(i[A])?s=!0:(i[A]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[nI],t},e.prototype.setTheme=function(t){this._theme=new ot(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var A;return a!=null?(A=[],F(gt(a),function(l){s[l]&&A.push(s[l])})):i!=null?A=aI("id",i,s):o!=null?A=aI("name",o,s):A=ft(s,function(l){return!!l}),iI(A,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):ft(this._componentsMap.get(a),function(l){return!!l});return A(iI(o,t));function s(l){var u=a+"Index",c=a+"Id",f=a+"Name";return l&&(l[u]!=null||l[c]!=null||l[f]!=null)?{mainType:a,index:l[u],id:l[c],name:l[f]}:null}function A(l){return t.filter?ft(l,t.filter):l}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(Me(t)){var o=n,s=t;i.each(function(c,f){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,f,v,v.componentIndex)}})}else for(var A=Ce(t)?i.get(t):Oe(t)?this.findComponents(t):null,l=0;A&&l<A.length;l++){var u=A[l];u&&n.call(a,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=Ar(t,null);return ft(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ft(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return ft(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Bu(this),F(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){F(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Bu(this),F(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return F(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Bu(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Bu(this);var a=[];F(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Ie(a)},e.prototype.restoreData=function(t){zh(this);var n=this._componentsMap,a=[];n.each(function(i,o){et.hasClass(o)&&a.push(o)}),et.topologicalTravel(a,et.getAllClassMainTypes(),function(i){F(n.get(i),function(o){o&&(i!=="series"||!Zj(o,t))&&o.restoreData()})})},e.internalField=function(){zh=function(t){var n=t._seriesIndices=[];F(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=Ie(n)},Bu=function(t){},rI=function(t,n){t.option={},t.option[nI]=Yj,t._componentsMap=Ie({series:[]}),t._componentsCount=Ie();var a=n.aria;Oe(a)&&a.enabled==null&&(a.enabled=!0),jj(n,t._theme.option),Ke(n,Nj,!1),t._mergeOption(n,null)}}(),e}(ot);function Zj(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function jj(r,e){var t=r.color&&!r.colorLayer;F(e,function(n,a){a==="colorLayer"&&t||a==="color"&&r.color||et.hasClass(a)||(typeof n=="object"?r[a]=r[a]?Ke(r[a],n,!1):De(n):r[a]==null&&(r[a]=n))})}function aI(r,e,t){if(ge(e)){var n=Ie();return F(e,function(i){if(i!=null){var o=Ar(i,null);o!=null&&n.set(i,!0)}}),ft(t,function(i){return i&&n.get(i[r])})}else{var a=Ar(e,null);return ft(t,function(i){return i&&a!=null&&i[r]===a})}}function iI(r,e){return e.hasOwnProperty("subType")?ft(r,function(t){return t&&t.subType===e.subType}):r}function oI(r){var e=Ie();return r&&F(gt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ir(GO,yb);const zO=GO;var Jj=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],qj=function(){function r(e){F(Jj,function(t){this[t]=be(e[t],e)},this)}return r}();const $O=qj;var eJ=/^(min|max)?(.+)$/,tJ=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(F(gt(e.series),function(o){o&&o.data&&vn(o.data)&&Nd(o.data)}),F(gt(e.dataset),function(o){o&&o.source&&vn(o.source)&&Nd(o.source)})),e=De(e);var a=this._optionBackup,i=rJ(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],De(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=De(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var A=0,l=a.length;A<l;A++)nJ(a[A].query,t,n)&&o.push(A);return!o.length&&i&&(o=[-1]),o.length&&!iJ(o,this._currentMediaIndices)&&(s=me(o,function(u){return De(u===-1?i.option:a[u].option)})),this._currentMediaIndices=o,s},r}();function rJ(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,A=r.options,l=r.media,u=!!r.media,c=!!(A||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||u)&&(r.options=r.media=null),i=r),u&&ge(l)&&F(l,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),f(i),F(A,function(h){return f(h)}),F(n,function(h){return f(h.option)});function f(h){F(e,function(v){v(h,t)})}return{baseOption:i,timelineOptions:A||[],mediaDefault:a,mediaList:n}}function nJ(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return F(r,function(i,o){var s=o.match(eJ);if(!(!s||!s[1]||!s[2])){var A=s[1],l=s[2].toLowerCase();aJ(n[l],i,A)||(a=!1)}}),a}function aJ(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function iJ(r,e){return r.join(",")===e.join(",")}const oJ=tJ;var ta=F,of=Oe,sI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function xm(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=sI.length;t<n;t++){var a=sI[t],i=e.normal,o=e.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?Ke(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?Ke(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Hr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,Re(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function yc(r){Hr(r,"itemStyle"),Hr(r,"lineStyle"),Hr(r,"areaStyle"),Hr(r,"label"),Hr(r,"labelLine"),Hr(r,"upperLabel"),Hr(r,"edgeLabel")}function Jt(r,e){var t=of(r)&&r[e],n=of(t)&&t.textStyle;if(n)for(var a=0,i=uT.length;a<i;a++){var o=uT[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function Rn(r){r&&(yc(r),Jt(r,"label"),r.emphasis&&Jt(r.emphasis,"label"))}function sJ(r){if(of(r)){xm(r),yc(r),Jt(r,"label"),Jt(r,"upperLabel"),Jt(r,"edgeLabel"),r.emphasis&&(Jt(r.emphasis,"label"),Jt(r.emphasis,"upperLabel"),Jt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(xm(e),Rn(e));var t=r.markLine;t&&(xm(t),Rn(t));var n=r.markArea;n&&Rn(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!vn(i))for(var o=0;o<i.length;o++)Rn(i[o]);F(r.categories,function(l){yc(l)})}if(a&&!vn(a))for(var o=0;o<a.length;o++)Rn(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Rn(s[o]);if(t=r.markLine,t&&t.data)for(var A=t.data,o=0;o<A.length;o++)ge(A[o])?(Rn(A[o][0]),Rn(A[o][1])):Rn(A[o]);r.type==="gauge"?(Jt(r,"axisLabel"),Jt(r,"title"),Jt(r,"detail")):r.type==="treemap"?(Hr(r.breadcrumb,"itemStyle"),F(r.levels,function(l){yc(l)})):r.type==="tree"&&yc(r.leaves)}}function ui(r){return ge(r)?r:r?[r]:[]}function AI(r){return(ge(r)?r[0]:r)||{}}function AJ(r,e){ta(ui(r.series),function(n){of(n)&&sJ(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),ta(t,function(n){ta(ui(r[n]),function(a){a&&(Jt(a,"axisLabel"),Jt(a.axisPointer,"label"))})}),ta(ui(r.parallel),function(n){var a=n&&n.parallelAxisDefault;Jt(a,"axisLabel"),Jt(a&&a.axisPointer,"label")}),ta(ui(r.calendar),function(n){Hr(n,"itemStyle"),Jt(n,"dayLabel"),Jt(n,"monthLabel"),Jt(n,"yearLabel")}),ta(ui(r.radar),function(n){Jt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),ta(ui(r.geo),function(n){of(n)&&(Rn(n),ta(ui(n.regions),function(a){Rn(a)}))}),ta(ui(r.timeline),function(n){Rn(n),Hr(n,"label"),Hr(n,"itemStyle"),Hr(n,"controlStyle",!0);var a=n.data;ge(a)&&F(a,function(i){Oe(i)&&(Hr(i,"label"),Hr(i,"itemStyle"))})}),ta(ui(r.toolbox),function(n){Hr(n,"iconStyle"),ta(n.feature,function(a){Hr(a,"iconStyle")})}),Jt(AI(r.axisPointer),"label"),Jt(AI(r.tooltip).axisPointer,"label")}function lJ(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function uJ(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=t)}function lI(r){r&&F(cJ,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var cJ=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fJ=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_m=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cu(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<_m.length;t++){var n=_m[t][1],a=_m[t][0];e[n]!=null&&(e[a]=e[n])}}function uI(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function cI(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function hJ(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function KO(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&KO(r[t].children,e)}function WO(r,e){AJ(r,e),r.series=gt(r.series),F(r.series,function(t){if(Oe(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),uI(t.label);var a=t.data;if(a&&!vn(a))for(var i=0;i<a.length;i++)uI(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=lJ(t,"pointer.color");o!=null&&uJ(t,"itemStyle.color",o)}else if(n==="bar"){Cu(t),Cu(t.backgroundStyle),Cu(t.emphasis);var a=t.data;if(a&&!vn(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Cu(a[i]),Cu(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),cI(t),KO(t.data,cI)}else n==="graph"||n==="sankey"?hJ(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Re(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),lI(t)}}),r.dataRange&&(r.visualMap=r.dataRange),F(fJ,function(t){var n=r[t];n&&(ge(n)||(n=[n]),F(n,function(a){lI(a)}))})}function vJ(r){var e=Ie();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),F(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),dJ(t)}})}function dJ(r){F(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,A=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,u,c){var f=o.get(e.stackedDimension,c);if(isNaN(f))return a;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,p=t-1;p>=0;p--){var g=r[p];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(A==="all"||A==="positive"&&y>0||A==="negative"&&y<0||A==="samesign"&&f>=0&&y>0||A==="samesign"&&f<=0&&y<0){f=O9(f,y),d=y;break}}}return n[0]=f,n[1]=d,n})})}var Rg=function(){function r(e){this.data=e.data||(e.sourceFormat===wa?{}:[]),this.sourceFormat=e.sourceFormat||kO,this.seriesLayoutBy=e.seriesLayoutBy||ca,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&HO(this,n)===Ir.Must&&(a.type="ordinal")}}return r}();function mb(r){return r instanceof Rg}function O1(r,e,t){t=t||XO(r);var n=e.seriesLayoutBy,a=gJ(r,t,n,e.sourceHeader,e.dimensions),i=new Rg({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:De(e)});return i}function wb(r){return new Rg({data:r,sourceFormat:vn(r)?Bo:Sn})}function pJ(r){return new Rg({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:De(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function XO(r){var e=kO;if(vn(r))e=Bo;else if(ge(r)){r.length===0&&(e=_r);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(ge(a)||vn(a)){e=_r;break}else if(Oe(a)){e=Tn;break}}}}else if(Oe(r)){for(var i in r)if(Se(r,i)&&$r(r[i])){e=wa;break}}return e}function gJ(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:fI(a),startIndex:o,dimensionsDetectedCount:i};if(e===_r){var s=r;n==="auto"||n==null?hI(function(l){l!=null&&l!=="-"&&(Ce(l)?o==null&&(o=1):o=0)},t,s,10):o=qe(n)?n:n?1:0,!a&&o===1&&(a=[],hI(function(l,u){a[u]=l!=null?l+"":""},t,s,1/0)),i=a?a.length:t===fA?s.length:s[0]?s[0].length:null}else if(e===Tn)a||(a=yJ(r));else if(e===wa)a||(a=[],F(r,function(l,u){a.push(u)}));else if(e===Sn){var A=Zl(r[0]);i=ge(A)&&A.length||1}return{startIndex:o,dimensionsDefine:fI(a),dimensionsDetectedCount:i}}function yJ(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return je(t)}function fI(r){if(r){var e=Ie();return me(r,function(t,n){t=Oe(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function hI(r,e,t,n){if(e===fA)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function YO(r){var e=r.sourceFormat;return e===Tn||e===wa}var is,os,ss,As,vI,dI,ZO=function(){function r(e,t){var n=mb(e)?e:wb(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Bo&&(this._offset=0,this._dimSize=t,this._data=a),dI(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;dI=function(o,s,A){var l=A.sourceFormat,u=A.seriesLayoutBy,c=A.startIndex,f=A.dimensionsDefine,h=vI[Bb(l,u)];if(ve(o,h),l===Bo)o.getItem=t,o.count=a,o.fillStorage=n;else{var v=jO(l,u);o.getItem=be(v,null,s,c,f);var d=JO(l,u);o.count=be(d,null,s,c,f)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var A=this._data,l=this._dimSize,u=l*o,c=0;c<l;c++)s[c]=A[u+c];return s},n=function(o,s,A,l){for(var u=this._data,c=this._dimSize,f=0;f<c;f++){for(var h=l[f],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],p=s-o,g=A[f],y=0;y<p;y++){var m=u[y*c+f];g[o+y]=m,m<v&&(v=m),m>d&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};vI=(e={},e[_r+"_"+ca]={pure:!0,appendData:i},e[_r+"_"+fA]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Tn]={pure:!0,appendData:i},e[wa]={pure:!0,appendData:function(o){var s=this._data;F(o,function(A,l){for(var u=s[l]||(s[l]=[]),c=0;c<(A||[]).length;c++)u.push(A[c])})}},e[Sn]={appendData:i},e[Bo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),$h=function(r){ge(r)||iR("series.data or dataset.source must be an array.")};is={},is[_r+"_"+ca]=$h,is[_r+"_"+fA]=$h,is[Tn]=$h,is[wa]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&iR("dimension name must not be null/undefined.")}},is[Sn]=$h;var pI=function(r,e,t,n){return r[n]},mJ=(os={},os[_r+"_"+ca]=function(r,e,t,n){return r[n+e]},os[_r+"_"+fA]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var A=o[s];i[s]=A?A[n]:null}return i},os[Tn]=pI,os[wa]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,A=s!=null?r[s]:null;i[o]=A?A[n]:null}return i},os[Sn]=pI,os);function jO(r,e){var t=mJ[Bb(r,e)];return t}var gI=function(r,e,t){return r.length},wJ=(ss={},ss[_r+"_"+ca]=function(r,e,t){return Math.max(0,r.length-e)},ss[_r+"_"+fA]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},ss[Tn]=gI,ss[wa]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},ss[Sn]=gI,ss);function JO(r,e){var t=wJ[Bb(r,e)];return t}var Sm=function(r,e,t){return r[e]},BJ=(As={},As[_r]=Sm,As[Tn]=function(r,e,t){return r[t]},As[wa]=Sm,As[Sn]=function(r,e,t){var n=Zl(r);return n instanceof Array?n[e]:n},As[Bo]=Sm,As);function qO(r){var e=BJ[r];return e}function Bb(r,e){return r===_r?r+"_"+e:r}function Ql(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return qO(i)(n,o,s)}else{var A=n;return i===Sn&&(A=Zl(n)),A}}}}var CJ=/\{@(.+?)\}/g,Og=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),A=n.getItemVisual(e,"style"),l=A&&A[n.getItemVisual(e,"drawType")||"fill"],u=A&&A.stroke,c=this.mainType,f=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),A=this.getDataParams(e,n);if(o&&(A.value=o.interpolatedValue),a!=null&&ge(A.value)&&(A.value=A.value[a]),!i){var l=s.getItemModel(e);i=l.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Me(i))return A.status=t,A.dimensionIndex=a,i(A);if(Ce(i)){var u=_O(i,A);return u.replace(CJ,function(c,f){var h=f.length,v=f;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=Ql(s,e,v);if(o&&ge(o.interpolatedValue)){var p=s.getDimensionIndex(v);p>=0&&(d=o.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Ql(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function yI(r){var e,t;return Oe(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function kc(r){return new bJ(r)}var bJ=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=u(this._modBy),s=this._modDataCount||0,A=u(e&&e.modBy),l=e&&e.modDataCount||0;(o!==A||s!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=A,this._modDataCount=l;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(c||h<v)){var d=this._progress;if(ge(d))for(var p=0;p<d.length;p++)this._doProgress(d[p],h,v,A,l);else this._doProgress(d,h,v,A,l)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,a,i){mI.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:mI.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),ge(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),mI=function(){var r,e,t,n,a,i={reset:function(A,l,u,c){e=A,r=l,t=u,n=c,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var A=e%a*t+Math.ceil(e/a),l=e>=r?null:A<n?A:e;return e++,l}}();function Co(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!qe(r)&&r!=null&&r!=="-"&&(r=+sA(r)),r==null||r===""?NaN:Number(r))}var xJ=Ie({number:function(r){return parseFloat(r)},time:function(r){return+sA(r)},trim:function(r){return Ce(r)?Xn(r):r}});function eH(r){return xJ.get(r)}var tH={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},_J=function(){function r(e,t){if(!qe(t)){var n="";At(n)}this._opFn=tH[e],this._rvalFloat=Ii(t)}return r.prototype.evaluate=function(e){return qe(e)?this._opFn(e,this._rvalFloat):this._opFn(Ii(e),this._rvalFloat)},r}(),rH=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=qe(e)?e:Ii(e),a=qe(t)?t:Ii(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ce(e),A=Ce(t);s&&(n=A?e:0),A&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),SJ=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Ii(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=Ii(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function TJ(r,e){return r==="eq"||r==="ne"?new SJ(r==="eq",e):Se(tH,r)?new _J(r,e):null}var IJ=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Co(e,t)},r}();function LJ(r,e){var t=new IJ,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ca&&At(o);var s=[],A={},l=r.dimensionsDefine;if(l)F(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(s.push(y),g!=null){var m="";Se(A,g)&&At(m),A[g]=y}});else for(var u=0;u<r.dimensionsDetectedCount;u++)s.push({index:u});var c=jO(a,ca);e.__isBuiltIn&&(t.getRawDataItem=function(d){return c(n,i,s,d)},t.getRawData=be(EJ,null,r)),t.cloneRawData=be(MJ,null,r);var f=JO(a,ca);t.count=be(f,null,n,i,s);var h=qO(a);t.retrieveValue=function(d,p){var g=c(n,i,s,d);return v(g,p)};var v=t.retrieveValueFromItem=function(d,p){if(d!=null){var g=s[p];if(g)return h(d,p,g.name)}};return t.getDimensionInfo=be(DJ,null,s,A),t.cloneAllDimensionInfo=be(FJ,null,s),t}function EJ(r){var e=r.sourceFormat;if(!Cb(e)){var t="";At(t)}return r.data}function MJ(r){var e=r.sourceFormat,t=r.data;if(!Cb(e)){var n="";At(n)}if(e===_r){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Tn){for(var a=[],i=0,o=t.length;i<o;i++)a.push(ve({},t[i]));return a}}function DJ(r,e,t){if(t!=null){if(qe(t)||!isNaN(t)&&!Se(e,t))return r[t];if(Se(e,t))return e[t]}}function FJ(r){return De(r)}var nH=Ie();function QJ(r){r=De(r);var e=r.type,t="";e||At(t);var n=e.split(":");n.length!==2&&At(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,nH.set(e,r)}function UJ(r,e,t){var n=gt(r),a=n.length,i="";a||At(i);for(var o=0,s=a;o<s;o++){var A=n[o];e=PJ(A,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function PJ(r,e,t,n){var a="";e.length||At(a),Oe(r)||At(a);var i=r.type,o=nH.get(i);o||At(a);var s=me(e,function(l){return LJ(l,o)}),A=gt(o.transform({upstream:s[0],upstreamList:s,config:De(r.config)}));return me(A,function(l,u){var c="";Oe(l)||At(c),l.data||At(c);var f=XO(l.data);Cb(f)||At(c);var h,v=e[0];if(v&&u===0&&!l.dimensions){var d=v.startIndex;d&&(l.data=v.data.slice(0,d).concat(l.data)),h={seriesLayoutBy:ca,sourceHeader:d,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:ca,sourceHeader:0,dimensions:l.dimensions};return O1(l.data,h,null)})}function Cb(r){return r===_r||r===Tn}var Hg="undefined",kJ=typeof Uint32Array===Hg?Array:Uint32Array,RJ=typeof Uint16Array===Hg?Array:Uint16Array,aH=typeof Int32Array===Hg?Array:Int32Array,wI=typeof Float64Array===Hg?Array:Float64Array,iH={float:wI,int:aH,ordinal:Array,number:Array,time:wI},Tm;function kA(r){return r>65535?kJ:RJ}function RA(){return[1/0,-1/0]}function OJ(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function BI(r,e,t,n,a){var i=iH[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var A=new i(n),l=0;l<s;l++)A[l]=o[l];r[e]=A}}else r[e]=new i(n)}var H1=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ie()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Tm[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],YO(a),this._dimensions=me(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new iH[t||"float"](this._rawCount),this._rawExtent[i]=RA(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=RA());for(var A=i[e],l=o;l<s;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(A[0]=Math.min(u,A[0]),A[1]=Math.max(u,A[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),A=s+Math.max(e.length,t||0),l=0;l<i;l++){var u=a[l];BI(n,l,u.type,A,!0)}for(var c=[],f=s;f<A;f++)for(var h=f-s,v=0;v<i;v++){var u=a[v],d=Tm.arrayRows.call(this,e[h]||c,u.property,h,v);n[v][f]=d;var p=o[v];d<p[0]&&(p[0]=d),d>p[1]&&(p[1]=d)}return this._rawCount=this._count=A,{start:s,end:A}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,A=this._rawExtent,l=me(o,function(y){return y.property}),u=0;u<s;u++){var c=o[u];A[u]||(A[u]=RA()),BI(i,u,c.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,A);else for(var f=[],h=e;h<t;h++){f=a.getItem(h,f);for(var v=0;v<s;v++){var d=i[v],p=this._dimValueGetter(f,l[v],h,v);d[h]=p;var g=A[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var n=t.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=kA(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=kA(n._rawCount),o=new i(a),s=[],A=e.length,l=0,u=e[0],c=n._chunks,f=0;f<a;f++){var h=void 0,v=n.getRawIndex(f);if(A===0)h=t(f);else if(A===1){var d=c[u][v];h=t(d,f)}else{for(var p=0;p<A;p++)s[p]=c[e[p]][v];s[p]=f,h=t.apply(null,s)}h&&(o[l++]=v)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=je(e),i=a.length;if(!i)return this;var o=t.count(),s=kA(t._rawCount),A=new s(o),l=0,u=a[0],c=e[u][0],f=e[u][1],h=t._chunks,v=!1;if(!t._indices){var d=0;if(i===1){for(var p=h[a[0]],g=0;g<n;g++){var y=p[g];(y>=c&&y<=f||isNaN(y))&&(A[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=e[a[1]][0],B=e[a[1]][1],g=0;g<n;g++){var y=p[g],C=m[g];(y>=c&&y<=f||isNaN(y))&&(C>=w&&C<=B||isNaN(C))&&(A[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g<o;g++){var b=t.getRawIndex(g),y=h[a[0]][b];(y>=c&&y<=f||isNaN(y))&&(A[l++]=b)}else for(var g=0;g<o;g++){for(var _=!0,b=t.getRawIndex(g),x=0;x<i;x++){var S=a[x],y=h[S][b];(y<e[S][0]||y>e[S][1])&&(_=!1)}_&&(A[l++]=t.getRawIndex(g))}return l<o&&(t._indices=A),t._count=l,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),A=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=RA();for(var c=0;c<s;c++){for(var f=e.getRawIndex(c),h=0;h<o;h++)A[h]=a[t[h]][f];A[o]=c;var v=n&&n.apply(null,A);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var u=0;u<v.length;u++){var d=t[u],p=v[u],g=l[d],y=a[d];y&&(y[f]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,A=Math.floor(1/t),l=this.getRawIndex(0),u,c,f,h=new(kA(this._rawCount))(Math.min((Math.ceil(o/A)+2)*2,o));h[s++]=l;for(var v=1;v<o-1;v+=A){for(var d=Math.min(v+A,o-1),p=Math.min(v+A*2,o),g=(p+d)/2,y=0,m=d;m<p;m++){var w=this.getRawIndex(m),B=i[w];isNaN(B)||(y+=B)}y/=p-d;var C=v,b=Math.min(v+A,o),_=v-1,x=i[l];u=-1,f=C;for(var S=-1,I=0,m=C;m<b;m++){var w=this.getRawIndex(m),B=i[w];if(isNaN(B)){I++,S<0&&(S=w);continue}c=Math.abs((_-g)*(B-x)-(_-m)*(y-x)),c>u&&(u=c,f=w)}I>0&&I<b-C&&(h[s++]=Math.min(S,f),f=Math.max(S,f)),h[s++]=f,l=f}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),A=new(kA(this._rawCount))(Math.ceil(s/i)*2),l=0,u=0;u<s;u+=i){var c=u,f=o[this.getRawIndex(c)],h=u,v=o[this.getRawIndex(h)],d=i;u+i>s&&(d=s-u);for(var p=0;p<d;p++){var g=this.getRawIndex(u+p),y=o[g];y<f&&(f=y,c=u+p),y>v&&(v=y,h=u+p)}var m=this.getRawIndex(c),w=this.getRawIndex(h);c<h?(A[l++]=m,A[l++]=w):(A[l++]=w,A[l++]=m)}return n._count=l,n._indices=A,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],A=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=RA(),f=new(kA(this._rawCount))(Math.ceil(u/A)),h=0,v=0;v<u;v+=A){A>u-v&&(A=u-v,s.length=A);for(var d=0;d<A;d++){var p=this.getRawIndex(v+d);s[d]=l[p]}var g=n(s),y=this.getRawIndex(Math.min(v+a(s,g)||0,u-1));l[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),f[h++]=y}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var A=0,l=[];A<n;A++)l[A]=a[e[A]][s];l[A]=i,t.apply(null,l)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=RA();if(!t)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],A=o[1],l=0;l<a;l++){var u=this.getRawIndex(l),c=t[u];c<s&&(s=c),c>A&&(A=c)}return o=[s,A],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&Za(e,function(s,A){return s[A]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?OJ(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=De(this._extent),e._rawExtent=De(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,a,i){return Co(t[i],this._dimensions[i])}Tm={arrayRows:e,objectRows:function(t,n,a,i){return Co(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Co(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}}(),r}(),oH=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(Kh(e)){var o=e,s=void 0,A=void 0,l=void 0;if(n){var u=t[0];u.prepareSource(),l=u.getSource(),s=l.data,A=l.sourceFormat,i=[u._getVersionSign()]}else s=o.get("data",!0),A=vn(s)?Bo:Sn,i=[];var c=this._getSourceMetaRawOption()||{},f=l&&l.metaRawOption||{},h=Le(c.seriesLayoutBy,f.seriesLayoutBy)||null,v=Le(c.sourceHeader,f.sourceHeader),d=Le(c.dimensions,f.dimensions),p=h!==f.seriesLayoutBy||!!v!=!!f.sourceHeader||d;a=p?[O1(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},A)]:[]}else{var g=e;if(n){var y=this._applyTransform(t);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[O1(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&bI(i)}var o,s=[],A=[];return F(e,function(l){l.prepareSource();var u=l.getSource(a||0),c="";a!=null&&!u&&bI(c),s.push(u),A.push(l._getVersionSign())}),n?o=UJ(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[pJ(s[0])]),{sourceList:o,upstreamSignList:A}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var A=this._getUpstreamSourceManagers()[0];Kh(this._sourceHost)&&A?s=A._innerGetDataStore(e,t,n):(s=new H1,s.initData(new ZO(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Kh(e)){var t=gb(e);return t?[t.getSourceManager()]:[]}else return me(Gj(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(Kh(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r}();function CI(r){var e=r.option.transform;e&&Nd(r.option.transform)}function Kh(r){return r.mainType==="series"}function bI(r){throw new Error(r)}var HJ="line-height:1";function sH(r){var e=r.lineHeight;return e==null?HJ:"line-height:"+Vr(e+"")+"px"}function AH(r,e){var t=r.color||le.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||le.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Vr(n+"")+"px;color:"+Vr(t)+";font-weight:"+Vr(a+""),valueStyle:"font-size:"+Vr(o+"")+"px;color:"+Vr(i)+";font-weight:"+Vr(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var NJ=[0,10,20,30],VJ=["",`
`,`
`,`
`];function nr(r,e){return e.type=r,e}function N1(r){return r.type==="section"}function lH(r){return N1(r)?GJ:zJ}function uH(r){if(N1(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return F(r.blocks,function(a){var i=uH(a);i>=e&&(e=i+ +(n&&(!i||N1(a)&&!a.noHeader)))}),e}return 0}function GJ(r,e,t,n){var a=e.noHeader,i=$J(uH(e)),o=[],s=e.blocks||[];Kr(!s||ge(s)),s=s||[];var A=r.orderMode;if(e.sortBlocks&&A){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Se(l,A)){var u=new rH(l[A],null);s.sort(function(d,p){return u.evaluate(d.sortParam,p.sortParam)})}else A==="seriesDesc"&&s.reverse()}F(s,function(d,p){var g=e.valueFormatter,y=lH(d)(g?ve(ve({},r),{valueFormatter:g}):r,d,p>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):V1(n,o.join(""),a?t:i.html);if(a)return c;var f=U1(e.header,"ordinal",r.useUTC),h=AH(n,r.renderMode).nameStyle,v=sH(n);return r.renderMode==="richText"?cH(r,f,h)+i.richText+c:V1(n,'<div style="'+h+";"+v+';">'+Vr(f)+"</div>"+c,t)}function zJ(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,A=e.name,l=r.useUTC,u=e.valueFormatter||r.valueFormatter||function(w){return w=ge(w)?w:[w],me(w,function(B,C){return U1(B,ge(h)?h[C]:h,l)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||le.color.secondary,a),f=i?"":U1(A,"ordinal",l),h=e.valueType,v=o?[]:u(e.value,e.dataIndex),d=!s||!i,p=!s&&i,g=AH(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(s?"":c)+(i?"":cH(r,f,y))+(o?"":XJ(r,v,d,p,m)):V1(n,(s?"":c)+(i?"":KJ(f,!s,y))+(o?"":WJ(v,d,p,m)),t)}}function xI(r,e,t,n,a,i){if(r){var o=lH(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function $J(r){return{html:NJ[r],richText:VJ[r]}}function V1(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=sH(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function KJ(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Vr(r)+"</span>"}function WJ(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=ge(r)?r:[r],'<span style="'+i+";"+n+'">'+me(r,function(o){return Vr(o)}).join("&nbsp;&nbsp;")+"</span>"}function cH(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function XJ(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ge(e)?e.join(" "):e,i)}function fH(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return rA(n)}function hH(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Im=function(){function r(){this.richTextStyles={},this._nextStyleNameId=nR()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=Dj({color:t,type:e,renderMode:n,markerId:a});return Ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};ge(t)?F(t,function(i){return ve(n,i)}):ve(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r}();function vH(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),A=ge(s),l=fH(e,t),u,c,f,h;if(o>1||A&&!o){var v=YJ(s,e,t,i,l);u=v.inlineValues,c=v.inlineValueTypes,f=v.blocks,h=v.inlineValues[0]}else if(o){var d=a.getDimensionInfo(i[0]);h=u=Ql(a,t,i[0]),c=d.type}else h=u=A?s[0]:s;var p=NC(e),g=p&&e.name||"",y=a.getName(t),m=n?g:y;return nr("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[nr("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Xn(m),value:u,valueType:c,dataIndex:t})].concat(f||[])})}function YJ(r,e,t,n,a){var i=e.getData(),o=Za(r,function(c,f,h){var v=i.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],A=[],l=[];n.length?F(n,function(c){u(Ql(i,t,c),c)}):F(r,u);function u(c,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?l.push(nr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),A.push(h.type)))}return{inlineValues:s,inlineValueTypes:A,blocks:l}}var Ni=Ye();function Wh(r,e){return r.getName(e)||r.getId(e)}var yd="__universalTransitionEnabled",Ng=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=kc({count:jJ,reset:JJ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Ni(this).sourceManager=new oH(this);i.prepareSource();var o=this.getInitialData(t,a);SI(o,this),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=af(this),i=a?cA(t):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Ke(t,n.getTheme().get(this.subType)),Ke(t,this.getDefaultOption()),Zs(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&ei(t,i,a)},e.prototype.mergeOption=function(t,n){t=Ke(this.option,t,!0),this.fillDataTextStyle(t.data);var a=af(this);a&&ei(this.option,t,a);var i=Ni(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);SI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!vn(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Zs(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=G1(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Ni(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=G1(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Ni(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Ie(t)},e.prototype.getSourceManager=function(){return Ni(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ni(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,A=s&&s.getAxis(t);if(!s||!A)return[];var l=A.dataToCoord(a);i==null&&(i=1/0);var u=[],c=1/0,f=-1,h=0;return o.each(n,function(v,d){var p=A.dataToCoord(v),g=l-p,y=Math.abs(g);y<=i&&((y<c||y===c&&g>=0&&f<0)&&(c=y,f=g,h=0),g===f&&(u[h++]=d))}),u.length=h,u},e.prototype.formatTooltip=function(t,n,a){return vH({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(st.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=yb.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var A=t[s],l=Wh(o,A);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=je(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Wh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yd])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,A=n.length;if(!(!s||!A)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Oe(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<A;u++){var c=n[u],f=Wh(t,c);l[f]=!0,this._selectedDataIndicesMap[f]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[A-1],f=Wh(t,h);o.selectedMap=(a={},a[f]=!0,a),this._selectedDataIndicesMap=(i={},i[f]=t.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return et.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(et);ir(Ng,Og);ir(Ng,yb);hR(Ng,et);function _I(r){var e=r.name;NC(r)||(r.name=ZJ(r)||e)}function ZJ(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return F(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function jJ(r){return r.model.getRawData().count()}function JJ(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),qJ}function qJ(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function SI(r,e){F(Wc(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ze(eq,e))})}function eq(r,e){var t=G1(r);return t&&t.setOutputEnd((e||this).count()),e}function G1(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const Pt=Ng;var bb=function(){function r(){this.group=new Fe,this.uid=tu("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();GC(bb);Cg(bb);const Nt=bb;function nu(){var r=Ye();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var dH=Ye(),tq=nu(),xb=function(){function r(){this.group=new Fe,this.uid=tu("viewChart"),this.renderTask=kc({plan:rq,reset:nq}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&II(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&II(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){ko(this.group,e)},r.markUpdateMethod=function(e,t){dH(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function TI(r,e,t){r&&tf(r)&&(e==="emphasis"?Li:Ei)(r,t)}function II(r,e,t){var n=js(r,e),a=e&&e.highlightKey!=null?yZ(e.highlightKey):null;n!=null?F(gt(n),function(i){TI(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){TI(i,t,a)})}GC(xb);Cg(xb);function rq(r){return tq(r.model)}function nq(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&dH(a).updateMethod,A=i?"incrementalPrepareRender":s&&o[s]?s:"render";return A!=="render"&&o[A](e,t,n,a),aq[A]}var aq={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const bt=xb;var op="\0__throttleOriginMethod",LI="\0__throttleRate",EI="\0__throttleType";function _b(r,e,t){var n,a=0,i=0,o=null,s,A,l,u;e=e||0;function c(){i=new Date().getTime(),o=null,r.apply(A,l||[])}var f=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),A=this,l=h;var d=u||e,p=u||t;u=null,s=n-(p?a:i)-d,clearTimeout(o),p?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),a=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){u=h},f}function au(r,e,t,n){var a=r[e];if(a){var i=a[op]||a,o=a[EI],s=a[LI];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=_b(i,t,n==="debounce"),a[op]=i,a[EI]=n,a[LI]=t}return a}}function sf(r,e){var t=r[e];t&&t[op]&&(t.clear&&t.clear(),r[e]=t[op])}var MI=Ye(),DI={itemStyle:Js(hO,!0),lineStyle:Js(fO,!0)},iq={lineStyle:"stroke",itemStyle:"fill"};function pH(r,e){var t=r.visualStyleMapper||DI[e];return t||(console.warn("Unknown style type '"+e+"'."),DI.itemStyle)}function gH(r,e){var t=r.visualDrawType||iq[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var oq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=pH(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var A=gH(r,n),l=o[A],u=Me(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[A]||u||c){var f=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[A]||(o[A]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",A),!e.isSeriesFiltered(r)&&u)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=ve({},o);p[A]=u(d),h.setItemVisual(v,"style",p)}}}},bu=new ot,sq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=pH(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var A=o.getRawDataItem(s);if(A&&A[n]){bu.option=A[n];var l=a(bu),u=o.ensureUniqueItemVisual(s,"style");ve(u,l),bu.option.decal&&(o.setItemVisual(s,"decal",bu.option.decal),bu.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Aq={performRawSeries:!0,overallReset:function(r){var e=Ie();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),MI(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=MI(t).scope,s=t.visualStyleAccessPath||"itemStyle",A=gH(t,s);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],c=i.getItemVisual(u,"colorFromPalette");if(c){var f=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();f[A]=t.getColorFromPalette(h,o,v)}})}})}},Xh=Math.PI;function lq(r,e){e=e||{},Re(e,{text:"loading",textColor:le.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:le.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Fe,n=new Xe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new nt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Xe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new eb({shape:{startAngle:-Xh/2,endAngle:-Xh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xh*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,A=e.showSpinner?e.spinnerRadius:0,l=(r.getWidth()-A*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:A),u=r.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:u}),i.setShape({x:l-A,y:u-A,width:A*2,height:A*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var uq=function(){function r(e,t,n,a){this._stageTaskMap=Ie(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,A=s!=null?Math.ceil(s/o):null;return{step:o,modBy:A,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),A=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:A,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Ie();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Kr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;F(e,function(A,l){if(!(a.visualType&&a.visualType!==A.visualType)){var u=o._stageTaskMap.get(A.uid),c=u.seriesTaskMap,f=u.overallTask;if(f){var h,v=f.agentStubMap;v.each(function(p){s(a,p)&&(p.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,n);var d=o.getPerformArgs(f,a.block);v.each(function(p){p.perform(d)}),f.perform(d)&&(i=!0)}else c&&c.each(function(p,g){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!A.performRawSeries&&t.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function s(A,l){return A.setDirty&&(!A.dirtyMap||A.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Ie(),A=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(u):A?n.eachRawSeriesByType(A,u):l&&l(n,a).each(u);function u(c){var f=c.uid,h=s.set(f,o&&o.get(f)||kc({plan:dq,reset:pq,count:yq}));h.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||kc({reset:cq});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,A=o.agentStubMap=Ie(),l=e.seriesType,u=e.getTargetSeries,c=!0,f=!1,h="";Kr(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(c=!1,F(n.getSeries(),v));function v(d){var p=d.uid,g=A.set(p,s&&s.get(p)||(f=!0,kc({reset:fq,onDirty:vq})));g.context={model:d,overallProgress:c},g.agent=o,g.__block=c,i._pipe(d,g)}f&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Me(e)&&(e={overallReset:e,seriesType:mq(e)}),e.uid=tu("stageHandler"),t&&(e.visualType=t),e},r}();function cq(r){r.overallReset(r.ecModel,r.api,r.payload)}function fq(r){return r.overallProgress&&hq}function hq(){this.agent.dirty(),this.getDownstream().dirty()}function vq(){this.agent&&this.agent.dirty()}function dq(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function pq(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=gt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?me(e,function(t,n){return yH(n)}):gq}var gq=yH(0);function yH(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function yq(r){return r.data.count()}function mq(r){sp=null;try{r(Af,mH)}catch{}return sp}var Af={},mH={},sp;wH(Af,zO);wH(mH,$O);Af.eachSeriesByType=Af.eachRawSeriesByType=function(r){sp=r};Af.eachComponent=function(r){r.mainType==="series"&&r.subType&&(sp=r.subType)};function wH(r,e){for(var t in e.prototype)r[t]=Xt}const BH=uq;var Ue=le.darkColor,wq=Ue.background,xu=function(){return{axisLine:{lineStyle:{color:Ue.axisLine}},splitLine:{lineStyle:{color:Ue.axisSplitLine}},splitArea:{areaStyle:{color:[Ue.backgroundTint,Ue.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Ue.axisMinorSplitLine}},axisLabel:{color:Ue.axisLabel},axisName:{}}},FI={label:{color:Ue.secondary},itemStyle:{borderColor:Ue.borderTint},dividerLineStyle:{color:Ue.border}},CH={darkMode:!0,color:Ue.theme,backgroundColor:wq,axisPointer:{lineStyle:{color:Ue.border},crossStyle:{color:Ue.borderShade},label:{color:Ue.tertiary}},legend:{textStyle:{color:Ue.secondary},pageTextStyle:{color:Ue.tertiary}},textStyle:{color:Ue.secondary},title:{textStyle:{color:Ue.primary},subtextStyle:{color:Ue.quaternary}},toolbox:{iconStyle:{borderColor:Ue.accent50}},tooltip:{backgroundColor:Ue.neutral20,defaultBorderColor:Ue.border,textStyle:{color:Ue.tertiary}},dataZoom:{borderColor:Ue.accent10,textStyle:{color:Ue.tertiary},brushStyle:{color:Ue.backgroundTint},handleStyle:{color:Ue.neutral00,borderColor:Ue.accent20},moveHandleStyle:{color:Ue.accent40},emphasis:{handleStyle:{borderColor:Ue.accent50}},dataBackground:{lineStyle:{color:Ue.accent30},areaStyle:{color:Ue.accent20}},selectedDataBackground:{lineStyle:{color:Ue.accent50},areaStyle:{color:Ue.accent30}}},visualMap:{textStyle:{color:Ue.secondary},handleStyle:{borderColor:Ue.neutral30}},timeline:{lineStyle:{color:Ue.accent10},label:{color:Ue.tertiary},controlStyle:{color:Ue.accent30,borderColor:Ue.accent30}},calendar:{itemStyle:{color:Ue.neutral00,borderColor:Ue.neutral20},dayLabel:{color:Ue.tertiary},monthLabel:{color:Ue.secondary},yearLabel:{color:Ue.secondary}},matrix:{x:FI,y:FI,backgroundColor:{borderColor:Ue.axisLine},body:{itemStyle:{borderColor:Ue.borderTint}}},timeAxis:xu(),logAxis:xu(),valueAxis:xu(),categoryAxis:xu(),line:{symbol:"circle"},graph:{color:Ue.theme},gauge:{title:{color:Ue.secondary},axisLine:{lineStyle:{color:[[1,Ue.neutral05]]}},axisLabel:{color:Ue.axisLabel},detail:{color:Ue.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Ue.background}},radar:function(){var r=xu();return r.axisName={color:Ue.axisLabel},r.axisLine.lineStyle.color=Ue.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:Ue.neutral20,textStyle:{color:Ue.secondary}},emphasis:{itemStyle:{color:Ue.neutral30}}}},sunburst:{itemStyle:{borderColor:Ue.background}},map:{itemStyle:{borderColor:Ue.border,areaColor:Ue.neutral10},label:{color:Ue.tertiary},emphasis:{label:{color:Ue.primary},itemStyle:{areaColor:Ue.highlight}},select:{label:{color:Ue.primary},itemStyle:{areaColor:Ue.highlight}}},geo:{itemStyle:{borderColor:Ue.border,areaColor:Ue.neutral10},emphasis:{label:{color:Ue.primary},itemStyle:{areaColor:Ue.highlight}},select:{label:{color:Ue.primary},itemStyle:{color:Ue.highlight}}}};CH.categoryAxis.splitLine.show=!1;const Bq=CH;var Cq=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(Ce(e)){var i=Va(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};F(e,function(A,l){for(var u=!1,c=0;c<o.length;c++){var f=o[c],h=l.lastIndexOf(f);if(h>0&&h===l.length-f.length){var v=l.slice(0,h);v!=="data"&&(t.mainType=v,t[f.toLowerCase()]=A,u=!0)}}s.hasOwnProperty(l)&&(n[l]=A,u=!0),u||(a[l]=A)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var A=t.cptQuery,l=t.dataQuery;return u(A,o,"mainType")&&u(A,o,"subType")&&u(A,o,"index","componentIndex")&&u(A,o,"name")&&u(A,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function u(c,f,h,v){return c[h]==null||f[v||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),z1=["symbol","symbolSize","symbolRotate","symbolOffset"],QI=z1.concat(["symbolKeepAspect"]),bq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<z1.length;o++){var s=z1[o],A=r.get(s);Me(A)?(i=!0,a[s]=A):n[s]=A}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(ve({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var l=je(a);function u(c,f){for(var h=r.getRawValue(f),v=r.getDataParams(f),d=0;d<l.length;d++){var p=l[d];c.setItemVisual(f,p,a[p](h,v))}}return{dataEach:i?u:null}}},xq={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<QI.length;s++){var A=QI[s],l=o.getShallow(A,!0);l!=null&&a.setItemVisual(i,A,l)}}return{dataEach:t.hasItemOption?n:null}}};function Sb(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Hf(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function bH(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function xH(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}F([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=ve({},a),o.dispatchAction(ve(a,{type:n[1],seriesIndex:t(i,a)}))})})}function OA(r,e,t,n,a){var i=r+e;t.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,A=o.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===s){var c=o.getData(),f=js(c,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:ge(f)?c.getName(f[0]):c.getName(f),selected:Ce(A)?A:ve({},A)})}})}function _q(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(OA("map","selectchanged",e,a,n),OA("pie","selectchanged",e,a,n)):n.fromAction==="select"?(OA("map","selected",e,a,n),OA("pie","selected",e,a,n)):n.fromAction==="unselect"&&(OA("map","unselected",e,a,n),OA("pie","unselected",e,a,n))})}function Qs(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Sq=Math.round(Math.random()*9),Tq=typeof Object.defineProperty=="function",Iq=function(){function r(){this._id="__ec_inner_"+Sq++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return Tq?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}();const Lq=Iq;var Eq=Ze.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),Mq=Ze.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),Dq=Ze.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),A=n-i+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,c=Math.sin(l),f=Math.cos(l),h=o*.6,v=o*.7;r.moveTo(t-u,A+s),r.arc(t,A,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(t+u-c*h,A+s+f*h,t,n-v,t,n),r.bezierCurveTo(t,n-v,t-u+c*h,A+s+f*h,t-u,A+s),r.closePath()}}),Fq=Ze.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),Qq={line:lr,rect:Xe,roundRect:Xe,square:Xe,circle:Po,diamond:Mq,pin:Dq,arrow:Fq,triangle:Eq},Uq={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},Ap={};F(Qq,function(r,e){Ap[e]=new r});var Pq=Ze.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Zd(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=Ap[n];a||(n="rect",a=Ap[n]),Uq[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function kq(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||le.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function ar(r,e,t,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var A;return r.indexOf("image://")===0?A=rO(r.slice(8),new Ne(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?A=rf(r.slice(7),{},new Ne(e,t,n,a),o?"center":"cover"):A=new Pq({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),A.__isEmptyBrush=s,A.setColor=kq,i&&A.setColor(i),A}function iu(r){return ge(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function hA(r,e){if(r!=null)return ge(r)||(r=[r,r]),[Be(r[0],e[0])||0,Be(Le(r[1],r[0]),e[1])||0]}function Us(r){return isFinite(r)}function Rq(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=Us(n)?n:0,a=Us(a)?a:1,i=Us(i)?i:0,o=Us(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function Oq(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,A=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*a+t.y,A=A*i),o=Us(o)?o:.5,s=Us(s)?s:.5,A=A>=0&&Us(A)?A:.5;var l=r.createRadialGradient(o,s,0,o,s,A);return l}function $1(r,e,t){for(var n=e.type==="radial"?Oq(r,e,t):Rq(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function Hq(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Yh(r){return parseInt(r,10)}function dl(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Yh(s[n])||Yh(r.style[n]))-(Yh(s[i])||0)-(Yh(s[o])||0)|0}function Nq(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:qe(r)?[r]:ge(r)?r:null}function Tb(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Nq(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=me(t,function(i){return i/a}),n/=a)}return[t,n]}var Vq=new qa(!0);function lp(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function UI(r){return typeof r=="string"&&r!=="none"}function up(r){var e=r.fill;return e!=null&&e!=="none"}function PI(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function kI(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function K1(r,e,t){var n=zC(e.image,e.__image,t);if(bg(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*nd),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function Gq(r,e,t,n){var a,i=lp(t),o=up(t),s=t.strokePercent,A=s<1,l=!e.path;(!e.silent||A)&&l&&e.createPathProxy();var u=e.path||Vq,c=e.__dirty;if(!n){var f=t.fill,h=t.stroke,v=o&&!!f.colorStops,d=i&&!!h.colorStops,p=o&&!!f.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,B=void 0,C=void 0;(v||d)&&(C=e.getBoundingRect()),v&&(y=c?$1(r,f,C):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(m=c?$1(r,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),p&&(w=c||!e.__canvasFillPattern?K1(r,f,e):e.__canvasFillPattern,e.__canvasFillPattern=w),g&&(B=c||!e.__canvasStrokePattern?K1(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=B),v?r.fillStyle=y:p&&(w?r.fillStyle=w:o=!1),d?r.strokeStyle=m:g&&(B?r.strokeStyle=B:i=!1)}var b=e.getGlobalScale();u.setScale(b[0],b[1],e.segmentIgnoreThreshold);var _,x;r.setLineDash&&t.lineDash&&(a=Tb(e),_=a[0],x=a[1]);var S=!0;(l||c&il)&&(u.setDPR(r.dpr),A?u.setContext(null):(u.setContext(r),S=!1),u.reset(),e.buildPath(u,e.shape,n),u.toStatic(),e.pathUpdated()),S&&u.rebuildPath(r,A?s:1),_&&(r.setLineDash(_),r.lineDashOffset=x),n||(t.strokeFirst?(i&&kI(r,t),o&&PI(r,t)):(o&&PI(r,t),i&&kI(r,t))),_&&r.setLineDash([])}function zq(r,e,t){var n=e.__image=zC(t.image,e.__image,e,e.onload);if(!(!n||!bg(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),A=n.width/n.height;if(o==null&&s!=null?o=s*A:s==null&&o!=null?s=o/A:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var l=t.sx||0,u=t.sy||0;r.drawImage(n,l,u,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var l=t.sx,u=t.sy,c=o-l,f=s-u;r.drawImage(n,l,u,c,f,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function $q(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Si,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Tb(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(lp(t)&&r.strokeText(a,t.x,t.y),up(t)&&r.fillText(a,t.x,t.y)):(up(t)&&r.fillText(a,t.x,t.y),lp(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var RI=["shadowBlur","shadowOffsetX","shadowOffsetY"],OI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _H(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){cn(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Ns.opacity:o}(n||e.blend!==t.blend)&&(i||(cn(r,a),i=!0),r.globalCompositeOperation=e.blend||Ns.blend);for(var s=0;s<RI.length;s++){var A=RI[s];(n||e[A]!==t[A])&&(i||(cn(r,a),i=!0),r[A]=r.dpr*(e[A]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(cn(r,a),i=!0),r.shadowColor=e.shadowColor||Ns.shadowColor),i}function HI(r,e,t,n,a){var i=lf(e,a.inHover),o=n?null:t&&lf(t,a.inHover)||{};if(i===o)return!1;var s=_H(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(cn(r,a),s=!0),UI(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(cn(r,a),s=!0),UI(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(cn(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var A=i.lineWidth,l=A/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==l&&(s||(cn(r,a),s=!0),r.lineWidth=l)}for(var u=0;u<OI.length;u++){var c=OI[u],f=c[0];(n||i[f]!==o[f])&&(s||(cn(r,a),s=!0),r[f]=i[f]||c[1])}return s}function Kq(r,e,t,n,a){return _H(r,lf(e,a.inHover),t&&lf(t,a.inHover),n,a)}function SH(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function Wq(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),SH(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function Xq(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var NI=1,VI=2,GI=3,zI=4;function Yq(r){var e=up(r),t=lp(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function cn(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function lf(r,e){return e&&r.__hoverStyle||r.style}function TH(r,e){Ps(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ps(r,e,t,n){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~wn,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,A=!1;if((!o||Hq(i,o))&&(o&&o.length&&(cn(r,t),r.restore(),A=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(cn(r,t),r.save(),Wq(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var l=t.prevEl;l||(A=s=!0);var u=e instanceof Ze&&e.autoBatch&&Yq(e.style);s||Xq(a,l.transform)?(cn(r,t),SH(r,e)):u||cn(r,t);var c=lf(e,t.inHover);e instanceof Ze?(t.lastDrawType!==NI&&(A=!0,t.lastDrawType=NI),HI(r,e,l,A,t),(!u||!t.batchFill&&!t.batchStroke)&&r.beginPath(),Gq(r,e,c,u),u&&(t.batchFill=c.fill||"",t.batchStroke=c.stroke||"")):e instanceof qc?(t.lastDrawType!==GI&&(A=!0,t.lastDrawType=GI),HI(r,e,l,A,t),$q(r,e,c)):e instanceof Ur?(t.lastDrawType!==VI&&(A=!0,t.lastDrawType=VI),Kq(r,e,l,A,t),zq(r,e,c)):e.getTemporalDisplayables&&(t.lastDrawType!==zI&&(A=!0,t.lastDrawType=zI),Zq(r,e,t)),u&&n&&cn(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Zq(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var A=n[o];A.beforeBrush&&A.beforeBrush(),A.innerBeforeBrush(),Ps(r,A,i,o===s-1),A.innerAfterBrush(),A.afterBrush&&A.afterBrush(),i.prevEl=A}for(var l=0,u=a.length;l<u;l++){var A=a[l];A.beforeBrush&&A.beforeBrush(),A.innerBeforeBrush(),Ps(r,A,i,l===u-1),A.innerAfterBrush(),A.afterBrush&&A.afterBrush(),i.prevEl=A}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Lm=new Lq,$I=new Ml(100),KI=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ul(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&Lm.delete(r);var i=Lm.get(r);if(i)return i;var o=Re(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return A(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/t,Lm.set(r,s),r.dirty=!1,s;function A(l){for(var u=[t],c=!0,f=0;f<KI.length;++f){var h=o[KI[f]];if(h!=null&&!ge(h)&&!Ce(h)&&!qe(h)&&typeof h!="boolean"){c=!1;break}u.push(h)}var v;if(c){v=u.join(",")+(a?"-svg":"");var d=$I.get(v);d&&(a?l.svgElement=d:l.image=d)}var p=LH(o.dashArrayX),g=jq(o.dashArrayY),y=IH(o.symbol),m=Jq(p),w=EH(g),B=!a&&ha.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=x(),_;B&&(B.width=b.width*t,B.height=b.height*t,_=B.getContext("2d")),S(),c&&$I.put(v,B||C),l.image=B,l.svgElement=C,l.svgWidth=b.width,l.svgHeight=b.height;function x(){for(var I=1,L=0,T=m.length;L<T;++L)I=sT(I,m[L]);for(var M=1,L=0,T=y.length;L<T;++L)M=sT(M,y[L].length);I*=M;var R=w*m.length*y.length;return{width:Math.max(1,Math.min(I,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function S(){_&&(_.clearRect(0,0,B.width,B.height),o.backgroundColor&&(_.fillStyle=o.backgroundColor,_.fillRect(0,0,B.width,B.height)));for(var I=0,L=0;L<g.length;++L)I+=g[L];if(I<=0)return;for(var T=-w,M=0,R=0,P=0;T<b.height;){if(M%2===0){for(var E=R/2%y.length,k=0,D=0,U=0;k<b.width*2;){for(var O=0,L=0;L<p[P].length;++L)O+=p[P][L];if(O<=0)break;if(D%2===0){var G=(1-o.symbolSize)*.5,X=k+p[P][D]*G,te=T+g[M]*G,ne=p[P][D]*o.symbolSize,ye=g[M]*o.symbolSize,re=U/2%y[E].length;W(X,te,ne,ye,y[E][re])}k+=p[P][D],++U,++D,D===p[P].length&&(D=0)}++P,P===p.length&&(P=0)}T+=g[M],++R,++M,M===g.length&&(M=0)}function W(ee,oe,H,N,K){var $=a?1:t,j=ar(K,ee*$,oe*$,H*$,N*$,o.color,o.symbolKeepAspect);if(a){var ie=n.painter.renderOneToVNode(j);ie&&C.children.push(ie)}else TH(_,j)}}}}function IH(r){if(!r||r.length===0)return[["rect"]];if(Ce(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!Ce(r[t])){e=!1;break}if(e)return IH([r]);for(var n=[],t=0;t<r.length;++t)Ce(r[t])?n.push([r[t]]):n.push(r[t]);return n}function LH(r){if(!r||r.length===0)return[[0,0]];if(qe(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!qe(r[n])){t=!1;break}if(t)return LH([r]);for(var a=[],n=0;n<r.length;++n)if(qe(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=me(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function jq(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(qe(r)){var e=Math.ceil(r);return[e,e]}var t=me(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function Jq(r){return me(r,function(e){return EH(e)})}function EH(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function qq(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var A=n.ensureUniqueItemVisual(o,"style");A.decal=Ul(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Ul(a,e)}}})}var eee=new qn;const ia=eee;var MH={};function tee(r,e){MH[r]=e}function ree(r){return MH[r]}var DH={};function nee(r,e){DH[r]=e}function aee(r){return DH[r]}var iee=1,oee=800,see=900,Aee=1e3,lee=2e3,uee=5e3,FH=1e3,cee=1100,Ib=2e3,QH=3e3,fee=4e3,Vg=4500,hee=4600,vee=5e3,dee=6e3,UH=7e3,pee={PROCESSOR:{FILTER:Aee,SERIES_FILTER:oee,STATISTIC:uee},VISUAL:{LAYOUT:FH,PROGRESSIVE_LAYOUT:cee,GLOBAL:Ib,CHART:QH,POST_CHART_LAYOUT:hee,COMPONENT:fee,BRUSH:vee,CHART_ITEM:Vg,ARIA:dee,DECAL:UH}},or="__flagInMainProcess",Zh="__mainProcessVersion",mr="__pendingUpdate",Em="__needsUpdateStatus",WI=/^[a-zA-Z0-9_]+$/,Mm="__connectUpdateStatus",XI=0,gee=1,yee=2;function PH(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return RH(this,r,e)}}function kH(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return RH(this,r,e)}}function RH(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),qn.prototype[e].apply(r,t)}var OH=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(qn),HH=OH.prototype;HH.on=kH("on");HH.off=kH("off");var ls,Dm,jh,ci,Jh,Fm,Qm,HA,NA,YI,ZI,Um,jI,qh,JI,NH,Dn,qI,VA,VH=function(r){ce(e,r);function e(t,n,a){var i=r.call(this,new Cq)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=t;var o="canvas",s="auto",A=!1;i[Zh]=1,a.ssr&&Q9(function(f){var h=Ve(f),v=h.dataIndex;if(v!=null){var d=Ie();return d.set("series_index",h.seriesIndex),d.set("data_index",v),h.ssrType&&d.set("ssr_type",h.ssrType),d}});var l=i._zr=nT(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Le(a.useDirtyRect,A),useCoarsePointer:Le(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=_b(be(l.flush,l),17),i._updateTheme(n),i._locale=mj(a.locale||vO),i._coordSysMgr=new Rf;var u=i._api=JI(i);function c(f,h){return f.__prio-h.__prio}return od(fp,c),od(Y1,c),i._scheduler=new BH(i,u,Y1,fp),i._messageCenter=new OH,i._initEvents(),i.resize=be(i.resize,i),l.animation.on("frame",i._onframe,i),YI(l,i),ZI(l,i),Nd(i),i}return e.prototype._onframe=function(){if(!this._disposed){qI(this);var t=this._scheduler;if(this[mr]){var n=this[mr].silent;this[or]=!0,VA(this);try{ls(this),ci.update.call(this,null,this[mr].updateParams)}catch(A){throw this[or]=!1,this[mr]=null,A}this._zr.flush(),this[or]=!1,this[mr]=null,HA.call(this,n),NA.call(this,n)}else if(t.unfinished){var a=iee,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Fm(this,i),t.performVisualTasks(i),qh(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[or]){if(this._disposed){this.id;return}var i,o,s;if(Oe(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[or]=!0,VA(this),!this._model||n){var A=new oJ(this._api),l=this._theme,u=this._model=new zO;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,A)}this._model.setOption(t,{replaceMerge:o},Z1);var c={seriesTransition:s,optionChanged:!0};if(a)this[mr]={silent:i,updateParams:c},this[or]=!1,this.getZr().wakeUp();else{try{ls(this),ci.update.call(this,null,c)}catch(f){throw this[mr]=null,this[or]=!1,f}this._ssr||this._zr.flush(),this[mr]=null,this[or]=!1,HA.call(this,i),NA.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[or]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[mr]&&(i==null&&(i=this[mr].silent),o=this[mr].updateParams,this[mr]=null),this[or]=!0,VA(this);try{this._updateTheme(t),a.setTheme(this._theme),ls(this),ci.update.call(this,{type:"setTheme"},o)}catch(s){throw this[or]=!1,s}this[or]=!1,HA.call(this,i),NA.call(this,i)}}},e.prototype._updateTheme=function(t){Ce(t)&&(t=GH[t]),t&&(t=De(t),t&&WO(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||st.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return F(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;F(n,function(A){a.eachComponent({mainType:A},function(l){var u=o._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return F(i,function(A){A.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(e2[a]){var A=s,l=s,u=-s,c=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();F(Rc,function(m,w){if(m.group===a){var B=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(De(t)),C=m.getDom().getBoundingClientRect();A=i(C.left,A),l=i(C.top,l),u=o(C.right,u),c=o(C.bottom,c),f.push({dom:B,left:C.left,top:C.top})}}),A*=h,l*=h,u*=h,c*=h;var v=u-A,d=c-l,p=ha.createCanvas(),g=nT(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return F(f,function(m){var w=m.left-A,B=m.top-l;y+='<g transform="translate('+w+","+B+')">'+m.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new Xe({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),F(f,function(m){var w=new Ur({style:{x:m.left*h-A,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return Jh(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return Jh(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return Jh(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=Bl(a,t);return F(o,function(s,A){A.indexOf("Models")>=0&&F(s,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(A==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,l))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Bl(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),A=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return A!=null?Sb(s,A,n):Hf(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;F(mee,function(a){var i=function(o){var s=t.getModel(),A=o.target,l,u=a==="globalout";if(u?l={}:A&&Qs(A,function(d){var p=Ve(d);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,A)||{},!0}else if(p.eventData)return l=ve({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&s.getComponent(c,f),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=a,t._$eventProcessor.eventInfo={targetEl:A,packedEvent:l,model:h,view:v},t.trigger(a,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;F(X1,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),_q(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&uR(this.getDom(),Eb,"");var n=this,a=n._api,i=n._model;F(n._componentsViews,function(o){o.dispose(i,a)}),F(n._chartsViews,function(o){o.dispose(i,a)}),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 Rc[n.id]},e.prototype.resize=function(t){if(!this[or]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[mr]&&(i==null&&(i=this[mr].silent),a=!0,this[mr]=null),this[or]=!0,VA(this);try{a&&ls(this),ci.update.call(this,{type:"resize",animation:ve({duration:0},t&&t.animation)})}catch(o){throw this[or]=!1,o}this[or]=!1,HA.call(this,i),NA.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(Oe(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!j1[t]){var a=j1[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=ve({},t);return n.type=W1[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(Oe(n)||(n={silent:!!n}),!!cp[t.type]&&this._model){if(this[or]){this._pendingActions.push(t);return}var a=n.silent;Qm.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&st.browser.weChat&&this._throttledZrFlush(),HA.call(this,a),NA.call(this,a)}},e.prototype.updateLabelLayout=function(){ia.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ls=function(c){var f=c._scheduler;f.restorePipelines(c._model),f.prepareStageTasks(),Dm(c,!0),Dm(c,!1),f.plan()},Dm=function(c,f){for(var h=c._model,v=c._scheduler,d=f?c._componentsViews:c._chartsViews,p=f?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,m=0;m<d.length;m++)d[m].__alive=!1;f?h.eachComponent(function(C,b){C!=="series"&&w(b)}):h.eachSeries(w);function w(C){var b=C.__requireNewView;C.__requireNewView=!1;var _="_ec_"+C.id+"_"+C.type,x=!b&&p[_];if(!x){var S=Va(C.type),I=f?Nt.getClass(S.main,S.sub):bt.getClass(S.sub);x=new I,x.init(h,y),p[_]=x,d.push(x),g.add(x.group)}C.__viewId=x.__id=_,x.__alive=!0,x.__model=C,x.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!f&&v.prepareView(x,C,h,y)}for(var m=0;m<d.length;){var B=d[m];B.__alive?m++:(!f&&B.renderTask.dispose(),g.remove(B.group),B.dispose(h,y),d.splice(m,1),p[B.__id]===B&&delete p[B.__id],B.__id=B.group.__ecComponentInfo=null)}},jh=function(c,f,h,v,d){var p=c._model;if(p.setUpdatePayload(h),!v){F([].concat(c._componentsViews).concat(c._chartsViews),B);return}var g={};g[v+"Id"]=h[v+"Id"],g[v+"Index"]=h[v+"Index"],g[v+"Name"]=h[v+"Name"];var y={mainType:v,query:g};d&&(y.subType=d);var m=h.excludeSeriesId,w;m!=null&&(w=Ie(),F(gt(m),function(C){var b=Ar(C,null);b!=null&&w.set(b,!0)})),p&&p.eachComponent(y,function(C){var b=w&&w.get(C.id)!=null;if(!b)if(kT(h))if(C instanceof Pt)h.type===Vs&&!h.notBlur&&!C.get(["emphasis","disabled"])&&uZ(C,h,c._api);else{var _=jC(C.mainType,C.componentIndex,h.name,c._api),x=_.focusSelf,S=_.dispatchers;h.type===Vs&&x&&!h.notBlur&&_1(C.mainType,C.componentIndex,c._api),S&&F(S,function(I){h.type===Vs?Li(I):Ei(I)})}else T1(h)&&C instanceof Pt&&(hZ(C,h,c._api),UT(C),Dn(c))},c),p&&p.eachComponent(y,function(C){var b=w&&w.get(C.id)!=null;b||B(c[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},c);function B(C){C&&C.__alive&&C[f]&&C[f](C.__model,p,c._api,h)}},ci={prepareAndUpdate:function(c){ls(this),ci.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,f){var h=this._model,v=this._api,d=this._zr,p=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),p.create(h,v),g.performDataProcessorTasks(h,c),Fm(this,h),p.update(h,v),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var m=h.get("darkMode");m!=null&&m!=="auto"&&d.setDarkMode(m),Um(this,h,v,c,f),ia.trigger("afterupdate",h,v)}},updateTransform:function(c){var f=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!=="series"){var m=f.getViewOfComponentModel(y);if(m&&m.__alive)if(m.updateTransform){var w=m.updateTransform(y,h,v,c);w&&w.update&&d.push(m)}else d.push(m)}});var p=Ie();h.eachSeries(function(g){var y=f._chartsMap[g.__viewId];if(y.updateTransform){var m=y.updateTransform(g,h,v,c);m&&m.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),qh(this,h,v,c,{},p),ia.trigger("afterupdate",h,v)}},updateView:function(c){var f=this._model;f&&(f.setUpdatePayload(c),bt.markUpdateMethod(c,"updateView"),n(f),this._scheduler.performVisualTasks(f,c,{setDirty:!0}),Um(this,f,this._api,c,{}),ia.trigger("afterupdate",f,this._api))},updateVisual:function(c){var f=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),bt.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var p=f.getViewOfComponentModel(d);p&&p.__alive&&p.updateVisual(d,h,f._api,c)}}),h.eachSeries(function(v){var d=f._chartsMap[v.__viewId];d.updateVisual(v,h,f._api,c)}),ia.trigger("afterupdate",h,this._api))},updateLayout:function(c){ci.update.call(this,c)}};function t(c,f,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=Bl(p,h),w=0;w<g.length;w++){var B=g[w];if(B[f]&&(y=B[f](p,m,v,d))!=null)return y}}Jh=t,Fm=function(c,f){var h=c._chartsMap,v=c._scheduler;f.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Qm=function(c,f){var h=this,v=this.getModel(),d=c.type,p=c.escapeConnect,g=cp[d],y=(g.update||"update").split(":"),m=y.pop(),w=y[0]!=null&&Va(y[0]);this[or]=!0,VA(this);var B=[c],C=!1;c.batch&&(C=!0,B=me(c.batch,function(P){return P=Re(ve({},P),c),P.batch=null,P}));var b=[],_,x=[],S=g.nonRefinedEventType,I=T1(c),L=kT(c);if(L&&UR(this._api),F(B,function(P){var E=g.action(P,v,h._api);if(g.refineEvent?x.push(E):_=E,_=_||ve({},P),_.type=S,b.push(_),L){var k=VC(c),D=k.queryOptionMap,U=k.mainTypeSpecified,O=U?D.keys()[0]:"series";jh(h,m,P,O),Dn(h)}else I?(jh(h,m,P,"series"),Dn(h)):w&&jh(h,m,P,w.main,w.sub)}),m!=="none"&&!L&&!I&&!w)try{this[mr]?(ls(this),ci.update.call(this,c),this[mr]=null):ci[m].call(this,c)}catch(P){throw this[or]=!1,P}if(C?_={type:S,escapeConnect:p,batch:b}:_=b[0],this[or]=!1,!f){var T=void 0;if(g.refineEvent){var M=g.refineEvent(x,c,v,this._api).eventContent;Kr(Oe(M)),T=Re({type:g.refinedEventType},M),T.fromAction=c.type,T.fromActionPayload=c,T.escapeConnect=!0}var R=this._messageCenter;R.trigger(_.type,_),T&&R.trigger(T.type,T)}},HA=function(c){for(var f=this._pendingActions;f.length;){var h=f.shift();Qm.call(this,h,c)}},NA=function(c){!c&&this.trigger("updated")},YI=function(c,f){c.on("rendered",function(h){f.trigger("rendered",h),c.animation.isFinished()&&!f[mr]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},ZI=function(c,f){c.on("mouseover",function(h){var v=h.target,d=Qs(v,tf);d&&(cZ(d,h,f._api),Dn(f))}).on("mouseout",function(h){var v=h.target,d=Qs(v,tf);d&&(fZ(d,h,f._api),Dn(f))}).on("click",function(h){var v=h.target,d=Qs(v,function(y){return Ve(y).dataIndex!=null},!0);if(d){var p=d.selected?"unselect":"select",g=Ve(d);f._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(f){f.clearColorPalette()})}function a(c){var f=[],h=[],v=!1;if(c.eachComponent(function(y,m){var w=m.get("zlevel")||0,B=m.get("z")||0,C=m.getZLevelKey();v=v||!!C,(y==="series"?h:f).push({zlevel:w,z:B,idx:m.componentIndex,type:y,key:C})}),v){var d=f.concat(h),p,g;od(d,function(y,m){return y.zlevel===m.zlevel?y.z-m.z:y.zlevel-m.zlevel}),F(d,function(y){var m=c.getComponent(y.type,y.idx),w=y.zlevel,B=y.key;p!=null&&(w=Math.max(p,w)),B?(w===p&&B!==g&&w++,g=B):g&&(w===p&&w++,g=""),p=w,m.setZLevel(w)})}}Um=function(c,f,h,v,d){a(f),jI(c,f,h,v,d),F(c._chartsViews,function(p){p.__alive=!1}),qh(c,f,h,v,d),F(c._chartsViews,function(p){p.__alive||p.remove(f,h)})},jI=function(c,f,h,v,d,p){F(p||c._componentsViews,function(g){var y=g.__model;l(y,g),g.render(y,f,h,v),A(y,g),u(y,g)})},qh=function(c,f,h,v,d,p){var g=c._scheduler;d=ve(d||{},{updatedSeries:f.getSeries()}),ia.trigger("series:beforeupdate",f,h,d);var y=!1;f.eachSeries(function(m){var w=c._chartsMap[m.__viewId];w.__alive=!0;var B=w.renderTask;g.updatePayload(B,v),l(m,w),p&&p.get(m.uid)&&B.dirty(),B.perform(g.getPerformArgs(B))&&(y=!0),w.group.silent=!!m.get("silent"),s(m,w),UT(m)}),g.unfinished=y||g.unfinished,ia.trigger("series:layoutlabels",f,h,d),ia.trigger("series:transition",f,h,d),f.eachSeries(function(m){var w=c._chartsMap[m.__viewId];A(m,w),u(m,w)}),o(c,f),ia.trigger("series:afterupdate",f,h,d)},Dn=function(c){c[Em]=!0,c.getZr().wakeUp()},VA=function(c){c[Zh]=(c[Zh]+1)%1e3},qI=function(c){c[Em]&&(c.getZr().storage.traverse(function(f){Cl(f)||i(f)}),c[Em]=!1)};function i(c){for(var f=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||f.push(d)}c.selected&&c.states.select&&f.push("select"),c.hoverState===Ig&&c.states.emphasis?f.push("emphasis"):c.hoverState===Qf&&c.states.blur&&f.push("blur"),c.useStates(f)}function o(c,f){var h=c._zr,v=h.storage,d=0;v.traverse(function(p){p.isGroup||d++}),d>f.get("hoverLayerThreshold")&&!st.node&&!st.worker&&f.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=c._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(c,f){var h=c.get("blendMode")||null;f.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function A(c,f){if(!c.preventAutoZ){var h=tA(c);f.eachRendered(function(v){return Qg(v,h.z,h.zlevel),!0})}}function l(c,f){f.eachRendered(function(h){if(!Cl(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(c,f){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),p=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Cl(g))return;if(g instanceof Ze&&mZ(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&i(g)}})}JI=function(c){return new(function(f){ce(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Li(v,d),Dn(c)},h.prototype.leaveEmphasis=function(v,d){Ei(v,d),Dn(c)},h.prototype.enterBlur=function(v){MR(v),Dn(c)},h.prototype.leaveBlur=function(v){ZC(v),Dn(c)},h.prototype.enterSelect=function(v){DR(v),Dn(c)},h.prototype.leaveSelect=function(v){FR(v),Dn(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getMainProcessVersion=function(){return c[Zh]},h}($O))(c)},NH=function(c){function f(h,v){for(var d=0;d<h.length;d++){var p=h[d];p[Mm]=v}}F(W1,function(h,v){c._messageCenter.on(v,function(d){if(e2[c.group]&&c[Mm]!==XI){if(d&&d.escapeConnect)return;var p=c.makeActionFromEvent(d),g=[];F(Rc,function(y){y!==c&&y.group===c.group&&g.push(y)}),f(g,XI),F(g,function(y){y[Mm]!==gee&&y.dispatchAction(p)}),f(g,yee)}})})}}(),e}(qn),Lb=VH.prototype;Lb.on=PH("on");Lb.off=PH("off");Lb.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var mee=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var cp={},W1={},X1={},Y1=[],Z1=[],fp=[],GH={},j1={},Rc={},e2={},wee=+new Date-0,Eb="_echarts_instance_";function zH(r,e,t){var n=!(t&&t.ssr);if(n){var a=Bee(r);if(a)return a}var i=new VH(r,e,t);return i.id="ec_"+wee++,Rc[i.id]=i,n&&uR(r,Eb,i.id),NH(i),ia.trigger("afterinit",i),i}function Bee(r){return Rc[aY(r,Eb)]}function $H(r,e){GH[r]=e}function KH(r){$e(Z1,r)<0&&Z1.push(r)}function WH(r,e){Db(Y1,r,e,lee)}function Cee(r){Mb("afterinit",r)}function bee(r){Mb("afterupdate",r)}function Mb(r,e){ia.on(r,e)}function ai(r,e,t){var n,a,i,o,s;Me(e)&&(t=e,e=""),Oe(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function A(u){return u.toLowerCase()}a=A(a||n);var l=i?A(n):a;cp[n]||(Kr(WI.test(n)&&WI.test(a)),i&&Kr(a!==n),cp[n]={actionType:n,refinedEventType:a,nonRefinedEventType:l,update:o,action:t,refineEvent:i},X1[a]=1,i&&s&&(X1[l]=1),W1[l]=n)}function xee(r,e){Rf.register(r,e)}function _ee(r,e){Db(fp,r,e,FH,"layout")}function vA(r,e){Db(fp,r,e,QH,"visual")}var t2=[];function Db(r,e,t,n,a){if((Me(e)||Oe(e))&&(t=e,e=n),!($e(t2,t)>=0)){t2.push(t);var i=BH.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function XH(r,e){j1[r]=e}function See(r,e,t){var n=ree("registerMap");n&&n(r,e,t)}var Tee=QJ;vA(Ib,oq);vA(Vg,sq);vA(Vg,Aq);vA(Ib,bq);vA(Vg,xq);vA(UH,qq);KH(WO);WH(see,vJ);XH("default",lq);ai({type:Vs,event:Vs,update:Vs},Xt);ai({type:fd,event:fd,update:fd},Xt);ai({type:qd,event:XC,update:qd,action:Xt,refineEvent:Fb,publishNonRefinedEvent:!0});ai({type:b1,event:XC,update:b1,action:Xt,refineEvent:Fb,publishNonRefinedEvent:!0});ai({type:ep,event:XC,update:ep,action:Xt,refineEvent:Fb,publishNonRefinedEvent:!0});function Fb(r,e,t,n){return{eventContent:{selected:vZ(t),isFromClick:e.isFromClick||!1}}}$H("default",{});$H("dark",Bq);var r2=[],Iee={registerPreprocessor:KH,registerProcessor:WH,registerPostInit:Cee,registerPostUpdate:bee,registerUpdateLifecycle:Mb,registerAction:ai,registerCoordinateSystem:xee,registerLayout:_ee,registerVisual:vA,registerTransform:Tee,registerLoading:XH,registerMap:See,registerImpl:tee,PRIORITY:pee,ComponentModel:et,ComponentView:Nt,SeriesModel:Pt,ChartView:bt,registerComponentModel:function(r){et.registerClass(r)},registerComponentView:function(r){Nt.registerClass(r)},registerSeriesModel:function(r){Pt.registerClass(r)},registerChartView:function(r){bt.registerClass(r)},registerCustomSeries:function(r,e){nee(r,e)},registerSubTypeDefaulter:function(r,e){et.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){D9(r,e)}};function We(r){if(ge(r)){F(r,function(e){We(e)});return}$e(r2,r)>=0||(r2.push(r),Me(r)&&(r={install:r}),r.install(Iee))}function _u(r){return r==null?0:r.length||1}function n2(r){return r}var Lee=function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||n2,this._newKeyGetter=a||n2,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],A=n[s],l=_u(A);if(l>1){var u=A.shift();A.length===1&&(n[s]=A[0]),this._update&&this._update(u,o)}else l===1?(n[s]=null,this._update&&this._update(A,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var A=i[s],l=n[A],u=a[A],c=_u(l),f=_u(u);if(c>1&&f===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[A]=null;else if(c===1&&f>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[A]=null;else if(c===1&&f===1)this._update&&this._update(u,l),a[A]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[A]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=_u(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var A=t[s],l=_u(A);l===0?(t[s]=o,i&&n.push(s)):l===1?t[s]=[A,o]:A.push(o)}}},r}();const Mi=Lee;var Eee=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function Mee(r,e){var t={},n=t.encode={},a=Ie(),i=[],o=[],s={};F(r.dimensions,function(f){var h=r.getDimensionInfo(f),v=h.coordDim;if(v){var d=h.coordDimIndex;Pm(n,v)[d]=f,h.isExtraCoord||(a.set(v,1),Dee(h.type)&&(i[0]=f),Pm(s,v)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(f)}PO.each(function(p,g){var y=Pm(n,g),m=h.otherDims[g];m!=null&&m!==!1&&(y[m]=h.name)})});var A=[],l={};a.each(function(f,h){var v=n[h];l[h]=v[0],A=A.concat(v)}),t.dataDimsOnCoord=A,t.dataDimIndicesOnCoord=me(A,function(f){return r.getDimensionInfo(f).storeDimIndex}),t.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(i=u.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new Eee(s,e),t}function Pm(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function hp(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Dee(r){return!(r==="ordinal"||r==="time")}var Fee=function(){function r(e){this.otherDims={},e!=null&&ve(this,e)}return r}();const md=Fee;var Qee=Ye(),Uee={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},YH=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=JH(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Le(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=YO(this.source),n=!qH(e),a="",i=[],o=0,s=0;o<e;o++){var A=void 0,l=void 0,u=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)A=t?c.name:null,l=c.type,u=c.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(A=t?f.name:null,l=f.type)}i.push({property:A,type:l,ordinalMeta:u}),t&&A!=null&&(!c||!c.isCalculationCoord)&&(a+=n?A.replace(/\`/g,"`1").replace(/\$/g,"`2"):A),a+="$",a+=Uee[l]||"f",u&&(a+=u.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function ZH(r){return r instanceof YH}function jH(r){for(var e=Ie(),t=0;t<(r||[]).length;t++){var n=r[t],a=Oe(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function JH(r){var e=Qee(r);return e.dimNameMap||(e.dimNameMap=jH(r.dimensionsDefine))}function qH(r){return r>30}var Su=Oe,Vi=me,Pee=typeof Int32Array>"u"?Array:Int32Array,kee="e\0\0",a2=-1,Ree=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Oee=["_approximateExtent"],i2,ev,Tu,Iu,km,Lu,Rm,Hee=function(){function r(e,t){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;ZH(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},A=!1,l={},u=0;u<n.length;u++){var c=n[u],f=Ce(c)?new md({name:c}):c instanceof md?c:new md(c),h=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=h,f.coordDimIndex=0);var v=f.otherDims=f.otherDims||{};o.push(h),i[h]=f,l[h]!=null&&(A=!0),f.createInvertedIndices&&(s[h]=[]);var d=u;qe(f.storeDimIndex)&&(d=f.storeDimIndex),v.itemName===0&&(this._nameDimIdx=d),v.itemId===0&&(this._idDimIdx=d),a&&(f.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(A),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ie();F(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(qe(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof H1&&(i=e),!i){var o=this.dimensions,s=mb(e)||$r(e)?new ZO(e,o.length):e;i=new H1;var A=Vi(o,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(s,A,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Mee(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var A=s-a;this._nameList[s]=t[A],o&&Rm(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Bo&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,A=s===Sn;if(A&&!a.pure)for(var l=[],u=e;u<t;u++){var c=a.getItem(u,l);if(!this.hasItemOption&&$9(c)&&(this.hasItemOption=!0),c){var f=c.name;i[u]==null&&f!=null&&(i[u]=Ar(f,null));var h=c.id;o[u]==null&&h!=null&&(o[u]=Ar(h,null))}}if(this._shouldMakeIdFromName())for(var u=e;u<t;u++)Rm(this,u);i2(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Su(e)?ve(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Tu(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return ev(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return ge(e)?a.getValues(Vi(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?a2:a},r.prototype.each=function(e,t,n){Me(e)&&(n=t,t=e,e=[]);var a=n||this,i=Vi(Iu(e),this._getStoreDimIndex,this);this._store.each(i,a?be(t,a):t)},r.prototype.filterSelf=function(e,t,n){Me(e)&&(n=t,t=e,e=[]);var a=n||this,i=Vi(Iu(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?be(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=je(e);return F(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){Me(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=Vi(Iu(e),this._getStoreDimIndex,this),s=Lu(this);return s._store=this._store.map(o,i?be(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=Vi(Iu(e),this._getStoreDimIndex,this);this._store.modify(o,i?be(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=Lu(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=Lu(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Lu(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new ot(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Mi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ev(e,n)},function(n){return ev(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Su(e)?ve(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),ge(i)?i=i.slice():Su(i)&&(i=ve({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Su(t)?ve(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Su(e)?ve(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?ve(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;C1(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){F(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Vi(this.dimensions,this._getDimInfo,this),this.hostModel)),km(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(MC(arguments)))})},r.internalField=function(){i2=function(e){var t=e._invertedIndicesMap;F(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new Pee(o.categories.length);for(var A=0;A<n.length;A++)n[A]=a2;for(var A=0;A<s.count();A++)n[s.get(i.storeDimIndex,A)]=A}})},Tu=function(e,t,n){return Ar(e._getCategory(t,n),null)},ev=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Tu(e,e._idDimIdx,t)),n==null&&(n=kee+t),n},Iu=function(e){return ge(e)||(e=e!=null?[e]:[]),e},Lu=function(e){var t=new r(e._schema?e._schema:Vi(e.dimensions,e._getDimInfo,e),e.hostModel);return km(t,e),t},km=function(e,t){F(Ree.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(Oee,function(n){e[n]=De(t[n])}),e._calculationInfo=ve({},t._calculationInfo)},Rm=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],A=a[t];if(s==null&&i!=null&&(n[t]=s=Tu(e,i,t)),A==null&&o!=null&&(a[t]=A=Tu(e,o,t)),A==null&&s!=null){var l=e._nameRepeatCount,u=l[s]=(l[s]||0)+1;A=s,u>1&&(A+="__ec__"+u),a[t]=A}}}(),r}();const tn=Hee;function Nf(r,e){mb(r)||(r=wb(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=Ie(),i=[],o=Vee(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&qH(o),A=n===r.dimensionsDefine,l=A?JH(r):jH(n),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(r,o));for(var c=Ie(u),f=new aH(o),h=0;h<f.length;h++)f[h]=-1;function v(x){var S=f[x];if(S<0){var I=n[x],L=Oe(I)?I:{name:I},T=new md,M=L.name;M!=null&&l.get(M)!=null&&(T.name=T.displayName=M),L.type!=null&&(T.type=L.type),L.displayName!=null&&(T.displayName=L.displayName);var R=i.length;return f[x]=R,T.storeDimIndex=x,i.push(T),T}return i[S]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(x,S){var I=gt(x).slice();if(I.length===1&&!Ce(I[0])&&I[0]<0){c.set(S,!1);return}var L=c.set(S,[]);F(I,function(T,M){var R=Ce(T)?l.get(T):T;R!=null&&R<o&&(L[M]=R,p(v(R),S,M))})});var d=0;F(t,function(x){var S,I,L,T;if(Ce(x))S=x,T={};else{T=x,S=T.name;var M=T.ordinalMeta;T.ordinalMeta=null,T=ve({},T),T.ordinalMeta=M,I=T.dimsDef,L=T.otherDims,T.name=T.coordDim=T.coordDimIndex=T.dimsDef=T.otherDims=null}var R=c.get(S);if(R!==!1){if(R=gt(R),!R.length)for(var P=0;P<(I&&I.length||1);P++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&R.push(d++)}F(R,function(E,k){var D=v(E);if(A&&T.type!=null&&(D.type=T.type),p(Re(D,T),S,k),D.name==null&&I){var U=I[k];!Oe(U)&&(U={name:U}),D.name=D.displayName=U.name,D.defaultTooltip=U.defaultTooltip}L&&Re(D.otherDims,L)})}});function p(x,S,I){PO.get(S)!=null?x.otherDims[S]=I:(x.coordDim=S,x.coordDimIndex=I,a.set(S,!0))}var g=e.generateCoord,y=e.generateCoordCount,m=y!=null;y=g?y||1:0;var w=g||"value";function B(x){x.name==null&&(x.name=x.coordDim)}if(s)F(i,function(x){B(x)}),i.sort(function(x,S){return x.storeDimIndex-S.storeDimIndex});else for(var C=0;C<o;C++){var b=v(C),_=b.coordDim;_==null&&(b.coordDim=Gee(w,a,m),b.coordDimIndex=0,(!g||y<=0)&&(b.isExtraCoord=!0),y--),B(b),b.type==null&&(HO(r,C)===Ir.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Nee(i),new YH({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Nee(r){for(var e=Ie(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function Vee(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return F(e,function(i){var o;Oe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Gee(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var zee=function(){function r(e){this.coordSysDims=[],this.axisMap=Ie(),this.categoryAxisMap=Ie(),this.coordSysName=e}return r}();function $ee(r){var e=r.get("coordinateSystem"),t=new zee(e),n=Kee[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var Kee={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",zt).models[0],i=r.getReferringComponents("yAxis",zt).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),GA(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),GA(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",zt).models[0];e.coordSysDims=["single"],t.set("single",a),GA(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",zt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),GA(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),GA(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();F(i.parallelAxisIndex,function(s,A){var l=a.getComponent("parallelAxis",s),u=o[A];t.set(u,l),GA(l)&&(n.set(u,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=A))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",zt).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function GA(r){return r.get("type")==="category"}function Wee(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;Xee(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var A=!!(r&&r.get("stack")),l,u,c,f;if(F(i,function(y,m){Ce(y)&&(i[m]=y={name:y}),A&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){c="__\0ecstackresult_"+r.id,f="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;F(i,function(y){y.coordDim===h&&d++});var p={name:c,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:f,coordDim:f,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(f,v),g.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:c}}function Xee(r){return!ZH(r.schema)}function Io(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function e4(r,e){return Io(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Yee(r,e){var t=r.get("coordinateSystem"),n=Rf.get(t),a;return e&&e.coordSysDims&&(a=me(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var A=s.get("type");o.type=hp(A)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Zee(r,e,t){var n,a;return t&&F(r,function(i,o){var s=i.coordDim,A=t.categoryAxisMap.get(s);A&&(n==null&&(n=o),i.ordinalMeta=A.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ki(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=wb(r)):(a=n.getSource(),i=a.sourceFormat===Sn);var o=$ee(e),s=Yee(e,o),A=t.useEncodeDefaulter,l=Me(A)?A:A?ze(OO,s,e):null,u={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},c=Nf(a,u),f=Zee(c.dimensions,t.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),v=Wee(e,{schema:c,store:h}),d=new tn(c,e);d.setCalculationInfo(v);var p=f!=null&&jee(a)?function(g,y,m,w){return w===f?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function jee(r){if(r.sourceFormat===Sn){var e=Jee(r.data||[]);return!ge(Zl(e))}}function Jee(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function J1(r){return r.type==="interval"||r.type==="log"}function qee(r,e,t,n,a){var i={},o=i.interval=tR(e/t,!0);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=uf(o),A=i.niceTickExtent=[er(Math.ceil(r[0]/o)*o,s),er(Math.floor(r[1]/o)*o,s)];return ete(A,r),i}function Om(r){var e=Math.pow(10,HC(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,er(t*e)}function uf(r){return Na(r)+2}function o2(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function ete(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),o2(r,0,e),o2(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Qb(r,e){return r>=e[0]&&r<=e[1]}var tte=function(){function r(){this.normalize=s2,this.scale=A2}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=be(e.normalize,e),this.scale=be(e.scale,e)):(this.normalize=s2,this.scale=A2)},r}();function s2(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function A2(r,e){return r*(e[1]-e[0])+e[0]}function q1(r,e,t){var n=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/n,Math.log(t?e[1]:Math.max(0,e[1]))/n]}var t4=function(){function r(e){this._calculator=new tte,this._setting=e||{},this._extent=[1/0,-1/0];var t=tr();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(e){var t=tr();t&&this._innerSetBreak(t.parseAxisBreakOption(e,be(this.parse,this)))},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Cg(t4);const dA=t4;var rte=0,nte=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rte,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&me(n,ate);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Ce(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Ie(this.categories))},r}();function ate(r){return Oe(r)&&r.value!=null?r.value:r+""}const cf=nte;var r4=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new cf({})),ge(a)&&(a=new cf({categories:me(a,function(i){return Oe(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:Ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Qb(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,A=Math.min(s,n.length);o<A;++o){var l=n[o];a[o]=l,i[l]=o}for(var u=0;o<s;++o){for(;i[u]!=null;)u++;a.push(u),i[u]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(dA);dA.registerClass(r4);const ff=r4;var Gi=er,n4=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return Qb(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=uf(t)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=tr(),A=[];if(!n)return A;if(t.breakTicks==="only_break"&&s)return s.addBreaksToTicks(A,this._brkCtx.breaks,this._extent),A;var l=1e4;a[0]<i[0]&&(t.expandToNicedExtent?A.push({value:Gi(i[0]-n,o)}):A.push({value:a[0]}));for(var u=function(v,d){return Math.round((d-v)/n)},c=i[0];c<=i[1];){if(A.push({value:c}),c=Gi(c+n,o),this._brkCtx){var f=this._brkCtx.calcNiceTickMultiple(c,u);f>=0&&(c=Gi(c+f*n,o))}if(A.length>0&&c===A[A.length-1].value)break;if(A.length>l)return[]}var h=A.length?A[A.length-1].value:i[1];return a[1]>h&&(t.expandToNicedExtent?A.push({value:Gi(h+n,o)}):A.push({value:a[1]})),s&&s.pruneTicksByBreak(t.pruneByBreak,A,this._brkCtx.breaks,function(v){return v.value},this._interval,this._extent),t.breakTicks!=="none"&&s&&s.addBreaksToTicks(A,this._brkCtx.breaks,this._extent),A},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],A=n[o-1];if(!(A.break||s.break)){for(var l=0,u=[],c=s.value-A.value,f=c/t,h=uf(f);l<t-1;){var v=Gi(A.value+(l+1)*f,h);v>i[0]&&v<i[1]&&u.push(v),l++}var d=tr();d&&d.pruneTicksByBreak("auto",u,this._getNonTransBreaks(),function(p){return p},this._interval,i),a.push(u)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=Na(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Gi(t.value,a,!0);return bO(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=qee(i,o,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(n[0]=Gi(Math.floor(n[0]/o)*o,s)),t.fixMax||(n[1]=Gi(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(dA);dA.registerClass(n4);const Lo=n4;var a4=typeof Float32Array<"u",ite=a4?Float32Array:Array;function Ga(r){return ge(r)?a4?new Float32Array(r):r:new ite(r)}var eB="__ec_stack_";function Ub(r){return r.get("stack")||eB+r.seriesIndex}function Pb(r){return r.dim+r.index}function ote(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var a=t.getBandWidth(),i=0;i<r.count;i++)e.push(Re({bandWidth:a,axisKey:n,stackId:eB+i},r));for(var o=s4(e),s=[],i=0;i<r.count;i++){var A=o[n][eB+i];A.offsetCenter=A.offset+A.width/2,s.push(A)}return s}}function i4(r,e){var t=[];return e.eachSeriesByType(r,function(n){u4(n)&&t.push(n)}),t}function ste(r){var e={};F(r,function(A){var l=A.coordinateSystem,u=l.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var c=A.getData(),f=u.dim+"_"+u.index,h=c.getDimensionIndex(c.mapDimension(u.dim)),v=c.getStore(),d=0,p=v.count();d<p;++d){var g=v.get(h,d);e[f]?e[f].push(g):e[f]=[g]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(A,l){return A-l});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function o4(r){var e=ste(r),t=[];return F(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var A=i.dim+"_"+i.index,l=e[A],u=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),f=Math.abs(c[1]-c[0]);s=l?u/f*l:u}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=Be(n.get("barWidth"),s),d=Be(n.get("barMaxWidth"),s),p=Be(n.get("barMinWidth")||(c4(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),m=n.get("defaultBarGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:m,axisKey:Pb(i),stackId:Ub(n)})}),s4(t)}function s4(r){var e={};F(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},A=s.stacks;e[i]=s;var l=n.stackId;A[l]||s.autoWidthCount++,A[l]=A[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!A[l].width&&(A[l].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var c=n.barMaxWidth;c&&(A[l].maxWidth=c);var f=n.barMinWidth;f&&(A[l].minWidth=f);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return F(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var A=je(i).length;s=Math.max(35-A*4,15)+"%"}var l=Be(s,o),u=Be(n.gap,1),c=n.remainedWidth,f=n.autoWidthCount,h=(c-l)/(f+(f-1)*u);h=Math.max(h,0),F(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,c-=w+u*w,f--}else{var w=h;y&&y<w&&(w=Math.min(y,c)),m&&m>w&&(w=m),w!==h&&(g.width=w,c-=w+u*w,f--)}}),h=(c-l)/(f+(f-1)*u),h=Math.max(h,0);var v=0,d;F(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;F(i,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+u)})}),t}function Ate(r,e,t){if(r&&e){var n=r[Pb(e)];return n!=null&&t!=null?n[Ub(t)]:n}}function A4(r,e){var t=i4(r,e),n=o4(t);F(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),A=Ub(a),l=n[Pb(s)][A],u=l.offset,c=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:c})})}function l4(r){return{seriesType:r,plan:nu(),reset:function(e){if(u4(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),A=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=Io(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=lte(a,i),v=c4(e),d=e.get("barMinHeight")||0,p=u&&t.getDimensionIndex(u),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(m,w){for(var B=m.count,C=v&&Ga(B*3),b=v&&A&&Ga(B*3),_=v&&Ga(B),x=n.master.getRect(),S=f?x.width:x.height,I,L=w.getStore(),T=0;(I=m.next())!=null;){var M=L.get(c?p:o,I),R=L.get(s,I),P=h,E=void 0;c&&(E=+M-L.get(o,I));var k=void 0,D=void 0,U=void 0,O=void 0;if(f){var G=n.dataToPoint([M,R]);if(c){var X=n.dataToPoint([E,R]);P=X[0]}k=P,D=G[1]+y,U=G[0]-P,O=g,Math.abs(U)<d&&(U=(U<0?-1:1)*d)}else{var G=n.dataToPoint([R,M]);if(c){var X=n.dataToPoint([R,E]);P=X[1]}k=G[0]+y,D=P,U=g,O=G[1]-P,Math.abs(O)<d&&(O=(O<=0?-1:1)*d)}v?(C[T]=k,C[T+1]=D,C[T+2]=f?U:O,b&&(b[T]=f?x.x:k,b[T+1]=f?D:x.y,b[T+2]=S),_[I]=I):w.setItemLayout(I,{x:k,y:D,width:U,height:O}),T+=3}v&&w.setLayout({largePoints:C,largeDataIndices:_,largeBackgroundPoints:b,valueAxisHorizontal:f})}}}}}}function u4(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function c4(r){return r.pipelineContext&&r.pipelineContext.large}function lte(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var ute=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},f4=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return Pg(t.value,JT[Ij(Pc(this._minLevelUnit))]||JT.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Lj(t,n,a,o,i)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=this._extent,i=tr(),o=[];if(!n)return o;var s=this.getSetting("useUTC");if(i&&t.breakTicks==="only_break")return tr().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var A=vl(a[1],s);o.push({value:a[0],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A}});var l=gte(this._minLevelUnit,this._approxInterval,s,a,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(l);var u=vl(a[1],s);o.push({value:a[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}});var c=this.getSetting("useUTC"),f=yn.length-1,h=0;return F(o,function(v){f=Math.min(f,$e(yn,v.time.upperTimeUnit)),h=Math.max(h,v.time.level)}),i&&tr().pruneTicksByBreak(t.pruneByBreak,o,this._brkCtx.breaks,function(v){return v.value},this._approxInterval,this._extent),i&&t.breakTicks!=="none"&&tr().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(v){for(var d=Math.max($e(yn,vl(v.vmin,c)),$e(yn,vl(v.vmax,c))),p=0,g=0;g<yn.length;g++)if(!h4(yn[g],v.vmin,v.vmax,c)){p=g;break}var y=Math.min(p,f),m=Math.max(y,d);return{level:h,lowerTimeUnit:yn[m],upperTimeUnit:yn[y]}}),o},e.prototype.calcNiceExtent=function(t){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=$n,n[1]+=$n),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-$n}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=tv.length,s=Math.min(ute(tv,this._approxInterval,0,o),o-1);this._interval=tv[s][1],this._intervalPrecision=uf(this._interval),this._minLevelUnit=tv[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return qe(t)?t:+sA(t)},e.prototype.contain=function(t){return Qb(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Lo),tv=[["second",sb],["minute",Ab],["hour",Uc],["quarter-day",Uc*6],["half-day",Uc*12],["day",$n*1.2],["half-week",$n*3.5],["week",$n*7],["month",$n*31],["quarter",$n*95],["half-year",jT/2],["year",jT]];function h4(r,e,t,n){return Q1(new Date(e),r,n).getTime()===Q1(new Date(t),r,n).getTime()}function cte(r,e){return r/=$n,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fte(r){var e=30*$n;return r/=e,r>6?6:r>3?3:r>2?2:1}function hte(r){return r/=Uc,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function l2(r,e){return r/=e?Ab:sb,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vte(r){return tR(r,!0)}function dte(r,e,t){var n=Math.max(0,$e(yn,e)-1);return Q1(new Date(r),yn[n],t).getTime()}function pte(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function gte(r,e,t,n,a,i){var o=1e4,s=xj,A=0;function l(T,M,R,P,E,k,D){for(var U=pte(E,T),O=M,G=new Date(O);O<R&&O<=n[1]&&(D.push({value:O}),!(A++>o));)if(G[E](G[P]()+T),O=G.getTime(),i){var X=i.calcNiceTickMultiple(O,U);X>0&&(G[E](G[P]()+X*T),O=G.getTime())}D.push({value:O,notAdd:!0})}function u(T,M,R){var P=[],E=!M.length;if(!h4(Pc(T),n[0],n[1],t)){E&&(M=[{value:dte(n[0],T,t)},{value:n[1]}]);for(var k=0;k<M.length-1;k++){var D=M[k].value,U=M[k+1].value;if(D!==U){var O=void 0,G=void 0,X=void 0,te=!1;switch(T){case"year":O=Math.max(1,Math.round(e/$n/365)),G=pO(t),X=Ej(t);break;case"half-year":case"quarter":case"month":O=fte(e),G=lb(t),X=gO(t);break;case"week":case"half-week":case"day":O=cte(e),G=ub(t),X=yO(t),te=!0;break;case"half-day":case"quarter-day":case"hour":O=hte(e),G=cb(t),X=mO(t);break;case"minute":O=l2(e,!0),G=fb(t),X=wO(t);break;case"second":O=l2(e,!1),G=hb(t),X=BO(t);break;case"millisecond":O=vte(e),G=vb(t),X=CO(t);break}U>=n[0]&&D<=n[1]&&l(O,D,U,G,X,te,P),T==="year"&&R.length>1&&k===0&&R.unshift({value:R[0].value-O})}}for(var k=0;k<P.length;k++)R.push(P[k])}}for(var c=[],f=[],h=0,v=0,d=0;d<s.length;++d){var p=Pc(s[d]);if(Tj(s[d])){u(s[d],c[c.length-1]||[],f);var g=s[d+1]?Pc(s[d+1]):null;if(p!==g){if(f.length){v=h,f.sort(function(T,M){return T.value-M.value});for(var y=[],m=0;m<f.length;++m){var w=f[m].value;(m===0||f[m-1].value!==w)&&(y.push(f[m]),w>=n[0]&&w<=n[1]&&h++)}var B=a/e;if(h>B*1.5&&v>B/1.5||(c.push(y),h>B||r===s[d]))break}f=[]}}}for(var C=ft(me(c,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=[],_=C.length-1,d=0;d<C.length;++d)for(var x=C[d],S=0;S<x.length;++S){var I=vl(x[S].value,t);b.push({value:x[S].value,time:{level:_-d,upperTimeUnit:I,lowerTimeUnit:I}})}b.sort(function(T,M){return T.value-M.value});for(var L=[],d=0;d<b.length;++d)(d===0||b[d].value!==b[d-1].value)&&L.push(b[d]);return L}dA.registerClass(f4);const v4=f4;var tB=er,yte=Math.floor,mte=Math.ceil,rv=Math.pow,nv=Math.log,d4=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Lo,t}return e.prototype.getTicks=function(t){t=t||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base,s=this._originalScale._innerGetBreaks(),A=tr();return me(i,function(l){var u=l.value,c=null,f=rv(o,u);u===n[0]&&this._fixMin?c=a[0]:u===n[1]&&this._fixMax&&(c=a[1]);var h;if(A){var v=A.getTicksLogTransformBreak(l,o,s,av);h=v.vBreak,c==null&&(c=v.brkRoundingCriterion)}return c!=null&&(f=av(f,c)),{value:f,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var a=q1(this.base,[t,n]);r.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var t=this.base,n=r.prototype.getExtent.call(this);n[0]=rv(t,n[0]),n[1]=rv(t,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=av(n[0],a[0])),this._fixMax&&(n[1]=av(n[1],a[1])),n},e.prototype.unionExtentFromData=function(t,n){this._originalScale.unionExtentFromData(t,n);var a=q1(this.base,t.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=N9(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[tB(mte(n[0]/i)*i),tB(yte(n[1]/i)*i)];this._interval=i,this._intervalPrecision=uf(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=nv(t)/nv(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=nv(t)/nv(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),rv(this.base,t)},e.prototype.setBreaksFromOption=function(t){var n=tr();if(n){var a=n.logarithmicParseBreaksFromOption(t,this.base,be(this.parse,this)),i=a.parsedOriginal,o=a.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},e.type="log",e}(Lo);function av(r,e){return tB(r,Na(e))}dA.registerClass(d4);const wte=d4;var Bte=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Me(o)?this._modelMinNum=iv(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=iv(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Me(s)?this._modelMaxNum=iv(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=iv(e,s)),a)this._axisDataLen=t.getCategories().length;else{var A=t.get("boundaryGap"),l=ge(A)?A:[A||0,A||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[da(l[0],1),da(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,A=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,u=A!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),A==null&&(A=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(A==null||!isFinite(A))&&(A=NaN);var c=zr(s)||zr(A)||e&&!a;this._needCrossZero&&(s>0&&A>0&&!l&&(s=0),s<0&&A<0&&!u&&(A=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,l=!0),h!=null&&(A=h,u=!0),{min:s,max:A,minFixed:l,maxFixed:u,isBlank:c}},r.prototype.modifyDataMinMax=function(e,t){this[bte[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=Cte[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),Cte={min:"_determinedMin",max:"_determinedMax"},bte={min:"_dataMin",max:"_dataMax"};function p4(r,e,t){var n=r.rawExtentInfo;return n||(n=new Bte(r,e,t),r.rawExtentInfo=n,n)}function iv(r,e){return e==null?null:zr(e)?NaN:r.parse(e)}function g4(r,e){var t=r.type,n=p4(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=i4("bar",o),A=!1;if(F(s,function(c){A=A||c.getBaseAxis()===e.axis}),A){var l=o4(s),u=xte(a,i,e,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function xte(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Ate(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;F(o,function(h){s=Math.min(h.offset,s)});var A=-1/0;F(o,function(h){A=Math.max(h.offset+h.width,A)}),s=Math.abs(s),A=Math.abs(A);var l=s+A,u=e-r,c=1-(s+A)/i,f=u/c-u;return e+=f*(A/l),r-=f*(s/l),{min:r,max:e}}function Pl(r,e){var t=e,n=g4(r,t),a=n.extent,i=t.get("splitNumber");r instanceof wte&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),A=o==="interval"||o==="time";r.setBreaksFromOption(m4(t)),r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:A?t.get("minInterval"):null,maxInterval:A?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Gg(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new ff({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new v4({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(dA.getClass(e)||Lo)}}function _te(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function ou(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=_j(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(Ce(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(Me(e)){if(r.type==="category")return function(a,i){return e(vp(r,a),a.value-r.scale.getExtent()[0],null)};var n=tr();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(vp(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function vp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function kb(r){var e=r.get("interval");return e??"auto"}function y4(r){return r.type==="category"&&kb(r.getLabelModel())===0}function dp(r,e){var t={};return F(r.mapDimensionsAll(e),function(n){t[e4(r,n)]=!0}),je(t)}function Ste(r,e,t){e&&F(dp(e,t),function(n){var a=e.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}function kl(r){return r==="middle"||r==="center"}function hf(r){return r.getShallow("show")}function m4(r){var e=r.get("breaks",!0);if(e!=null)return!tr()||!Tte(r.axis)?void 0:e}function Tte(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Vf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Ite=1e-8;function u2(r,e){return Math.abs(r-e)<Ite}function bs(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=di(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!u2(a[0],s[0])||!u2(a[1],s[1]))&&(n+=di(a[0],a[1],s[0],s[1],e,t)),n!==0}var Lte=[];function Hm(r,e){for(var t=0;t<r.length;t++)Yt(r[t],r[t],e)}function c2(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(io(e,e,i),oo(t,t,i))}}function Ete(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var A=r[s][0],l=r[s][1],u=i*l-A*o;e+=u,t+=(i+A)*u,n+=(o+l)*u,i=A,o=l}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var w4=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),f2=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),h2=function(){function r(e){this.type="linestring",this.points=e}return r}(),B4=function(r){ce(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,A=s&&s.length;A>a&&(n=o,a=A)}if(n)return Ete(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return F(o,function(s){s.type==="polygon"?c2(s.exterior,a,i,t):F(s.points,function(A){c2(A,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var A=s.exterior,l=s.interiors;if(bs(A,t[0],t[1])){for(var u=0;u<(l?l.length:0);u++)if(bs(l[u],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var A=new Ne(t,n,a,i),l=o.calculateTransform(A),u=this.geometries,c=0;c<u.length;c++){var f=u[c];f.type==="polygon"?(Hm(f.exterior,l),F(f.interiors,function(h){Hm(h,l)})):F(f.points,function(h){Hm(h,l)})}o=this._rect,o.copy(A),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(w4),Mte=function(r){ce(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=yg(Lte),o=t;o&&!o.isGeoSVGGraphicRoot;)Ka(i,o.getLocalTransform(),i),o=o.parent;return va(i,i),Yt(a,a,i),a},e}(w4);function Dte(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return F(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=C4(s,o,t);break;case"Polygon":Nm(s,o,t);break;case"MultiLineString":Nm(s,o,t);break;case"MultiPolygon":F(s,function(A,l){return Nm(A,o[l],t)})}}),e.UTF8Encoding=!1,e}function Nm(r,e,t){for(var n=0;n<r.length;n++)r[n]=C4(r[n],e[n],t)}function C4(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,A=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),A=A>>1^-(A&1),s+=a,A+=i,a=s,i=A,n.push([s/t,A/t])}return n}function Fte(r,e){return r=Dte(r),me(ft(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new f2(o[0],o.slice(1)));break;case"MultiPolygon":F(a.coordinates,function(A){A[0]&&i.push(new f2(A[0],A.slice(1)))});break;case"LineString":i.push(new h2([a.coordinates]));break;case"MultiLineString":i.push(new h2(a.coordinates))}var s=new B4(n[e||"name"],i,n.cp);return s.properties=n,s})}var Qte=Ye(),Oc=Ye(),pa={estimate:1,determine:2};function pp(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function b4(r,e){var t=me(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function Ute(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=ou(r),a=r.scale.getExtent(),i=b4(r,t),o=ft(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:me(o,function(s){var A={value:s};return{formattedLabel:n(A),rawLabel:r.scale.getLabel(A),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?kte(r,e):Ote(r)}function Pte(r,e,t){var n=r.getTickModel().get("customValues");if(n){var a=r.scale.getExtent(),i=b4(r,n);return{ticks:ft(i,function(o){return o>=a[0]&&o<=a[1]})}}return r.type==="category"?Rte(r,e):{ticks:me(r.scale.getTicks(t),function(o){return o.value})}}function kte(r,e){var t=r.getLabelModel(),n=x4(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function x4(r,e,t){var n=Nte(r),a=kb(e),i=t.kind===pa.estimate;if(!i){var o=S4(n,a);if(o)return o}var s,A;Me(a)?s=L4(r,a):(A=a==="auto"?Vte(r,t):a,s=I4(r,A));var l={labels:s,labelCategoryInterval:A};return i?t.out.noPxChangeTryDetermine.push(function(){return rB(n,a,l),!0}):rB(n,a,l),l}function Rte(r,e){var t=Hte(r),n=kb(e),a=S4(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Me(n))i=L4(r,n,!0);else if(n==="auto"){var s=x4(r,r.getLabelModel(),pp(pa.determine));o=s.labelCategoryInterval,i=me(s.labels,function(A){return A.tickValue})}else o=n,i=I4(r,o,!0);return rB(t,n,{ticks:i,tickCategoryInterval:o})}function Ote(r){var e=r.scale.getTicks(),t=ou(r);return{labels:me(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var Hte=_4("axisTick"),Nte=_4("axisLabel");function _4(r){return function(t){return Oc(t)[r]||(Oc(t)[r]={list:[]})}}function S4(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function rB(r,e,t){return r.list.push({key:e,value:t}),t}function Vte(r,e){if(e.kind===pa.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Oc(r).autoInterval=t,!0}),t}var n=Oc(r).autoInterval;return n??(Oc(r).autoInterval=r.calculateCategoryInterval(e))}function Gte(r,e){var t=e.kind,n=$te(r),a=ou(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),A=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;A>u&&(l=Math.max(1,Math.floor(A/u)));for(var c=s[0],f=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(f*Math.cos(i)),v=Math.abs(f*Math.sin(i)),d=0,p=0;c<=s[1];c+=l){var g=0,y=0,m=Bg(a({value:c}),n.font,"center","top");g=m.width*1.3,y=m.height*1.3,d=Math.max(d,g,7),p=Math.max(p,y,7)}var w=d/h,B=p/v;isNaN(w)&&(w=1/0),isNaN(B)&&(B=1/0);var C=Math.max(0,Math.floor(Math.min(w,B)));if(t===pa.estimate)return e.out.noPxChangeTryDetermine.push(be(zte,null,r,C,A)),C;var b=T4(r,C,A);return b??C}function zte(r,e,t){return T4(r,e,t)==null}function T4(r,e,t){var n=Qte(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function $te(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function I4(r,e,t){var n=ou(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],A=Math.max((e||0)+1,1),l=i[0],u=a.count();l!==0&&A>1&&u/A>2&&(l=Math.round(Math.ceil(l/A)*A));var c=y4(r),f=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;f&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=A)d(v);h&&v-A!==i[1]&&d(i[1]);function d(p){var g={value:p};s.push(t?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p,time:void 0,break:void 0})}return s}function L4(r,e,t){var n=r.scale,a=ou(r),i=[];return F(n.getTicks(),function(o){var s=n.getLabel(o),A=o.value;e(o.value,s)&&i.push(t?A:{formattedLabel:a(o),rawLabel:s,tickValue:A,time:void 0,break:void 0})}),i}var v2=[0,1],Kte=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return qk(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),d2(n,a.count())),ct(e,v2,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),d2(n,a.count()));var i=ct(e,n,v2,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Pte(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=me(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return Wte(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=me(n,function(i){return me(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||pp(pa.determine),Ute(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(e){return e=e||pp(pa.determine),Gte(this,e)},r}();function d2(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function Wte(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var A=e[a-1].tickValue-e[0].tickValue,l=(e[a-1].coord-e[0].coord)/A;F(e,function(h){h.coord-=l/2,h.onBand=!0});var u=r.scale.getExtent();s=1+u[1]-e[a-1].tickValue,o={coord:e[a-1].coord+l*s,tickValue:u[1]+1,onBand:!0},e.push(o)}var c=i[0]>i[1];f(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&f(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),f(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&f(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function f(h,v){return h=er(h),v=er(v),c?h>v:h<v}}const Ba=Kte;var Eu=Math.PI*2,us=qa.CMD,Xte=["top","right","bottom","left"];function Yte(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function Zte(r,e,t,n,a,i,o,s,A){o-=r,s-=e;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*t+r,c=s*t+e;if(Math.abs(n-a)%Eu<1e-4)return A[0]=u,A[1]=c,l-t;if(i){var f=n;n=Bn(a),a=Bn(f)}else n=Bn(n),a=Bn(a);n>a&&(a+=Eu);var h=Math.atan2(s,o);if(h<0&&(h+=Eu),h>=n&&h<=a||h+Eu>=n&&h+Eu<=a)return A[0]=u,A[1]=c,l-t;var v=t*Math.cos(n)+r,d=t*Math.sin(n)+e,p=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(v-o)*(v-o)+(d-s)*(d-s),m=(p-o)*(p-o)+(g-s)*(g-s);return y<m?(A[0]=v,A[1]=d,Math.sqrt(y)):(A[0]=p,A[1]=g,Math.sqrt(m))}function gp(r,e,t,n,a,i,o,s){var A=a-r,l=i-e,u=t-r,c=n-e,f=Math.sqrt(u*u+c*c);u/=f,c/=f;var h=A*u+l*c,v=h/f;s&&(v=Math.min(Math.max(v,0),1)),v*=f;var d=o[0]=r+v*u,p=o[1]=e+v*c;return Math.sqrt((d-a)*(d-a)+(p-i)*(p-i))}function E4(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,A=e+n,l=o[0]=Math.min(Math.max(a,r),s),u=o[1]=Math.min(Math.max(i,e),A);return Math.sqrt((l-a)*(l-a)+(u-i)*(u-i))}var oa=[];function jte(r,e,t){var n=E4(e.x,e.y,e.width,e.height,r.x,r.y,oa);return t.set(oa[0],oa[1]),n}function Jte(r,e,t){for(var n=0,a=0,i=0,o=0,s,A,l=1/0,u=e.data,c=r.x,f=r.y,h=0;h<u.length;){var v=u[h++];h===1&&(n=u[h],a=u[h+1],i=n,o=a);var d=l;switch(v){case us.M:i=u[h++],o=u[h++],n=i,a=o;break;case us.L:d=gp(n,a,u[h],u[h+1],c,f,oa,!0),n=u[h++],a=u[h++];break;case us.C:d=Fk(n,a,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],c,f,oa),n=u[h++],a=u[h++];break;case us.Q:d=Uk(n,a,u[h++],u[h++],u[h],u[h+1],c,f,oa),n=u[h++],a=u[h++];break;case us.A:var p=u[h++],g=u[h++],y=u[h++],m=u[h++],w=u[h++],B=u[h++];h+=1;var C=!!(1-u[h++]);s=Math.cos(w)*y+p,A=Math.sin(w)*m+g,h<=1&&(i=s,o=A);var b=(c-p)*m/y+p;d=Zte(p,g,m,w,w+B,C,b,f,oa),n=Math.cos(w+B)*y+p,a=Math.sin(w+B)*m+g;break;case us.R:i=n=u[h++],o=a=u[h++];var _=u[h++],x=u[h++];d=E4(i,o,_,x,c,f,oa);break;case us.Z:d=gp(n,a,i,o,c,f,oa,!0),n=i,a=o;break}d<l&&(l=d,t.set(oa[0],oa[1]))}return l}var sa=new ke,xt=new ke,Kt=new ke,za=new ke,Oa=new ke;function p2(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||Xte,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var A=1/0,l=a.anchor,u=r.getComputedTransform(),c=u&&va([],u),f=e.get("length2")||0;l&&Kt.copy(l);for(var h=0;h<o.length;h++){var v=o[h];Yte(v,0,s,sa,za),ke.scaleAndAdd(xt,sa,za,f),xt.transform(c);var d=r.getBoundingRect(),p=l?l.distance(xt):r instanceof Ze?Jte(xt,r.path,Kt):jte(xt,d,Kt);p<A&&(A=p,xt.transform(u),Kt.transform(u),Kt.toArray(i[0]),xt.toArray(i[1]),sa.toArray(i[2]))}M4(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var yp=[],en=new ke;function M4(r,e){if(e<=180&&e>0){e=e/180*Math.PI,sa.fromArray(r[0]),xt.fromArray(r[1]),Kt.fromArray(r[2]),ke.sub(za,sa,xt),ke.sub(Oa,Kt,xt);var t=za.len(),n=Oa.len();if(!(t<.001||n<.001)){za.scale(1/t),Oa.scale(1/n);var a=za.dot(Oa),i=Math.cos(e);if(i<a){var o=gp(xt.x,xt.y,Kt.x,Kt.y,sa.x,sa.y,yp,!1);en.fromArray(yp),en.scaleAndAdd(Oa,o/Math.tan(Math.PI-e));var s=Kt.x!==xt.x?(en.x-xt.x)/(Kt.x-xt.x):(en.y-xt.y)/(Kt.y-xt.y);if(isNaN(s))return;s<0?ke.copy(en,xt):s>1&&ke.copy(en,Kt),en.toArray(r[1])}}}}function qte(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,sa.fromArray(r[0]),xt.fromArray(r[1]),Kt.fromArray(r[2]),ke.sub(za,xt,sa),ke.sub(Oa,Kt,xt);var n=za.len(),a=Oa.len();if(!(n<.001||a<.001)){za.scale(1/n),Oa.scale(1/a);var i=za.dot(e),o=Math.cos(t);if(i<o){var s=gp(xt.x,xt.y,Kt.x,Kt.y,sa.x,sa.y,yp,!1);en.fromArray(yp);var A=Math.PI/2,l=Math.acos(Oa.dot(e)),u=A+l-t;if(u>=A)ke.copy(en,Kt);else{en.scaleAndAdd(Oa,s/Math.tan(Math.PI/2-u));var c=Kt.x!==xt.x?(en.x-xt.x)/(Kt.x-xt.x):(en.y-xt.y)/(Kt.y-xt.y);if(isNaN(c))return;c<0?ke.copy(en,xt):c>1&&ke.copy(en,Kt)}en.toArray(r[1])}}}}function Vm(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function ere(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=ao(n[0],n[1]),i=ao(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=id([],n[1],n[0],o/a),A=id([],n[1],n[2],o/i),l=id([],s,A,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(A[0],A[1],A[0],A[1],n[2][0],n[2][1])}else for(var u=1;u<n.length;u++)r.lineTo(n[u][0],n[u][1])}function Rb(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,A=0;A<ef.length;A++){var l=ef[A],u=e[l],c=l==="normal";if(u){var f=u.get("show"),h=c?s:Le(a.states[l]&&a.states[l].ignore,s);if(h||!Le(f,o)){var v=c?n:n&&n.states[l];v&&(v.ignore=!0),n&&Vm(n,!0,l,u);continue}n||(n=new Wr,r.setTextGuideLine(n),!c&&(s||!o)&&Vm(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Vm(n,!1,l,u)}}if(n){Re(n.style,t),n.style.fill=null;var d=i.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=d||!1,n.buildPath=ere}}function Ob(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<rn.length;n++){var a=rn[n];t[a]=r.getModel([a,e])}return t}var g2=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],tre=1,mp=2,D4=tre|mp;function wp(r,e,t){t=t||D4,e?r.dirty|=t:r.dirty&=~t}function F4(r,e){return e=e||D4,r.dirty==null||!!(r.dirty&e)}function ti(r){if(r)return F4(r)&&Q4(r,r.label,r),r}function Q4(r,e,t){var n=e.getComputedTransform();r.transform=nb(r.transform,n);var a=r.localRect=nf(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,A=t&&t.minMarginForce,l=t&&t.marginDefault,u=i.__marginType;u==null&&l&&(o=l,u=hl.textMargin);for(var c=0;c<4;c++)Gm[c]=u===hl.minMargin&&A&&A[c]!=null?A[c]:s&&s[c]!=null?s[c]:o?o[c]:0;u===hl.textMargin&&eA(a,Gm,!1,!1);var f=r.rect=nf(r.rect,a);return n&&f.applyTransform(n),u===hl.minMargin&&eA(f,Gm,!1,!1),r.axisAligned=rb(n),(r.label=r.label||{}).ignore=e.ignore,wp(r,!1),wp(r,!0,mp),r}var Gm=[0,0,0,0];function rre(r,e,t){return r.transform=nb(r.transform,t),r.localRect=nf(r.localRect,e),r.rect=nf(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=rb(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function nB(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function aB(r,e){for(var t=0;t<g2.length;t++){var n=g2[t];r[n]==null&&(r[n]=e[n])}return ti(r)}function y2(r){var e=r.obb;return(!e||F4(r,mp))&&(r.obb=e=e||new eO,e.fromBoundingRect(r.localRect,r.transform),wp(r,!1,mp)),e}function iB(r,e,t,n,a){var i=r.length,o=Ge[e],s=rr[e];if(i<2)return!1;r.sort(function(x,S){return x.rect[o]-S.rect[o]});for(var A=0,l,u=!1,c=0,f=0;f<i;f++){var h=r[f],v=h.rect;l=v[o]-A,l<0&&(v[o]-=l,h.label[o]-=l,u=!0);var d=Math.max(-l,0);c+=d,A=v[o]+v[s]}c>0&&a&&C(-c/i,0,i);var p=r[0],g=r[i-1],y,m;w(),y<0&&b(-y,.8),m<0&&b(m,.8),w(),B(y,m,1),B(m,y,-1),w(),y<0&&_(-y),m<0&&_(m);function w(){y=p.rect[o]-t,m=n-g.rect[o]-g.rect[s]}function B(x,S,I){if(x<0){var L=Math.min(S,-x);if(L>0){C(L*I,0,i);var T=L+x;T<0&&b(-T*I,1)}else b(-x*I,1)}}function C(x,S,I){x!==0&&(u=!0);for(var L=S;L<I;L++){var T=r[L],M=T.rect;M[o]+=x,T.label[o]+=x}}function b(x,S){for(var I=[],L=0,T=1;T<i;T++){var M=r[T-1].rect,R=Math.max(r[T].rect[o]-M[o]-M[s],0);I.push(R),L+=R}if(L){var P=Math.min(Math.abs(x)/L,S);if(x>0)for(var T=0;T<i-1;T++){var E=I[T]*P;C(E,0,T+1)}else for(var T=i-1;T>0;T--){var E=I[T-1]*P;C(-E,T,i)}}}function _(x){var S=x<0?-1:1;x=Math.abs(x);for(var I=Math.ceil(x/(i-1)),L=0;L<i-1;L++)if(S>0?C(I,0,L+1):C(-I,i-L-1,i),x-=I,x<=0)return}return u}function nre(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function U4(r){var e=[];r.sort(function(l,u){return(u.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||u.priority-l.priority});function t(l){if(!l.ignore){var u=l.ensureState("emphasis");u.ignore==null&&(u.ignore=!1)}l.ignore=!0}for(var n=0;n<r.length;n++){var a=ti(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,A=0;A<e.length;A++)if(zg(a,e[A],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function zg(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:y2(r).intersect(y2(e),t,n)}function are(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function ire(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:are(n&&n.shape.points)}}var m2=["align","verticalAlign","width","height","fontSize"],Zr=new gi,zm=Ye(),ore=Ye();function ov(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var sv=["x","y","rotation"],sre=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,A=s.textConfig||{},l=a.getComputedTransform(),u=a.getBoundingRect().plain();Ne.applyTransform(u,u,l),l?Zr.setLocalTransform(l):(Zr.x=Zr.y=Zr.rotation=Zr.originX=Zr.originY=0,Zr.scaleX=Zr.scaleY=1),Zr.rotation=Bn(Zr.rotation);var c=a.__hostTarget,f;if(c){f=c.getBoundingRect().plain();var h=c.getComputedTransform();Ne.applyTransform(f,f,h)}var v=f&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:u,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:Zr.x,y:Zr.y,scaleX:Zr.scaleX,scaleY:Zr.scaleY,rotation:Zr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:A.position,attachedRot:A.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(Me(a)||je(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Ve(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(m,w){return function(){p2(m,w)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,A=s.__hostTarget,l=o.defaultAttr,u=void 0;Me(o.layoutOptionOrCb)?u=o.layoutOptionOrCb(ire(o,A)):u=o.layoutOptionOrCb,u=u||{},o.layoutOption=u;var c=Math.PI/180;A&&A.setTextConfig({local:!1,position:u.x!=null||u.y!=null?null:l.attachedPos,rotation:u.rotate!=null?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var f=!1;if(u.x!=null?(s.x=Be(u.x,t),s.setStyle("x",0),f=!0):(s.x=l.x,s.setStyle("x",l.style.x)),u.y!=null?(s.y=Be(u.y,n),s.setStyle("y",0),f=!0):(s.y=l.y,s.setStyle("y",l.style.y)),u.labelLinePoints){var h=A.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),f=!1)}var v=zm(s);v.needsUpdateLabelLine=f,s.rotation=u.rotate!=null?u.rotate*c:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var d=0;d<m2.length;d++){var p=m2[d];s.setStyle(p,u[p]!=null?u[p]:l.style[p])}if(u.draggable){if(s.draggable=!0,s.cursor="move",A){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(A,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=[];F(this._labelList,function(A){A.defaultAttr.ignore||a.push(aB({},A))});var i=ft(a,function(A){return A.layoutOption.moveOverlap==="shiftX"}),o=ft(a,function(A){return A.layoutOption.moveOverlap==="shiftY"});iB(i,0,0,t),iB(o,1,0,n);var s=ft(a,function(A){return A.layoutOption.hideOverlap});nre(s),U4(s)},r.prototype.processLabelsOverall=function(){var e=this;F(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,A=o.getTextContent();!s&&A&&(s=zm(A).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=Ve(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),A={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");A.stroke=l[u]}var c=s.getModel("labelLine");Rb(e,Ob(s),A),p2(e,c)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Cl(e))){var i=zm(n),o=i.oldLayout,s=Ve(e),A=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(s.dataType);if(o){n.attr(o);var f=e.prevStates;f&&($e(f,"select")>=0&&n.attr(i.oldLayoutSelect),$e(f,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),at(n,l,t,A)}else if(n.attr(l),!eu(n).valueAnimation){var c=Le(n.style.opacity,1);n.style.opacity=0,Lt(n,{style:{opacity:c}},t,A)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};ov(h,l,sv),ov(h,n.states.select,sv)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};ov(v,l,sv),ov(v,n.states.emphasis,sv)}cO(n,A,u,t,t)}if(a&&!a.ignore&&!a.invisible){var i=ore(a),o=i.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),at(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Lt(a,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const Are=sre;var $m=Ye();function lre(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=$m(t).labelManager;a||(a=$m(t).labelManager=new Are),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=$m(t).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var Km=Math.sin,Wm=Math.cos,P4=Math.PI,cs=Math.PI*2,ure=180/P4,cre=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,A){var l=s-o,u=!A,c=Math.abs(l),f=lo(c-cs)||(u?l>=cs:-l>=cs),h=l>0?l%cs:l%cs+cs,v=!1;f?v=!0:lo(c)?v=!1:v=h>=P4==!!u;var d=e+n*Wm(o),p=t+a*Km(o);this._start&&this._add("M",d,p);var g=Math.round(i*ure);if(f){var y=1/this._p,m=(u?1:-1)*(cs-y);this._add("A",n,a,g,1,+u,e+n*Wm(o+m),t+a*Km(o+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=e+n*Wm(s),B=t+a*Km(s);this._add("A",n,a,g,+v,+u,w,B)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,A,l){for(var u=[],c=this._p,f=1;f<arguments.length;f++){var h=arguments[f];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*c)/c)}this._d.push(e+u.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const k4=cre;var Hc="none",fre=Math.round;function hre(r){var e=r.fill;return e!=null&&e!==Hc}function vre(r){var e=r.stroke;return e!=null&&e!==Hc}var oB=["lineCap","miterLimit","lineJoin"],dre=me(oB,function(r){return"stroke-"+r.toLowerCase()});function pre(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Ur){r("opacity",a);return}if(hre(e)){var i=Zc(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&r("fill-opacity",o)}else r("fill",Hc);if(vre(e)){var s=Zc(e.stroke);r("stroke",s.color);var A=e.strokeNoScale?t.getLineScale():1,l=A?(e.lineWidth||0)/A:0,u=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,c=e.strokeFirst;if((n||l!==1)&&r("stroke-width",l),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||u<1)&&r("stroke-opacity",u),e.lineDash){var f=Tb(t),h=f[0],v=f[1];h&&(v=fre(v||0),r("stroke-dasharray",h.join(",")),(v||n)&&r("stroke-dashoffset",v))}else n&&r("stroke-dasharray",Hc);for(var d=0;d<oB.length;d++){var p=oB[d];if(n||e[p]!==Jd[p]){var g=e[p]||Jd[p];g&&r(dre[d],g)}}}else n&&r("stroke",Hc)}var R4="http://www.w3.org/2000/svg",O4="http://www.w3.org/1999/xlink",gre="http://www.w3.org/2000/xmlns/",yre="http://www.w3.org/XML/1998/namespace",w2="ecmeta_";function H4(r){return document.createElementNS(R4,r)}function gr(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function mre(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function wre(r){return"</"+r+">"}function Hb(r,e){e=e||{};var t=e.newline?`
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,A=a.text;return mre(o,s)+(o!=="style"?Vr(A):A||"")+(i?""+t+me(i,function(l){return n(l)}).join(t)+t:"")+wre(o)}return n(r)}function Bre(r,e,t){t=t||{};var n=t.newline?`
`:"",a=" {"+n,i=n+"}",o=me(je(r),function(A){return A+a+me(je(r[A]),function(l){return l+":"+r[A][l]+";"}).join(n)+i}).join(n),s=me(je(e),function(A){return"@keyframes "+A+a+me(je(e[A]),function(l){return l+a+me(je(e[A][l]),function(u){var c=e[A][l][u];return u==="d"&&(c='path("'+c+'")'),u+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function sB(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function B2(r,e,t,n){return gr("svg","root",{width:r,height:e,xmlns:R4,"xmlns:xlink":O4,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var Cre=0;function N4(){return Cre++}var C2={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"},ds="transform-origin";function bre(r,e,t){var n=ve({},r.shape);ve(n,e),r.buildPath(t,n);var a=new k4;return a.reset(Vk(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function xre(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[ds]=t+"px "+n+"px")}var _re={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function V4(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function Sre(r,e,t){var n=r.shape.paths,a={},i,o;if(F(n,function(A){var l=sB(t.zrId);l.animation=!0,$g(A,{},l,!0);var u=l.cssAnims,c=l.cssNodes,f=je(u),h=f.length;if(h){o=f[h-1];var v=u[o];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=V4(a,t);return i.replace(o,s)}}function b2(r){return Ce(r)?C2[r]?"cubic-bezier("+C2[r]+")":PC(r)?r:"":""}function $g(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Dg){var s=Sre(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var A={},l=0;l<i;l++){var u=a[l],c=[u.getMaxTime()/1e3+"s"],f=b2(u.getClip().easing),h=u.getDelay();f?c.push(f):c.push("linear"),h&&c.push(h/1e3+"s"),u.getLoop()&&c.push("infinite");var v=c.join(" ");A[v]=A[v]||[v,[]],A[v][1].push(u)}function d(y){var m=y[1],w=m.length,B={},C={},b={},_="animation-timing-function";function x(W,ee,oe){for(var H=W.getTracks(),N=W.getMaxTime(),K=0;K<H.length;K++){var $=H[K];if($.needsAnimate()){var j=$.keyframes,ie=$.propName;if(oe&&(ie=oe(ie)),ie)for(var z=0;z<j.length;z++){var q=j[z],V=Math.round(q.time/N*100)+"%",Y=b2(q.easing),Z=q.rawValue;(Ce(Z)||qe(Z))&&(ee[V]=ee[V]||{},ee[V][ie]=q.rawValue,Y&&(ee[V][_]=Y))}}}}for(var S=0;S<w;S++){var I=m[S],L=I.targetName;L?L==="shape"&&x(I,C):!n&&x(I,B)}for(var T in B){var M={};Yd(M,r),ve(M,B[T]);var R=Gk(M),P=B[T][_];b[T]=R?{transform:R}:{},xre(b[T],M),P&&(b[T][_]=P)}var E,k=!0;for(var T in C){b[T]=b[T]||{};var D=!E,P=C[T][_];D&&(E=new qa);var U=E.len();E.reset(),b[T].d=bre(r,C[T],E);var O=E.len();if(!D&&U!==O){k=!1;break}P&&(b[T][_]=P)}if(!k)for(var T in b)delete b[T].d;if(!n)for(var S=0;S<w;S++){var I=m[S],L=I.targetName;L==="style"&&x(I,b,function(H){return _re[H]})}for(var G=je(b),X=!0,te,S=1;S<G.length;S++){var ne=G[S-1],ye=G[S];if(b[ne][ds]!==b[ye][ds]){X=!1;break}te=b[ne][ds]}if(X&&te){for(var T in b)b[T][ds]&&delete b[T][ds];e[ds]=te}if(ft(G,function(W){return je(b[W]).length>0}).length){var re=V4(b,t);return re+" "+y[0]+" both"}}for(var p in A){var s=d(A[p]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+N4();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function Tre(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};x2(n,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,A=r.currentStates.indexOf("select")>=0&&s||o;A&&(i=o1(A))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),x2(n,e,t,!0)}}function x2(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+N4(),t.cssStyleCache[a]=i,t.cssNodes["."+i+(n?":hover":"")]=r),e.class=e.class?e.class+" "+i:i}var vf=Math.round;function G4(r){return r&&Ce(r.src)}function z4(r){return r&&Me(r.toDataURL)}function Nb(r,e,t,n){pre(function(a,i){var o=a==="fill"||a==="stroke";o&&Nk(i)?K4(e,r,a,n):o&&kC(i)?W4(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),Qre(t,r,n)}function Vb(r,e){var t=F9(e);t&&(t.each(function(n,a){n!=null&&(r[(w2+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[w2+"silent"]="true"))}function _2(r){return lo(r[0]-1)&&lo(r[1])&&lo(r[2])&&lo(r[3]-1)}function Ire(r){return lo(r[4])&&lo(r[5])}function Gb(r,e,t){if(e&&!(Ire(e)&&_2(e))){var n=t?10:1e4;r.transform=_2(e)?"translate("+vf(e[4]*n)/n+" "+vf(e[5]*n)/n+")":J7(e)}}function S2(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(vf(n[i][0]*t)/t),a.push(vf(n[i][1]*t)/t);e.points=a.join(" ")}function T2(r){return!r.smooth}function Lre(r){var e=me(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=vf(s*a)/a)}}}var Ere={circle:[Lre(["cx","cy","r"])],polyline:[S2,T2],polygon:[S2,T2]};function Mre(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function $4(r,e){var t=r.style,n=r.shape,a=Ere[r.type],i={},o=e.animation,s="path",A=r.style.strokePercent,l=e.compress&&Vk(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Mre(r))&&!(A<1)){s=r.type;var u=Math.pow(10,l);a[0](n,i,u)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var f=r.path;c&&(f.beginPath(),r.buildPath(f,r.shape),r.pathUpdated());var h=f.getVersion(),v=r,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||A!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new k4),d.reset(l),f.rebuildPath(d,A),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=A),i.d=d.getStr()}return Gb(i,r.transform),Nb(i,t,r,e),Vb(i,r),e.animation&&$g(r,i,e),e.emphasis&&Tre(r,i,e),gr(s,r.id+"",i)}function Dre(r,e){var t=r.style,n=t.image;if(n&&!Ce(n)&&(G4(n)?n=n.src:z4(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,A={href:n,width:o,height:s};return a&&(A.x=a),i&&(A.y=i),Gb(A,r.transform),Nb(A,t,r,e),Vb(A,r),e.animation&&$g(r,A,e),gr("image",r.id+"",A)}}function Fre(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||Si,i=t.x||0,o=e9(t.y||0,Ff(a),t.textBaseline),s=q7[t.textAlign]||t.textAlign,A={"dominant-baseline":"central","text-anchor":s};if(SR(t)){var l="",u=t.fontStyle,c=_R(t.fontSize);if(!parseFloat(c))return;var f=t.fontFamily||dk,h=t.fontWeight;l+="font-size:"+c+";font-family:"+f+";",u&&u!=="normal"&&(l+="font-style:"+u+";"),h&&h!=="normal"&&(l+="font-weight:"+h+";"),A.style=l}else A.style="font: "+a;return n.match(/\s/)&&(A["xml:space"]="preserve"),i&&(A.x=i),o&&(A.y=o),Gb(A,r.transform),Nb(A,t,r,e),Vb(A,r),e.animation&&$g(r,A,e),gr("text",r.id+"",A,void 0,n)}}function I2(r,e){if(r instanceof Ze)return $4(r,e);if(r instanceof Ur)return Dre(r,e);if(r instanceof qc)return Fre(r,e)}function Qre(r,e,t){var n=r.style;if(t9(n)){var a=r9(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),A=s[0],l=s[1];if(!A||!l)return;var u=n.shadowOffsetX||0,c=n.shadowOffsetY||0,f=n.shadowBlur,h=Zc(n.shadowColor),v=h.opacity,d=h.color,p=f/2/A,g=f/2/l,y=p+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=gr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[gr("feDropShadow","",{dx:u/A,dy:c/l,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),i[a]=o}e.filter=wg(o)}}function K4(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Ok(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Hk(a))i="radialGradient",o.cx=Le(a.x,.5),o.cy=Le(a.y,.5),o.r=Le(a.r,.5);else return;for(var s=a.colorStops,A=[],l=0,u=s.length;l<u;++l){var c=s1(s[l].offset)*100+"%",f=s[l].color,h=Zc(f),v=h.color,d=h.opacity,p={offset:c};p["stop-color"]=v,d<1&&(p["stop-opacity"]=d),A.push(gr("stop",l+"",p))}var g=gr(i,"",o,A),y=Hb(g),m=n.gradientCache,w=m[y];w||(w=n.zrId+"-g"+n.gradientIdx++,m[y]=w,o.id=w,n.defs[w]=gr(i,w,o,A)),e[t]=wg(w)}function W4(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,A=s==="no-repeat",l=s==="repeat-x",u=s==="repeat-y",c;if(Rk(a)){var f=a.imageWidth,h=a.imageHeight,v=void 0,d=a.image;if(Ce(d)?v=d:G4(d)?v=d.src:z4(d)&&(v=d.toDataURL()),typeof Image>"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Kr(f,p),Kr(h,p)}else if(f==null||h==null){var g=function(S,I){if(S){var L=S.elm,T=f||I.width,M=h||I.height;S.tag==="pattern"&&(l?(M=1,T/=i.width):u&&(T=1,M/=i.height)),S.attrs.width=T,S.attrs.height=M,L&&(L.setAttribute("width",T),L.setAttribute("height",M))}},y=zC(v,null,r,function(S){A||g(C,S),g(c,S)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=gr("image","img",{href:v,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(c=De(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var m,w;A?m=w=1:l?(w=1,m=o.width/i.width):u?(m=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(o.width=m),w!=null&&!isNaN(w)&&(o.height=w);var B=Gk(a);B&&(o.patternTransform=B);var C=gr("pattern","",o,[c]),b=Hb(C),_=n.patternCache,x=_[b];x||(x=n.zrId+"-p"+n.patternIdx++,_[b]=x,o.id=x,C=n.defs[x]=gr("pattern",x,o,[c])),e[t]=wg(x)}}function Ure(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=gr("clipPath",i,o,[$4(r,t)])}e["clip-path"]=wg(i)}function L2(r){return document.createTextNode(r)}function xs(r,e,t){r.insertBefore(e,t)}function E2(r,e){r.removeChild(e)}function M2(r,e){r.appendChild(e)}function X4(r){return r.parentNode}function Y4(r){return r.nextSibling}function Xm(r,e){r.textContent=e}var D2=58,Pre=120,kre=gr("","");function AB(r){return r===void 0}function Pa(r){return r!==void 0}function Rre(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function mc(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function df(r){var e,t=r.children,n=r.tag;if(Pa(n)){var a=r.elm=H4(n);if(zb(kre,r),ge(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&M2(a,df(i))}else Pa(r.text)&&!Oe(r.text)&&M2(a,L2(r.text))}else r.elm=L2(r.text);return r.elm}function Z4(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&xs(r,df(i),e)}}function Bp(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(Pa(a.tag)){var i=X4(a.elm);E2(i,a.elm)}else E2(r,a.elm)}}function zb(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==Pre?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(gre,t,o):t.charCodeAt(3)===D2?n.setAttributeNS(yre,t,o):t.charCodeAt(5)===D2?n.setAttributeNS(O4,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function Ore(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],A=t.length-1,l=t[0],u=t[A],c,f,h,v;n<=i&&a<=A;)o==null?o=e[++n]:s==null?s=e[--i]:l==null?l=t[++a]:u==null?u=t[--A]:mc(o,l)?(ol(o,l),o=e[++n],l=t[++a]):mc(s,u)?(ol(s,u),s=e[--i],u=t[--A]):mc(o,u)?(ol(o,u),xs(r,o.elm,Y4(s.elm)),o=e[++n],u=t[--A]):mc(s,l)?(ol(s,l),xs(r,s.elm,o.elm),s=e[--i],l=t[++a]):(AB(c)&&(c=Rre(e,n,i)),f=c[l.key],AB(f)?xs(r,df(l),o.elm):(h=e[f],h.tag!==l.tag?xs(r,df(l),o.elm):(ol(h,l),e[f]=void 0,xs(r,h.elm,o.elm))),l=t[++a]);(n<=i||a<=A)&&(n>i?(v=t[A+1]==null?null:t[A+1].elm,Z4(r,v,t,a,A)):Bp(r,e,n,i))}function ol(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(zb(r,e),AB(e.text)?Pa(n)&&Pa(a)?n!==a&&Ore(t,n,a):Pa(a)?(Pa(r.text)&&Xm(t,""),Z4(t,null,a,0,a.length-1)):Pa(n)?Bp(t,n,0,n.length-1):Pa(r.text)&&Xm(t,""):r.text!==e.text&&(Pa(n)&&Bp(t,n,0,n.length-1),Xm(t,e.text)))}function Hre(r,e){if(mc(r,e))ol(r,e);else{var t=r.elm,n=X4(t);df(e),n!==null&&(xs(n,e.elm,Y4(t)),Bp(n,[r],0,0))}return e}var Nre=0,Vre=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=F2(),this.configLayer=F2(),this.storage=t,this._opts=n=ve({},n),this.root=e,this._id="zr"+Nre++,this._oldVNode=B2(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=H4("svg");zb(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Hre(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return I2(e,sB(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=sB(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Gre(n,a,this._backgroundColor,i);s&&o.push(s);var A=e.compress?null:this._mainVNode=gr("g","main",{},[]);this._paintList(t,i,A?A.children:o),A&&o.push(A);var l=me(je(i.defs),function(f){return i.defs[f]});if(l.length&&o.push(gr("defs","defs",{},l)),e.animation){var u=Bre(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=gr("style","stl",{},[],u);o.push(c)}}return B2(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Hb(this.renderToVNode({animation:Le(e.cssAnimation,!0),emphasis:Le(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Le(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,A,l=0,u=0;u<a;u++){var c=e[u];if(!c.invisible){var f=c.__clipPaths,h=f&&f.length||0,v=A&&A.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(f&&A&&f[d]===A[d]);d--);for(var p=v-1;p>d;p--)o--,s=i[o-1];for(var g=d+1;g<h;g++){var y={};Ure(f[g],y,t);var m=gr("g","clip-g-"+l++,y,[]);(s?s.children:n).push(m),i[o++]=m,s=m}A=f;var w=I2(c,t);w&&(s?s.children:n).push(w)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=dl(a,0,n),t=dl(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(kC(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var A=this._bgVNode&&this._bgVNode.elm;A&&(A.setAttribute("width",e),A.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=a9(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r}();function F2(r){return function(){}}function Gre(r,e,t,n){var a;if(t&&t!=="none")if(a=gr("rect","bg",{width:r,height:e,x:"0",y:"0"}),Nk(t))K4({fill:t},a.attrs,"fill",n);else if(kC(t))W4({style:{fill:t},dirty:Xt,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=Zc(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const zre=Vre;function $re(r){r.registerPainter("svg",zre)}function Q2(r,e,t){var n=ha.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var Kre=function(r){Mt(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||Xd,typeof t=="string"?o=Q2(t,n,a):Oe(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(Bk(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Q2("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,A=!1,l=new Ne(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var m=new Ne(0,0,0,0);m.copy(y),o.push(m)}else{for(var w=!1,B=1/0,C=0,b=0;b<o.length;++b){var _=o[b];if(_.intersect(y)){var x=new Ne(0,0,0,0);x.copy(_),x.union(y),o[b]=x,w=!0;break}else if(A){l.copy(y),l.union(_);var S=y.width*y.height,I=_.width*_.height,L=l.width*l.height,T=L-S-I;T<B&&(B=T,C=b)}}if(A&&(o[C].union(y),w=!0),!w){var m=new Ne(0,0,0,0);m.copy(y),o.push(m)}A||(A=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var f=t[c];if(f){var h=f.shouldBePainted(a,i,!0,!0),v=f.__isRendered&&(f.__dirty&wn||!h)?f.getPrevPaintRect():null;v&&u(v);var d=h&&(f.__dirty&wn||!f.__isRendered)?f.getPaintRect():null;d&&u(d)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f=n[c],h=f&&f.shouldBePainted(a,i,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered){var v=f.getPrevPaintRect();v&&u(v)}}var p;do{p=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(p=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,A=i.height;n=n||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr,f=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,A/c));var h=this.domBack;function v(d,p,g,y){if(o.clearRect(d,p,g,y),n&&n!=="transparent"){var m=void 0;if(dg(n)){var w=n.global||n.__width===g&&n.__height===y;m=w&&n.__canvasGradient||$1(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=m,n.__width=g,n.__height=y}else r7(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,m=K1(o,n,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));o.save(),o.fillStyle=m||n,o.fillRect(d,p,g,y),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(h,d,p,g,y),o.restore())}!a||l?v(0,0,s,A):a.length&&F(a,function(d){v(d.x*c,d.y*c,d.width*c,d.height*c)})},e}(qn);const Ym=Kre;var U2=1e5,fs=314159,Av=.01,Wre=.001;function Xre(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Yre(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var Zre=function(){function r(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=ve({},n||{}),this.dpr=n.devicePixelRatio||Xd,this._singleCanvas=i,this.root=e;var o=e.style;o&&(Bk(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var A=this._layers;if(i){var u=e,c=u.width,f=u.height;n.width!=null&&(c=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,u.width=c*this.dpr,u.height=f*this.dpr,this._width=c,this._height=f;var h=new Ym(u,this,this.dpr);h.__builtin__=!0,h.initContext(),A[fs]=h,h.zlevel=fs,s.push(fs),this._domRoot=e}else{this._width=dl(e,0,n),this._height=dl(e,1,n);var l=this._domRoot=Yre(this._width,this._height);e.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var A=i===0?this._backgroundColor:null;s.refresh(A)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(U2)),i||(i=n.ctx,i.save()),Ps(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(U2)},r.prototype.paintOne=function(e,t){TH(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var A=this;t1(function(){A._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(fs).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var A=this._zlevelList[s],l=this._layers[A];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,f=function(d){var p=i[d],g=p.ctx,y=o&&p.createRepaintRects(e,t,h._width,h._height),m=n?p.__startIndex:p.__drawIndex,w=!n&&p.incremental&&Date.now,B=w&&Date.now(),C=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,C,y);else if(m===p.__startIndex){var b=e[m];(!b.incremental||!b.notClear||n)&&p.clear(!1,C,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var _,x=function(T){var M={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(_=m;_<p.__endIndex;_++){var R=e[_];if(R.__inHover&&(c=!0),a._doPaintEl(R,p,o,T,M,_===p.__endIndex-1),w){var P=Date.now()-B;if(P>15)break}}M.prevElClipPaths&&g.restore()};if(y)if(y.length===0)_=p.__endIndex;else for(var S=h.dpr,I=0;I<y.length;++I){var L=y[I];g.save(),g.beginPath(),g.rect(L.x*S,L.y*S,L.width*S,L.height*S),g.clip(),x(L),g.restore()}else g.save(),x(),g.restore();p.__drawIndex=_,p.__drawIndex<p.__endIndex&&(u=!1)},h=this,v=0;v<i.length;v++)f(v);return st.wxa&&F(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:u,needsRefreshHover:c}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var A=e.getPaintRect();(!a||A&&A.intersect(a))&&(Ps(s,e,i,o),e.setPrevPaintRect(A))}else Ps(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=fs);var n=this._layers[e];return n||(n=new Ym("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ke(n,this._layerConfig[e],!0):this._layerConfig[e-Av]&&Ke(n,this._layerConfig[e-Av],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,A=-1;if(!n[e]&&Xre(t)){if(i>0&&e>a[0]){for(A=0;A<i-1&&!(a[A]<e&&a[A+1]>e);A++);s=n[a[A]]}if(a.splice(A+1,0,e),n[e]=t,!t.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(c,f){c.__dirty=c.__used=!1});function t(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,A;for(A=0;A<e.length;A++){var a=e[A],l=a.zlevel,u=void 0;s!==l&&(s=l,o=0),a.incremental?(u=this.getLayer(l+Wre,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(l+(o>0?Av:0),this._needsManuallyCompositing),u.__builtin__||LC("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==A&&(u.__dirty=!0),u.__startIndex=A,u.incremental?u.__drawIndex=-1:u.__drawIndex=A,t(A),i=u),a.__dirty&wn&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=A))}t(A),this.eachBuiltinLayer(function(c,f){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,F(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ke(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Av){var o=this._layers[i];Ke(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice($e(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=dl(i,0,a),t=dl(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(fs).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[fs].dom;var t=new Ym("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),A=0,l=s.length;A<l;A++){var u=s[A];Ps(n,u,o,A===l-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const jre=Zre;function Jre(r){r.registerPainter("canvas",jre)}var qre=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return ki(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Fe,a=ar("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,A=t.itemHeight*.8,l=ar(s,(t.itemWidth-A)/2,(t.itemHeight-A)/2,A,A,t.itemStyle.fill);n.add(l),l.setStyle(t.itemStyle);var u=t.iconRotate==="inherit"?o:t.iconRotate||0;return l.rotation=u*Math.PI/180,l.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill=le.color.neutral00,l.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Pt);const ene=qre;function Rl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=Ql(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(Ql(r,e,t[o]));return i.join(" ")}}function j4(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!ge(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var tne=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var A=ar(t,-1,-1,2,2,null,s);A.attr({z2:Le(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),A.drift=rne,this._symbolType=t,this.add(A)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Li(this.childAt(0))},e.prototype.downplay=function(){Ei(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,A=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,A,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:A[0]/2,scaleY:A[1]/2};c?h.attr(v):at(h,v,s,n),Jn(h)}if(this._updateCommon(t,n,A,a,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Lt(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),A=t.hostModel,l,u,c,f,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,c=i.selectItemStyle,f=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),f=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=fr(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var B=hA(t.getItemVisual(n,"symbolOffset"),a);B&&(s.x=B[0],s.y=B[1]),g&&s.attr("cursor",g);var C=t.getItemVisual(n,"style"),b=C.fill;if(s instanceof Ur){var _=s.style;s.useStyle(ve({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},C))}else s.__isEmptyBrush?s.useStyle(ve({},C)):s.useStyle(C),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=t.getItemVisual(n,"liftZ"),S=this._z2;x!=null?S==null&&(this._z2=s.z2,s.z2+=x):S!=null&&(s.z2=S,this._z2=null);var I=o&&o.useNameLabel;yr(s,d,{labelFetcher:A,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:C.opacity});function L(R){return I?t.getName(R):Rl(t,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var T=s.ensureState("emphasis");T.style=l,s.ensureState("select").style=c,s.ensureState("blur").style=u;var M=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M,this.setSymbolScale(1),Qt(this,f,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var A=i.getTextContent();A&&To(A,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();To(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return iu(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e}(Fe);function rne(r,e){this.parent.drift(r,e)}const Gf=tne;function Zm(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function P2(r){return r!=null&&!Oe(r)&&(r={isIgnore:r}),r||{}}function k2(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:fr(e),cursorStyle:e.get("cursor")}}var nne=function(){function r(e){this.group=new Fe,this._SymbolCtor=e||Gf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=P2(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,A=k2(e),l={disableAnimation:s},u=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||n.removeAll(),e.diff(i).add(function(c){var f=u(c);if(Zm(e,f,c,t)){var h=new o(e,c,A,l);h.setPosition(f),e.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,f){var h=i.getItemGraphicEl(f),v=u(c);if(!Zm(e,v,c,t)){n.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new o(e,c,A,l),h.setPosition(v);else{h.updateData(e,c,A,l);var g={x:v[0],y:v[1]};s?h.attr(g):at(h,g,a)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&f.fadeOut(function(){n.remove(f)},a)}).execute(),this._getSymbolPoint=u,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=k2(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=P2(n);function a(A){A.isGroup||(A.incremental=!0,A.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Zm(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){ko(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r}();const zf=nne;function J4(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=ane(a,t),o=n.dim,s=a.dim,A=e.mapDimension(s),l=e.mapDimension(o),u=s==="x"||s==="radius"?1:0,c=me(r.dimensions,function(v){return e.mapDimension(v)}),f=!1,h=e.getCalculationInfo("stackResultDimension");return Io(e,c[0])&&(f=!0,c[0]=h),Io(e,c[1])&&(f=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:A,baseDim:l,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ane(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:qe(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function q4(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function ine(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function one(r,e,t,n,a,i,o,s){for(var A=ine(r,e),l=[],u=[],c=[],f=[],h=[],v=[],d=[],p=J4(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m<A.length;m++){var w=A[m],B=!0,C=void 0,b=void 0;switch(w.cmd){case"=":C=w.idx*2,b=w.idx1*2;var _=g[C],x=g[C+1],S=y[b],I=y[b+1];(isNaN(_)||isNaN(x))&&(_=S,x=I),l.push(_,x),u.push(S,I),c.push(t[C],t[C+1]),f.push(n[b],n[b+1]),d.push(e.getRawIndex(w.idx1));break;case"+":var L=w.idx,T=p.dataDimsForPoint,M=a.dataToPoint([e.get(T[0],L),e.get(T[1],L)]);b=L*2,l.push(M[0],M[1]),u.push(y[b],y[b+1]);var R=q4(p,a,e,L);c.push(R[0],R[1]),f.push(n[b],n[b+1]),d.push(e.getRawIndex(L));break;case"-":B=!1}B&&(h.push(w),v.push(v.length))}v.sort(function(ne,ye){return d[ne]-d[ye]});for(var P=l.length,E=Ga(P),k=Ga(P),D=Ga(P),U=Ga(P),O=[],m=0;m<v.length;m++){var G=v[m],X=m*2,te=G*2;E[X]=l[te],E[X+1]=l[te+1],k[X]=u[te],k[X+1]=u[te+1],D[X]=c[te],D[X+1]=c[te+1],U[X]=f[te],U[X+1]=f[te+1],O[m]=h[G]}return{current:E,next:k,stackedOnCurrent:D,stackedOnNext:U,status:O}}var zi=Math.min,$i=Math.max;function Ks(r,e){return isNaN(r)||isNaN(e)}function lB(r,e,t,n,a,i,o,s,A){for(var l,u,c,f,h,v,d=t,p=0;p<n;p++){var g=e[d*2],y=e[d*2+1];if(d>=a||d<0)break;if(Ks(g,y)){if(A){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](g,y),c=g,f=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(o>0){for(var B=d+i,C=e[B*2],b=e[B*2+1];C===g&&b===y&&p<n;)p++,B+=i,d+=i,C=e[B*2],b=e[B*2+1],g=e[d*2],y=e[d*2+1],m=g-l,w=y-u;var _=p+1;if(A)for(;Ks(C,b)&&_<n;)_++,B+=i,C=e[B*2],b=e[B*2+1];var x=.5,S=0,I=0,L=void 0,T=void 0;if(_>=n||Ks(C,b))h=g,v=y;else{S=C-l,I=b-u;var M=g-l,R=C-g,P=y-u,E=b-y,k=void 0,D=void 0;if(s==="x"){k=Math.abs(M),D=Math.abs(R);var U=S>0?1:-1;h=g-U*k*o,v=y,L=g+U*D*o,T=y}else if(s==="y"){k=Math.abs(P),D=Math.abs(E);var O=I>0?1:-1;h=g,v=y-O*k*o,L=g,T=y+O*D*o}else k=Math.sqrt(M*M+P*P),D=Math.sqrt(R*R+E*E),x=D/(D+k),h=g-S*o*(1-x),v=y-I*o*(1-x),L=g+S*o*x,T=y+I*o*x,L=zi(L,$i(C,g)),T=zi(T,$i(b,y)),L=$i(L,zi(C,g)),T=$i(T,zi(b,y)),S=L-g,I=T-y,h=g-S*k/D,v=y-I*k/D,h=zi(h,$i(l,g)),v=zi(v,$i(u,y)),h=$i(h,zi(l,g)),v=$i(v,zi(u,y)),S=g-h,I=y-v,L=g+S*D/k,T=y+I*D/k}r.bezierCurveTo(c,f,h,v,g,y),c=L,f=T}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var eN=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),sne=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new eN},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ks(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ks(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=lB(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=qa.CMD,s,A,l=n==="x",u=[],c=0;c<i.length;){var f=i[c++],h=void 0,v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0;switch(f){case o.M:s=i[c++],A=i[c++];break;case o.L:if(h=i[c++],v=i[c++],m=l?(t-s)/(h-s):(t-A)/(v-A),m<=1&&m>=0){var w=l?(v-A)*m+A:(h-s)*m+s;return l?[t,w]:[w,t]}s=h,A=v;break;case o.C:h=i[c++],v=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++];var B=l?zd(s,h,d,g,t,u):zd(A,v,p,y,t,u);if(B>0)for(var C=0;C<B;C++){var b=u[C];if(b<=1&&b>=0){var w=l?dr(A,v,p,y,b):dr(s,h,d,g,b);return l?[t,w]:[w,t]}}s=g,A=y;break}}},e}(Ze),Ane=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(eN),tN=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new Ane},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,A=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ks(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ks(a[o*2],a[o*2+1]);o++);}for(;o<s;){var l=lB(t,a,o,s,s,1,n.smooth,A,n.connectNulls);lB(t,i,o+l-1,l,s,-1,n.stackedOnSmooth,A,n.connectNulls),o+=l+1,t.closePath()}},e}(Ze);function rN(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,A=i.width,l=i.height,u=t.get(["lineStyle","width"])||0;o-=u/2,s-=u/2,A+=u,l+=u,A=Math.ceil(A),o!==Math.floor(o)&&(o=Math.floor(o),A++);var c=new Xe({shape:{x:o,y:s,width:A,height:l}});if(e){var f=r.getBaseAxis(),h=f.isHorizontal(),v=f.inverse;h?(v&&(c.shape.x+=A),c.shape.width=0):(v||(c.shape.y+=l),c.shape.height=0);var d=Me(a)?function(p){a(p,c)}:null;Lt(c,{shape:{width:A,height:l,x:o,y:s}},t,null,n,d)}return c}function nN(r,e,t){var n=r.getArea(),a=er(n.r0,1),i=er(n.r,1),o=new nn({shape:{cx:er(r.cx,1),cy:er(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Lt(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function $f(r,e,t,n,a){if(r){if(r.type==="polar")return nN(r,e,t);if(r.type==="cartesian2d")return rN(r,e,t,n,a)}else return null;return null}function Eo(r,e){return r.type===e}function R2(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function O2(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function H2(r,e){var t=O2(r),n=t[0],a=t[1],i=O2(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function N2(r){return qe(r)?r:r?.5:0}function lne(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=Ga(n*2),i=0;i<n;i++){var o=q4(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Ki(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],A=0,l=[],u=[],c=[],f=[];if(a){for(A=0;A<r.length;A+=2){var h=e||r;!isNaN(h[A])&&!isNaN(h[A+1])&&f.push(r[A],r[A+1])}r=f}for(A=0;A<r.length-2;A+=2)switch(c[0]=r[A+2],c[1]=r[A+3],u[0]=r[A],u[1]=r[A+1],s.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case"middle":var v=(u[o]+c[o])/2,d=[];l[o]=d[o]=v,l[1-o]=u[1-o],d[1-o]=c[1-o],s.push(l[0],l[1]),s.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],s.push(l[0],l[1])}return s.push(r[A++],r[A++]),s}function une(r,e){var t=[],n=r.length,a,i;function o(u,c,f){var h=u.coord,v=(f-h)/(c.coord-h),d=j7(v,[u.color,c.color]);return{coord:f,color:d}}for(var s=0;s<n;s++){var A=r[s],l=A.coord;if(l<0)a=A;else if(l>e){i?t.push(o(i,A,e)):a&&t.push(o(a,A,0),o(a,A,e));break}else a&&(t.push(o(a,A,0)),a=null),t.push(A),i=A}return t}function cne(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var A=e.getAxis(a),l=me(i.stops,function(m){return{coord:A.toGlobalCoord(A.dataToCoord(m.value)),color:m.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var f=une(l,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&u)return l[0].coord<0?c[1]?c[1]:l[u-1].color:c[0]?c[0]:l[0].color;var v=10,d=f[0].coord-v,p=f[h-1].coord+v,g=p-d;if(g<.001)return"transparent";F(f,function(m){m.offset=(m.coord-d)/g}),f.push({offset:h?f[h-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:c[0]||"transparent"});var y=new AA(0,0,0,0,f,!0);return y[a]=d,y[a+"2"]=p,y}}}function fne(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&hne(i,e))){var o=e.mapDimension(i.dim),s={};return F(i.getViewLabels(),function(A){var l=i.scale.getRawOrdinalNumber(A.tickValue);s[l]=1}),function(A){return!s.hasOwnProperty(e.get(o,A))}}}}function hne(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Gf.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function vne(r,e){return isNaN(r)||isNaN(e)}function dne(r){for(var e=r.length/2;e>0&&vne(r[e*2-2],r[e*2-1]);e--);return e-1}function V2(r,e){return[r[e*2],r[e*2+1]]}function pne(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,A=-1,l=0;l<n;l++)if(o=r[l*2+a],!(isNaN(o)||isNaN(r[l*2+1-a]))){if(l===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){A=l;break}s=l,i=o}return{range:[s,A],t:(e-i)/(o-i)}}function aN(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<rn.length;e++)if(r.get([rn[e],"endLabel","show"]))return!0;return!1}function jm(r,e,t,n){if(Eo(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},A=aN(n)?function(h,v){r._endLabelOnDuring(h,v,o,s,i,a,e)}:null,l=e.getBaseAxis().isHorizontal(),u=rN(e,t,n,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},A);if(!n.get("clip",!0)){var c=u.shape,f=Math.max(c.width,c.height);l?(c.y-=f,c.height+=f*2):(c.x-=f,c.width+=f*2)}return A&&A(1,u),u}else return nN(e,t,n)}function gne(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var yne=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Fe,n=new zf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=be(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),A=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=s.getLayout("points")||[],c=i.type==="polar",f=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,p=this._lineGroup,g=!n.ssr&&t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),w=J4(i,s,m),B=y&&lne(i,s,w),C=t.get("showSymbol"),b=t.get("connectNulls"),_=C&&!c&&fne(t,s,i),x=this._data;x&&x.eachItemGraphicEl(function(ne,ye){ne.__temp&&(o.remove(ne),x.setItemGraphicEl(ye,null))}),C||h.remove(),o.add(p);var S=c?!1:t.get("step"),I;i&&i.getArea&&t.get("clip",!0)&&(I=i.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=cne(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&f.type===i.type&&S===this._step))C&&h.updateData(s,{isIgnore:_,clipShape:I,disableAnimation:!0,getSymbolPoint:function(ne){return[u[ne*2],u[ne*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,I),S&&(B&&(B=Ki(B,u,i,S,b)),u=Ki(u,null,i,S,b)),v=this._newPolyline(u),y?d=this._newPolygon(u,B):d&&(p.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,rA(L)),p.setClipPath(jm(this,i,!0,t));else{y&&!d?d=this._newPolygon(u,B):d&&!y&&(p.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,rA(L));var T=p.getClipPath();if(T){var M=jm(this,i,!1,t);Lt(T,{shape:M.shape},t)}else p.setClipPath(jm(this,i,!0,t));C&&h.updateData(s,{isIgnore:_,clipShape:I,disableAnimation:!0,getSymbolPoint:function(ne){return[u[ne*2],u[ne*2+1]]}}),(!R2(this._stackedOnPoints,B)||!R2(this._points,u))&&(g?this._doUpdateAnimation(s,B,i,a,S,m,b):(S&&(B&&(B=Ki(B,u,i,S,b)),u=Ki(u,null,i,S,b)),v.setShape({points:u}),d&&d.setShape({points:u,stackedOnPoints:B})))}var R=t.getModel("emphasis"),P=R.get("focus"),E=R.get("blurScope"),k=R.get("disabled");if(v.useStyle(Re(A.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),cr(v,t,"lineStyle"),v.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var D=v.getState("emphasis").style;D.lineWidth=+v.style.lineWidth+1}Ve(v).seriesIndex=t.seriesIndex,Qt(v,P,E,k);var U=N2(t.get("smooth")),O=t.get("smoothMonotone");if(v.setShape({smooth:U,smoothMonotone:O,connectNulls:b}),d){var G=s.getCalculationInfo("stackedOnSeries"),X=0;d.useStyle(Re(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(X=N2(G.get("smooth"))),d.setShape({smooth:U,stackedOnSmooth:X,smoothMonotone:O,connectNulls:b}),cr(d,t,"areaStyle"),Ve(d).seriesIndex=t.seriesIndex,Qt(d,P,E,k)}var te=this._changePolyState;s.eachItemGraphicEl(function(ne){ne&&(ne.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=s,this._coordSys=i,this._stackedOnPoints=B,this._points=u,this._step=S,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,v),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,n){Ve(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=js(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var A=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var u=A[s*2],c=A[s*2+1];if(isNaN(u)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,c))return;var f=t.get("zlevel")||0,h=t.get("z")||0;l=new Gf(o,s),l.x=u,l.y=c,l.setZ(f,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=f,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else bt.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=js(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var A=o.getItemGraphicEl(s);A&&(A.__temp?(o.setItemGraphicEl(s,null),this.group.remove(A)):A.downplay())}else bt.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;tp(this._polyline,t),n&&tp(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new sne({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new tN({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),A=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var l=t.hostModel,u=l.get("animationDuration");Me(u)&&(u=u(null));var c=l.get("animationDelay")||0,f=Me(c)?c(null):c;t.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(o){var w=a,B=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-B[1]/180*Math.PI):(g=w.r0,y=w.r,m=B[0])}else{var C=a;i?(g=C.x,y=C.x+C.width,m=h.x):(g=C.y+C.height,y=C.y,m=h.y)}var b=y===g?0:(m-g)/(y-g);A&&(b=1-b);var _=Me(c)?c(v):u*b+f,x=d.getSymbolPath(),S=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),S&&S.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(aN(t)){var o=t.getData(),s=this._polyline,A=o.getLayout("points");if(!A){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new nt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=dne(A);u>=0&&(yr(s,fr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:u,defaultText:function(c,f,h){return h!=null?j4(o,h):Rl(o,c)},enableTextSetter:!0},gne(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,A){var l=this._endLabel,u=this._polyline;if(l){t<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var c=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,p=A.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,B=(g?d:0)*(y?-1:1),C=(g?0:-d)*(y?-1:1),b=g?"x":"y",_=pne(c,w,b),x=_.range,S=x[1]-x[0],I=void 0;if(S>=1){if(S>1&&!h){var L=V2(c,x[0]);l.attr({x:L[0]+B,y:L[1]+C}),o&&(I=f.getRawValue(x[0]))}else{var L=u.getPointOn(w,b);L&&l.attr({x:L[0]+B,y:L[1]+C});var T=f.getRawValue(x[0]),M=f.getRawValue(x[1]);o&&(I=cR(a,v,T,M,_.t))}i.lastFrameIndex=x[0]}else{var R=t===1||i.lastFrameIndex>0?x[0]:0,L=V2(c,R);o&&(I=f.getRawValue(R)),l.attr({x:L[0]+B,y:L[1]+C})}if(o){var P=eu(l);typeof P.setLabelText=="function"&&P.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,A){var l=this._polyline,u=this._polygon,c=t.hostModel,f=one(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=f.current,v=f.stackedOnCurrent,d=f.next,p=f.stackedOnNext;if(o&&(v=Ki(f.stackedOnCurrent,f.current,a,o,A),h=Ki(f.current,null,a,o,A),p=Ki(f.stackedOnNext,f.next,a,o,A),d=Ki(f.next,null,a,o,A)),H2(h,d)>3e3||u&&H2(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=f.current,l.shape.points=h;var g={shape:{points:d}};f.current!==h&&(g.shape.__points=f.next),l.stopAnimation(),at(l,g,c),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),at(u,{shape:{stackedOnPoints:p}},c),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=f.status,w=0;w<m.length;w++){var B=m[w].cmd;if(B==="="){var C=t.getItemGraphicEl(m[w].idx1);C&&y.push({el:C,ptIdx:w})}}l.animators&&l.animators.length&&l.animators[0].during(function(){u&&u.dirtyShape();for(var b=l.shape.__points,_=0;_<y.length;_++){var x=y[_].el,S=y[_].ptIdx*2;x.x=b[S],x.y=b[S+1],x.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(bt);const mne=yne;function Kf(r,e){return{seriesType:r,plan:nu(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=me(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),A=s.length,l=n.getCalculationInfo("stackResultDimension");Io(n,s[0])&&(s[0]=l),Io(n,s[1])&&(s[1]=l);var u=n.getStore(),c=n.getDimensionIndex(s[0]),f=n.getDimensionIndex(s[1]);return A&&{progress:function(h,v){for(var d=h.end-h.start,p=o&&Ga(d*A),g=[],y=[],m=h.start,w=0;m<h.end;m++){var B=void 0;if(A===1){var C=u.get(c,m);B=a.dataToPoint(C,null,y)}else g[0]=u.get(c,m),g[1]=u.get(f,m),B=a.dataToPoint(g,null,y);o?(p[w++]=B[0],p[w++]=B[1]):v.setItemLayout(m,B.slice())}o&&v.setLayout("points",p)}}}}}}var wne={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},Bne=function(r){return Math.round(r.length/2)};function iN(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var A=o.getBaseAxis(),l=o.getOtherAxis(A),u=A.getExtent(),c=n.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(c||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(l.dim),1/h));var v=void 0;Ce(i)?v=wne[i]:Me(i)&&(v=i),v&&e.setData(a.downSample(a.mapDimension(l.dim),1/h,v,Bne))}}}}}function Cne(r){r.registerChartView(mne),r.registerSeriesModel(ene),r.registerLayout(Kf("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iN("line"))}var oN=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)F(i.getAxes(),function(f,h){if(f.type==="category"&&n!=null){var v=f.getTicksCoords(),d=f.getTickModel().get("alignWithLabel"),p=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){s[h]=f.toGlobalCoord(f.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,B=0;B<v.length;B++){var C=v[B].coord,b=B===v.length-1?v[B-1].tickValue+w:v[B].tickValue;if(b===p){m=C;break}else if(b<p)y=C;else if(y!=null&&b>p){m=(C+y)/2;break}B===1&&(w=b-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),s[h]=f.toGlobalCoord(m)}});else{var A=this.getData(),l=A.getLayout("offset"),u=A.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=l+u/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Pt);Pt.registerClass(oN);const Cp=oN;var bne=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ki(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ro(Cp.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:le.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Cp);const xne=bne;var _ne=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Sne=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new _ne},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),A=(s-o)*.5,l=o+A,u=n.startAngle,c=n.endAngle,f=n.clockwise,h=Math.PI*2,v=f?c-u<h:u-c<h;v||(u=c-(f?h:-h));var d=Math.cos(u),p=Math.sin(u),g=Math.cos(c),y=Math.sin(c);v?(t.moveTo(d*o+a,p*o+i),t.arc(d*l+a,p*l+i,A,-Math.PI+u,u,!f)):t.moveTo(d*s+a,p*s+i),t.arc(a,i,s,u,c,!f),t.arc(g*l+a,y*l+i,A,c-Math.PI*2,c-Math.PI,!f),o!==0&&t.arc(a,i,o,c,u,f)},e}(Ze);const bp=Sne;function Tne(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Zd(n,a,i);var s=r(o),A=a.distance!=null?a.distance:5,l=this.shape,u=l.cx,c=l.cy,f=l.r,h=l.r0,v=(f+h)/2,d=l.startAngle,p=l.endAngle,g=(d+p)/2,y=t?Math.abs(f-h)/2:0,m=Math.cos,w=Math.sin,B=u+f*m(d),C=c+f*w(d),b="left",_="top";switch(s){case"startArc":B=u+(h-A)*m(g),C=c+(h-A)*w(g),b="center",_="top";break;case"insideStartArc":B=u+(h+A)*m(g),C=c+(h+A)*w(g),b="center",_="bottom";break;case"startAngle":B=u+v*m(d)+lv(d,A+y,!1),C=c+v*w(d)+uv(d,A+y,!1),b="right",_="middle";break;case"insideStartAngle":B=u+v*m(d)+lv(d,-A+y,!1),C=c+v*w(d)+uv(d,-A+y,!1),b="left",_="middle";break;case"middle":B=u+v*m(g),C=c+v*w(g),b="center",_="middle";break;case"endArc":B=u+(f+A)*m(g),C=c+(f+A)*w(g),b="center",_="bottom";break;case"insideEndArc":B=u+(f-A)*m(g),C=c+(f-A)*w(g),b="center",_="top";break;case"endAngle":B=u+v*m(p)+lv(p,A+y,!0),C=c+v*w(p)+uv(p,A+y,!0),b="left",_="middle";break;case"insideEndAngle":B=u+v*m(p)+lv(p,-A+y,!0),C=c+v*w(p)+uv(p,-A+y,!0),b="right",_="middle";break;default:return Zd(n,a,i)}return n=n||{},n.x=B,n.y=C,n.align=b,n.verticalAlign=_,n}}function Ine(r,e,t,n){if(qe(n)){r.setTextConfig({rotation:n});return}else if(ge(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,A,l=t(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":A=s;break;case"startAngle":case"insideStartAngle":A=i;break;case"endAngle":case"insideEndAngle":A=o;break;default:r.setTextConfig({rotation:0});return}var u=Math.PI*1.5-A;l==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),r.setTextConfig({rotation:u})}function lv(r,e,t){return e*Math.sin(r)*(t?-1:1)}function uv(r,e,t){return e*Math.cos(r)*(t?1:-1)}function $a(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;ge(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:me(n,function(i){return da(i,a)})}}var Jm=Math.max,qm=Math.min;function Lne(r,e){var t=r.getArea&&r.getArea();if(Eo(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var Ene=function(r){ce(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),A=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c;l.type==="cartesian2d"?c=u.isHorizontal():l.type==="polar"&&(c=u.dim==="angle");var f=t.isAnimationEnabled()?t:null,h=Mne(t,l);h&&this._enableRealtimeSort(h,s,a);var v=t.get("clip",!0)||h,d=Lne(l,s);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),m=y.get("borderRadius")||0,w=[],B=this._backgroundEls,C=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function _(I){var L=cv[l.type](s,I);if(!L)return null;var T=Rne(l,c,L);return T.useStyle(y.getItemStyle()),l.type==="cartesian2d"?T.setShape("r",m):T.setShape("cornerRadius",m),w[I]=T,T}s.diff(A).add(function(I){var L=s.getItemModel(I),T=cv[l.type](s,I,L);if(T&&(g&&_(I),!(!s.hasValue(I)||!W2[l.type](T)))){var M=!1;v&&(M=G2[l.type](d,T));var R=z2[l.type](t,s,I,T,c,f,u.model,!1,p);h&&(R.forceLabelAnimation=!0),X2(R,s,I,L,T,t,c,l.type==="polar"),C?R.attr({shape:T}):h?$2(h,f,R,T,I,c,!1,!1):Lt(R,{shape:T},t,I),s.setItemGraphicEl(I,R),o.add(R),R.ignore=M}}).update(function(I,L){var T=s.getItemModel(I),M=cv[l.type](s,I,T);if(M){if(g){var R=void 0;B.length===0?R=_(L):(R=B[L],R.useStyle(y.getItemStyle()),l.type==="cartesian2d"?R.setShape("r",m):R.setShape("cornerRadius",m),w[I]=R);var P=cv[l.type](s,I),E=AN(c,P,l);at(R,{shape:E},f,I)}var k=A.getItemGraphicEl(L);if(!s.hasValue(I)||!W2[l.type](M)){o.remove(k);return}var D=!1;v&&(D=G2[l.type](d,M),D&&o.remove(k));var U=k&&(k.type==="sector"&&p||k.type==="sausage"&&!p);if(U&&(k&&Bi(k,t,L),k=null),k?Jn(k):k=z2[l.type](t,s,I,M,c,f,u.model,!0,p),h&&(k.forceLabelAnimation=!0),b){var O=k.getTextContent();if(O){var G=eu(O);G.prevValue!=null&&(G.prevValue=G.value)}}else X2(k,s,I,T,M,t,c,l.type==="polar");C?k.attr({shape:M}):h?$2(h,f,k,M,I,c,!0,b):at(k,{shape:M},t,I,null),s.setItemGraphicEl(I,k),k.ignore=D,o.add(k)}}).remove(function(I){var L=A.getItemGraphicEl(I);L&&Bi(L,t,I)}).execute();var x=this._backgroundGroup||(this._backgroundGroup=new Fe);x.removeAll();for(var S=0;S<w.length;++S)x.add(w[S]);o.add(x),this._backgroundEls=w,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),Z2(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),Z2(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&$f(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(A){var l=n.getItemGraphicEl(A),u=l&&l.shape;return u&&Math.abs(o.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var A=a(s);A=A??NaN,i.push({dataIndex:s,mappedValue:A,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:me(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,A=0,l=i.getOrdinalMeta().categories.length;A<l;++A){var u=t.rawIndexOf(o,i.getRawOrdinalNumber(A)),c=u<0?Number.MIN_VALUE:n(t.indexOfRawIndex(u));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Bi(i,t,Ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(bt),G2={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Jm(e.x,r.x),s=qm(e.x+e.width,a),A=Jm(e.y,r.y),l=qm(e.y+e.height,i),u=s<o,c=l<A;return e.x=u&&o>a?s:o,e.y=c&&A>i?l:A,e.width=u?0:s-o,e.height=c?0:l-A,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),u||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=qm(e.r,r.r),i=Jm(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},z2={cartesian2d:function(r,e,t,n,a,i,o,s,A){var l=new Xe({shape:ve({},n),z2:1});if(l.__dataIndex=t,l.name="item",i){var u=l.shape,c=a?"height":"width";u[c]=0}return l},polar:function(r,e,t,n,a,i,o,s,A){var l=!a&&A?bp:nn,u=new l({shape:n,z2:1});u.name="item";var c=sN(a);if(u.calculateTextPosition=Tne(c,{isRoundCap:l===bp}),i){var f=u.shape,h=a?"r":"endAngle",v={};f[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?at:Lt)(u,{shape:v},i)}return u}};function Mne(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function $2(r,e,t,n,a,i,o,s){var A,l;i?(l={x:n.x,width:n.width},A={y:n.y,height:n.height}):(l={y:n.y,height:n.height},A={x:n.x,width:n.width}),s||(o?at:Lt)(t,{shape:A},e,a,null);var u=e?r.baseAxis.model:null;(o?at:Lt)(t,{shape:l},u,a)}function K2(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var Dne=["x","y","width","height"],Fne=["cx","cy","r","startAngle","endAngle"],W2={cartesian2d:function(r){return!K2(r,Dne)},polar:function(r){return!K2(r,Fne)}},cv={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?Une(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Qne(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function sN(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function X2(r,e,t,n,a,i,o,s){var A=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var u=r.shape,c=$a(n.getModel("itemStyle"),u,!0);ve(u,c),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(A);var f=n.getShallow("cursor");f&&r.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=fr(n);yr(r,v,{labelFetcher:i,labelDataIndex:t,defaultText:Rl(i.getData(),t),inheritColor:A.fill,defaultOpacity:A.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,Ine(r,p==="outside"?h:p,sN(o),n.get(["label","rotate"]))}uO(d,v,i.getRawValue(t),function(y){return j4(e,y)});var g=n.getModel(["emphasis"]);Qt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),cr(r,n),Qne(a)&&(r.style.fill="none",r.style.stroke="none",F(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Une(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var Pne=function(){function r(){}return r}(),Y2=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Pne},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],A=[],l=this.barWidth,u=0;u<a.length;u+=3)A[i]=l,A[o]=a[u+2],s[i]=a[u+i],s[o]=a[u+o],t.rect(s[0],s[1],A[0],A[1])},e}(Ze);function Z2(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),A=r.getModel("backgroundStyle"),l=a.getLayout("largeBackgroundPoints");if(l){var u=new Y2({shape:{points:l},incremental:!!n,silent:!0,z2:0});u.baseDimIdx=i,u.largeDataIndices=o,u.barWidth=s,u.useStyle(A.getItemStyle()),e.add(u),t&&t.push(u)}var c=new Y2({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,Ve(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",j2),c.on("mousemove",j2)),t&&t.push(c)}var j2=_b(function(r){var e=this,t=kne(e,r.offsetX,r.offsetY);Ve(e).dataIndex=t>=0?t:null},30,!1);function kne(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],A=[],l=r.barWidth,u=0,c=i.length/3;u<c;u++){var f=u*3;if(A[n]=l,A[a]=i[f+2],s[n]=i[f+n],s[a]=i[f+a],A[a]<0&&(s[a]+=A[a],A[a]=-A[a]),e>=s[0]&&e<=s[0]+A[0]&&t>=s[1]&&t<=s[1]+A[1])return o[u]}return-1}function AN(r,e,t){if(Eo(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Rne(r,e,t){var n=r.type==="polar"?nn:Xe;return new n({shape:AN(e,t,r),silent:!0,z2:0})}const One=Ene;function Hne(r){r.registerChartView(One),r.registerSeriesModel(xne),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ze(A4,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,l4("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iN("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var J2=Math.PI*2,fv=Math.PI/180;function Nne(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=MO(n,t),s=o.cx,A=o.cy,l=o.r,u=o.r0,c=o.viewRect,f=-n.get("startAngle")*fv,h=n.get("endAngle"),v=n.get("padAngle")*fv;h=h==="auto"?f-J2:-h*fv;var d=n.get("minAngle")*fv,p=d+v,g=0;a.each(i,function(E){!isNaN(E)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),B=n.get("roseType"),C=n.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var _=w?1:-1,x=[f,h],S=_*v/2;Sg(x,!w),f=x[0],h=x[1];var I=lN(n);I.startAngle=f,I.endAngle=h,I.clockwise=w,I.cx=s,I.cy=A,I.r=l,I.r0=u;var L=Math.abs(h-f),T=L,M=0,R=f;if(a.setLayout({viewRect:c,r:l}),a.each(i,function(E,k){var D;if(isNaN(E)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:A,r0:u,r:B?NaN:l});return}B!=="area"?D=y===0&&C?m:E*m:D=L/g,D<p?(D=p,T-=p):M+=E;var U=R+_*D,O=0,G=0;v>D?(O=R+_*D/2,G=O):(O=R+S,G=U-S),a.setItemLayout(k,{angle:D,startAngle:O,endAngle:G,clockwise:w,cx:s,cy:A,r0:u,r:B?ct(E,b,[u,l]):l}),R=U}),T<J2&&g)if(T<=.001){var P=L/g;a.each(i,function(E,k){if(!isNaN(E)){var D=a.getItemLayout(k);D.angle=P;var U=0,O=0;P<v?(U=f+_*(k+1/2)*P,O=U):(U=f+_*k*P+S,O=f+_*(k+1)*P-S),D.startAngle=U,D.endAngle=O}})}else m=T/M,R=f,a.each(i,function(E,k){if(!isNaN(E)){var D=a.getItemLayout(k),U=D.angle===p?p:E*m,O=0,G=0;U<v?(O=R+_*U/2,G=O):(O=R+S,G=R+_*U-S),D.startAngle=O,D.endAngle=G,R+=_*U}})})}var lN=Ye();function su(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Vne=Math.PI/180;function q2(r,e,t,n,a,i,o,s,A,l){if(r.length<2)return;function u(d){for(var p=d.rB,g=p*p,y=0;y<d.list.length;y++){var m=d.list[y],w=Math.abs(m.label.y-t),B=n+m.len,C=B*B,b=Math.sqrt(Math.abs((1-w*w/g)*C)),_=e+(b+m.len2)*a,x=_-m.label.x,S=m.targetTextWidth-x*a;uN(m,S,!0),m.label.x=_}}function c(d){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var m=d[y],w=m.label.y>t?g:p,B=Math.abs(m.label.y-t);if(B>=w.maxY){var C=m.label.x-e-m.len2*a,b=n+m.len,_=Math.abs(C)<b?Math.sqrt(B*B/(1-C*C/b/b)):b;w.rB=_,w.maxY=B}w.list.push(m)}u(p),u(g)}for(var f=r.length,h=0;h<f;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var v=r[h].label.x-l;r[h].linePoints[1][0]+=v,r[h].label.x=l}iB(r,1,A,A+o)&&c(r)}function Gne(r,e,t,n,a,i,o,s){for(var A=[],l=[],u=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<r.length;f++){var h=r[f].label;e0(r[f])||(h.x<e?(u=Math.min(u,h.x),A.push(r[f])):(c=Math.max(c,h.x),l.push(r[f])))}for(var f=0;f<r.length;f++){var v=r[f];if(!e0(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,p=void 0;v.labelAlignTo==="edge"?h.x<e?p=d[2][0]-v.labelDistance-o-v.edgeDistance:p=o+a-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?p=u-o-v.bleedMargin:p=o+a-c-v.bleedMargin:h.x<e?p=h.x-o-v.bleedMargin:p=o+a-h.x-v.bleedMargin,v.targetTextWidth=p,uN(v,p,!1)}}q2(l,e,t,n,1,a,i,o,s,c),q2(A,e,t,n,-1,a,i,o,s,u);for(var f=0;f<r.length;f++){var v=r[f];if(!e0(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,m=y?y[1]+y[3]:0,w=h.style.backgroundColor?0:m,B=v.rect.width+w,C=d[1][0]-d[2][0];g?h.x<e?d[2][0]=o+v.edgeDistance+B+v.labelDistance:d[2][0]=o+a-v.edgeDistance-B-v.labelDistance:(h.x<e?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+C),d[1][1]=d[2][1]=h.y}}}function uN(r,e,t){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,A=s?s[1]+s[3]:0,l=a.overflow,u=i.width+(o?0:A);if(e<u||t){if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-A);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var f=e-A,h=e<u?f:t?f>r.unconstrainedWidth?null:f:null;n.setStyle("width",h)}cN(i,n)}}}function cN(r,e){eL.rect=r,Q4(eL,e,zne)}var zne={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},eL={};function e0(r){return r.position==="center"}function $ne(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*Vne,s=e.getLayout("viewRect"),A=e.getLayout("r"),l=s.width,u=s.x,c=s.y,f=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var b in C.states)if(C.states[b].ignore===!1)return!0;return!1}e.each(function(C){var b=e.getItemGraphicEl(C),_=b.shape,x=b.getTextContent(),S=b.getTextGuideLine(),I=e.getItemModel(C),L=I.getModel("label"),T=L.get("position")||I.get(["emphasis","label","position"]),M=L.get("distanceToLabelLine"),R=L.get("alignTo"),P=Be(L.get("edgeDistance"),l),E=L.get("bleedMargin");E==null&&(E=Math.min(l,f)>200?10:2);var k=I.getModel("labelLine"),D=k.get("length");D=Be(D,l);var U=k.get("length2");if(U=Be(U,l),Math.abs(_.endAngle-_.startAngle)<o){F(x.states,h),x.ignore=!0,S&&(F(S.states,h),S.ignore=!0);return}if(v(x)){var O=(_.startAngle+_.endAngle)/2,G=Math.cos(O),X=Math.sin(O),te,ne,ye,re;n=_.cx,a=_.cy;var W=T==="inside"||T==="inner";if(T==="center")te=_.cx,ne=_.cy,re="center";else{var ee=(W?(_.r+_.r0)/2*G:_.r*G)+n,oe=(W?(_.r+_.r0)/2*X:_.r*X)+a;if(te=ee+G*3,ne=oe+X*3,!W){var H=ee+G*(D+A-_.r),N=oe+X*(D+A-_.r),K=H+(G<0?-1:1)*U,$=N;R==="edge"?te=G<0?u+P:u+l-P:te=K+(G<0?-M:M),ne=$,ye=[[ee,oe],[H,N],[K,$]]}re=W?"center":R==="edge"?G>0?"right":"left":G>0?"left":"right"}var j=Math.PI,ie=0,z=L.get("rotate");if(qe(z))ie=z*(j/180);else if(T==="center")ie=0;else if(z==="radial"||z===!0){var q=G<0?-O+j:-O;ie=q}else if(z==="tangential"&&T!=="outside"&&T!=="outer"){var V=Math.atan2(G,X);V<0&&(V=j*2+V);var Y=X>0;Y&&(V=j+V),ie=V-j}if(i=!!ie,x.x=te,x.y=ne,x.rotation=ie,x.setStyle({verticalAlign:"middle"}),W){x.setStyle({align:re});var J=x.states.select;J&&(J.x+=x.x,J.y+=x.y)}else{var Z=new Ne(0,0,0,0);cN(Z,x),t.push({label:x,labelLine:S,position:T,len:D,len2:U,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new ke(G,X),linePoints:ye,textAlign:re,labelDistance:M,labelAlignTo:R,edgeDistance:P,bleedMargin:E,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:x.style.width})}b.setTextConfig({inside:W})}}),!i&&r.get("avoidLabelOverlap")&&Gne(t,n,a,A,l,f,u,c);for(var d=0;d<t.length;d++){var p=t[d],g=p.label,y=p.labelLine,m=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),m&&(F(g.states,h),g.ignore=!0);var w=g.states.select;w&&(w.x+=g.x,w.y+=g.y)}if(y){var B=p.linePoints;m||!B?(F(y.states,h),y.ignore=!0):(M4(B,p.minTurnAngle),qte(B,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:B}),g.__hostTarget.textGuideLineConfig={anchor:new ke(B[0][0],B[0][1])})}}}var Kne=function(r){ce(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new nt;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,A=t.getItemModel(n),l=A.getModel("emphasis"),u=t.getItemLayout(n),c=ve($a(A.getModel("itemStyle"),u,!0),u);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var f=s.getShallow("animationType");s.ecModel.ssr?(Lt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):f==="scale"?(o.shape.r=u.r0,Lt(o,{shape:{r:u.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Lt(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,n)):(o.shape.endAngle=u.startAngle,at(o,{shape:{endAngle:u.endAngle}},s,n))}else Jn(o),at(o,{shape:c},s,n);o.useStyle(t.getItemVisual(n,"style")),cr(o,A);var h=(u.startAngle+u.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,p=Math.sin(h)*v,g=A.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=ve({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},$a(l.getModel("itemStyle"),u)),ve(o.ensureState("select"),{x:d,y:p,shape:$a(A.getModel(["select","itemStyle"]),u)}),ve(o.ensureState("blur"),{shape:$a(A.getModel(["blur","itemStyle"]),u)});var y=o.getTextGuideLine(),m=o.getTextContent();y&&ve(y.ensureState("select"),{x:d,y:p}),ve(m.ensureState("select"),{x:d,y:p}),Qt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),A=n.getItemVisual(a,"style"),l=A&&A.fill,u=A&&A.opacity;yr(i,fr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:l,defaultOpacity:u,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var f=o.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Wr,this.setTextGuideLine(h)),Rb(this,Ob(o),{stroke:l,opacity:bn(s.get(["lineStyle","opacity"]),u,1)})}},e}(nn),Wne=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,A=this.group,l;if(!s&&o.count()>0){for(var u=o.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c<o.count();++c)u=o.getItemLayout(c);u&&(l=u.startAngle)}if(this._emptyCircleSector&&A.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var f=lN(t),h=new nn({shape:De(f)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,A.add(h)}o.diff(s).add(function(v){var d=new Kne(o,v,l);o.setItemGraphicEl(v,d),A.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,l),p.off("click"),A.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);Bi(d,t,v)}).execute(),$ne(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,A=Math.sqrt(o*o+s*s);return A<=i.r&&A>=i.r0}},e.type="pie",e}(bt);const Xne=Wne;function Au(r,e,t){e=ge(e)&&{coordDimensions:e}||ve({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=Nf(n,e).dimensions,i=new tn(a,r);return i.initData(n,t),i}var Yne=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}();const lu=Yne;var Zne=Ye(),fN=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Au(this,{coordDimensions:["value"],encodeDefaulter:ze(pb,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=Zne(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(A){o.push(A)}),i=a.seats=R9(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Zs(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Pt);Qj({fullType:fN.type,getCoord2:function(r){return r.getShallow("center")}});const jne=fN;function Jne(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(qe(o)&&!isNaN(o)&&o<0)})}}}function qne(r){r.registerChartView(Xne),r.registerSeriesModel(jne),xH("pie",r.registerAction),r.registerLayout(ze(Nne,"pie")),r.registerProcessor(su("pie")),r.registerProcessor(Jne("pie"))}var eae=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:le.color.primary}},universalTransition:{divideShape:"clone"}},e}(Pt);const tae=eae;var hN=4,rae=function(){function r(){}return r}(),nae=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new rae},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,A=t.getContext?t.getContext():t,l=A&&i[0]<hN,u=this.softClipShape,c;if(l){this._ctx=A;return}for(this._ctx=null,c=this._off;c<a.length;){var f=a[c++],h=a[c++];isNaN(f)||isNaN(h)||u&&!u.contain(f,h)||(s.x=f-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var A=n[s++],l=n[s++];isNaN(A)||isNaN(l)||o&&!o.contain(A,l)||i.fillRect(A-a[0]/2,l-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),A=Math.max(o[1],4),l=i.length/2-1;l>=0;l--){var u=l*2,c=i[u]-s/2,f=i[u+1]-A/2;if(t>=c&&n>=f&&t<=c+s&&n<=f+A)return l}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],A=1/0,l=1/0,u=-1/0,c=-1/0,f=0;f<a.length;){var h=a[f++],v=a[f++];A=Math.min(h,A),u=Math.max(h,u),l=Math.min(v,l),c=Math.max(v,c)}t=this._rect=new Ne(A-o/2,l-s/2,u-A+o,c-l+s)}return t},e}(Ze),aae=function(){function r(){this.group=new Fe}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,A=new Float32Array(s+i.length);A.set(o),A.set(i,s),a.endIndex=e.end,a.setShape({points:A})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new nae({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=ar(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<hN;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),A=s&&s.fill;A&&e.setColor(A);var l=Ve(e);l.seriesIndex=a.seriesIndex,e.on("mousemove",function(u){l.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(l.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const iae=aae;var oae=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Kf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new iae:new zf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(bt);const sae=oae;var vN={left:0,right:0,top:0,bottom:0},xp=["25%","25%"],Aae=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=cA(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&ei(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&ei(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:vN,outerBoundsContain:"all",outerBoundsClampWidth:xp[0],outerBoundsClampHeight:xp[1],backgroundColor:le.color.transparent,borderWidth:1,borderColor:le.color.neutral30},e}(et);const lae=Aae;var uB=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},e.type="cartesian2dAxis",e}(et);ir(uB,Vf);var dN={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:le.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:le.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:le.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[le.color.backgroundTint,le.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:le.color.neutral00,borderColor:le.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},uae=Ke({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},dN),$b=Ke({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:le.color.axisMinorSplitLine,width:1}}},dN),cae=Ke({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$b),fae=Re({logBase:10},$b);const pN={category:uae,value:$b,time:cae,log:fae};var hae={value:1,category:1,time:1,log:1},cB=null;function vae(r){cB||(cB=r)}function Wf(){return cB}function Ol(r,e,t,n){F(hae,function(a,i){var o=Ke(Ke({},pN[i],!0),n,!0),s=function(A){ce(l,A);function l(){var u=A!==null&&A.apply(this,arguments)||this;return u.type=e+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,c){var f=af(this),h=f?cA(u):{},v=c.getTheme();Ke(u,v.get(i+"Axis")),Ke(u,this.getDefaultOption()),u.type=tL(u),f&&ei(u,h,f)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=cf.createByAxisModel(this))},l.prototype.getCategories=function(u){var c=this.option;if(c.type==="category")return u?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(u){var c=Wf();return c?c.updateModelAxisBreak(this,u):{breaks:[]}},l.type=e+"Axis."+i,l.defaultOption=o,l}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",tL)}function tL(r){return r.type||(r.data?"category":"value")}var dae=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return me(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ft(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const pae=dae;var fB=["x","y"];function rL(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var gae=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=fB,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!rL(t)||!rL(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),A=a[1]-a[0],l=i[1]-i[0];if(!(!A||!l)){var u=(s[0]-o[0])/A,c=(s[1]-o[1])/l,f=o[0]-a[0]*u,h=o[1]-i[0]*c,v=this._transform=[u,0,0,c,f,h];this._invTransform=va([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new Ne(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Yt(a,t,this._transform);var s=this.getAxis("x"),A=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=A.toGlobalCoord(A.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),A=a.parse(t[0]),l=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),A),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return Yt(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,A=Math.max(a[0],a[1])-o+t;return new Ne(i,o,s,A)},e}(pae),yae=function(r){ce(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ba);const gN=yae;var Kg="expandAxisBreak",yN="collapseAxisBreak",mN="toggleAxisBreak",Kb="axisbreakchanged",mae={type:Kg,event:Kb,update:"update",refineEvent:Wb},wae={type:yN,event:Kb,update:"update",refineEvent:Wb},Bae={type:mN,event:Kb,update:"update",refineEvent:Wb};function Wb(r,e,t,n){var a=[];return F(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function Cae(r){r.registerAction(mae,e),r.registerAction(wae,e),r.registerAction(Bae,e);function e(t,n){var a=[],i=Bl(n,t);function o(s,A){F(i[s],function(l){var u=l.updateAxisBreaks(t);F(u.breaks,function(c){var f;a.push(Re((f={},f[A]=l.componentIndex,f),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var uo=Math.PI,bae=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],xae=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Hl=Ye(),wN=Ye(),BN=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r}();function _ae(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,A=Xb(r.axisName)&&kl(r.nameLocation);F(n,function(v){var d=ti(v);if(!(!d||d.label.ignore)){o.push(d);var p=i.transGroup;A&&(p.transform?va(Mu,p.transform):yg(Mu),d.transform&&Ka(Mu,Mu,d.transform),Ne.copy(hv,d.localRect),hv.applyTransform(Mu),s?s.union(hv):Ne.copy(s=new Ne(0,0,0,0),hv))}});var l=Math.abs(i.dirVec.x)>.1?"x":"y",u=i.transGroup[l];if(o.sort(function(v,d){return Math.abs(v.label[l]-u)-Math.abs(d.label[l]-u)}),A&&s){var c=a.getExtent(),f=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-f;s.union(new Ne(f,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Mu=xr(),hv=new Ne(0,0,0,0),CN=function(r,e,t,n,a,i){if(kl(r.nameLocation)){var o=i.stOccupiedRect;o&&bN(rre({},o,i.transGroup.transform),n,a)}else xN(i.labelInfoList,i.dirVec,n,a)};function bN(r,e,t){var n=new ke;zg(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&nB(e,n)}function xN(r,e,t,n){for(var a=ke.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||bN(s,t,n)}}var Ws=function(){function r(e,t,n,a){this.group=new Fe,this._axisModel=e,this._api=t,this._local={},this._shared=a||new BN(CN),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=Le(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Le(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Le(e.nameDirection,1),tickDirection:Le(e.tickDirection,1),labelDirection:Le(e.labelDirection,1),labelOffset:Le(e.labelOffset,0),silent:Le(e.silent,!0),axisName:a,nameLocation:bn(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Xb(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new Fe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var A=this._shared.ensureRecord(t);A.transGroup=this._transformGroup,A.dirVec=new ke(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),F(Sae,function(a){e[a]&&Tae[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=eR(t-e),i,o;return jc(a)?(o=n>0?"top":"bottom",i="center"):jc(a-uo)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<uo?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),Sae=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Tae={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var A=n.axis.getExtent(),l=i.transform,u=[A[0],0],c=[A[1],0],f=u[0]>c[0];l&&(Yt(u,u,l),Yt(c,c,l));var h=ve({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())Wf().buildAxisBreakLine(n,a,i,v);else{var d=new lr(ve({shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]}},v));Fl(d.shape,d.style.lineWidth),d.anid="line",a.add(d)}var p=n.get(["axisLine","symbol"]);if(p!=null){var g=n.get(["axisLine","symbolSize"]);Ce(p)&&(p=[p,p]),(Ce(g)||qe(g))&&(g=[g,g]);var y=hA(n.get(["axisLine","symbolOffset"])||0,g),m=g[0],w=g[1];F([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((u[0]-c[0])*(u[0]-c[0])+(u[1]-c[1])*(u[1]-c[1]))}],function(B,C){if(p[C]!=="none"&&p[C]!=null){var b=ar(p[C],-m/2,-w/2,m,w,h.stroke,!0),_=B.r+B.offset,x=f?c:u;b.attr({rotation:B.rotate,x:x[0]+_*Math.cos(r.rotation),y:x[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),a.add(b)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var A=aL(e,a,s);A&&nL(r,e,t,n,a,i,o,pa.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var A=aL(e,a,s);A&&nL(r,e,t,n,a,i,o,pa.determine);var l=Mae(r,a,i,n);Eae(r,e.labelLayoutList,l),Dae(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var A=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=A.nameLayout=A.nameLocation=null);var l=r.axisName;if(Xb(l)){var u=r.nameLocation,c=r.nameDirection,f=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,v=n.axis.getExtent(),d=n.axis.inverse?-1:1,p=new ke(0,0),g=new ke(0,0);u==="start"?(p.x=v[0]-d*h,g.x=-d):u==="end"?(p.x=v[1]+d*h,g.x=d):(p.x=(v[0]+v[1])/2,p.y=r.labelOffset+c*h,g.y=c);var y=xr();g.transform(Uo(y,y,r.rotation));var m=n.get("nameRotate");m!=null&&(m=m*uo/180);var w,B;kl(u)?w=Ws.innerTextLayout(r.rotation,m??r.rotation,c):(w=Iae(r.rotation,u,m||0,v),B=r.raw.axisNameAvailableWidth,B!=null&&(B=Math.abs(B/Math.sin(w.rotation)),!isFinite(B)&&(B=null)));var C=f.getFont(),b=n.get("nameTruncate",!0)||{},_=b.ellipsis,x=Fr(r.raw.nameTruncateMaxWidth,b.maxWidth,B),S=s.nameMarginLevel||0,I=new nt({x:p.x,y:p.y,rotation:w.rotation,silent:Ws.isLabelSilent(n),style:Ct(f,{text:l,font:C,overflow:"truncate",width:x,ellipsis:_,fill:f.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:f.get("align")||w.textAlign,verticalAlign:f.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Pi({el:I,componentModel:n,itemName:l}),I.__fullText=l,I.anid="name",n.get("triggerEvent")){var L=Ws.makeAxisEventDataBase(n);L.targetType="axisName",L.name=l,Ve(I).eventData=L}i.add(I),I.updateTransform(),e.nameEl=I;var T=A.nameLayout=ti({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:kl(u)?bae[S]:xae[S]});if(A.nameLocation=u,a.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&T){var M=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,T,g,M)}}}};function nL(r,e,t,n,a,i,o,s){SN(e)||Fae(r,e,a,s,n,o);var A=e.labelLayoutList;Qae(r,n,A,i),kae(n,r.rotation,A);var l=r.optionHideOverlap;Lae(n,A,l),l&&U4(ft(A,function(u){return u&&!u.label.ignore})),_ae(r,t,n,A)}function Iae(r,e,t,n){var a=eR(t-r),i,o,s=n[0]>n[1],A=e==="start"&&!s||e!=="start"&&s;return jc(a-uo/2)?(o=A?"bottom":"top",i="center"):jc(a-uo*1.5)?(o=A?"top":"bottom",i="center"):(o="middle",a<uo*1.5&&a>uo/2?i=A?"left":"right":i=A?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Lae(r,e,t){if(y4(r.axis))return;function n(s,A,l){var u=ti(e[A]),c=ti(e[l]);if(!(!u||!c)){if(s===!1||u.suggestIgnore){wc(u.label);return}if(c.suggestIgnore){wc(c.label);return}var f=.1;if(!t){var h=[0,0,0,0];u=aB({marginForce:h},u),c=aB({marginForce:h},c)}zg(u,c,null,{touchThreshold:f})&&wc(s?c.label:u.label)}}var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function Eae(r,e,t){r.showMinorTicks||F(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=wN(i),s=Hl(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){wc(i);return}}})}function wc(r){r&&(r.ignore=!0)}function _N(r,e,t,n,a){for(var i=[],o=[],s=[],A=0;A<r.length;A++){var l=r[A].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=t,e&&(Yt(o,o,e),Yt(s,s,e));var u=new lr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Fl(u.shape,u.style.lineWidth),u.anid=a+"_"+r[A].tickValue,i.push(u);var c=wN(u);c.onBand=!!r[A].onBand,c.tickValue=r[A].tickValue}return i}function Mae(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),A=r.tickDirection*i.get("length"),l=a.getTicksCoords(),u=_N(l,t.transform,A,Re(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}function Dae(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var A=o.getModel("lineStyle"),l=a*o.get("length"),u=Re(A.getLineStyle(),Re(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var f=_N(s[c],t.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function aL(r,e,t){if(SN(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),hB(r,null,null,null))}return!0}function Fae(r,e,t,n,a,i){var o=a.axis,s=Fr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),A=new Fe;t.add(A);var l=pp(n);if(!s||o.scale.isBlank()){hB(e,[],A,l);return}var u=a.getModel("axisLabel"),c=o.getViewLabels(l),f=(Fr(r.raw.labelRotate,u.get("rotate"))||0)*uo/180,h=Ws.innerTextLayout(r.rotation,f,r.labelDirection),v=a.getCategories&&a.getCategories(!0),d=[],p=a.get("triggerEvent"),g=1/0,y=-1/0;F(c,function(w,B){var C,b=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(w.tickValue):w.tickValue,_=w.formattedLabel,x=w.rawLabel,S=u;if(v&&v[b]){var I=v[b];Oe(I)&&I.textStyle&&(S=new ot(I.textStyle,u,a.ecModel))}var L=S.getTextColor()||a.get(["axisLine","lineStyle","color"]),T=S.getShallow("align",!0)||h.textAlign,M=Le(S.getShallow("alignMinLabel",!0),T),R=Le(S.getShallow("alignMaxLabel",!0),T),P=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||h.textVerticalAlign,E=Le(S.getShallow("verticalAlignMinLabel",!0),P),k=Le(S.getShallow("verticalAlignMaxLabel",!0),P),D=10+(((C=w.time)===null||C===void 0?void 0:C.level)||0);g=Math.min(g,D),y=Math.max(y,D);var U=new nt({x:0,y:0,rotation:0,silent:Ws.isLabelSilent(a),z2:D,style:Ct(S,{text:_,align:B===0?M:B===c.length-1?R:T,verticalAlign:B===0?E:B===c.length-1?k:P,fill:Me(L)?L(o.type==="category"?x:o.type==="value"?b+"":b,B):L})});U.anid="label_"+b;var O=Hl(U);if(O.break=w.break,O.tickValue=b,O.layoutRotation=h.rotation,Pi({el:U,componentModel:a,itemName:_,formatterParamsExtra:{isTruncated:function(){return U.isTruncated},value:x,tickIndex:B}}),p){var G=Ws.makeAxisEventDataBase(a);G.targetType="axisLabel",G.value=x,G.tickIndex=B,w.break&&(G.break={start:w.break.parsedBreak.vmin,end:w.break.parsedBreak.vmax}),o.type==="category"&&(G.dataIndex=b),Ve(U).eventData=G,w.break&&Pae(a,i,U,w.break)}d.push(U),A.add(U)});var m=me(d,function(w){return{label:w,priority:Hl(w).break?w.z2+(y-g+1):w.z2,defaultAttr:{ignore:w.ignore}}});hB(e,m,A,l)}function SN(r){return!!r.labelLayoutList}function hB(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function Qae(r,e,t,n){var a=e.get(["axisLabel","margin"]);F(t,function(i,o){var s=ti(i);if(s){var A=s.label,l=Hl(A);s.suggestIgnore=A.ignore,A.ignore=!1,Yd(fi,Uae),fi.x=e.axis.dataToCoord(l.tickValue),fi.y=r.labelOffset+r.labelDirection*a,fi.rotation=l.layoutRotation,n.add(fi),fi.updateTransform(),n.remove(fi),fi.decomposeTransform(),Yd(A,fi),A.markRedraw(),wp(s,!0),ti(s)}})}var fi=new Xe,Uae=new Xe;function Xb(r){return!!r}function Pae(r,e,t,n){t.on("click",function(a){var i={type:Kg,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function kae(r,e,t){var n=tr();if(n){var a=n.retrieveAxisBreakPairs(t,function(o){return o&&Hl(o.label).break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&F(a,function(o){Wf().adjustBreakLabelPair(r.axis.inverse,e,[ti(t[o[0]]),ti(t[o[1]])])})}}const Di=Ws;function _p(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,A=n.dim,l=[r.x,r.x+r.width,r.y,r.y+r.height],u={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,f=A==="x"?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));f[u.onZero]=Math.max(Math.min(h,f[1]),f[0])}a.position=[A==="y"?f[u[s]]:l[0],A==="x"?f[u[s]]:l[3]],a.rotation=Math.PI/2*(A==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[o],a.labelOffset=i?f[u[o]]-f[u.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Fr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-d:d,a.z2=1,a}function Rae(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function iL(r){var e={xAxisModel:null,yAxisModel:null};return F(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,zt).models[0];e[n]=i}),e}function Oae(r,e,t,n,a,i){for(var o=_p(r,t),s=!1,A=!1,l=0;l<e.length;l++)J1(e[l].getOtherAxis(t.axis).scale)&&(s=A=!0,t.axis.type==="category"&&t.axis.onBand&&(A=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=A,o.defaultNameMoveOverlap=i,new Di(t,n,o,a)}function Hae(r,e,t){var n=_p(e,t);r.updateCfg(n)}function TN(r,e,t){var n=Lo.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,{expandToNicedExtent:!0}),o=a.length-1,s=n.getInterval.call(t),A=g4(r,e),l=A.extent,u=A.fixMin,c=A.fixMax;r.type==="log"&&(l=q1(r.base,l,!0)),r.setBreaksFromOption(m4(e)),r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:c});var f=n.getExtent.call(r);u&&(l[0]=f[0]),c&&(l[1]=f[1]);var h=n.getInterval.call(r),v=l[0],d=l[1];if(u&&c)h=(d-v)/o;else if(u)for(d=l[0]+h*o;d<l[1]&&isFinite(d)&&isFinite(l[1]);)h=Om(h),d=l[0]+h*o;else if(c)for(v=l[1]-h*o;v>l[0]&&isFinite(v)&&isFinite(l[0]);)h=Om(h),v=l[1]-h*o;else{var p=r.getTicks().length-1;p>o&&(h=Om(h));var g=h*o;d=Math.ceil(l[1]/h)*h,v=er(d-g),v<0&&l[0]>=0?(v=0,d=er(g)):d>0&&l[1]<=0&&(d=0,v=-er(g))}var y=(a[0].value-i[0].value)/s,m=(a[o].value-i[o].value)/s;n.setExtent.call(r,v+h*y,d+h*m),n.setInterval.call(r,h),(y||m)&&n.setNiceExtent.call(r,v+h,d-h)}var oL=[[3,1],[0,2]],Nae=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fB,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,A=je(o),l=A.length;if(l){for(var u=[],c=l-1;c>=0;c--){var f=+A[c],h=o[f],v=h.model,d=h.scale;J1(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Pl(d,v),J1(d)&&(s=h))}u.length&&(s||(s=u.pop(),Pl(s.scale,s.model)),F(u,function(p){TN(p.scale,p.model,s.scale)}))}}a(n.x),a(n.y);var i={};F(n.x,function(o){sL(n,"y",o,i)}),F(n.y,function(o){sL(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=hr(e,t),i=this._rect=Ut(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,A=e.get("containLabel");if(vB(o,i),!n){var l=zae(i,s,o,A,t),u=void 0;if(A)dB?(dB(this._axesList,i),vB(o,i)):u=uL(i.clone(),"axisLabel",null,i,o,l,a);else{var c=$ae(e,i,a),f=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;f&&(u=uL(f,h,v,i,o,l,a))}IN(i,o,pa.determine,null,u,a)}F(this._coordsList,function(d){d.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}Oe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",zt).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",zt).models[0],i=e.gridModel,o=this._coordsList,s,A;if(t)s=t.coordinateSystem,$e(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)A=this.getAxis("x",n.componentIndex);else if(a)A=this.getAxis("y",a.componentIndex);else if(i){var l=i.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:A}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},A={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!A.x||!A.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,F(s.x,function(u,c){F(s.y,function(f,h){var v="x"+c+"y"+h,d=new gae(v);d.master=a,d.model=e,a._coordsMap[v]=d,a._coordsList.push(d),d.addAxis(u),d.addAxis(f)})});function l(u){return function(c,f){if(t0(c,e)){var h=c.get("position");u==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new gN(u,Gg(c),[0,0],c.get("type"),h),d=v.type==="category";v.onBand=d&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=i,v.index=f,i._axesList.push(v),s[u][f]=v,A[u]++}}}},r.prototype._updateScale=function(e,t){F(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(Rae(a)){var i=iL(a),o=i.xAxisModel,s=i.yAxisModel;if(!t0(o,t)||!t0(s,t))return;var A=this.getCartesian(o.componentIndex,s.componentIndex),l=a.getData(),u=A.getAxis("x"),c=A.getAxis("y");n(l,u),n(l,c)}},this);function n(a,i){F(dp(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return F(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);$e(t,i)<0&&t.push(i),$e(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){Of({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=iL(a),s=o.xAxisModel,A=o.yAxisModel,l=s.getCoordSysModel(),u=l.coordinateSystem;return u.getCartesian(s.componentIndex,A.componentIndex)}}),n},r.dimensions=fB,r}();function t0(r,e){return r.getCoordSysModel()===e}function sL(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),A=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(A!=null)AL(a[A])&&(i=a[A]);else for(var l in a)if(a.hasOwnProperty(l)&&AL(a[l])&&!n[u(a[l])]){i=a[l];break}i&&(n[u(i)]=!0);function u(c){return c.dim+"_"+c.index}}function AL(r){return r&&r.type!=="category"&&r.type!=="time"&&_te(r)}function Vae(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function vB(r,e){F(r.x,function(t){return lL(t,e.x,e.width)}),F(r.y,function(t){return lL(t,e.y,e.height)})}function lL(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),Vae(r,e)}var dB;function Gae(r){dB=r}function uL(r,e,t,n,a,i,o){IN(n,a,pa.estimate,e,!1,o);var s=[0,0,0,0];l(0),l(1),u(n,0,NaN),u(n,1,NaN);var A=iA(s,function(f){return f>0})==null;return eA(n,s,!0,!0,t),vB(a,n),A;function l(f){F(a[Ge[f]],function(h){if(hf(h.model)){var v=i.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var p=0;p<d.length;p++){var g=d[p],y=h.scale.normalize(Hl(g.label).tickValue);y=f===1?1-y:y,u(g.rect,f,y),u(g.rect,1-f,NaN)}var m=v.nameLayout;if(m){var y=kl(v.nameLocation)?.5:NaN;u(m.rect,f,y),u(m.rect,1-f,NaN)}}})}function u(f,h,v){var d=r[Ge[h]]-f[Ge[h]],p=f[rr[h]]+f[Ge[h]]-(r[rr[h]]+r[Ge[h]]);d=c(d,1-v),p=c(p,v);var g=oL[h][0],y=oL[h][1];s[g]=Wt(s[g],d),s[y]=Wt(s[y],p)}function c(f,h){return f>0&&!zr(h)&&h>1e-4&&(f/=h),f}}function zae(r,e,t,n,a){var i=new BN(Kae);return F(t,function(o){return F(o,function(s){if(hf(s.model)){var A=!n;s.axisBuilder=Oae(r,e,s.model,a,i,A)}})}),i}function IN(r,e,t,n,a,i){var o=t===pa.determine;F(e,function(l){return F(l,function(u){hf(u.model)&&(Hae(u.axisBuilder,r,u.model),u.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};A(0),A(1);function A(l){s[Ge[1-l]]=r[rr[l]]<=i.refContainer[rr[l]]*.5?0:1-l===1?2:1}F(e,function(l,u){return F(l,function(c){hf(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[u]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function $ae(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=Ut(r.get("outerBounds",!0)||vN,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||$e(["all","axisLabel"],i)<0?o="all":o=i;var s=[jd(Le(r.get("outerBoundsClampWidth",!0),xp[0]),e.width),jd(Le(r.get("outerBoundsClampHeight",!0),xp[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Kae=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";CN(r,e,t,n,a,i),kl(r.nameLocation)||F(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&xN(s.labelInfoList,s.dirVec,n,a)})};const Wae=Nae;function Xae(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Yae(t,r,e),t.seriesInvolved&&jae(t,r),t}function Yae(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];F(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var A=pf(s.model),l=r.coordSysAxesInfo[A]={};r.coordSysMap[A]=s;var u=s.model,c=u.getModel("tooltip",n);if(F(s.getAxes(),ze(d,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var f=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(f||h)&&F(v.baseAxes,ze(d,h?"cross":!0,f)),h&&F(v.otherAxes,ze(d,"cross",!1))}function d(p,g,y){var m=y.model.getModel("axisPointer",a),w=m.get("show");if(!(!w||w==="auto"&&!p&&!pB(m))){g==null&&(g=m.get("triggerTooltip")),m=p?Zae(y,c,a,e,p,g):m;var B=m.get("snap"),C=m.get("triggerEmphasis"),b=pf(y.model),_=g||B||y.type==="category",x=r.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:m,triggerTooltip:g,triggerEmphasis:C,involveSeries:_,snap:B,useHandle:pB(m),seriesModels:[],linkGroup:null};l[b]=x,r.seriesInvolved=r.seriesInvolved||_;var S=Jae(i,y);if(S!=null){var I=o[S]||(o[S]={axesInfo:{}});I.axesInfo[b]=x,I.mapper=i[S].mapper,x.linkGroup=I}}}})}function Zae(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],A={};F(s,function(f){A[f]=De(o.get(f))}),A.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(A.type="line");var l=A.label||(A.label={});if(l.show==null&&(l.show=!1),a==="cross"){var u=o.get(["label","show"]);if(l.show=u??!0,!i){var c=A.lineStyle=o.get("crossStyle");c&&Re(l,c.textStyle)}}return r.model.getModel("axisPointer",new ot(A,t,n))}function jae(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||F(r.coordSysAxesInfo[pf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Jae(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(r0(i[n+"AxisId"],t.id)||r0(i[n+"AxisIndex"],t.componentIndex)||r0(i[n+"AxisName"],t.name))return a}}function r0(r,e){return r==="all"||ge(r)&&$e(r,e)>=0||r===e}function qae(r){var e=Yb(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=pB(t);i==null&&(a.status=s?"show":"hide");var A=n.getExtent().slice();A[0]>A[1]&&A.reverse(),(o==null||o>A[1])&&(o=A[1]),o<A[0]&&(o=A[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Yb(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[pf(r)]}function eie(r){var e=Yb(r);return e&&e.axisPointerModel}function pB(r){return!!r.get(["handle","show"])}function pf(r){return r.type+"||"+r.id}var cL={},tie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&qae(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=eie(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){cL[t]=n},e.getAxisPointerClass=function(t){return t&&cL[t]},e.type="axis",e}(Nt);const pA=tie;var gB=Ye();function LN(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),A=n.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var u=s.length,c=gB(r).splitAreaColors,f=Ie(),h=0;if(c)for(var v=0;v<l.length;v++){var d=c.get(l[v].tickValue);if(d!=null){h=(d+(u-1)*v)%u;break}}var p=a.toGlobalCoord(l[0].coord),g=o.getAreaStyle();s=ge(s)?s:[s];for(var v=1;v<l.length;v++){var y=a.toGlobalCoord(l[v].coord),m=void 0,w=void 0,B=void 0,C=void 0;a.isHorizontal()?(m=p,w=A.y,B=y-m,C=A.height,p=m+B):(m=A.x,w=p,B=A.width,C=y-w,p=w+C);var b=l[v-1].tickValue;b!=null&&f.set(b,h),e.add(new Xe({anid:b!=null?"area_"+b:null,shape:{x:m,y:w,width:B,height:C},style:Re({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%u}gB(r).splitAreaColors=f}}}function EN(r){gB(r).splitAreaColors=null}var rie=["splitArea","splitLine","minorSplitLine","breakArea"],MN=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Fe,this.group.add(this._axisGroup),!!hf(t)){this._axisGroup.add(t.axis.axisBuilder.group),F(rie,function(A){t.get([A,"show"])&&nie[A](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Uf(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){EN(this)},e.type="cartesianAxis",e}(pA),nie={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),A=s.get("color"),l=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;A=ge(A)?A:[A];for(var c=n.coordinateSystem.getRect(),f=i.isHorizontal(),h=0,v=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],p=[],g=s.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var w=v[y].tickValue;f?(d[0]=m,d[1]=c.y,p[0]=m,p[1]=c.y+c.height):(d[0]=c.x,d[1]=m,p[0]=c.x+c.width,p[1]=m);var B=h++%A.length,C=new lr({anid:w!=null?"line_"+w:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Re({stroke:A[B]},g),silent:!0});Fl(C.shape,g.lineWidth),e.add(C)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),A=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=s.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=i.toGlobalCoord(u[v][d].coord);l?(c[0]=p,c[1]=A.y,f[0]=p,f[1]=A.y+A.height):(c[0]=A.x,c[1]=p,f[0]=A.x+A.width,f[1]=p);var g=new lr({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Fl(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,n,a){LN(r,e,t,n)},breakArea:function(r,e,t,n,a){var i=Wf(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,n.coordinateSystem.getRect(),a)}},DN=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(MN),aie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=DN.type,t}return e.type="yAxis",e}(MN),iie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Xe({shape:t.coordinateSystem.getRect(),style:Re({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Nt),fL={offset:0};function FN(r){r.registerComponentView(iie),r.registerComponentModel(lae),r.registerCoordinateSystem("cartesian2d",Wae),Ol(r,"x",uB,fL),Ol(r,"y",uB,fL),r.registerComponentView(DN),r.registerComponentView(aie),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function oie(r,e){var t=r.coordinateSystem,n=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n==="cartesian2d"&&i==="ordinal"||n==="single",s=e.model.get("jitter")>0;return o&&s}var sie=Ye();function hL(r,e,t,n){if(r instanceof gN){var a=r.scale.type;if(a!=="category"&&a!=="ordinal")return t}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),A=i.get("jitterMargin")||0,l=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?QN(t,o,l,n):Aie(r,e,t,n,o,A):t}function QN(r,e,t,n){if(t===null)return r+(Math.random()-.5)*e;var a=t-n*2,i=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*i}function Aie(r,e,t,n,a,i){var o=sie(r);o.items||(o.items=[]);var s=o.items,A=vL(s,e,t,n,a,i,1),l=vL(s,e,t,n,a,i,-1),u=Math.abs(A-t)<Math.abs(l-t)?A:l,c=r.scale.type==="ordinal"?r.getBandWidth():null,f=Math.abs(u-t);return f>a/2||c&&f>c/2-n?QN(t,a,c,n):(s.push({fixedCoord:e,floatCoord:u,r:n}),u)}function vL(r,e,t,n,a,i,o){for(var s=t,A=0;A<r.length;A++){var l=r[A],u=e-l.fixedCoord,c=s-l.floatCoord,f=u*u+c*c,h=n+l.r+i;if(f<h*h){var v=l.floatCoord+Math.sqrt(h*h-u*u)*o;if(Math.abs(v-t)>a/2)return Number.MAX_VALUE;if(o===1&&v>s||o===-1&&v<s){s=v,A=-1;continue}}}return s}function lie(r){r.eachSeriesByType("scatter",function(e){var t=e.coordinateSystem;if(t&&(t.type==="cartesian2d"||t.type==="single")){var n=t.getBaseAxis?t.getBaseAxis():null,a=n&&oie(e,n);if(a){var i=e.getData();i.each(function(o){var s=n.dim,A=n.orient,l=A==="horizontal"&&n.type!=="category"||A==="vertical"&&n.type==="category",u=i.getItemLayout(o),c=i.getItemVisual(o,"symbolSize"),f=c instanceof Array?(c[1]+c[0])/2:c;if(s==="y"||s==="single"&&l){var h=hL(n,u[0],u[1],f/2);i.setItemLayout(o,[u[0],h])}else if(s==="x"||s==="single"&&!l){var h=hL(n,u[1],u[0],f/2);i.setItemLayout(o,[h,u[1]])}})}}})}function uie(r){We(FN),r.registerSeriesModel(tae),r.registerChartView(sae),r.registerLayout(Kf("scatter"))}function cie(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,lie)}function fie(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();F(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(A,l){n[l]=n[l]||[];var u=a.dataToPoint(A,s);n[l][s]=dL(u)?u:pL(a)})}),t.each(function(o){var s=iA(n[o],function(A){return dL(A)})||pL(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function dL(r){return!isNaN(r[0])&&!isNaN(r[1])}function pL(r){return[r.cx,r.cy]}function hie(r){var e=r.polar;if(e){ge(e)||(e=[e]);var t=[];F(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],ge(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}F(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var vie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),A=this._data;function l(f,h){var v=f.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var d=iu(f.getItemVisual(h,"symbolSize")),p=ar(v,-1,-1,2,2),g=f.getItemVisual(h,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:g*Math.PI/180||0}),p}}function u(f,h,v,d,p,g){v.removeAll();for(var y=0;y<h.length-1;y++){var m=l(d,p);m&&(m.__dimIdx=y,f[y]?(m.setPosition(f[y]),lA[g?"initProps":"updateProps"](m,{x:h[y][0],y:h[y][1]},t,p)):m.setPosition(h[y]),v.add(m))}}function c(f){return me(f,function(h){return[i.cx,i.cy]})}s.diff(A).add(function(f){var h=s.getItemLayout(f);if(h){var v=new an,d=new Wr,p={shape:{points:h}};v.shape.points=c(h),d.shape.points=c(h),Lt(v,p,t,f),Lt(d,p,t,f);var g=new Fe,y=new Fe;g.add(d),g.add(v),g.add(y),u(d.shape.points,h,y,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,h){var v=A.getItemGraphicEl(h),d=v.childAt(0),p=v.childAt(1),g=v.childAt(2),y={shape:{points:s.getItemLayout(f)}};y.shape.points&&(u(d.shape.points,y.shape.points,g,s,f,!1),Jn(p),Jn(d),at(d,y,t),at(p,y,t),s.setItemGraphicEl(f,v))}).remove(function(f){o.remove(A.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var v=s.getItemModel(h),d=f.childAt(0),p=f.childAt(1),g=f.childAt(2),y=s.getItemVisual(h,"style"),m=y.fill;o.add(f),d.useStyle(Re(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:m})),cr(d,v,"lineStyle"),cr(p,v,"areaStyle");var w=v.getModel("areaStyle"),B=w.isEmpty()&&w.parentModel.isEmpty();p.ignore=B,F(["emphasis","select","blur"],function(b){var _=v.getModel([b,"areaStyle"]),x=_.isEmpty()&&_.parentModel.isEmpty();p.ensureState(b).ignore=x&&B;var S=v.getModel([b,"lineStyle"]).getLineStyle();d.ensureState(b).style=S;var I=_.getAreaStyle();p.ensureState(b).style=I;var L=v.getModel([b,"itemStyle"]).getItemStyle();g.eachChild(function(T){T.ensureState(b).style=De(L)})}),p.useStyle(Re(v.getModel("areaStyle").getAreaStyle(),{fill:m,opacity:.7,decal:y.decal}));var C=v.getModel("emphasis");g.eachChild(function(b){if(b instanceof Ur){var _=b.style;b.useStyle(ve({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},y))}else b.useStyle(y),b.setColor(m),b.style.strokeNoScale=!0;var x=s.getStore().get(s.getDimensionIndex(b.__dimIdx),h);(x==null||isNaN(x))&&(x=""),yr(b,fr(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:b.__dimIdx,defaultText:x,inheritColor:m,defaultOpacity:y.opacity})}),Qt(f,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(bt);const die=vie;var pie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Au(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),A=this.getData().getName(t),l=A===""?this.name:A,u=fH(this,t);return nr("section",{header:l,sortBlocks:!0,blocks:me(s,function(c){var f=i.get(i.mapDimension(c.dim),t);return nr("nameValue",{markerType:"subItem",markerColor:u,name:c.name,value:f,sortParam:f})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(me(a.dimensions,function(l){return n.mapDimension(l)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var A=a.getIndicatorAxes();return a.coordToPoint(A[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Pt);const gie=pie;var Du=pN.value;function vv(r,e){return Re({show:e},r)}var yie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),A=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),f=this.get("triggerEvent"),h=me(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=A;v.color!=null&&(d=Re({color:v.color},A));var p=Ke(De(v),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:f},!1);if(Ce(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else Me(u)&&(p.name=u(p.name,p));var y=new ot(p,null,this.ecModel);return ir(y,Vf.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:le.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ke({lineStyle:{color:le.color.neutral20}},Du.axisLine),axisLabel:vv(Du.axisLabel,!1),axisTick:vv(Du.axisTick,!1),splitLine:vv(Du.splitLine,!0),splitArea:vv(Du.splitArea,!0),indicator:[]},e}(et);const mie=yie;var wie=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=me(i,function(s){var A=s.model.get("showName")?s.name:"",l=new Di(s.model,n,{axisName:A,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});F(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),A=o.getModel("lineStyle"),l=s.getModel("areaStyle"),u=o.get("show"),c=s.get("show"),f=A.get("color"),h=l.get("color"),v=ge(f)?f:[f],d=ge(h)?h:[h],p=[],g=[];function y(R,P,E){var k=E%P.length;return R[k]=R[k]||[],k}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,B=n.cy,C=0;C<m.length;C++){if(u){var b=y(p,v,C);p[b].push(new Po({shape:{cx:w,cy:B,r:m[C].coord}}))}if(c&&C<m.length-1){var b=y(g,d,C);g[b].push(new Eg({shape:{cx:w,cy:B,r0:m[C].coord,r:m[C+1].coord}}))}}else for(var _,x=me(a,function(R,P){var E=R.getTicksCoords();return _=_==null?E.length-1:Math.min(E.length-1,_),me(E,function(k){return n.coordToPoint(k.coord,P)})}),S=[],C=0;C<=_;C++){for(var I=[],L=0;L<a.length;L++)I.push(x[L][C]);if(I[0]&&I.push(I[0].slice()),u){var b=y(p,v,C);p[b].push(new Wr({shape:{points:I}}))}if(c&&S){var b=y(g,d,C-1);g[b].push(new an({shape:{points:I.concat(S)}}))}S=I.slice().reverse()}var T=A.getLineStyle(),M=l.getAreaStyle();F(g,function(R,P){this.group.add(zn(R,{style:Re({stroke:"none",fill:d[P%d.length]},M),silent:!0}))},this),F(p,function(R,P){this.group.add(zn(R,{style:Re({fill:"none",stroke:v[P%v.length]},T),silent:!0}))},this)},e.type="radar",e}(Nt);const Bie=wie;var Cie=function(r){ce(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(Ba);const bie=Cie;var xie=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=me(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new bie(o,new Lo);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,A=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(i-u.angle);c<o&&(s=u,A=l,o=c)}return[A,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=hr(e,t).refContainer,a=e.get("center"),i=Math.min(n.width,n.height)/2;this.cx=Be(a[0],n.width)+n.x,this.cy=Be(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(Ce(o)||qe(o))&&(o=[0,o]),this.r0=Be(o[0],i),this.r=Be(o[1],i),F(this._indicatorAxes,function(s,A){s.setExtent(this.r0,this.r);var l=this.startAngle+A*Math.PI*2/this._indicatorAxes.length;l=Math.atan2(Math.sin(l),Math.cos(l)),s.angle=l},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;F(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,A){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var l=s.getData();F(n,function(u){u.scale.unionExtentFromData(l,l.mapDimension(u.dim))})}},this);var i=a.get("splitNumber"),o=new Lo;o.setExtent(0,i),o.setInterval(1),F(n,function(s,A){TN(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();const _ie=xie;function Sie(r){r.registerCoordinateSystem("radar",_ie),r.registerComponentModel(mie),r.registerComponentView(Bie),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function Tie(r){We(Sie),r.registerChartView(die),r.registerSeriesModel(gie),r.registerLayout(fie),r.registerProcessor(su("radar")),r.registerPreprocessor(hie)}var Zb=Ye();function Iie(r,e,t){Zb(r)[e]=t}function Lie(r,e,t){var n=Zb(r),a=n[e];a===t&&(n[e]=null)}function gL(r,e){return!!Zb(r)[e]}ai({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Xt);var Eie={axisPointer:1,tooltip:1,brush:1};function UN(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||Eie.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=tA(n),o=tA(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Mie=function(r){ce(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=be(n._mousedownHandler,n),i=be(n._mousemoveHandler,n),o=be(n._mouseupHandler,n),s=be(n._mousewheelHandler,n),A=be(n._pinchHandler,n);return n.enable=function(l,u){var c=u.zInfo,f=tA(c.component),h=f.z,v=f.zlevel,d={component:c.component,z:h,zlevel:v,z2:Le(c.z2,-1/0)},p=ve({},u.triggerInfo);this._opt=Re(ve({},u),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:p}),l==null&&(l=!0),(!this._enabled||this._controlType!==l)&&(this._enabled=!0,this.disable(),(l===!0||l==="move"||l==="pan")&&(Qu(t,"mousedown",a,d),Qu(t,"mousemove",i,d),Qu(t,"mouseup",o,d)),(l===!0||l==="scale"||l==="zoom")&&(Qu(t,"mousewheel",s,d),Qu(t,"pinch",A,d)))},n.disable=function(){this._enabled=!1,Uu(t,"mousedown",a),Uu(t,"mousemove",i),Uu(t,"mouseup",o),Uu(t,"mousewheel",s),Uu(t,"pinch",A)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(UN(t,i.api,o.component))return!1;var s=i.triggerInfo,A=s.roamTrigger,l=!1;return A==="global"&&(l=!0),l||(l=s.isInSelf(t,n,a)),l&&s.isInClip&&!s.isInClip(t,n,a)&&(l=!1),l},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(FS(t)||Fu(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||gL(n,"globalPan")||Fu(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!wd("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,A=this._y,l=a-s,u=i-A;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Ti(t.event),t.__ecRoamConsumed=!0,yL(this,"pan","moveOnMouseMove",t,{dx:l,dy:u,oldX:s,oldY:A,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Fu(t)){var n=this._zr;if(!FS(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Fu(t)){var n=wd("zoomOnMouseWheel",t,this._opt),a=wd("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,A=t.offsetY;if(!(i===0||!n&&!a)){if(n){var l=o>3?1.4:o>1?1.2:1.1,u=i>0?l:1/l;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:u,originX:s,originY:A,isAvailableBehavior:null})}if(a){var c=Math.abs(i),f=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:A,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(gL(this._zr,"globalPan")||Fu(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(Ti(i.event),i.__ecRoamConsumed=!0,yL(t,n,a,i,o))},e}(qn);function Fu(r){return r.__ecRoamConsumed}var Die=Ye();function Wg(r){var e=Die(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Qu(r,e,t,n){for(var a=Wg(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var A=o[s].zInfoParsed;if((A.zlevel-n.zlevel||A.z-n.z||A.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),Fie(r,e)}function Uu(r,e,t){for(var n=Wg(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||Qie(r,e);return}}function Fie(r,e){var t=Wg(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function Qie(r,e){var t=Wg(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function yL(r,e,t,n,a){a.isAvailableBehavior=be(wd,null,t,n),r.trigger(e,a)}function wd(r,e,t){var n=t[r];return!r||n&&(!Ce(n)||e.event[n+"Key"])}const gA=Mie;function jb(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function Jb(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=qb(o,i);var s=o/r.zoom;r.zoom=o,kN(a,t,n,s),a.dirty()}function PN(r,e,t,n,a,i){var o=new Ne(0,0,0,0);n.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(l,u,c){return o.copy(t.getBoundingRect()),o.applyTransform(t.getComputedTransform()),o.contain(u,c)},isInClip:function(l,u,c){return!i||i.contain(u,c)}}}),a.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;a.zoom=s?s.getZoom():1;var A=r.subType+"Roam";n.off("pan").off("zoom").on("pan",function(l){jb(a,l.dx,l.dy),e.dispatchAction({seriesId:r.id,type:A,dx:l.dx,dy:l.dy})}).on("zoom",function(l){Jb(a,l.scale,l.originX,l.originY),e.dispatchAction({seriesId:r.id,type:A,zoom:l.scale,originX:l.originX,originY:l.originY}),e.updateLabelLayout()})}function mL(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Xg(r,e,t){var n=r.getZoom(),a=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(mL(r,o))),i!=null&&(i=qb(n*i,t)/n,kN(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(mL(r,o)),r.setZoom(i*n)),{center:r.getCenter(),zoom:r.getZoom()}}function kN(r,e,t,n){r.x-=(e-r.x)*(n-1),r.y-=(t-r.y)*(n-1),r.scaleX*=n,r.scaleY*=n}function qb(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}function RN(r){if(Ce(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var n0,Sp={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"},wL=je(Sp),Tp={"alignment-baseline":"textBaseline","stop-color":"stopColor"},BL=je(Tp),Uie=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=RN(e);this._defsUsePending=[];var a=new Fe;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),A=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(A)&&(A=null),dn(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;Rie(this._defs,this._defsUsePending),this._defsUsePending=[];var u,c;if(o){var f=Yg(o);f.length>=4&&(u={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(u&&s!=null&&A!=null&&(c=HN(u,{x:0,y:0,width:s,height:A}),!t.ignoreViewBox)){var h=a;a=new Fe,a.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!t.ignoreRootClip&&s!=null&&A!=null&&a.setClipPath(new Xe({shape:{x:0,y:0,width:s,height:A}})),{root:a,width:s,height:A,viewBoxRect:u,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),A,l=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")A=t;else{if(!i){var u=n0[s];if(u&&Se(n0,s)){A=u.call(this,e,t);var c=e.getAttribute("name");if(c){var f={name:c,namedFrom:null,svgNodeTagLower:s,el:A};n.push(f),s==="g"&&(l=f)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:A});t.add(A)}}var h=CL[s];if(h&&Se(CL,s)){var v=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=v)}}if(A&&A.isGroup)for(var p=e.firstChild;p;)p.nodeType===1?this._parseNode(p,A,n,l,i,o):p.nodeType===3&&o&&this._parseText(p,A),p=p.nextSibling},r.prototype._parseText=function(e,t){var n=new qc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),Pie(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){n0={g:function(e,t){var n=new Fe;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Xe;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Po;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new lr;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new qC;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=_L(n));var i=new an({shape:{points:a||[]},silent:!0});return Fn(t,i),dn(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=_L(n));var i=new Wr({shape:{points:a||[]},silent:!0});return Fn(t,i),dn(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Ur;return Fn(t,n),dn(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Fe;return Fn(t,s),dn(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Fe;return Fn(t,s),dn(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=HR(n);return Fn(t,a),dn(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),CL={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new AA(e,t,n,a);return bL(r,i),xL(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new qR(e,t,n);return bL(r,a),xL(r,a),a}};function bL(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function xL(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};ON(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var A=hn(o),l=A&&A[3];l&&(A[3]*=yo(s),o=Wa(A,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Fn(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Re(e.__inheritedStyle,r.__inheritedStyle))}function _L(r){for(var e=Yg(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function dn(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(Nie(r,e),ON(r,o,s),n||Vie(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=SL(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=SL(i,"stroke",o.stroke,t)),F(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(A){o[A]!=null&&(i.style[A]=parseFloat(o[A]))}),F(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(A){o[A]!=null&&(i.style[A]=o[A])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=me(Yg(o.lineDash),function(A){return parseFloat(A)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Pie(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var kie=/^url\(\s*#(.*?)\)/;function SL(r,e,t,n){var a=t&&t.match(kie);if(a){var i=Xn(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function Rie(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var Oie=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Yg(r){return r.match(Oie)||[]}var Hie=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,a0=Math.PI/180;function Nie(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(Hie,function(c,f,h){return n.push(f,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],A=Yg(o);switch(a=a||xr(),s){case"translate":ja(a,a,[parseFloat(A[0]),parseFloat(A[1]||"0")]);break;case"scale":QC(a,a,[parseFloat(A[0]),parseFloat(A[1]||A[0])]);break;case"rotate":Uo(a,a,-parseFloat(A[0])*a0,[parseFloat(A[1]||"0"),parseFloat(A[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(A[0])*a0);Ka(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(A[0])*a0);Ka(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(A[0]),a[1]=parseFloat(A[1]),a[2]=parseFloat(A[2]),a[3]=parseFloat(A[3]),a[4]=parseFloat(A[4]),a[5]=parseFloat(A[5]);break}}e.setLocalTransform(a)}}var TL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ON(r,e,t){var n=r.getAttribute("style");if(n){TL.lastIndex=0;for(var a;(a=TL.exec(n))!=null;){var i=a[1],o=Se(Sp,i)?Sp[i]:null;o&&(e[o]=a[2]);var s=Se(Tp,i)?Tp[i]:null;s&&(t[s]=a[2])}}}function Vie(r,e,t){for(var n=0;n<wL.length;n++){var a=wL[n],i=r.getAttribute(a);i!=null&&(e[Sp[a]]=i)}for(var n=0;n<BL.length;n++){var a=BL[n],i=r.getAttribute(a);i!=null&&(t[Tp[a]]=i)}}function HN(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function Gie(r,e){var t=new Uie;return t.parse(r,e)}var zie=Ie(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$ie=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Ie(),this._freedGraphics=[],this._mapName=e,this._parsedXML=RN(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Wie(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&Gie(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Kr(n!=null)}catch(p){throw new Error(`Invalid svg format
`+p.message)}var a=new Fe;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,A=this._boundingRect;if(!A){var l=void 0,u=void 0,c=void 0,f=void 0;if(i!=null?(l=0,c=i):s&&(l=s.x,c=s.width),o!=null?(u=0,f=o):s&&(u=s.y,f=s.height),l==null||u==null){var h=n.getBoundingRect();l==null&&(l=h.x,c=h.width),u==null&&(u=h.y,f=h.height)}A=this._boundingRect=new Ne(l,u,c,f)}if(s){var v=HN(s,A);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}a.setClipPath(new Xe({shape:A.plain()}));var d=[];return F(t.named,function(p){zie.get(p.svgNodeTagLower)!=null&&(d.push(p),Kie(p.el))}),{root:a,boundingRect:A,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function Kie(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Wie(r){var e=[],t=Ie();return F(r,function(n){if(n.namedFrom==null){var a=new Mte(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}var yB=[126,25],IL="南海诸岛",ps=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var hs=0;hs<ps.length;hs++)for(var zA=0;zA<ps[hs].length;zA++)ps[hs][zA][0]/=10.5,ps[hs][zA][1]/=-10.5/.75,ps[hs][zA][0]+=yB[0],ps[hs][zA][1]+=yB[1];function Xie(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===IL)return;e.push(new B4(IL,me(ps,function(n){return{type:"polygon",exterior:n}}),yB))}}var Yie={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Zie(r,e){if(r==="china"){var t=Yie[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var jie=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Jie(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:jie[0]})}var qie="name",eoe=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=Ie(),this._mapName=e,this._specialAreas=n,this._geoJSON=roe(t)}return r.prototype.load=function(e,t){t=t||qie;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:toe(a)})}var i=Ie(),o=[];return F(n.regions,function(s){var A=s.name;e&&Se(e,A)&&(s=s.cloneShallow(A=e[A])),o.push(s),i.set(A,s)}),{regions:o,boundingRect:n.boundingRect||new Ne(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?Fte(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return Xie(t,a),F(a,function(i){var o=i.name;Zie(t,i),Jie(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function toe(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function roe(r){return Ce(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Pu=Ie();const Fi={registerMap:function(r,e,t){if(e.svg){var n=new $ie(r,e.svg);Pu.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new eoe(r,a,t);Pu.set(r,n)}},getGeoResource:function(r){return Pu.get(r)},getMapForUser:function(r){var e=Pu.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=Pu.get(r);if(n)return n.load(e,t)}};var ex=["rect","circle","line","ellipse","polygon","polyline","path"],noe=Ie(ex),aoe=Ie(ex.concat(["g"])),ioe=Ie(ex.concat(["g"])),NN=Ye();function dv(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function LL(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var ooe=function(){function r(e){var t=this.group=new Fe,n=this._transformGroup=new Fe;t.add(n),this.uid=tu("ec_map_draw"),this._controller=new gA(e.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new Fe),n.add(this._svgGroup=new Fe)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===e&&(s=m.getData())});var A=e.coordinateSystem,l=this._regionsGroup,u=this._transformGroup,c=A.getTransformInfo(),f=c.raw,h=c.roam,v=!l.childAt(0)||i,d=e.getShallow("clip",!0),p;d?(p=A.getViewRect().clone(),this.group.setClipPath(new Xe({shape:p.clone()}))):this.group.removeClipPath(),v?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):at(u,h,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:n,geo:A,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};A.resourceType==="geoJSON"?this._buildGeoJSON(y):A.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,p,t,n),this._updateMapSelectHandler(e,l,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Ie(),n=Ie(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,A=e.geo.projection,l=A&&A.stream;function u(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var v=[],d=!l&&A&&A.project,p=0;p<h.length;++p){var g=u(h[p],d);g&&v.push(g)}return v}function f(h){return{shape:{points:c(h)}}}a.removeAll(),F(e.geo.regions,function(h){var v=h.name,d=t.get(v),p=n.get(v)||{},g=p.dataIdx,y=p.regionModel;if(!d){d=t.set(v,new Fe),a.add(d),g=s?s.indexOfName(v):null,y=e.isGeo?o.getRegionModel(v):s?s.getItemModel(g):null;var m=y.get("silent",!0);m!=null&&(d.silent=m),n.set(v,{dataIdx:g,regionModel:y})}var w=[],B=[];F(h.geometries,function(_){if(_.type==="polygon"){var x=[_.exterior].concat(_.interiors||[]);l&&(x=UL(x,l)),F(x,function(I){w.push(new an(f(I)))})}else{var S=_.points;l&&(S=UL(S,l,!0)),F(S,function(I){B.push(new Wr(f(I)))})}});var C=u(h.getCenter(),A&&A.project);function b(_,x){if(_.length){var S=new Dg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:_}});d.add(S),EL(e,S,g,y),ML(e,S,v,y,o,g,C),x&&(LL(S),F(S.states,LL))}}b(w),b(B,!0)}),t.each(function(h,v){var d=n.get(v),p=d.dataIdx,g=d.regionModel;DL(e,h,v,g,o,p),FL(e,h,v,g,o),QL(e,h,v,g,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=Ie(),i=!1;F(this._svgGraphicRecord.named,function(o){var s=o.name,A=e.mapOrGeoModel,l=e.data,u=o.svgNodeTagLower,c=o.el,f=l?l.indexOfName(s):null,h=A.getRegionModel(s);noe.get(u)!=null&&c instanceof jn&&EL(e,c,f,h),c instanceof jn&&(c.culling=!0);var v=h.get("silent",!0);if(v!=null&&(c.silent=v),c.z2EmphasisLift=0,!o.namedFrom&&(ioe.get(u)!=null&&ML(e,c,s,h,A,f,null),DL(e,c,s,h,A,f),FL(e,c,s,h,A),aoe.get(u)!=null)){var d=QL(e,c,s,h,A);d==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.push(c)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){qs(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Fi.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Fi.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n,a){var i=e.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=e.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(e.get("roam")||!1,{api:a,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(u,c,f){return i.containPoint([c,f])},isInClip:function(u,c,f){return!t||t.contain(c,f)}}});var A=e.mainType;function l(){var u={type:"geoRoam",componentType:A};return u[A+"Id"]=e.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,jb(s,u.dx,u.dy),a.dispatchAction(ve(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Jb(s,u.scale,u.originX,u.originY),a.dispatchAction(ve(l(),{totalZoom:s.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this)},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=NN(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function EL(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),A=dv(a),l=dv(i),u=dv(s),c=dv(o),f=r.data;if(f){var h=f.getItemVisual(t,"style"),v=f.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(A.fill=h.fill),v&&(A.decal=Ul(v,r.api))}e.setStyle(A),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=l,e.ensureState("select").style=u,e.ensureState("blur").style=c,qs(e)}function ML(r,e,t,n,a,i,o){var s=r.data,A=r.isGeo,l=s&&isNaN(s.get(s.mapDimension("value"),i)),u=s&&s.getItemLayout(i);if(A||l||u&&u.showLabel){var c=A?t:i,f=void 0;(!s||i>=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;yr(e,fr(n),{labelFetcher:f,labelDataIndex:c,defaultText:t},h);var v=e.getTextContent();if(v&&(NN(v).ignore=v.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function DL(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):Ve(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function FL(r,e,t,n,a){r.data||Pi({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function QL(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Qt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&gZ(e,a,t),o}function UL(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(A,l){isFinite(A)&&isFinite(l)&&a.push([A,l])},sphere:function(){}});return!t&&s.polygonStart(),F(r,function(A){s.lineStart();for(var l=0;l<A.length;l++)s.point(A[l][0],A[l][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}const VN=ooe;var soe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new VN(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,A){if(!isNaN(s)){var l=i.getItemLayout(A);if(!(!l||!l.point)){var u=l.point,c=l.offset,f=new Po({style:{fill:t.getData().getVisual("style").fill},shape:{cx:u[0]+c*9,cy:u[1],r:3},silent:!0,z2:8+(c?0:Jl+1)});if(!c){var h=t.mainSeries.getData(),v=i.getName(A),d=h.indexOfName(v),p=i.getItemModel(A),g=p.getModel("label"),y=h.getItemGraphicEl(d);yr(f,fr(p),{labelFetcher:{getFormattedLabel:function(m,w){return t.getFormattedLabel(d,w)}},defaultText:v}),f.disableLabelAnimation=!0,g.get("position")||f.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(m){tp(f,m)}}o.add(f)}}})},e.type="map",e}(bt);const Aoe=soe;var loe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Au(this,{coordDimensions:["value"],encodeDefaulter:ze(pb,this)}),a=Ie(),i=[],o=0,s=n.count();o<s;o++){var A=n.getName(o);a.set(A,o)}var l=Fi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return F(l.regions,function(u){var c=u.name,f=a.get(c),h=u.properties&&u.properties.echartsStyle,v;f==null?(v={name:c},i.push(v)):v=n.getRawDataItem(f),h&&Ke(v,h)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){if(TO(this).kind!==Ra.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),A=this.seriesGroup,l=[],u=0;u<A.length;u++){var c=A[u].originalData.indexOfName(s),f=i.mapDimension("value");isNaN(A[u].originalData.get(f,c))||l.push(A[u].name)}return nr("section",{header:l.join(", "),noHeader:!l.length,blocks:[nr("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=ar(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=le.color.neutral00,a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:le.color.tertiary},itemStyle:{borderWidth:.5,borderColor:le.color.border,areaColor:le.color.background},emphasis:{label:{show:!0,color:le.color.primary},itemStyle:{areaColor:le.color.highlight}},select:{label:{show:!0,color:le.color.primary},itemStyle:{color:le.color.highlight}},nameProperty:"name"},e}(Pt);const uoe=loe;function coe(r,e){var t={};return F(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,A=-1/0,l=t[i].length,u=0;u<l;u++)s=Math.min(s,t[i][u]),A=Math.max(A,t[i][u]),o+=t[i][u];var c;return e==="min"?c=s:e==="max"?c=A:e==="average"?c=o/l:c=o,l===0?NaN:c})}function foe(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),F(e,function(t,n){for(var a=coe(me(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function hoe(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};F(t.seriesGroup,function(o){var s=o.coordinateSystem,A=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&A.each(A.mapDimension("value"),function(l,u){var c=A.getName(u),f=s.getRegion(c);if(!(!f||isNaN(l))){var h=a[c]||0,v=s.dataToPoint(f.getCenter());a[c]=h+1,A.setItemLayout(u,{point:v,offset:h})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),A=i.getItemLayout(o)||{};A.showLabel=!a[s],i.setItemLayout(o,A)}),e[n]=!0}})}var PL=Yt,voe=function(r){ce(e,r);function e(t,n){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new gi,a._rawTransformable=new gi,a.name=t,a._opt=n,a}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new Ne(t,n,a,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new Ne(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ne(t,n,a,i));var A=s.parent;s.parent=null,s.decomposeTransform(),s.parent=A,this._updateTransform()},e.prototype.setCenter=function(t){var n=this._opt;n&&n.api&&n.ecModel&&n.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[Be(t[0],n.api.getWidth()),Be(t[1],n.api.getWidth())]),this._centerOption=De(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=qb(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,n=this._rect;t&&n&&(this._center=[Be(t[0],n.width,n.x),Be(t[1],n.height,n.y)]);var a=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),A=this.getZoom();s=Yt([],s,a),o=Yt([],o,a),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=A,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),mg(this.transform||(this.transform=[]),n.transform||xr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],va(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new gi;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?PL(a,t,i):Jr(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.invTransform;return i?PL(a,t,i):(a[0]=t[0],a[1]=t[1],a)},e.prototype.convertToPixel=function(t,n,a){var i=kL(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=kL(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(gi);function kL(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const yA=voe;var doe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},GN=["lng","lat"],zN=function(r){ce(e,r);function e(t,n,a){var i=r.call(this,t,{api:a.api,ecModel:a.ecModel})||this;i.dimensions=GN,i.type="geo",i._nameCoordMap=Ie(),i.map=n;var o=a.projection,s=Fi.load(n,a.nameMap,a.nameProperty),A=Fi.getGeoResource(n);i.resourceType=A?A.type:null;var l=i.regions=s.regions,u=doe[A.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var f=0;f<l.length;f++){var h=l[f].getBoundingRect(o);c=c||h.clone(),c.union(h)}else c=s.boundingRect;return i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:Le(a.aspectScale,u.aspectScale),i._invertLongitute=o?!1:u.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var A=this._rawTransformable;A.transform=o.calculateTransform(new Ne(t,n,a,i));var l=A.parent;A.parent=null,A.decomposeTransform(),A.parent=l,s&&(A.scaleY=-A.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(Ce(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t,n,a){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t,a)},e.prototype.pointToProjected=function(t,n){return r.prototype.pointToData.call(this,t,0,n)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=RL(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=RL(n);return i===this?i.pointToData(a):null},e}(yA);ir(zN,yA);function RL(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",zt).models[0]||{}).coordinateSystem:null}const OL=zN;function HL(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],A=a[0],l=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var u=function(B,C,b,_){for(var x=b-B,S=_-C,I=0;I<=100;I++){var L=I/100,T=i.project([B+x*L,C+S*L]);io(n,n,T),oo(a,a,T)}};u(o,s,A,s),u(A,s,A,l),u(A,l,o,l),u(o,l,A,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),f=r.get("layoutCenter"),h=r.get("layoutSize"),v=hr(r,e).refContainer,d=c.width/c.height*this.aspectScale,p=!1,g,y;f&&h&&(g=[Be(f[0],v.width)+v.x,Be(f[1],v.height)+v.y],y=Be(h,Math.min(v.width,v.height)),!isNaN(g[0])&&!isNaN(g[1])&&!isNaN(y)&&(p=!0));var m;if(p)m={},d>1?(m.width=y,m.height=y/d):(m.height=y,m.width=y*d),m.y=g[1]-m.height/2,m.x=g[0]-m.width/2;else{var w=r.getBoxLayoutParams();w.aspect=d,m=Ut(w,v),m=DO(r,m,d)}this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function poe(r,e){F(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var goe=function(){function r(){this.dimensions=GN}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var A=o.get("map"),l=new OL(A+s,A,ve({nameMap:o.get("nameMap"),api:t,ecModel:e},a(o)));l.zoomLimit=o.get("scaleLimit"),n.push(l),o.coordinateSystem=l,l.model=o,l.resize=HL,l.resize(o,t)}),e.eachSeries(function(o){Of({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",zt).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),F(i,function(o,s){var A=me(o,function(u){return u.get("nameMap")}),l=new OL(s,s,ve({nameMap:EC(A),api:t,ecModel:e},a(o[0])));l.zoomLimit=Fr.apply(null,me(o,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=HL,l.resize(o[0],t),F(o,function(u){u.coordinateSystem=l,poe(l,u)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=Ie(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var A=Fi.load(t,n,a);return F(A.regions,function(l){var u=l.name,c=o.get(u),f=l.properties&&l.properties.echartsStyle;c||(c={name:u},i.push(c)),f&&Ke(c,f)}),i},r}(),yoe=new goe;const $N=yoe;var moe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a);var i=Fi.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||le.color.backgroundTint)}Zs(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=$N.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Za(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new ot(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},Ie()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ot(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(Me(i))return o.status=n,i(o);if(Ce(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:le.color.tertiary},itemStyle:{borderWidth:.5,borderColor:le.color.border},emphasis:{label:{show:!0,color:le.color.primary},itemStyle:{color:le.color.highlight}},select:{label:{show:!0,color:le.color.primary},itemStyle:{color:le.color.highlight}},regions:[]},e}(et);const woe=moe;var Boe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new VN(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;Qs(t.target,function(a){return(n=Ve(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Ve(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Nt);const Coe=Boe;function boe(r,e,t){Fi.registerMap(r,e,t)}function KN(r){r.registerCoordinateSystem("geo",$N),r.registerComponentModel(woe),r.registerComponentView(Coe),r.registerImpl("registerMap",boe),r.registerImpl("getMap",function(t){return Fi.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(A){A[t](a.name);var l=A.coordinateSystem;F(l.regions,function(c){o[c.name]=A.isSelected(c.name)||!1});var u=[];F(o,function(c,f){o[f]&&u.push(f)}),s.push({geoIndex:A.componentIndex,name:u})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType;i||(t.geoId!=null?i="geo":t.seriesId!=null&&(i="series")),i||(i="series"),n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var A=Xg(s,t,o.get("scaleLimit"));o.setCenter&&o.setCenter(A.center),o.setZoom&&o.setZoom(A.zoom),i==="series"&&F(o.seriesGroup,function(l){l.setCenter(A.center),l.setZoom(A.zoom)})}})})}function xoe(r){We(KN),r.registerChartView(Aoe),r.registerSeriesModel(uoe),r.registerLayout(hoe),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,foe),xH("map",r.registerAction)}function _oe(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function Soe(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){Ioe(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Loe(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function Toe(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function NL(r){return arguments.length?r:Doe}function Bc(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Ioe(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function Loe(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,A=a.hierNode.modifier,l=i.hierNode.modifier,u=o.hierNode.modifier,c=s.hierNode.modifier;s=i0(s),i=o0(i),s&&i;){a=i0(a),o=o0(o),a.hierNode.ancestor=r;var f=s.hierNode.prelim+c-i.hierNode.prelim-l+n(s,i);f>0&&(Moe(Eoe(s,r,t),r,f),l+=f,A+=f),c+=s.hierNode.modifier,l+=i.hierNode.modifier,A+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!i0(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-A),i&&!o0(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=l-u,t=r)}return t}function i0(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function o0(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function Eoe(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function Moe(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function Doe(r,e){return r.parentNode===e.parentNode?1:2}var Foe=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),Qoe=function(r){ce(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Foe},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],A=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,c=1-u,f=Be(n.forkPosition,1),h=[];h[u]=o[u],h[c]=o[c]+(A[c]-o[c])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[u]=s[u],t.lineTo(h[0],h[1]),h[u]=A[u],t.lineTo(h[0],h[1]),t.lineTo(A[0],A[1]);for(var v=1;v<i-1;v++){var d=a[v];t.moveTo(d[0],d[1]),h[u]=d[u],t.lineTo(h[0],h[1])}},e}(Ze),Uoe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Fe,t}return e.prototype.init=function(t,n){this._controller=new gA(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,A=t.get("layout");A==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,null,n,a);var l=this._data;i.diff(l).add(function(u){VL(i,u)&&GL(i,u,null,s,t)}).update(function(u,c){var f=l.getItemGraphicEl(c);if(!VL(i,u)){f&&$L(l,c,f,s,t);return}GL(i,u,f,s,t)}).remove(function(u){var c=l.getItemGraphicEl(u);c&&$L(l,u,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(u,c){u.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(c){var f=a.getItemLayout(c);f&&!isNaN(f.x)&&!isNaN(f.y)&&i.push([+f.x,+f.y])});var o=[],s=[];_g(i,o,s);var A=this._min,l=this._max;s[0]-o[0]===0&&(o[0]=A?A[0]:o[0]-1,s[0]=l?l[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=A?A[1]:o[1]-1,s[1]=l?l[1]:s[1]+1);var u=t.coordinateSystem=new yA(null,{api:n,ecModel:t.ecModel});u.zoomLimit=t.get("scaleLimit"),u.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),u.setCenter(t.get("center")),u.setZoom(t.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a,i){var o=this;PN(t,i,this.group,this._controller,this._controllerHost,n),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(t)})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(bt);function VL(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function GL(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),A=o.getVisual("style").fill,l=o.isExpand===!1&&o.children.length!==0?A:le.color.neutral00,u=r.tree.root,c=o.parentNode===u?o:o.parentNode||o,f=r.getItemGraphicEl(c.dataIndex),h=c.getLayout(),v=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:h,d=o.getLayout();i?(t=new Gf(r,e,null,{symbolInnerColor:l,useNameLabel:!0}),t.x=v.x,t.y=v.y):t.updateData(r,e,null,{symbolInnerColor:l,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,at(t,{x:d.x,y:d.y},a);var p=t.getSymbolPath();if(a.get("layout")==="radial"){var g=u.children[0],y=g.getLayout(),m=g.children.length,w=void 0,B=void 0;if(d.x===y.x&&o.isExpand===!0&&g.children.length){var C={x:(g.children[0].getLayout().x+g.children[m-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[m-1].getLayout().y)/2};w=Math.atan2(C.y-y.y,C.x-y.x),w<0&&(w=Math.PI*2+w),B=C.x<y.x,B&&(w=w-Math.PI)}else w=Math.atan2(d.y-y.y,d.x-y.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(B=d.x<y.x,B&&(w=w-Math.PI)):(B=d.x>y.x,B||(w=w-Math.PI));var b=B?"left":"right",_=s.getModel("label"),x=_.get("rotate"),S=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:_.get("position")||b,rotation:x==null?-w:S,origin:"center"}),I.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),T=L==="relative"?Wc(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;T&&(Ve(t).focus=T),Poe(a,o,u,t,v,h,d,n),t.__edge&&(t.onHoverStateChange=function(M){if(M!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Qf||tp(t.__edge,M)}})}function Poe(r,e,t,n,a,i,o,s){var A=e.getModel(),l=r.get("edgeShape"),u=r.get("layout"),c=r.getOrient(),f=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=A.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=n.__edge=new Mg({shape:mB(u,c,f,a,a)})),at(d,{shape:mB(u,c,f,i,o)},r));else if(l==="polyline"&&u==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var p=e.children,g=[],y=0;y<p.length;y++){var m=p[y].getLayout();g.push([m.x,m.y])}d||(d=n.__edge=new Qoe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:h}})),at(d,{shape:{parentPoint:[o.x,o.y],childPoints:g}},r)}d&&!(l==="polyline"&&!e.isExpand)&&(d.useStyle(Re({strokeNoScale:!0,fill:null},v)),cr(d,A,"lineStyle"),qs(d),s.add(d))}function zL(r,e,t,n,a){var i=e.tree.root,o=WN(i,r),s=o.source,A=o.sourceLayout,l=e.getItemGraphicEl(r.dataIndex);if(l){var u=e.getItemGraphicEl(s.dataIndex),c=u.__edge,f=l.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),h=n.get("edgeShape"),v=n.get("layout"),d=n.get("orient"),p=n.get(["lineStyle","curveness"]);f&&(h==="curve"?To(f,{shape:mB(v,d,p,A,A),style:{opacity:0}},n,{cb:function(){t.remove(f)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&To(f,{shape:{parentPoint:[A.x,A.y],childPoints:[[A.x,A.y]]},style:{opacity:0}},n,{cb:function(){t.remove(f)},removeOpt:a}))}}function WN(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function $L(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=WN(o,i).sourceLayout,A={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};To(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:A}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:A}),i.children.forEach(function(l){zL(l,r,n,a,A)}),zL(i,r,n,a,A)}function mB(r,e,t,n,a){var i,o,s,A,l,u,c,f;if(r==="radial"){l=n.rawX,c=n.rawY,u=a.rawX,f=a.rawY;var h=Bc(l,c),v=Bc(l,c+(f-c)*t),d=Bc(u,f+(c-f)*t),p=Bc(u,f);return{x1:h.x||0,y1:h.y||0,x2:p.x||0,y2:p.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:d.x||0,cpy2:d.y||0}}else l=n.x,c=n.y,u=a.x,f=a.y,(e==="LR"||e==="RL")&&(i=l+(u-l)*t,o=c,s=u+(l-u)*t,A=f),(e==="TB"||e==="BT")&&(i=l,o=c+(f-c)*t,s=u,A=f+(c-f)*t);return{x1:l,y1:c,x2:u,y2:f,cpx1:i,cpy1:o,cpx2:s,cpy2:A}}const koe=Uoe;var Zn=Ye();function XN(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,YN(e,t,r),F(t,function(n){F(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,ze(Roe,r))})}),e.wrapMethod("cloneShallow",ze(Hoe,r)),F(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,ze(Ooe,r))}),Kr(t[e.dataType]===e)}function Roe(r,e){if(Goe(this)){var t=ve({},Zn(this).datas);t[this.dataType]=e,YN(e,t,r)}else tx(e,this.dataType,Zn(this).mainData,r);return e}function Ooe(r,e){return r.struct&&r.struct.update(),e}function Hoe(r,e){return F(Zn(e).datas,function(t,n){t!==e&&tx(t.cloneShallow(),n,e,r)}),e}function Noe(r){var e=Zn(this).mainData;return r==null||e==null?e:Zn(e).datas[r]}function Voe(){var r=Zn(this).mainData;return r==null?[{data:r}]:me(je(Zn(r).datas),function(e){return{type:e,data:Zn(r).datas[e]}})}function Goe(r){return Zn(r).mainData===r}function YN(r,e,t){Zn(r).datas={},F(e,function(n,a){tx(n,a,r,t)})}function tx(r,e,t,n){Zn(t).datas[e]=r,Zn(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=Noe,r.getLinkedDataAll=Voe}var zoe=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){Me(e)&&(n=t,t=e,e=null),e=e||{},Ce(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),$oe=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(u,c){var f=u.value;o=Math.max(o,ge(f)?f.length:1),i.push(u);var h=new zoe(Ar(u.name,""),a);c?Koe(h,c):a.root=h,a._nodes.push(h);var v=u.children;if(v)for(var d=0;d<v.length;d++)s(v[d],h)}a.root.updateDepthAndHeight(0);var A=Nf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,l=new tn(A,t);return l.initData(i),n&&n(l),XN({mainData:l,struct:a,structAttr:"tree"}),a.update(),a},r}();function Koe(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}const rx=$oe;function gf(r,e,t){if(r&&$e(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(Ce(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function ZN(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function nx(r,e){var t=ZN(r);return $e(t,e)>=0}function Zg(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var Woe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new ot(a,this,this.ecModel),o=rx.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(f,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(f.parentModel=i),f})}var A=0;o.eachNode("preorder",function(c){c.depth>A&&(A=c.depth)});var l=t.expandAndCollapse,u=l&&t.initialTreeDepth>=0?t.initialTreeDepth:A;return o.root.eachNode("preorder",function(c){var f=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=f&&f.collapsed!=null?!f.collapsed:c.depth<=u}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),A=s.getValue(),l=s.name;s&&s!==o;)l=s.parentNode.name+"."+l,s=s.parentNode;return nr("nameValue",{name:l,value:A,noValue:isNaN(A)||A==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Zg(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:le.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Pt);const Xoe=Woe;function Yoe(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function ku(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function Zoe(r,e){r.eachSeriesByType("tree",function(t){joe(t,e)})}function joe(r,e){var t=hr(r,e).refContainer,n=Ut(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=NL(function(w,B){return(w.parentNode===B.parentNode?1:2)/w.depth})):(i=n.width,o=n.height,s=NL());var A=r.getData().tree.root,l=A.children[0];if(l){_oe(A),Yoe(l,Soe,s),A.hierNode.modifier=-l.hierNode.prelim,ku(l,Toe);var u=l,c=l,f=l;ku(l,function(w){var B=w.getLayout().x;B<u.getLayout().x&&(u=w),B>c.getLayout().x&&(c=w),w.depth>f.depth&&(f=w)});var h=u===c?1:s(u,c)/2,v=h-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=i/(c.getLayout().x+h+v),p=o/(f.depth-1||1),ku(l,function(w){g=(w.getLayout().x+v)*d,y=(w.depth-1)*p;var B=Bc(g,y);w.setLayout({x:B.x,y:B.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=o/(c.getLayout().x+h+v),d=i/(f.depth-1||1),ku(l,function(w){y=(w.getLayout().x+v)*p,g=m==="LR"?(w.depth-1)*d:i-(w.depth-1)*d,w.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=i/(c.getLayout().x+h+v),p=o/(f.depth-1||1),ku(l,function(w){g=(w.getLayout().x+v)*d,y=m==="TB"?(w.depth-1)*p:o-(w.depth-1)*p,w.setLayout({x:g,y},!0)}))}}}function Joe(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");ve(s,o)})})}function qoe(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=Xg(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}function ese(r){r.registerChartView(koe),r.registerSeriesModel(Xoe),r.registerLayout(Zoe),r.registerVisual(Joe),qoe(r)}var KL=["treemapZoomToNode","treemapRender","treemapMove"];function tse(r){for(var e=0;e<KL.length;e++)r.registerAction({type:KL[e],update:"updateView"},Xt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],A=gf(t,s,i);if(A){var l=i.getViewRoot();l&&(t.direction=nx(l,A.node)?"rollUp":"drillDown"),i.resetViewRoot(A.node)}}})}function jN(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=R1(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var rse=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};JN(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new ot({itemStyle:o},this,n);i=t.levels=nse(i,n);var A=me(i||[],function(c){return new ot(c,s,n)},this),l=rx.createTree(a,this,u);function u(c){c.wrapMethod("getItemModel",function(f,h){var v=l.getNodeByDataIndex(h),d=v?A[v.depth]:null;return f.parentModel=d||s,f})}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return nr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Zg(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},ve(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=Ie(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jN(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:le.size.l,top:le.size.xxxl,right:le.size.l,bottom:le.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:le.size.m,emptyItemWidth:25,itemStyle:{color:le.color.backgroundShade,textStyle:{color:le.color.secondary}},emphasis:{itemStyle:{color:le.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:le.color.neutral00,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:le.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Pt);function JN(r){var e=0;F(r.children,function(n){JN(n);var a=n.value;ge(a)&&(a=a[0]),e+=a});var t=r.value;ge(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ge(r.value)?r.value[0]=t:r.value=t}function nse(r,e){var t=gt(e.get("color")),n=gt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;F(r,function(s){var A=new ot(s),l=A.get("color"),u=A.get("decal");(A.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(A.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}const ase=rse;var ise=8,WL=8,s0=5,ose=function(){function r(e){this.group=new Fe,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),A=i.getModel("emphasis"),l=s.getModel("textStyle"),u=A.getModel(["itemStyle","textStyle"]),c=hr(e,t).refContainer,f={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},v=Ut(f,c);this._prepare(n,h,l),this._renderContent(e,h,v,s,A,l,u,a),kg(o,f,c)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=Ar(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+ise*2,t.emptyItemWidth);t.totalWidth+=s+WL,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,A){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=t.totalWidth,h=t.renderList,v=i.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;f>n.width&&(f-=y-u,y=u,m=null);var w=new an({shape:{points:sse(l,0,y,c,d===h.length-1,d===0)},style:Re(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new nt({style:Ct(o,{text:m})}),textConfig:{position:"inside"},z2:Jl*1e4,onclick:ze(A,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Ct(s,{text:m}),w.ensureState("emphasis").style=v,Qt(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Ase(w,e,g),l+=y+WL}},r.prototype.remove=function(){this.group.removeAll()},r}();function sse(r,e,t,n,a,i){var o=[[a?r:r-s0,e],[r+t,e],[r+t,e+n],[a?r:r-s0,e+n]];return!i&&o.splice(2,0,[r+t+s0,e+n/2]),!a&&o.push([r,e+n/2]),o}function Ase(r,e,t){Ve(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Zg(t,e)}}const lse=ose;var use=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function cse(){return new use}var wB=Fe,XL=Xe,YL=3,ZL="label",jL="upperLabel",fse=Jl*10,hse=Jl*2,vse=Jl*3,gs=Js([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),JL=function(r){var e=gs(r);return e.stroke=e.fill=e.lineWidth=null,e},Ip=Ye(),dse=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Ru(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!($e(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],A=gf(i,s,t),l=i&&i.type,u=t.layoutInfo,c=!this._oldTree,f=this._storage,h=l==="treemapRootToNode"&&A&&f?{rootNodeGroup:f.nodeGroup[A.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(u),d=t.get("animation"),p=this._doRender(v,t,h);d&&!c&&(!l||l==="treemapZoomToNode"||l==="treemapRootToNode")?this._doAnimation(v,p,t,h):p.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,A)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new wB,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=Ru(),A=Ru(),l=this._storage,u=[];function c(y,m,w,B){return pse(n,A,l,a,s,u,y,m,w,B)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var f=p(l);if(this._oldTree=i,this._storage=A,this._controllerHost){var h=this.seriesModel.layoutInfo,v=i.root.getLayout();v.width===h.width&&v.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:f,renderFinally:g};function d(y,m,w,B,C){B?(m=y,F(y,function(x,S){!x.isRemoved()&&_(S,S)})):new Mi(m,y,b,b).add(_).update(_).remove(ze(_,null)).execute();function b(x){return x.getId()}function _(x,S){var I=x!=null?y[x]:null,L=S!=null?m[S]:null,T=c(I,L,w,C);T&&d(I&&I.viewChildren||[],L&&L.viewChildren||[],T,B,C+1)}}function p(y){var m=Ru();return y&&F(y,function(w,B){var C=m[B];F(w,function(b){b&&(C.push(b),Ip(b).willDelete=!0)})}),m}function g(){F(f,function(y){F(y,function(m){m.parent&&m.parent.remove(m)})}),F(u,function(y){y.invisible=!0,y.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),A=(Me(o)?0:o)||0,l=(Me(s)?null:s)||"cubicOut",u=cse();F(n.willDeleteEls,function(c,f){F(c,function(h,v){if(!h.invisible){var d=h.parent,p,g=Ip(d);if(i&&i.direction==="drillDown")p=d===i.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,m=0;g.willDelete||(y=g.nodeWidth/2,m=g.nodeHeight/2),p=f==="nodeGroup"?{x:y,y:m,style:{opacity:0}}:{shape:{x:y,y:m,width:0,height:0},style:{opacity:0}}}p&&u.add(h,p,A,0,l)}})}),F(this._storage,function(c,f){F(c,function(h,v){var d=n.lastsForAnimation[f][v],p={};d&&(h instanceof Fe?d.oldX!=null&&(p.x=h.x,p.y=h.y,h.x=d.oldX,h.y=d.oldY):(d.oldShape&&(p.shape=ve({},h.shape),h.setShape(d.oldShape)),d.fadein?(h.setStyle("opacity",0),p.style={opacity:1}):h.style.opacity!==1&&(p.style={opacity:1})),u.add(h,p,A,0,l))})},this),this._state="animating",u.finished(be(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;a||(a=this._controller=new gA(t.getZr()),a.on("pan",be(this._onPan,this)),a.on("zoom",be(this._onZoom,this))),a.enable(o.get("roam"),{api:t,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,A,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(A-u.x,l-u.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>YL||Math.abs(t.dy)>YL)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var A=new Ne(s.x,s.y,s.width,s.height),l=null,u=this._controllerHost;l=u.zoomLimit;var c=u.zoom=u.zoom||1;if(c*=i,l){var f=l.min||0,h=l.max||1/0;c=Math.max(Math.min(h,c),f)}var v=c/u.zoom;u.zoom=c;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=xr();ja(p,p,[-n,-a]),QC(p,p,[v,v]),ja(p,p,[n,a]),A.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:A.x,y:A.y,width:A.width,height:A.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var A=s.hostTree.data.getItemModel(s.dataIndex),l=A.get("link",!0),u=A.get("target",!0)||"blank";l&&ip(l,u)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new lse(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(nx(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ru(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var A=s.transformCoordToLocal(t,n),l=s.shape;if(l.x<=A[0]&&A[0]<=l.x+l.width&&l.y<=A[1]&&A[1]<=l.y+l.height)a={node:o,offsetX:A[0],offsetY:A[1]};else return!1}},this),a},e.type="treemap",e}(bt);function Ru(){return{nodeGroup:[],background:[],content:[]}}function pse(r,e,t,n,a,i,o,s,A,l){if(!o)return;var u=o.getLayout(),c=r.getData(),f=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),m=o.viewChildren,w=u.upperHeight,B=m&&m.length,C=f.getModel("itemStyle"),b=f.getModel(["emphasis","itemStyle"]),_=f.getModel(["blur","itemStyle"]),x=f.getModel(["select","itemStyle"]),S=C.get("borderRadius")||0,I=ne("nodeGroup",wB);if(!I)return;if(A.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),Ip(I).nodeWidth=h,Ip(I).nodeHeight=v,u.isAboveViewRoot)return I;var L=ne("background",XL,l,hse);L&&U(I,L,B&&u.upperLabelHeight);var T=f.getModel("emphasis"),M=T.get("focus"),R=T.get("blurScope"),P=T.get("disabled"),E=M==="ancestor"?o.getAncestorsIndices():M==="descendant"?o.getDescendantIndices():M;if(B)tf(I)&&Ms(I,!1),L&&(Ms(L,!P),c.setItemGraphicEl(o.dataIndex,L),S1(L,E,R));else{var k=ne("content",XL,l,vse);k&&O(I,k),L.disableMorphing=!0,L&&tf(L)&&Ms(L,!1),Ms(I,!P),c.setItemGraphicEl(o.dataIndex,I);var D=f.getShallow("cursor");D&&k.attr("cursor",D),S1(I,E,R)}return I;function U(W,ee,oe){var H=Ve(ee);if(H.dataIndex=o.dataIndex,H.seriesIndex=r.seriesIndex,ee.setShape({x:0,y:0,width:h,height:v,r:S}),p)G(ee);else{ee.invisible=!1;var N=o.getVisual("style"),K=N.stroke,$=JL(C);$.fill=K;var j=gs(b);j.fill=b.get("borderColor");var ie=gs(_);ie.fill=_.get("borderColor");var z=gs(x);if(z.fill=x.get("borderColor"),oe){var q=h-2*d;X(ee,K,N.opacity,{x:d,y:0,width:q,height:w})}else ee.removeTextContent();ee.setStyle($),ee.ensureState("emphasis").style=j,ee.ensureState("blur").style=ie,ee.ensureState("select").style=z,qs(ee)}W.add(ee)}function O(W,ee){var oe=Ve(ee);oe.dataIndex=o.dataIndex,oe.seriesIndex=r.seriesIndex;var H=Math.max(h-2*d,0),N=Math.max(v-2*d,0);if(ee.culling=!0,ee.setShape({x:d,y:d,width:H,height:N,r:S}),p)G(ee);else{ee.invisible=!1;var K=o.getVisual("style"),$=K.fill,j=JL(C);j.fill=$,j.decal=K.decal;var ie=gs(b),z=gs(_),q=gs(x);X(ee,$,K.opacity,null),ee.setStyle(j),ee.ensureState("emphasis").style=ie,ee.ensureState("blur").style=z,ee.ensureState("select").style=q,qs(ee)}W.add(ee)}function G(W){!W.invisible&&i.push(W)}function X(W,ee,oe,H){var N=f.getModel(H?jL:ZL),K=Ar(f.get("name"),null),$=N.getShallow("show");yr(W,fr(f,H?jL:ZL),{defaultText:$?K:null,inheritColor:ee,defaultOpacity:oe,labelFetcher:r,labelDataIndex:o.dataIndex});var j=W.getTextContent();if(j){var ie=j.style,z=pg(ie.padding||0);H&&(W.setTextConfig({layoutRect:H}),j.disableLabelLayout=!0),j.beforeUpdate=function(){var V=Math.max((H?H.width:W.shape.width)-z[1]-z[3],0),Y=Math.max((H?H.height:W.shape.height)-z[0]-z[2],0);(ie.width!==V||ie.height!==Y)&&j.setStyle({width:V,height:Y})},ie.truncateMinChar=2,ie.lineOverflow="truncate",te(ie,H,u);var q=j.getState("emphasis");te(q?q.style:null,H,u)}}function te(W,ee,oe){var H=W?W.text:null;if(!ee&&oe.isLeafRoot&&H!=null){var N=r.get("drillDownIcon",!0);W.text=N?N+" "+H:H}}function ne(W,ee,oe,H){var N=y!=null&&t[W][y],K=a[W];return N?(t[W][y]=null,ye(K,N)):p||(N=new ee,N instanceof jn&&(N.z2=gse(oe,H)),re(K,N)),e[W][g]=N}function ye(W,ee){var oe=W[g]={};ee instanceof wB?(oe.oldX=ee.x,oe.oldY=ee.y):oe.oldShape=ve({},ee.shape)}function re(W,ee){var oe=W[g]={},H=o.parentNode,N=ee instanceof Fe;if(H&&(!n||n.direction==="drillDown")){var K=0,$=0,j=a.background[H.getRawIndex()];!n&&j&&j.oldShape&&(K=j.oldShape.width,$=j.oldShape.height),N?(oe.oldX=0,oe.oldY=$):oe.oldShape={x:K,y:$,width:0,height:0}}oe.fadein=!N}}function gse(r,e){return r*fse+e}const yse=dse;var yf=F,mse=Oe,Lp=-1,ax=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=De(e);this.type=n,this.mappingMethod=t,this._normalizeData=Cse[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(A0(a),wse(a)):t==="category"?a.categories?Bse(a):A0(a,!0):(Kr(t!=="linear"||a.dataExtent),A0(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return be(this._normalizeData,this)},r.listVisualTypes=function(){return je(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){Oe(e)?F(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=ge(e)?[]:Oe(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var A=t.call(n,o,s);a?i=A:i[s]=A}),i},r.retrieveVisuals=function(e){var t={},n;return e&&yf(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(ge(e))e=e.slice();else if(mse(e)){var t=[];yf(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var A=t[o].value;if(A!=null){if(A===e||Ce(A)&&A===e+"")return o;n&&f(A,o)}}for(var o=0,s=t.length;o<s;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(gv(c[1],e,u[1]))return o}else if(u[1]===1/0){if(gv(c[0],u[0],e))return o}else if(gv(c[0],u[0],e)&&gv(c[1],e,u[1]))return o;n&&f(u[0],o),n&&f(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function f(h,v){var d=Math.abs(h-e);d<i&&(i=d,a=v)}},r.visualHandlers={color:{applyVisual:Ou("color"),getColorMapper:function(){var e=this.option;return be(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Cc.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Vy(t,e.parsedVisual,a),i?a:Wa(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Wa(Vy(e,this.option.parsedVisual),"rgba")},category:Cc,piecewise:function(e,t){var n=CB.call(this,t);return n==null&&(n=Wa(Vy(e,this.option.parsedVisual),"rgba")),n},fixed:ys}},colorHue:pv(function(e,t){return mo(e,t)}),colorSaturation:pv(function(e,t){return mo(e,null,t)}),colorLightness:pv(function(e,t){return mo(e,null,null,t)}),colorAlpha:pv(function(e,t){return $d(e,t)}),decal:{applyVisual:Ou("decal"),_normalizedToVisual:{linear:null,category:Cc,piecewise:null,fixed:null}},opacity:{applyVisual:Ou("opacity"),_normalizedToVisual:BB([0,1])},liftZ:{applyVisual:Ou("liftZ"),_normalizedToVisual:{linear:ys,category:ys,piecewise:ys,fixed:ys}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:qL,category:Cc,piecewise:function(e,t){var n=CB.call(this,t);return n==null&&(n=qL.call(this,e)),n},fixed:ys}},symbolSize:{applyVisual:Ou("symbolSize"),_normalizedToVisual:BB([0,1])}},r}();function wse(r){var e=r.pieceList;r.hasSpecialVisual=!1,F(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function Bse(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(yf(e,function(o,s){t[o]=s}),!ge(n)){var a=[];Oe(n)?yf(n,function(o,s){var A=t[s];a[A??Lp]=o}):a[Lp]=n,n=qN(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function A0(r,e){var t=r.visual,n=[];Oe(t)?yf(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),qN(r,n)}function pv(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:BB([0,1])}}function qL(r){var e=this.option.visual;return e[Math.round(ct(r,[0,1],[0,e.length-1],!0))]||{}}function Ou(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Cc(r){var e=this.option.visual;return e[this.option.loop&&r!==Lp?r%e.length:r]}function ys(){return this.option.visual[0]}function BB(r){return{linear:function(e){return ct(e,r,this.option.visual,!0)},category:Cc,piecewise:function(e,t){var n=CB.call(this,t);return n==null&&(n=ct(e,r,this.option.visual,!0)),n},fixed:ys}}function CB(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=ax.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function qN(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=me(e,function(t){var n=hn(t);return n||[0,0,0,1]})),e}var Cse={linear:function(r){return ct(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ax.findPieceIndex(r,e,!0);if(t!=null)return ct(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Lp},fixed:Xt};function gv(r,e,t){return r?e<=t:e<t}const Qr=ax;var bse="itemStyle",e5=Ye();const xse={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||t5(t,{},r.getViewRoot().getAncestors(),r)}};function t5(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(bse),A=_se(s,e,n),l=o.ensureUniqueItemVisual(r.dataIndex,"style"),u=s.get("borderColor"),c=s.get("borderColorSaturation"),f;c!=null&&(f=eE(A),u=Sse(c,f)),l.stroke=u;var h=r.viewChildren;if(!h||!h.length)f=eE(A),l.fill=f;else{var v=Tse(r,a,i,s,A,h);F(h,function(d,p){if(d.depth>=t.length||d===t[d.depth]){var g=Ise(a,A,d,p,v,n);t5(d,g,t,n)}})}}}function _se(r,e,t){var n=ve({},e),a=t.designatedVisualItemStyle;return F(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function eE(r){var e=l0(r,"color");if(e){var t=l0(r,"colorAlpha"),n=l0(r,"colorSaturation");return n&&(e=mo(e,null,null,n)),t&&(e=$d(e,t)),e}}function Sse(r,e){return e!=null?mo(e,null,null,r):null}function l0(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function Tse(r,e,t,n,a,i){if(!(!i||!i.length)){var o=u0(e,"color")||a.color!=null&&a.color!=="none"&&(u0(e,"colorAlpha")||u0(e,"colorSaturation"));if(o){var s=e.get("visualMin"),A=e.get("visualMax"),l=t.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),A!=null&&A>l[1]&&(l[1]=A);var u=e.get("colorMappingBy"),c={type:o.name,dataExtent:l,visual:o.range};c.type==="color"&&(u==="index"||u==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var f=new Qr(c);return e5(f).drColorMappingBy=u,f}}}function u0(r,e){var t=r.get(e);return ge(t)&&t.length?{name:e,range:t}:null}function Ise(r,e,t,n,a,i){var o=ve({},e);if(a){var s=a.type,A=s==="color"&&e5(a).drColorMappingBy,l=A==="index"?n:A==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(l)}return o}var mf=Math.max,Ep=Math.min,tE=Fr,ix=F,r5=["itemStyle","borderWidth"],Lse=["itemStyle","gapWidth"],Ese=["upperLabel","show"],Mse=["upperLabel","height"];const Dse={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=hr(r,t).refContainer,o=Ut(r.getBoxLayoutParams(),i),s=a.size||[],A=Be(tE(o.width,s[0]),i.width),l=Be(tE(o.height,s[1]),i.height),u=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],f=gf(n,c,r),h=u==="treemapRender"||u==="treemapMove"?n.rootRect:null,v=r.getViewRoot(),d=ZN(v);if(u!=="treemapMove"){var p=u==="treemapZoomToNode"?Rse(r,f,v,A,l):h?[h.width,h.height]:[A,l],g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var m={x:0,y:0,width:p[0],height:p[1],area:p[0]*p[1]};v.setLayout(m),n5(v,y,!1,0),m=v.getLayout(),ix(d,function(B,C){var b=(d[C+1]||v).getValue();B.setLayout(ve({dataExtent:[b,b],borderWidth:0,upperHeight:0},m))})}var w=r.getData().tree.root;w.setLayout(Ose(o,h,f),!0),r.setLayoutInfo(o),a5(w,new Ne(-o.x,-o.y,t.getWidth(),t.getHeight()),d,v,0)}};function n5(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),A=s.get(r5),l=s.get(Lse)/2,u=i5(s),c=Math.max(A,u),f=A-l,h=c-l;r.setLayout({borderWidth:A,upperHeight:c,upperLabelHeight:u},!0),a=mf(a-2*f,0),i=mf(i-f-h,0);var v=a*i,d=Fse(r,s,v,e,t,n);if(d.length){var p={x:f,y:h,width:a,height:i},g=Ep(a,i),y=1/0,m=[];m.area=0;for(var w=0,B=d.length;w<B;){var C=d[w];m.push(C),m.area+=C.getLayout().area;var b=kse(m,g,e.squareRatio);b<=y?(w++,y=b):(m.area-=m.pop().getLayout().area,rE(m,g,p,l,!1),g=Ep(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&rE(m,g,p,l,!0),!t){var _=s.get("childrenVisibleMin");_!=null&&v<_&&(t=!0)}for(var w=0,B=d.length;w<B;w++)n5(d[w],e,t,n+1)}}}function Fse(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var A=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!A)return r.viewChildren=[];o=ft(o,function(h){return!h.isRemoved()}),Use(o,s);var l=Pse(e,o,s);if(l.sum===0)return r.viewChildren=[];if(l.sum=Qse(e,t,l.sum,s,o),l.sum===0)return r.viewChildren=[];for(var u=0,c=o.length;u<c;u++){var f=o[u].getValue()/l.sum*t;o[u].setLayout({area:f})}return A&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:l.dataExtent},!0),o}function Qse(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,A=o-1;A>=0;A--){var l=a[n==="asc"?o-A-1:A].getValue();l/t*e<i&&(s=A,t-=l)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function Use(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function Pse(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],ix(e,function(A){var l=A.getValue(o);l<s[0]&&(s[0]=l),l>s[1]&&(s[1]=l)})),{sum:n,dataExtent:s}}function kse(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var A=r.area*r.area,l=e*e*t;return A?mf(l*n/A,A/(l*a)):1/0}function rE(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],A=["width","height"],l=t[s[i]],u=e?r.area/e:0;(a||u>t[A[o]])&&(u=t[A[o]]);for(var c=0,f=r.length;c<f;c++){var h=r[c],v={},d=u?h.getLayout().area/u:0,p=v[A[o]]=mf(u-2*n,0),g=t[s[i]]+t[A[i]]-l,y=c===f-1||g<d?g:d,m=v[A[i]]=mf(y-2*n,0);v[s[o]]=t[s[o]]+Ep(n,p/2),v[s[i]]=l+Ep(n,m/2),l+=y,h.setLayout(v,!0)}t[s[o]]+=u,t[A[o]]-=u}function Rse(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,A=n*a,l=A*r.option.zoomToNodeRatio;s=i.parentNode;){for(var u=0,c=s.children,f=0,h=c.length;f<h;f++)u+=c[f].getValue();var v=i.getValue();if(v===0)return o;l*=u/v;var d=s.getModel(),p=d.get(r5),g=Math.max(p,i5(d));l+=4*p*p+(3*p+g)*Math.pow(l,.5),l>iT&&(l=iT),i=s}l<A&&(l=A);var y=Math.pow(l/A,.5);return[n*y,a*y]}function Ose(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var A=s.getLayout();o[0]+=A.x,o[1]+=A.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function a5(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var A=new Ne(e.x-i.x,e.y-i.y,e.width,e.height);ix(r.viewChildren||[],function(l){a5(l,A,t,n,a+1)})}}function i5(r){return r.get(Ese)?r.get(Mse):0}function Hse(r){r.registerSeriesModel(ase),r.registerChartView(yse),r.registerVisual(xse),r.registerLayout(Dse),tse(r)}function Nse(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var A=i.getItemModel(s),l=A.getShallow("category");if(l!=null){qe(l)&&(l=o[l]);for(var u=0;u<e.length;u++)if(!e[u].isSelected(l))return!1}return!0})})}function Vse(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var A=n.getItemModel(o),l=A.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",l);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++){var f=A.getShallow(u[c],!0);f!=null&&n.setItemVisual(o,u[c],f)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),A=s.getShallow("category");if(A!=null){Ce(A)&&(A=i["ec-"+A]);var l=n.getItemVisual(A,"style"),u=a.ensureUniqueItemVisual(o,"style");ve(u,l);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++)a.setItemVisual(o,c[f],n.getItemVisual(A,c[f]))}})})}function yv(r){return r instanceof Array||(r=[r,r]),r}function Gse(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=yv(e.get("edgeSymbol")),i=yv(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),A=t.getEdgeByIndex(o),l=yv(s.getShallow("symbol",!0)),u=yv(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),f=n.ensureUniqueItemVisual(o,"style");switch(ve(f,c),f.stroke){case"source":{var h=A.node1.getVisual("style");f.stroke=h&&h.fill;break}case"target":{var h=A.node2.getVisual("style");f.stroke=h&&h.fill;break}}l[0]&&A.setVisual("fromSymbol",l[0]),l[1]&&A.setVisual("toSymbol",l[1]),u[0]&&A.setVisual("fromSymbolSize",u[0]),u[1]&&A.setVisual("toSymbolSize",u[1])})})}var bB="-->",jg=function(r){return r.get("autoCurveness")||null},o5=function(r,e){var t=jg(r),n=20,a=[];if(qe(t))n=t;else if(ge(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},wf=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(bB)},s5=function(r){var e=r.split(bB);return[e[0],e[2],e[1]].join(bB)},zse=function(r,e){var t=wf(r.node1,r.node2,e);return e.__edgeMap[t]},$se=function(r,e){var t=xB(wf(r.node1,r.node2,e),e),n=xB(wf(r.node2,r.node1,e),e);return t+n},xB=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function Kse(r){jg(r)&&(r.__curvenessList=[],r.__edgeMap={},o5(r))}function Wse(r,e,t,n){if(jg(t)){var a=wf(r,e,t),i=t.__edgeMap,o=i[s5(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function ox(r,e,t,n){var a=jg(e),i=ge(a);if(!a)return null;var o=zse(r,e);if(!o)return null;for(var s=-1,A=0;A<o.length;A++)if(o[A]===t){s=A;break}var l=$se(r,e);o5(e,l),r.lineStyle=r.lineStyle||{};var u=wf(r.node1,r.node2,e),c=e.__curvenessList,f=i||l%2?0:1;if(o.isForward)return c[f+s];var h=s5(u),v=xB(h,e),d=c[s+v+f];return n?i?a&&a[0]===0?(v+f)%2?d:-d:((v%2?0:1)+f)%2?d:-d:(v+f)%2?d:-d:c[s+v+f]}function A5(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),sx(t,r)}}function sx(r,e){r.eachEdge(function(t,n){var a=bn(t.getModel().get(["lineStyle","curveness"]),-ox(t,e,n,!0),0),i=wi(t.node1.getLayout()),o=wi(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function Xse(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];F(a.dimensions,function(f){o=o.concat(i.mapDimensionsAll(f))});for(var s=0;s<i.count();s++){for(var A=[],l=!1,u=0;u<o.length;u++){var c=i.get(o[u],s);isNaN(c)||(l=!0),A.push(c)}l?i.setItemLayout(s,a.dataToPoint(A)):i.setItemLayout(s,[NaN,NaN])}sx(i.graph,t)}else(!n||n==="none")&&A5(t)})}function bc(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function xc(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var nE=Math.PI,c0=[];function Ax(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,A=i.width/2+i.x,l=i.height/2+i.y,u=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:A,cy:l}),!!c){if(t){var f=a.pointToData(n),h=f[0],v=f[1],d=[h-A,v-l];Yl(d,d),ad(d,d,u),t.setLayout([A+d[0],l+d[1]],!0);var p=r.get(["circular","rotateLabel"]);l5(t,p,A,l)}Yse[e](r,s,o,u,A,l,c),s.eachEdge(function(g,y){var m=bn(g.getModel().get(["lineStyle","curveness"]),ox(g,r,y),0),w=wi(g.node1.getLayout()),B=wi(g.node2.getLayout()),C,b=(w[0]+B[0])/2,_=(w[1]+B[1])/2;+m&&(m*=3,C=[A*m+b*(1-m),l*m+_*(1-m)]),g.setLayout([w,B,C])})}}}var Yse={value:function(r,e,t,n,a,i,o){var s=0,A=t.getSum("value"),l=Math.PI*2/(A||o);e.eachNode(function(u){var c=u.getValue("value"),f=l*(A?c:1)/2;s+=f,u.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=f})},symbolSize:function(r,e,t,n,a,i,o){var s=0;c0.length=o;var A=bc(r);e.eachNode(function(c){var f=xc(c);isNaN(f)&&(f=2),f<0&&(f=0),f*=A;var h=Math.asin(f/2/n);isNaN(h)&&(h=nE/2),c0[c.dataIndex]=h,s+=h*2});var l=(2*nE-s)/o/2,u=0;e.eachNode(function(c){var f=l+c0[c.dataIndex];u+=f,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(u)+a,n*Math.sin(u)+i]),u+=f})}};function l5(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var A=r.getLayout(),l=Math.atan2(A[1]-n,A[0]-t);l<0&&(l=Math.PI*2+l);var u=A[0]<t;u&&(l=l-Math.PI);var c=u?"left":"right";s.setTextConfig({rotation:-l,position:c,origin:"center"});var f=s.ensureState("emphasis");ve(f.textConfig||(f.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function Zse(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Ax(e,"symbolSize")})}var $A=Kw;function jse(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,A=[i.x+o/2,i.y+s/2],l=t.gravity==null?.1:t.gravity,u=0;u<n.length;u++){var c=n[u];c.p||(c.p=oA(o*(Math.random()-.5)+A[0],s*(Math.random()-.5)+A[1])),c.pp=wi(c.p),c.edges=null}var f=t.friction==null?.6:t.friction,h=f,v,d;return{warmUp:function(){h=f*.8},setFixed:function(p){n[p].fixed=!0},setUnfixed:function(p){n[p].fixed=!1},beforeStep:function(p){v=p},afterStep:function(p){d=p},step:function(p){v&&v(n,a);for(var g=[],y=n.length,m=0;m<a.length;m++){var w=a[m];if(!w.ignoreForceLayout){var B=w.n1,C=w.n2;Ls(g,C.p,B.p);var b=Ww(g)-w.d,_=C.w/(B.w+C.w);isNaN(_)&&(_=0),Yl(g,g),!B.fixed&&$A(B.p,B.p,g,_*b*h),!C.fixed&&$A(C.p,C.p,g,-(1-_)*b*h)}}for(var m=0;m<y;m++){var x=n[m];x.fixed||(Ls(g,A,x.p),$A(x.p,x.p,g,l*h))}for(var m=0;m<y;m++)for(var B=n[m],S=m+1;S<y;S++){var C=n[S];Ls(g,C.p,B.p);var b=Ww(g);b===0&&(DC(g,Math.random()-.5,Math.random()-.5),b=1);var I=(B.rep+C.rep)/b/b;!B.fixed&&$A(B.pp,B.pp,g,I),!C.fixed&&$A(C.pp,C.pp,g,-I)}for(var L=[],m=0;m<y;m++){var x=n[m];x.fixed||(Ls(L,x.p,x.pp),$A(x.p,x.p,L,h),Jr(x.pp,x.p))}h=h*.992;var T=h<.01;d&&d(n,a,T),p&&p(T)}}}function Jse(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),A=s.get("initLayout");e.preservedPoints?i.each(function(m){var w=i.getId(m);i.setItemLayout(m,n[w]||[NaN,NaN])}):!A||A==="none"?A5(e):A==="circular"&&Ax(e,"value");var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=s.get("repulsion"),f=s.get("edgeLength"),h=ge(c)?c:[c,c],v=ge(f)?f:[f,f];v=[v[1],v[0]];var d=i.mapArray("value",function(m,w){var B=i.getItemLayout(w),C=ct(m,l,h);return isNaN(C)&&(C=(h[0]+h[1])/2),{w:C,rep:C,fixed:i.getItemModel(w).get("fixed"),p:!B||isNaN(B[0])||isNaN(B[1])?null:B}}),p=o.mapArray("value",function(m,w){var B=a.getEdgeByIndex(w),C=ct(m,u,v);isNaN(C)&&(C=(v[0]+v[1])/2);var b=B.getModel(),_=bn(B.getModel().get(["lineStyle","curveness"]),-ox(B,e,w,!0),0);return{n1:d[B.node1.dataIndex],n2:d[B.node2.dataIndex],d:C,curveness:_,ignoreForceLayout:b.get("ignoreForceLayout")}}),g=t.getBoundingRect(),y=jse(d,p,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(m,w){for(var B=0,C=m.length;B<C;B++)m[B].fixed&&Jr(m[B].p,a.getNodeByIndex(B).getLayout())}),y.afterStep(function(m,w,B){for(var C=0,b=m.length;C<b;C++)m[C].fixed||a.getNodeByIndex(C).setLayout(m[C].p),n[i.getId(C)]=m[C].p;for(var C=0,b=w.length;C<b;C++){var _=w[C],x=a.getEdgeByIndex(C),S=_.n1.p,I=_.n2.p,L=x.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Jr(L[0],S),Jr(L[1],I),+_.curveness&&(L[2]=[(S[0]+I[0])/2-(S[1]-I[1])*_.curveness,(S[1]+I[1])/2-(I[0]-S[0])*_.curveness]),x.setLayout(L)}}),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null})}function qse(r,e,t){var n=hr(r,e),a=ve(r.getBoxLayoutParams(),{aspect:t}),i=Ut(a,n.refContainer);return DO(r,i,t)}function eAe(r,e){var t=[];return r.eachSeriesByType("graph",function(n){Of({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(v){var d=i.getItemModel(v);return[+d.get("x"),+d.get("y")]}),s=[],A=[];_g(o,s,A),A[0]-s[0]===0&&(A[0]+=1,s[0]-=1),A[1]-s[1]===0&&(A[1]+=1,s[1]-=1);var l=(A[0]-s[0])/(A[1]-s[1]),u=qse(n,e,l);isNaN(l)&&(s=[u.x,u.y],A=[u.x+u.width,u.y+u.height]);var c=A[0]-s[0],f=A[1]-s[1],h=new yA(null,{api:e,ecModel:r});return h.zoomLimit=n.get("scaleLimit"),h.setBoundingRect(s[0],s[1],c,f),h.setViewRect(u.x,u.y,u.width,u.height),h.setCenter(n.get("center")),h.setZoom(n.get("zoom")),t.push(h),h}}),t}var aE=lr.prototype,f0=Mg.prototype,u5=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(u5);function h0(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var tAe=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new u5},e.prototype.buildPath=function(t,n){h0(n)?aE.buildPath.call(this,t,n):f0.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return h0(this.shape)?aE.pointAt.call(this,t):f0.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=h0(n)?[n.x2-n.x1,n.y2-n.y1]:f0.tangentAt.call(this,t);return Yl(a,a)},e}(Ze);const c5=tAe;var v0=["fromSymbol","toSymbol"];function iE(r){return"_"+r+"Type"}function oE(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),A=iu(a),l=hA(o||0,A);return n+A+l+(i||"")+(s||"")}function sE(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),A=iu(a),l=hA(o||0,A),u=ar(n,-A[0]/2+l[0],-A[1]/2+l[1],A[0],A[1],null,s);return u.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,u.name=r,u}}function rAe(r){var e=new c5({name:"line",subPixelOptimize:!0});return _B(e.shape,r),e}function _B(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var nAe=function(r){ce(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),A=rAe(o);A.shape.percent=0,Lt(A,{z2:Le(s,0),shape:{percent:1}},i,n),this.add(A),F(v0,function(l){var u=sE(l,t,n);this.add(u),this[iE(l)]=oE(l,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),A={shape:{}};_B(A.shape,s),at(o,A,i,n),F(v0,function(l){var u=oE(l,t,n),c=iE(l);if(this[c]!==u){this.remove(this.childOfName(l));var f=sE(l,t,n);this.add(f)}this[c]=u},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,A=a&&a.blurLineStyle,l=a&&a.selectLineStyle,u=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,f=a&&a.focus,h=a&&a.blurScope;if(!a||t.hasItemOption){var v=t.getItemModel(n),d=v.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),A=v.getModel(["blur","lineStyle"]).getLineStyle(),l=v.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),f=d.get("focus"),h=d.get("blurScope"),u=fr(v)}var p=t.getItemVisual(n,"style"),g=p.stroke;o.useStyle(p),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=A,o.ensureState("select").style=l,F(v0,function(C){var b=this.childOfName(C);if(b){b.setColor(g),b.style.opacity=p.opacity;for(var _=0;_<rn.length;_++){var x=rn[_],S=o.getState(x);if(S){var I=S.style||{},L=b.ensureState(x),T=L.style||(L.style={});I.stroke!=null&&(T[b.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(T.opacity=I.opacity)}}b.markRedraw()}},this);var y=i.getRawValue(n);yr(this,u,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,b){return i.getFormattedLabel(C,b,t.dataType)}},inheritColor:g||le.color.neutral99,defaultOpacity:p.opacity,defaultText:(y==null?t.getName(n):isFinite(y)?er(y):y)+""});var m=this.getTextContent();if(m){var w=u.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=w.get("position")||"middle";var B=w.get("distance");ge(B)||(B=[B,B]),m.__labelDistance=B}this.setTextConfig({position:null,local:!0,inside:!1}),Qt(this,f,h,c)},e.prototype.highlight=function(){Li(this)},e.prototype.downplay=function(){Ei(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");_B(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var A=t.childOfName("line");if(!this.__dirty&&!A.__dirty)return;var l=A.shape.percent,u=A.pointAt(0),c=A.pointAt(l),f=Ls([],c,u);Yl(f,f);function h(S,I){var L=S.__specifiedRotation;if(L==null){var T=A.tangentAt(I);S.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(T[1],T[0]))}else S.attr("rotation",L)}if(n&&(n.setPosition(u),h(n,0),n.scaleX=n.scaleY=o*l,n.markRedraw()),a&&(a.setPosition(c),h(a,1),a.scaleX=a.scaleY=o*l,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,d=void 0,p=i.__labelDistance,g=p[0]*o,y=p[1]*o,m=l/2,w=A.tangentAt(m),B=[w[1],-w[0]],C=A.pointAt(m);B[1]>0&&(B[0]=-B[0],B[1]=-B[1]);var b=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var _=-Math.atan2(w[1],w[0]);c[0]<u[0]&&(_=Math.PI+_),i.rotation=_}var x=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=y,d="top";break;default:x=0,d="middle"}switch(i.__position){case"end":i.x=f[0]*g+c[0],i.y=f[1]*y+c[1],v=f[0]>.8?"left":f[0]<-.8?"right":"center",d=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*g+u[0],i.y=-f[1]*y+u[1],v=f[0]>.8?"right":f[0]<-.8?"left":"center",d=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*b+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*b,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*b+c[0],i.y=c[1]+x,v=w[0]>=0?"right":"left",i.originX=g*b,i.originY=-x;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},e}(Fe);const lx=nAe;var aAe=function(){function r(e){this.group=new Fe,this._LineCtor=e||lx}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=AE(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,A){t._doUpdate(i,e,A,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=AE(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!iAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(d0(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){ko(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(d0(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!d0(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function iAe(r){return r.animators&&r.animators.length>0}function AE(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:fr(e)}}function lE(r){return isNaN(r[0])||isNaN(r[1])}function d0(r){return r&&!lE(r[0])&&!lE(r[1])}const ux=aAe;var p0=[],g0=[],y0=[],KA=Cr,m0=Os,uE=Math.abs;function cE(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,A=t*t,l=.1,u=.1;u<=.9;u+=.1){p0[0]=KA(n[0],a[0],i[0],u),p0[1]=KA(n[1],a[1],i[1],u);var c=uE(m0(p0,e)-A);c<o&&(o=c,s=u)}for(var f=0;f<32;f++){var h=s+l;g0[0]=KA(n[0],a[0],i[0],s),g0[1]=KA(n[1],a[1],i[1],s),y0[0]=KA(n[0],a[0],i[0],h),y0[1]=KA(n[1],a[1],i[1],h);var c=m0(g0,e)-A;if(uE(c)<.01)break;var v=m0(y0,e)-A;l/=2,c<0?v>=0?s=s+l:s=s-l:v>=0?s=s-l:s=s+l}return s}function w0(r,e){var t=[],n=Xc,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,A){var l=s.getLayout(),u=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");l.__original||(l.__original=[wi(l[0]),wi(l[1])],l[2]&&l.__original.push(wi(l[2])));var f=l.__original;if(l[2]!=null){if(Jr(a[0],f[0]),Jr(a[1],f[2]),Jr(a[2],f[1]),u&&u!=="none"){var h=xc(s.node1),v=cE(a,f[0],h*e);n(a[0][0],a[1][0],a[2][0],v,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],v,t),a[0][1]=t[3],a[1][1]=t[4]}if(c&&c!=="none"){var h=xc(s.node2),v=cE(a,f[1],h*e);n(a[0][0],a[1][0],a[2][0],v,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],v,t),a[1][1]=t[1],a[2][1]=t[2]}Jr(l[0],a[0]),Jr(l[1],a[2]),Jr(l[2],a[1])}else{if(Jr(i[0],f[0]),Jr(i[1],f[1]),Ls(o,i[1],i[0]),Yl(o,o),u&&u!=="none"){var h=xc(s.node1);Kw(i[0],i[0],o,h*e)}if(c&&c!=="none"){var h=xc(s.node2);Kw(i[1],i[1],o,-h*e)}Jr(l[0],i[0]),Jr(l[1],i[1])}})}var f5=Ye();function oAe(r){if(r)return f5(r).bridge}function fE(r,e){r&&(f5(r).bridge=e)}function hE(r){return r.type==="view"}var sAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new zf,i=new ux,o=this.group,s=new Fe;this._controller=new gA(n.getZr()),this._controllerHost={target:s},s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem,s=!1;this._model=t,this._api=a,this._active=!0;var A=this._getThumbnailInfo();A&&A.bridge.reset(a);var l=this._symbolDraw,u=this._lineDraw;if(hE(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):at(this._mainGroup,c,t)}w0(t.getGraph(),bc(t));var f=t.getData();l.updateData(f);var h=t.getEdgeData();u.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,t,a),clearTimeout(this._layoutTimeout);var v=t.forceLayout,d=t.get(["force","layoutAnimation"]);v&&(s=!0,this._startForceLayoutIteration(v,a,d));var p=t.get("layout");f.graph.eachNode(function(w){var B=w.dataIndex,C=w.getGraphicEl(),b=w.getModel();if(C){C.off("drag").off("dragend");var _=b.get("draggable");_&&C.on("drag",function(S){switch(p){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,a,d),v.setFixed(B),f.setItemLayout(B,[C.x,C.y]);break;case"circular":f.setItemLayout(B,[C.x,C.y]),w.setLayout({fixed:!0},!0),Ax(t,"symbolSize",w,[S.offsetX,S.offsetY]),i.updateLayout(t);break;case"none":default:f.setItemLayout(B,[C.x,C.y]),sx(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(B)}),C.setDraggable(_,!!b.get("cursor"));var x=b.get(["emphasis","focus"]);x==="adjacency"&&(Ve(C).focus=w.getAdjacentDataIndices())}}),f.graph.eachEdge(function(w){var B=w.getGraphicEl(),C=w.getModel().get(["emphasis","focus"]);B&&C==="adjacency"&&(Ve(B).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(w){l5(w,g,y,m)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n,a){var i=this,o=!1;(function s(){t.step(function(A){i.updateLayout(i._model),(A||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!A)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype._updateController=function(t,n,a){var i=this._controller,o=this._controllerHost,s=n.coordinateSystem;if(!hE(s)){i.disable();return}i.enable(n.get("roam"),{api:a,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(A,l,u){return s.containPoint([l,u])},isInClip:function(A,l,u){return!t||t.contain(l,u)}}}),o.zoomLimit=n.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(A){a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:A.dx,dy:A.dy})}).on("zoom",function(A){a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:A.scale,originX:A.originX,originY:A.originY})})},e.prototype.updateViewOnPan=function(t,n,a){this._active&&(jb(this._controllerHost,a.dx,a.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,n,a){this._active&&(Jb(this._controllerHost,a.zoom,a.originX,a.originY),this._updateNodeAndLinkScale(),w0(t.getGraph(),bc(t)),this._lineDraw.updateLayout(),n.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=bc(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(w0(t.getGraph(),bc(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,n=t.coordinateSystem;if(n.type==="view"){var a=oAe(t);if(a)return{bridge:a,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new Fe,A=a.group.children(),l=i.group.children(),u=new Fe,c=new Fe;s.add(c),s.add(u);for(var f=0;f<A.length;f++){var h=A[f],v=h.children()[0],d=h.x,p=h.y,g=De(v.shape),y=ve(g,{width:v.scaleX,height:v.scaleY,x:d-v.scaleX/2,y:p-v.scaleY/2}),m=De(v.style),w=new v.constructor({shape:y,style:m,z2:151});c.add(w)}for(var f=0;f<l.length;f++){var h=l[f],B=h.children()[0],m=De(B.style),y=De(B.shape),C=new c5({style:m,shape:y,z2:151});u.add(C)}o.bridge.renderContent({api:n,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},e.type="graph",e}(bt);const AAe=sAe;function WA(r){return"_EC_"+r}var lAe=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(!n[WA(e)]){var a=new ms(e,t);return a.hostGraph=this,this.nodes.push(a),n[WA(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[WA(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(qe(e)&&(e=this.nodes[e]),qe(t)&&(t=this.nodes[t]),e instanceof ms||(e=a[WA(e)]),t instanceof ms||(t=a[WA(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new h5(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof ms&&(e=e.id),t instanceof ms&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof ms||(t=this._nodesMap[WA(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var A=s.shift(),l=A[i],o=0;o<l.length;o++){var u=l[o],c=u.node1===A?u.node2:u.node1;if(!c.__visited){if(e.call(a,c,A))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var A=a[t.getRawIndex(s)];return A.node1.dataIndex>=0&&A.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),ms=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=Ie(),t=Ie(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],A=0;A<o.length;){var l=o[A];A++,t.set(l.dataIndex,!0);for(var u=l.inEdges,c=0,f=u.length,h=void 0,v=void 0;c<f;c++)h=u[c],v=h.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(h.node1))}for(A=0;A<s.length;){var d=s[A];A++,t.set(d.dataIndex,!0);for(var p=d.outEdges,c=0,g=p.length,y=void 0,m=void 0;c<g;c++)y=p[c],m=y.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),s.push(y.node2))}}}return{edge:e.keys(),node:t.keys()}},r}(),h5=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Ie(),t=Ie();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,A=0,l=s.length,u=void 0,c=void 0;A<l;A++)u=o.inEdges[A],c=u.dataIndex,c>=0&&!e.hasKey(c)&&(e.set(c,!0),n.push(u.node1))}for(i=0;i<a.length;){var f=a[i];i++,t.set(f.dataIndex,!0);for(var h=f.outEdges,A=0,l=h.length,v=void 0,d=void 0;A<l;A++)v=f.outEdges[A],d=v.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),a.push(v.node2))}return{edge:e.keys(),node:t.keys()}},r}();function v5(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}ir(ms,v5("hostGraph","data"));ir(h5,v5("hostGraph","edgeData"));const uAe=lAe;function cx(r,e,t,n,a){for(var i=new uAe(n),o=0;o<r.length;o++)i.addNode(Fr(r[o].id,r[o].name,o),o);for(var s=[],A=[],l=0,o=0;o<e.length;o++){var u=e[o],c=u.source,f=u.target;i.addEdge(c,f,l)&&(A.push(u),s.push(Fr(Ar(u.id,null),c+" > "+f)),l++)}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar"||h==="matrix")v=ki(r,t);else{var d=Rf.get(h),p=d?d.dimensions||[]:[];$e(p,"value")<0&&p.concat(["value"]);var g=Nf(r,{coordDimensions:p,encodeDefine:t.getEncode()}).dimensions;v=new tn(g,t),v.initData(r)}var y=new tn(["value"],t);return y.initData(A,s),a&&a(v,y),XN({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var cAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new lu(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Zs(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){Kse(this);var s=cx(i,a,this,!0,A);return F(s.edges,function(l){Wse(l.node1,l.node2,this,l.dataIndex)},this),s.data}function A(l,u){l.wrapMethod("getItemModel",function(v){var d=o._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var c=ot.prototype.getModel;function f(v,d){var p=c.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=f,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),A=i.getName(s.node1.dataIndex),l=i.getName(s.node2.dataIndex),u=[];return A!=null&&u.push(A),l!=null&&u.push(l),nr("nameValue",{name:u.join(" > "),value:o.value,noValue:o.value==null})}var c=vH({series:this,dataIndex:t,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var t=me(this.option.categories||[],function(a){return a.value!=null?a:ve({value:0},a)}),n=new tn(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:le.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:le.color.primary}}},e}(Pt);const fAe=cAe;function hAe(r){r.registerChartView(AAe),r.registerSeriesModel(fAe),r.registerProcessor(Nse),r.registerVisual(Vse),r.registerVisual(Gse),r.registerLayout(Xse),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Zse),r.registerLayout(Jse),r.registerCoordinateSystem("graphView",{dimensions:yA.dimensions,create:eAe}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=n.getViewOfSeriesModel(a);i&&(e.dx!=null&&e.dy!=null&&i.updateViewOnPan(a,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&i.updateViewOnZoom(a,n,e));var o=a.coordinateSystem,s=Xg(o,e,a.get("scaleLimit"));a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}var vAe=function(r){ce(e,r);function e(t,n,a){var i=r.call(this)||this;Ve(i).dataType="node",i.z2=2;var o=new nt;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.graph.getNodeByIndex(n),A=t.hostModel,l=s.getModel(),u=l.getModel("emphasis"),c=t.getItemLayout(n),f=ve($a(l.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(f.startAngle)){h.setShape(f);return}i?h.setShape(f):at(h,{shape:f},A,n);var v=ve($a(l.getModel("itemStyle"),c,!0),c);o.setShape(v),o.useStyle(t.getItemVisual(n,"style")),cr(o,l),this._updateLabel(A,l,s),t.setItemGraphicEl(n,h),cr(h,l,"itemStyle");var d=u.get("focus");Qt(this,d==="adjacency"?s.getAdjacentDataIndices():d,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,A=Math.cos(s),l=Math.sin(s),u=n.getModel("label");i.ignore=!u.get("show");var c=fr(n),f=a.getVisual("style");yr(i,c,{labelFetcher:{getFormattedLabel:function(y,m,w,B,C,b){return t.getFormattedLabel(y,m,"node",B,bn(C,c.normal&&c.normal.get("formatter"),n.get("name")),b)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:"startArc"});var h=u.get("position")||"outside",v=u.get("distance")||0,d;h==="outside"?d=o.r+v:d=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var p=h!=="outside"?u.get("align")||"center":A>0?"left":"right",g=h!=="outside"?u.get("verticalAlign")||"middle":l>0?"top":"bottom";i.attr({x:A*d+o.cx,y:l*d+o.cy,rotation:0,style:{align:p,verticalAlign:g}})},e}(nn);const vE=vAe;var dAe=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this)||this;return Ve(o).dataType="edge",o.updateData(t,n,a,i,!0),o}return e.prototype.buildPath=function(t,n){t.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;t.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),t.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),t.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),t.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),t.closePath()},e.prototype.updateData=function(t,n,a,i,o){var s=t.hostModel,A=n.graph.getEdgeByIndex(a),l=A.getLayout(),u=A.node1.getModel(),c=n.getItemModel(A.dataIndex),f=c.getModel("lineStyle"),h=c.getModel("emphasis"),v=h.get("focus"),d=ve($a(u.getModel("itemStyle"),l,!0),l),p=this;if(isNaN(d.sStartAngle)||isNaN(d.tStartAngle)){p.setShape(d);return}o?(p.setShape(d),dE(p,A,t,f)):(Jn(p),dE(p,A,t,f),at(p,{shape:d},s,a)),Qt(this,v==="adjacency"?A.getAdjacentDataIndices():v,h.get("blurScope"),h.get("disabled")),cr(p,c,"lineStyle"),n.setItemGraphicEl(A.dataIndex,p)},e}(Ze);function dE(r,e,t,n){var a=e.node1,i=e.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var A=t.getItemVisual(a.dataIndex,"style").fill,l=t.getItemVisual(i.dataIndex,"style").fill;if(Ce(A)&&Ce(l)){var u=r.shape,c=(u.s1[0]+u.s2[0])/2,f=(u.s1[1]+u.s2[1])/2,h=(u.t1[0]+u.t2[0])/2,v=(u.t1[1]+u.t2[1])/2;o.fill=new AA(c,f,h,v,[{offset:0,color:A},{offset:1,color:l}],!0)}break}}var pAe=Math.PI/180,gAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group,A=-t.get("startAngle")*pAe;if(i.diff(o).add(function(u){var c=i.getItemLayout(u);if(c){var f=new vE(i,u,A);Ve(f).dataIndex=u,s.add(f)}}).update(function(u,c){var f=o.getItemGraphicEl(c),h=i.getItemLayout(u);if(!h){f&&Bi(f,t,c);return}f?f.updateData(i,u,A):f=new vE(i,u,A),s.add(f)}).remove(function(u){var c=o.getItemGraphicEl(u);c&&Bi(c,t,u)}).execute(),!o){var l=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Be(l[0],a.getWidth()),this.group.originY=Be(l[1],a.getHeight()),Lt(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,A)},e.prototype.renderEdges=function(t,n){var a=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(A){var l=new dAe(a,i,A,n);Ve(l).dataIndex=A,s.add(l)}).update(function(A,l){var u=o.getItemGraphicEl(l);u.updateData(a,i,A,n),s.add(u)}).remove(function(A){var l=o.getItemGraphicEl(A);l&&Bi(l,t,A)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type="chord",e}(bt);const yAe=gAe;var mAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&a){var o=cx(i,a,this,!0,s);return o.data}function s(A,l){var u=ot.prototype.getModel;function c(h,v){var d=u.call(this,h,v);return d.resolveParentPath=f,d}l.wrapMethod("getItemModel",function(h){return h.resolveParentPath=f,h.getModel=c,h});function f(h){if(h&&(h[0]==="label"||h[1]==="label")){var v=h.slice();return h[0]==="label"?v[0]="edgeLabel":h[1]==="label"&&(v[1]="edgeLabel"),v}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){var i=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),A=o.getName(s.node1.dataIndex),l=o.getName(s.node2.dataIndex),u=[];return A!=null&&u.push(A),l!=null&&u.push(l),nr("nameValue",{name:u.join(" > "),value:i.value,noValue:i.value==null})}return nr("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=i.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series.chord",e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(Pt);const wAe=mAe;var B0=Math.PI/180;function BAe(r,e){r.eachSeriesByType("chord",function(t){CAe(t,e)})}function CAe(r,e){var t=r.getData(),n=t.graph,a=r.getEdgeData(),i=a.count();if(i){var o=MO(r,e),s=o.cx,A=o.cy,l=o.r,u=o.r0,c=Math.max((r.get("padAngle")||0)*B0,0),f=Math.max((r.get("minAngle")||0)*B0,0),h=-r.get("startAngle")*B0,v=h+Math.PI*2,d=r.get("clockwise"),p=d?1:-1,g=[h,v];Sg(g,!d);var y=g[0],m=g[1],w=m-y,B=t.getSum("value")===0&&a.getSum("value")===0,C=[],b=0;n.eachEdge(function(k){var D=B?1:k.getValue("value");B&&(D>0||f)&&(b+=2);var U=k.node1.dataIndex,O=k.node2.dataIndex;C[U]=(C[U]||0)+D,C[O]=(C[O]||0)+D});var _=0;if(n.eachNode(function(k){var D=k.getValue("value");isNaN(D)||(C[k.dataIndex]=Math.max(D,C[k.dataIndex]||0)),!B&&(C[k.dataIndex]>0||f)&&b++,_+=C[k.dataIndex]||0}),!(b===0||_===0)){c*b>=Math.abs(w)&&(c=Math.max(0,(Math.abs(w)-f*b)/b)),(c+f)*b>=Math.abs(w)&&(f=(Math.abs(w)-c*b)/b);var x=(w-c*b*p)/_,S=0,I=0,L=0;n.eachNode(function(k){var D=C[k.dataIndex]||0,U=x*(_?D:1)*p;Math.abs(U)<f?S+=f-Math.abs(U):(I+=Math.abs(U)-f,L+=Math.abs(U)),k.setLayout({angle:U,value:D})});var T=!1;if(S>I){var M=S/I;n.eachNode(function(k){var D=k.getLayout().angle;Math.abs(D)>=f?k.setLayout({angle:D*M,ratio:M},!0):k.setLayout({angle:f,ratio:f===0?1:D/f},!0)})}else n.eachNode(function(k){if(!T){var D=k.getLayout().angle,U=Math.min(D/L,1),O=U*S;D-O<f&&(T=!0)}});var R=S;n.eachNode(function(k){if(!(R<=0)){var D=k.getLayout().angle;if(D>f&&f>0){var U=T?1:Math.min(D/L,1),O=D-f,G=Math.min(O,Math.min(R,S*U));R-=G,k.setLayout({angle:D-G,ratio:(D-G)/D},!0)}else f>0&&k.setLayout({angle:f,ratio:D===0?1:f/D},!0)}});var P=y,E=[];n.eachNode(function(k){var D=Math.max(k.getLayout().angle,f);k.setLayout({cx:s,cy:A,r0:u,r:l,startAngle:P,endAngle:P+D*p,clockwise:d},!0),E[k.dataIndex]=P,P+=(D+c)*p}),n.eachEdge(function(k){var D=B?1:k.getValue("value"),U=x*(_?D:1)*p,O=k.node1.dataIndex,G=E[O]||0,X=Math.abs((k.node1.getLayout().ratio||1)*U),te=G+X*p,ne=[s+u*Math.cos(G),A+u*Math.sin(G)],ye=[s+u*Math.cos(te),A+u*Math.sin(te)],re=k.node2.dataIndex,W=E[re]||0,ee=Math.abs((k.node2.getLayout().ratio||1)*U),oe=W+ee*p,H=[s+u*Math.cos(W),A+u*Math.sin(W)],N=[s+u*Math.cos(oe),A+u*Math.sin(oe)];k.setLayout({s1:ne,s2:ye,sStartAngle:G,sEndAngle:te,t1:H,t2:N,tStartAngle:W,tEndAngle:oe,cx:s,cy:A,r:u,value:D,clockwise:d}),E[O]=te,E[re]=oe})}}}function bAe(r){r.registerChartView(yAe),r.registerSeriesModel(wAe),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,BAe),r.registerProcessor(su("chord"))}var xAe=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),_Ae=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new xAe},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,A=n.angle,l=n.x-a(A)*s*(s>=o/3?1:2),u=n.y-i(A)*s*(s>=o/3?1:2);A=n.angle-Math.PI/2,t.moveTo(l,u),t.lineTo(n.x+a(A)*s,n.y+i(A)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(A)*s,n.y-i(A)*s),t.lineTo(l,u)},e}(Ze);const SAe=_Ae;function TAe(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=Be(t[0],e.getWidth()),s=Be(t[1],e.getHeight()),A=Be(r.get("radius"),i/2);return{cx:o,cy:s,r:A}}function mv(r,e){var t=r==null?"":r+"";return e&&(Ce(e)?t=e.replace("{value}",t):Me(e)&&(t=e(r))),t}var IAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=TAe(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,A=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),f=c.get("roundCap"),h=f?bp:nn,v=c.get("show"),d=c.getModel("lineStyle"),p=d.get("width"),g=[l,u];Sg(g,!A),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],B=0;v&&B<i.length;B++){var C=Math.min(Math.max(i[B][0],0),1);u=l+y*C;var b=new h({shape:{startAngle:m,endAngle:u,cx:o.cx,cy:o.cy,clockwise:A,r0:o.r-p,r:o.r},silent:!0});b.setStyle({fill:i[B][1]}),b.setStyle(d.getLineStyle(["color","width"])),w.push(b),m=u}w.reverse(),F(w,function(x){return s.add(x)});var _=function(x){if(x<=0)return i[0][1];var S;for(S=0;S<i.length;S++)if(i[S][0]>=x&&(S===0?0:i[S-1][0])<x)return i[S][1];return i[S-1][1]};this._renderTicks(t,n,a,_,o,l,u,A,p),this._renderTitleAndDetail(t,n,a,_,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,_,o,l,u,A,p)},e.prototype._renderTicks=function(t,n,a,i,o,s,A,l,u){for(var c=this.group,f=o.cx,h=o.cy,v=o.r,d=+t.get("min"),p=+t.get("max"),g=t.getModel("splitLine"),y=t.getModel("axisTick"),m=t.getModel("axisLabel"),w=t.get("splitNumber"),B=y.get("splitNumber"),C=Be(g.get("length"),v),b=Be(y.get("length"),v),_=s,x=(A-s)/w,S=x/B,I=g.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),T=g.get("distance"),M,R,P=0;P<=w;P++){if(M=Math.cos(_),R=Math.sin(_),g.get("show")){var E=T?T+u:u,k=new lr({shape:{x1:M*(v-E)+f,y1:R*(v-E)+h,x2:M*(v-C-E)+f,y2:R*(v-C-E)+h},style:I,silent:!0});I.stroke==="auto"&&k.setStyle({stroke:i(P/w)}),c.add(k)}if(m.get("show")){var E=m.get("distance")+T,D=mv(er(P/w*(p-d)+d),m.get("formatter")),U=i(P/w),O=M*(v-C-E)+f,G=R*(v-C-E)+h,X=m.get("rotate"),te=0;X==="radial"?(te=-_+2*Math.PI,te>Math.PI/2&&(te+=Math.PI)):X==="tangential"?te=-_-Math.PI/2:qe(X)&&(te=X*Math.PI/180),te===0?c.add(new nt({style:Ct(m,{text:D,x:O,y:G,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:M<-.4?"left":M>.4?"right":"center"},{inheritColor:U}),silent:!0})):c.add(new nt({style:Ct(m,{text:D,x:O,y:G,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:O,originY:G,rotation:te}))}if(y.get("show")&&P!==w){var E=y.get("distance");E=E?E+u:u;for(var ne=0;ne<=B;ne++){M=Math.cos(_),R=Math.sin(_);var ye=new lr({shape:{x1:M*(v-E)+f,y1:R*(v-E)+h,x2:M*(v-b-E)+f,y2:R*(v-b-E)+h},silent:!0,style:L});L.stroke==="auto"&&ye.setStyle({stroke:i((P+ne/B)/w)}),c.add(ye),_+=S}_-=S}else _+=x}},e.prototype._renderPointer=function(t,n,a,i,o,s,A,l,u){var c=this.group,f=this._data,h=this._progressEls,v=[],d=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),y=t.getData(),m=y.mapDimension("value"),w=+t.get("min"),B=+t.get("max"),C=[w,B],b=[s,A];function _(S,I){var L=y.getItemModel(S),T=L.getModel("pointer"),M=Be(T.get("width"),o.r),R=Be(T.get("length"),o.r),P=t.get(["pointer","icon"]),E=T.get("offsetCenter"),k=Be(E[0],o.r),D=Be(E[1],o.r),U=T.get("keepAspect"),O;return P?O=ar(P,k-M/2,D-R,M,R,null,U):O=new SAe({shape:{angle:-Math.PI/2,width:M,r:R,x:k,y:D}}),O.rotation=-(I+Math.PI/2),O.x=o.cx,O.y=o.cy,O}function x(S,I){var L=p.get("roundCap"),T=L?bp:nn,M=p.get("overlap"),R=M?p.get("width"):u/y.count(),P=M?o.r-R:o.r-(S+1)*R,E=M?o.r:o.r-S*R,k=new T({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:l,r0:P,r:E}});return M&&(k.z2=ct(y.get(m,S),[w,B],[100,0],!0)),k}(g||d)&&(y.diff(f).add(function(S){var I=y.get(m,S);if(d){var L=_(S,s);Lt(L,{rotation:-((isNaN(+I)?b[0]:ct(I,C,b,!0))+Math.PI/2)},t),c.add(L),y.setItemGraphicEl(S,L)}if(g){var T=x(S,s),M=p.get("clip");Lt(T,{shape:{endAngle:ct(I,C,b,M)}},t),c.add(T),C1(t.seriesIndex,y.dataType,S,T),v[S]=T}}).update(function(S,I){var L=y.get(m,S);if(d){var T=f.getItemGraphicEl(I),M=T?T.rotation:s,R=_(S,M);R.rotation=M,at(R,{rotation:-((isNaN(+L)?b[0]:ct(L,C,b,!0))+Math.PI/2)},t),c.add(R),y.setItemGraphicEl(S,R)}if(g){var P=h[I],E=P?P.shape.endAngle:s,k=x(S,E),D=p.get("clip");at(k,{shape:{endAngle:ct(L,C,b,D)}},t),c.add(k),C1(t.seriesIndex,y.dataType,S,k),v[S]=k}}).execute(),y.each(function(S){var I=y.getItemModel(S),L=I.getModel("emphasis"),T=L.get("focus"),M=L.get("blurScope"),R=L.get("disabled");if(d){var P=y.getItemGraphicEl(S),E=y.getItemVisual(S,"style"),k=E.fill;if(P instanceof Ur){var D=P.style;P.useStyle(ve({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},E))}else P.useStyle(E),P.type!=="pointer"&&P.setColor(k);P.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(ct(y.get(m,S),C,[0,1],!0))),P.z2EmphasisLift=0,cr(P,I),Qt(P,T,M,R)}if(g){var U=v[S];U.useStyle(y.getItemVisual(S,"style")),U.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,cr(U,I),Qt(U,T,M,R)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),A=a.get("offsetCenter"),l=a.get("keepAspect"),u=ar(s,n.cx-o/2+Be(A[0],n.r),n.cy-o/2+Be(A[1],n.r),o,o,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,A=t.getData(),l=A.mapDimension("value"),u=+t.get("min"),c=+t.get("max"),f=new Fe,h=[],v=[],d=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);A.diff(this._data).add(function(g){h[g]=new nt({silent:!0}),v[g]=new nt({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],v[g]=s._detailEls[y]}).execute(),A.each(function(g){var y=A.getItemModel(g),m=A.get(l,g),w=new Fe,B=i(ct(m,[u,c],[0,1],!0)),C=y.getModel("title");if(C.get("show")){var b=C.get("offsetCenter"),_=o.cx+Be(b[0],o.r),x=o.cy+Be(b[1],o.r),S=h[g];S.attr({z2:p?0:2,style:Ct(C,{x:_,y:x,text:A.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:B})}),w.add(S)}var I=y.getModel("detail");if(I.get("show")){var L=I.get("offsetCenter"),T=o.cx+Be(L[0],o.r),M=o.cy+Be(L[1],o.r),R=Be(I.get("width"),o.r),P=Be(I.get("height"),o.r),E=t.get(["progress","show"])?A.getItemVisual(g,"style").fill:B,S=v[g],k=I.get("formatter");S.attr({z2:p?0:2,style:Ct(I,{x:T,y:M,text:mv(m,k),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:E})}),uO(S,{normal:I},m,function(U){return mv(U,k)}),d&&cO(S,g,A,t,{getFormattedLabel:function(U,O,G,X,te,ne){return mv(ne?ne.interpolatedValue:m,k)}}),w.add(S)}f.add(w)}),this.group.add(f),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(bt);const LAe=IAe;var EAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Au(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,le.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:le.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:le.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:le.color.axisLabel,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:le.color.neutral00,borderWidth:0,borderColor:le.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:le.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:le.color.transparent,borderWidth:0,borderColor:le.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:le.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Pt);const MAe=EAe;function DAe(r){r.registerChartView(LAe),r.registerSeriesModel(MAe)}var FAe=["itemStyle","opacity"],QAe=function(r){ce(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Wr,s=new nt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),A=t.getItemLayout(n),l=s.getModel("emphasis"),u=s.get(FAe);u=u??1,a||Jn(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:A.points}),i.style.opacity=0,Lt(i,{style:{opacity:u}},o,n)):at(i,{style:{opacity:u},shape:{points:A.points}},o,n),cr(i,s),this._updateLabel(t,n),Qt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,A=t.getItemModel(n),l=t.getItemLayout(n),u=l.label,c=t.getItemVisual(n,"style"),f=c.fill;yr(o,fr(A),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:t.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}});var h=A.getModel("label"),v=h.get("color"),d=v==="inherit"?f:null;a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:d,outsideFill:d});var p=u.linePoints;i.setShape({points:p}),a.textGuideLineConfig={anchor:p?new ke(p[0][0],p[0][1]):null},at(o,{style:{x:u.x,y:u.y}},s,n),o.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),Rb(a,Ob(A),{stroke:f})},e}(an),UAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(A){var l=new QAe(i,A);i.setItemGraphicEl(A,l),s.add(l)}).update(function(A,l){var u=o.getItemGraphicEl(l);u.updateData(i,A),s.add(u),i.setItemGraphicEl(A,u)}).remove(function(A){var l=o.getItemGraphicEl(A);Bi(l,t,A)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(bt);const PAe=UAe;var kAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Au(this,{coordDimensions:["value"],encodeDefaulter:ze(pb,this)})},e.prototype._defaultLabelLine=function(t){Zs(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:le.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:le.color.primary}}},e}(Pt);const RAe=kAe;function OAe(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(A){return A}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return Me(e)?a.sort(e):e!=="none"&&a.sort(function(A,l){return i?n[A]-n[l]:n[l]-n[A]}),a}function HAe(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),A=r.getItemLayout(n),l=A.points,u=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,f,h,v;if(u)o==="insideLeft"?(f=(l[0][0]+l[3][0])/2+5,h=(l[0][1]+l[3][1])/2,c="left"):o==="insideRight"?(f=(l[1][0]+l[2][0])/2-5,h=(l[1][1]+l[2][1])/2,c="right"):(f=(l[0][0]+l[1][0]+l[2][0]+l[3][0])/4,h=(l[0][1]+l[1][1]+l[2][1]+l[3][1])/4,c="center"),v=[[f,h],[f,h]];else{var d=void 0,p=void 0,g=void 0,y=void 0,m=s.get("length");o==="left"?(d=(l[3][0]+l[0][0])/2,p=(l[3][1]+l[0][1])/2,g=d-m,f=g-5,c="right"):o==="right"?(d=(l[1][0]+l[2][0])/2,p=(l[1][1]+l[2][1])/2,g=d+m,f=g+5,c="left"):o==="top"?(d=(l[3][0]+l[0][0])/2,p=(l[3][1]+l[0][1])/2,y=p-m,h=y-5,c="center"):o==="bottom"?(d=(l[1][0]+l[2][0])/2,p=(l[1][1]+l[2][1])/2,y=p+m,h=y+5,c="center"):o==="rightTop"?(d=t==="horizontal"?l[3][0]:l[1][0],p=t==="horizontal"?l[3][1]:l[1][1],t==="horizontal"?(y=p-m,h=y-5,c="center"):(g=d+m,f=g+5,c="top")):o==="rightBottom"?(d=l[2][0],p=l[2][1],t==="horizontal"?(y=p+m,h=y+5,c="center"):(g=d+m,f=g+5,c="bottom")):o==="leftTop"?(d=l[0][0],p=t==="horizontal"?l[0][1]:l[1][1],t==="horizontal"?(y=p-m,h=y-5,c="center"):(g=d-m,f=g-5,c="right")):o==="leftBottom"?(d=t==="horizontal"?l[1][0]:l[3][0],p=t==="horizontal"?l[1][1]:l[2][1],t==="horizontal"?(y=p+m,h=y+5,c="center"):(g=d-m,f=g-5,c="right")):(d=(l[1][0]+l[2][0])/2,p=(l[1][1]+l[2][1])/2,t==="horizontal"?(y=p+m,h=y+5,c="center"):(g=d+m,f=g+5,c="left")),t==="horizontal"?(g=d,f=g):(y=p,h=y),v=[[d,p],[g,y]]}A.label={linePoints:v,x:f,y:h,verticalAlign:"middle",textAlign:c,inside:u}})}function NAe(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=hr(t,e),s=Ut(t.getBoxLayoutParams(),o.refContainer),A=t.get("orient"),l=s.width,u=s.height,c=OAe(n,i),f=s.x,h=s.y,v=A==="horizontal"?[Be(t.get("minSize"),u),Be(t.get("maxSize"),u)]:[Be(t.get("minSize"),l),Be(t.get("maxSize"),l)],d=n.getDataExtent(a),p=t.get("min"),g=t.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=t.get("funnelAlign"),m=t.get("gap"),w=A==="horizontal"?l:u,B=(w-m*(n.count()-1))/n.count(),C=function(R,P){if(A==="horizontal"){var E=n.get(a,R)||0,k=ct(E,[p,g],v,!0),D=void 0;switch(y){case"top":D=h;break;case"center":D=h+(u-k)/2;break;case"bottom":D=h+(u-k);break}return[[P,D],[P,D+k]]}var U=n.get(a,R)||0,O=ct(U,[p,g],v,!0),G;switch(y){case"left":G=f;break;case"center":G=f+(l-O)/2;break;case"right":G=f+l-O;break}return[[G,P],[G+O,P]]};i==="ascending"&&(B=-B,m=-m,A==="horizontal"?f+=l:h+=u,c=c.reverse());for(var b=0;b<c.length;b++){var _=c[b],x=c[b+1],S=n.getItemModel(_);if(A==="horizontal"){var I=S.get(["itemStyle","width"]);I==null?I=B:(I=Be(I,l),i==="ascending"&&(I=-I));var L=C(_,f),T=C(x,f+I);f+=I+m,n.setItemLayout(_,{points:L.concat(T.slice().reverse())})}else{var M=S.get(["itemStyle","height"]);M==null?M=B:(M=Be(M,u),i==="ascending"&&(M=-M));var L=C(_,h),T=C(x,h+M);h+=M+m,n.setItemLayout(_,{points:L.concat(T.slice().reverse())})}}HAe(n)})}function VAe(r){r.registerChartView(PAe),r.registerSeriesModel(RAe),r.registerLayout(NAe),r.registerProcessor(su("funnel"))}var GAe=.3,zAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Fe,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),A=this._data,l=t.coordinateSystem,u=l.dimensions,c=gE(t);s.diff(A).add(f).update(h).remove(v).execute();function f(p){var g=pE(s,o,p,u,l);C0(g,s,p,c)}function h(p,g){var y=A.getItemGraphicEl(g),m=d5(s,p,u,l);s.setItemGraphicEl(p,y),at(y,{shape:{points:m}},t,p),Jn(y),C0(y,s,p,c)}function v(p){var g=A.getItemGraphicEl(p);o.remove(g)}if(!this._initialized){this._initialized=!0;var d=$Ae(l,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,A=gE(n),l=this._progressiveEls=[],u=t.start;u<t.end;u++){var c=pE(i,this._dataGroup,u,s,o);c.incremental=!0,C0(c,i,u,A),l.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(bt);function $Ae(r,e,t){var n=r.model,a=r.getRect(),i=new Xe({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Lt(i,{shape:{width:a.width,height:a.height}},e,t),i}function d5(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);KAe(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function pE(r,e,t,n,a){var i=d5(r,t,n,a),o=new Wr({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function gE(r){var e=r.get("smooth",!0);return e===!0&&(e=GAe),e=Ii(e),zr(e)&&(e=0),{smooth:e}}function C0(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");cr(r,a,"lineStyle"),Qt(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function KAe(r,e){return e==="category"?r==null:r==null||isNaN(r)}const WAe=zAe;var XAe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{useEncodeDefaulter:be(YAe,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Pt);function YAe(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return F(e.dimensions,function(n){var a=ZAe(n);t[n]=a}),t}}function ZAe(r){return+r.replace("dim","")}const jAe=XAe;var JAe=["lineStyle","opacity"],qAe={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var A=n[o];if(o==="normal"&&i.hasItemOption){var l=i.getItemModel(s).get(JAe,!0);l!=null&&(A=l)}var u=i.ensureUniqueItemVisual(s,"style");u.opacity=A},a.start,a.end)}}}};const ele=qAe;function tle(r){rle(r),nle(r)}function rle(r){if(!r.parallel){var e=!1;F(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function nle(r){var e=gt(r.parallelAxis);F(e,function(t){if(Oe(t)){var n=t.parallelIndex||0,a=gt(r.parallel)[n];a&&a.parallelAxisDefault&&Ke(t,a.parallelAxisDefault,!1)}})}var ale=5,ile=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},F(ole,function(i,o){a.getZr().on(o,this._handlers[o]=be(i,this))},this)),au(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){sf(this,"_throttledDispatchExpand"),F(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(ve({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Nt),ole={mousedown:function(r){b0(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(b0(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>ale)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!b0(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function b0(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const sle=ile;var Ale=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&Ke(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){F(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);F(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(et);const lle=Ale;var ule=function(r){ce(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ba);const cle=ule;function Mo(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=XA(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=XA(s,[0,o]),a=i=XA(s,[a,i]),n=0}e[0]=XA(e[0],t),e[1]=XA(e[1],t);var A=x0(e,n);e[n]+=r;var l=a||0,u=t.slice();A.sign<0?u[0]+=l:u[1]-=l,e[n]=XA(e[n],u);var c;return c=x0(e,n),a!=null&&(c.sign!==A.sign||c.span<a)&&(e[1-n]=e[n]+A.sign*a),c=x0(e,n),i!=null&&c.span>i&&(e[1-n]=e[n]+c.sign*i),e}function x0(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function XA(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var _0=F,p5=Math.min,g5=Math.max,yE=Math.floor,fle=Math.ceil,mE=er,hle=Math.PI,vle=function(){function r(e,t,n){this.type="parallel",this._axesMap=Ie(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;_0(a,function(o,s){var A=i[s],l=t.getComponent("parallelAxis",A),u=this._axesMap.set(o,new cle(o,Gg(l),[0,0],l.get("type"),A)),c=u.type==="category";u.onBand=c&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var a=n.getData();_0(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Pl(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){var n=hr(e,t).refContainer;this._rect=Ut(e.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],A=[0,s],l=this.dimensions.length,u=wv(e.get("axisExpandWidth"),A),c=wv(e.get("axisExpandCount")||0,[0,l]),f=e.get("axisExpandable")&&l>3&&l>c&&c>1&&u>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=wv(h[1]-h[0],A),h[1]=h[0]+v;else{v=wv(u*(c-1),A);var d=e.get("axisExpandCenter")||yE(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(s-v)/(l-c);p<3&&(p=0);var g=[yE(mE(h[0]/u,1))+1,fle(mE(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],A=o.inverse?1:0;o.setExtent(s[A],s[1-A])}),_0(n,function(o,s){var A=(a.axisExpandable?ple:dle)(s,a),l={horizontal:{x:A.position,y:a.axisLength},vertical:{x:0,y:A.position}},u={horizontal:hle/2,vertical:0},c=[l[i].x+e.x,l[i].y+e.y],f=u[i],h=xr();Uo(h,h,f),ja(h,h,c),this._axesLayout[o]={position:c,rotation:f,transform:h,axisNameAvailableWidth:A.axisNameAvailableWidth,axisLabelShow:A.axisLabelShow,nameTruncateMaxWidth:A.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],A=[];F(o,function(p){s.push(e.mapDimension(p)),A.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;u<a;u++){var c=void 0;if(!l)c="normal";else{c="active";for(var f=e.getValues(s,u),h=0,v=o.length;h<v;h++){var d=A[h].getActiveState(f[h]);if(d==="inactive"){c="inactive";break}}}t(c,u)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return ua([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return De(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,A,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),f=c[0]!=null;if(u)f&&u&&s<i*c[0]?(l="jump",A=s-i*c[2]):f&&u&&s>i*(1-c[0])?(l="jump",A=s-i*(1-c[2])):(A=s-i*c[1])>=0&&(A=s-i*(1-c[1]))<=0&&(A=0),A*=t.axisExpandWidth/u,A?Mo(A,a,o,"all"):l="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[g5(0,v-h/2)],a[1]=p5(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function wv(r,e){return p5(g5(r,e[0]),e[1])}function dle(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function ple(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,A=i,l=!1,u;return r<o[0]?(s=r*i,u=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],A=n,l=!0):(s=t-(a-1-r)*i,u=i),{position:s,axisNameAvailableWidth:A,axisLabelShow:l,nameTruncateMaxWidth:u}}const gle=vle;function yle(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new gle(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",zt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var mle={create:yle};const wle=mle;var y5=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Js([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=De(t);if(n)for(var a=n.length-1;a>=0;a--)Yn(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e}(et);ir(y5,Vf);const wE=y5;var nA=!0,Bf=Math.min,Nl=Math.max,Ble=Math.pow,Cle=1e4,ble=6,xle=6,BE="globalPan",_le={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Sle={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},CE={brushStyle:{lineWidth:2,stroke:le.color.backgroundTint,fill:le.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Tle=0,Ile=function(r){ce(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Fe,n._uid="brushController_"+Tle++,F(Ule,function(a,i){this._handlers[i]=be(a,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||Iie(n,BE,this._uid),F(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=Ke(De(CE),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Lie(t,BE,this._uid),F(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};F(t,function(a){n[a.panelId]=De(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=me(t,function(f){return Ke(De(CE),f,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Mi(a,t,l,A).add(u).update(u).remove(c).execute(),this;function A(f,h){return(f.id!=null?f.id:n+h)+"-"+f.brushType}function l(f,h){return A(f.__brushOption,h)}function u(f,h){var v=t[f];if(h!=null&&a[h]===s)i[f]=a[h];else{var d=i[f]=h!=null?(a[h].__brushOption=v,a[h]):w5(o,m5(o,v));fx(o,d)}}function c(f){a[f]!==s&&o.group.remove(a[f])}},e.prototype.unmount=function(){return this.enableBrush(!1),SB(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(qn);function m5(r,e){var t=Jg[e.brushType].createCover(r,e);return t.__brushOption=e,C5(t,e),r.group.add(t),t}function w5(r,e){var t=hx(e);return t.endCreating&&(t.endCreating(r,e),C5(e,e.__brushOption)),e}function B5(r,e){var t=e.__brushOption;hx(e).updateCoverShape(r,e,t.range,t)}function C5(r,e){var t=e.z;t==null&&(t=Cle),r.traverse(function(n){n.z=t,n.z2=t})}function fx(r,e){hx(e).updateCommon(r,e),B5(r,e)}function hx(r){return Jg[r.__brushOption.brushType]}function vx(r,e,t){var n=r._panels;if(!n)return nA;var a,i=r._transform;return F(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function b5(r,e){var t=r._panels;if(!t)return nA;var n=e.__brushOption.panelId;return n!=null?t[n]:nA}function SB(r){var e=r._covers,t=e.length;return F(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function aA(r,e){var t=me(r._covers,function(n){var a=n.__brushOption,i=De(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Lle(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=Ble(a*a+i*i,.5);return o>ble}function x5(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function _5(r,e,t,n){var a=new Fe;return a.add(new Xe({name:"main",style:dx(t),silent:!0,draggable:!0,cursor:"move",drift:ze(bE,r,e,a,["n","s","w","e"]),ondragend:ze(aA,e,{isEnd:!0})})),F(n,function(i){a.add(new Xe({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ze(bE,r,e,a,i),ondragend:ze(aA,e,{isEnd:!0})}))}),a}function S5(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=Nl(a,xle),o=t[0][0],s=t[1][0],A=o-a/2,l=s-a/2,u=t[0][1],c=t[1][1],f=u-i+a/2,h=c-i+a/2,v=u-o,d=c-s,p=v+a,g=d+a;hi(r,e,"main",o,s,v,d),n.transformable&&(hi(r,e,"w",A,l,i,g),hi(r,e,"e",f,l,i,g),hi(r,e,"n",A,l,p,i),hi(r,e,"s",A,h,p,i),hi(r,e,"nw",A,l,i,i),hi(r,e,"ne",f,l,i,i),hi(r,e,"sw",A,h,i,i),hi(r,e,"se",f,h,i,i))}function TB(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(dx(t)),a.attr({silent:!n,cursor:n?"move":"default"}),F([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?IB(r,i[0]):Mle(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Sle[s]+"-resize":null})})}function hi(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(Fle(px(r,e,[[n,a],[n+i,a+o]])))}function dx(r){return Re({strokeNoScale:!0},r.brushStyle)}function T5(r,e,t,n){var a=[Bf(r,t),Bf(e,n)],i=[Nl(r,t),Nl(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Ele(r){return zs(r.group)}function IB(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Fg(t[e],Ele(r));return n[a]}function Mle(r,e){var t=[IB(r,e[0]),IB(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function bE(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),A=I5(e,a,i);F(n,function(l){var u=_le[l];s[u[0]][u[1]]+=A[u[0]]}),o.range=r.fromRectRange(T5(s[0][0],s[1][0],s[0][1],s[1][1])),fx(e,t),aA(e,{isEnd:!1})}function Dle(r,e,t,n){var a=e.__brushOption.range,i=I5(r,t,n);F(a,function(o){o[0]+=i[0],o[1]+=i[1]}),fx(r,e),aA(r,{isEnd:!1})}function I5(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function px(r,e,t){var n=b5(r,e);return n&&n!==nA?n.clipPath(t,r._transform):De(t)}function Fle(r){var e=Bf(r[0][0],r[1][0]),t=Bf(r[0][1],r[1][1]),n=Nl(r[0][0],r[1][0]),a=Nl(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function Qle(r,e,t){if(!(!r._brushType||Ple(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=vx(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===nA||s.panelId===i.panelId)&&Jg[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function LB(r){var e=r.event;e.preventDefault&&e.preventDefault()}function EB(r,e,t){return r.childOfName("main").contain(e,t)}function L5(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),Lle(r)||a){if(i&&!a){o.brushMode==="single"&&SB(r);var A=De(o);A.brushType=xE(A.brushType,i),A.panelId=i===nA?null:i.panelId,a=r._creatingCover=m5(r,A),r._covers.push(a)}if(a){var l=Jg[xE(r._brushType,i)],u=a.__brushOption;u.range=l.getCreatingRange(px(r,a,r._track)),n&&(w5(r,a),l.updateCommon(r,a)),B5(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&vx(r,e,t)&&SB(r)&&(s={isEnd:n,removeOnClick:!0});return s}function xE(r,e){return r==="auto"?e.defaultBrushType:r}var Ule={mousedown:function(r){if(this._dragging)_E(this,r);else if(!r.target||!r.target.draggable){LB(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=vx(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(Qle(this,r,n),this._dragging){LB(r);var a=L5(this,r,n,!1);a&&aA(this,a)}},mouseup:function(r){_E(this,r)}};function _E(r,e){if(r._dragging){LB(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=L5(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&aA(r,i)}}function Ple(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Jg={lineX:SE(0),lineY:SE(1),rect:{createCover:function(r,e){function t(n){return n}return _5({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=x5(r);return T5(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){S5(r,e,t,n)},updateCommon:TB,contain:EB},polygon:{createCover:function(r,e){var t=new Fe;return t.add(new Wr({name:"main",style:dx(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new an({name:"main",draggable:!0,drift:ze(Dle,r,e),ondragend:ze(aA,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:px(r,e,t)})},updateCommon:TB,contain:EB}};function SE(r){return{createCover:function(e,t){return _5({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=x5(e),n=Bf(t[0][r],t[1][r]),a=Nl(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=b5(e,t);if(o!==nA&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var A=[n,i];r&&A.reverse(),S5(e,t,A,a)},updateCommon:TB,contain:EB}}const gx=Ile;function E5(r){return r=yx(r),function(e){return iO(e,r)}}function M5(r,e){return r=yx(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function D5(r,e,t){var n=yx(r);return function(a,i){return n.contain(i[0],i[1])&&!UN(a,e,t)}}function yx(r){return Ne.create(r)}var kle=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new gx(n.getZr())).on("brush",be(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!Rle(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Fe,this.group.add(this._axisGroup),!!t.get("show")){var s=Hle(t,n),A=s.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,c=t.axis.dim,f=A.getAxisLayout(c),h=ve({strokeContainThreshold:u},f),v=new Di(t,a,h);v.build(),this._axisGroup.add(v.group),this._refreshBrushController(h,l,t,s,u,a),Uf(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var A=a.axis.getExtent(),l=A[1]-A[0],u=Math.min(30,Math.abs(l)*.1),c=Ne.create({x:A[0],y:-o/2,width:l,height:o});c.x-=u,c.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:E5(c),isTargetByCursor:D5(c,s,i),getLinearBrushOtherExtent:M5(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(Ole(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=me(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Nt);function Rle(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Ole(r){var e=r.axis;return me(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Hle(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const Nle=kle;var Vle={type:"axisAreaSelect",event:"axisAreaSelected"};function Gle(r){r.registerAction(Vle,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var zle={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function F5(r){r.registerComponentView(sle),r.registerComponentModel(lle),r.registerCoordinateSystem("parallel",wle),r.registerPreprocessor(tle),r.registerComponentModel(wE),r.registerComponentView(Nle),Ol(r,"parallel",wE,zle),Gle(r)}function $le(r){We(F5),r.registerChartView(WAe),r.registerSeriesModel(jAe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,ele)}var Kle=function(){function r(){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 r}(),Wle=function(r){ce(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Kle},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){Li(this)},e.prototype.downplay=function(){Ei(this)},e}(Ze),Xle=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Fe,t._focusAdjacencyDisabled=!1,t}return e.prototype.init=function(t,n){this._controller=new gA(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this._mainGroup,A=t.layoutInfo,l=A.width,u=A.height,c=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=A.x,s.y=A.y,this._updateViewCoordSys(t,a),PN(t,a,s,this._controller,this._controllerHost,null),o.eachEdge(function(v){var d=new Wle,p=Ve(d);p.dataIndex=v.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),B=v.node1.getModel(),C=B.get("localX"),b=B.get("localY"),_=v.node2.getLayout(),x=v.node2.getModel(),S=x.get("localX"),I=x.get("localY"),L=v.getLayout(),T,M,R,P,E,k,D,U;d.shape.extent=Math.max(1,L.dy),d.shape.orient=h,h==="vertical"?(T=(C!=null?C*l:w.x)+L.sy,M=(b!=null?b*u:w.y)+w.dy,R=(S!=null?S*l:_.x)+L.ty,P=I!=null?I*u:_.y,E=T,k=M*(1-m)+P*m,D=R,U=M*m+P*(1-m)):(T=(C!=null?C*l:w.x)+w.dx,M=(b!=null?b*u:w.y)+L.sy,R=S!=null?S*l:_.x,P=(I!=null?I*u:_.y)+L.ty,E=T*(1-m)+R*m,k=M,D=T*m+R*(1-m),U=P),d.setShape({x1:T,y1:M,x2:R,y2:P,cpx1:E,cpy1:k,cpx2:D,cpy2:U}),d.useStyle(y.getItemStyle()),TE(d.style,h,v);var O=""+g.get("value"),G=fr(g,"edgeLabel");yr(d,G,{labelFetcher:{getFormattedLabel:function(ne,ye,re,W,ee,oe){return t.getFormattedLabel(ne,ye,"edge",W,bn(ee,G.normal&&G.normal.get("formatter"),O),oe)}},labelDataIndex:v.dataIndex,defaultText:O}),d.setTextConfig({position:"inside"});var X=g.getModel("emphasis");cr(d,g,"lineStyle",function(ne){var ye=ne.getItemStyle();return TE(ye,h,v),ye}),s.add(d),f.setItemGraphicEl(v.dataIndex,d);var te=X.get("focus");Qt(d,te==="adjacency"?v.getAdjacentDataIndices():te==="trajectory"?v.getTrajectoryDataIndices():te,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,B=new Xe({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});yr(B,fr(p),{labelFetcher:{getFormattedLabel:function(b,_){return t.getFormattedLabel(b,_,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),B.disableLabelAnimation=!0,B.setStyle("fill",v.getVisual("color")),B.setStyle("decal",v.getVisual("style").decal),cr(B,p),s.add(B),c.setItemGraphicEl(v.dataIndex,B),Ve(B).dataType="node";var C=m.get("focus");Qt(B,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,m.get("blurScope"),m.get("disabled"))}),c.eachItemGraphicEl(function(v,d){var p=c.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Yle(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._updateViewCoordSys=function(t,n){var a=t.layoutInfo,i=a.width,o=a.height,s=t.coordinateSystem=new yA(null,{api:n,ecModel:t.ecModel});s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},e.type="sankey",e}(bt);function TE(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");Ce(n)&&Ce(a)&&(r.fill=new AA(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Yle(r,e,t){var n=new Xe({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Lt(n,{shape:{width:r.width+20}},e,t),n}const Zle=Xle;var jle=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,A=0;A<o.length;A++)o[A].depth!=null&&o[A].depth>=0&&(s[o[A].depth]=new ot(o[A],this,n));var l=cx(i,a,this,!0,u);return l.data;function u(c,f){c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,A=o.value,l=s.source+" -- "+s.target;return nr("nameValue",{name:l,value:A,noValue:i(A)})}else{var u=this.getGraph().getNodeByIndex(t),c=u.getLayout().value,f=this.getDataParams(t,a).data.name;return nr("nameValue",{name:f!=null?f+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:le.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:le.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(Pt);const Jle=jle;function qle(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=hr(t,e).refContainer,o=Ut(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,A=o.height,l=t.getGraph(),u=l.nodes,c=l.edges;tue(u);var f=ft(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),d=t.get("nodeAlign");eue(u,c,n,a,s,A,h,v,d)})}function eue(r,e,t,n,a,i,o,s,A){rue(r,e,t,a,i,s,A),oue(r,e,i,a,n,o,s),due(r,s)}function tue(r){F(r,function(e){var t=bo(e.outEdges,Mp),n=bo(e.inEdges,Mp),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function rue(r,e,t,n,a,i,o){for(var s=[],A=[],l=[],u=[],c=0,f=0;f<e.length;f++)s[f]=1;for(var f=0;f<r.length;f++)A[f]=r[f].inEdges.length,A[f]===0&&l.push(r[f]);for(var h=-1;l.length;){for(var v=0;v<l.length;v++){var d=l[v],p=d.hostGraph.data.getRawDataItem(d.dataIndex),g=p.depth!=null&&p.depth>=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;y<d.outEdges.length;y++){var m=d.outEdges[y],w=e.indexOf(m);s[w]=0;var B=m.node2,C=r.indexOf(B);--A[C]===0&&u.indexOf(B)<0&&u.push(B)}}++c,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var b=h>c-1?h:c-1;o&&o!=="left"&&nue(r,o,i,b);var _=i==="vertical"?(a-t)/b:(n-t)/b;iue(r,_,i)}function Q5(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function nue(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var A=i[s];A.setLayout({skNodeHeight:o},!0);for(var l=0;l<A.inEdges.length;l++){var u=A.inEdges[l];a.indexOf(u.node1)<0&&a.push(u.node1)}}i=a,a=[],++o}F(r,function(c){Q5(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&aue(r,n)}function aue(r,e){F(r,function(t){!Q5(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function iue(r,e,t){F(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function oue(r,e,t,n,a,i,o){var s=sue(r,o);Aue(s,e,t,n,a,o),S0(s,a,t,n,o);for(var A=1;i>0;i--)A*=.99,lue(s,A,o),S0(s,a,t,n,o),vue(s,A,o),S0(s,a,t,n,o)}function sue(r,e){var t=[],n=e==="vertical"?"y":"x",a=g1(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),F(a.keys,function(i){t.push(a.buckets.get(i))}),t}function Aue(r,e,t,n,a,i){var o=1/0;F(r,function(s){var A=s.length,l=0;F(s,function(c){l+=c.getLayout().value});var u=i==="vertical"?(n-(A-1)*a)/l:(t-(A-1)*a)/l;u<o&&(o=u)}),F(r,function(s){F(s,function(A,l){var u=A.getLayout().value*o;i==="vertical"?(A.setLayout({x:l},!0),A.setLayout({dx:u},!0)):(A.setLayout({y:l},!0),A.setLayout({dy:u},!0))})}),F(e,function(s){var A=+s.getValue()*o;s.setLayout({dy:A},!0)})}function S0(r,e,t,n,a){var i=a==="vertical"?"x":"y";F(r,function(o){o.sort(function(d,p){return d.getLayout()[i]-p.getLayout()[i]});for(var s,A,l,u=0,c=o.length,f=a==="vertical"?"dx":"dy",h=0;h<c;h++)A=o[h],l=u-A.getLayout()[i],l>0&&(s=A.getLayout()[i]+l,a==="vertical"?A.setLayout({x:s},!0):A.setLayout({y:s},!0)),u=A.getLayout()[i]+A.getLayout()[f]+e;var v=a==="vertical"?n:t;if(l=u-e-v,l>0){s=A.getLayout()[i]-l,a==="vertical"?A.setLayout({x:s},!0):A.setLayout({y:s},!0),u=s;for(var h=c-2;h>=0;--h)A=o[h],l=A.getLayout()[i]+A.getLayout()[f]+e-u,l>0&&(s=A.getLayout()[i]-l,a==="vertical"?A.setLayout({x:s},!0):A.setLayout({y:s},!0)),u=A.getLayout()[i]}})}function lue(r,e,t){F(r.slice().reverse(),function(n){F(n,function(a){if(a.outEdges.length){var i=bo(a.outEdges,uue,t)/bo(a.outEdges,Mp);if(isNaN(i)){var o=a.outEdges.length;i=o?bo(a.outEdges,cue,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Do(a,t))*e;a.setLayout({x:s},!0)}else{var A=a.getLayout().y+(i-Do(a,t))*e;a.setLayout({y:A},!0)}}})})}function uue(r,e){return Do(r.node2,e)*r.getValue()}function cue(r,e){return Do(r.node2,e)}function fue(r,e){return Do(r.node1,e)*r.getValue()}function hue(r,e){return Do(r.node1,e)}function Do(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Mp(r){return r.getValue()}function bo(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function vue(r,e,t){F(r,function(n){F(n,function(a){if(a.inEdges.length){var i=bo(a.inEdges,fue,t)/bo(a.inEdges,Mp);if(isNaN(i)){var o=a.inEdges.length;i=o?bo(a.inEdges,hue,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-Do(a,t))*e;a.setLayout({x:s},!0)}else{var A=a.getLayout().y+(i-Do(a,t))*e;a.setLayout({y:A},!0)}}})})}function due(r,e){var t=e==="vertical"?"x":"y";F(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),F(r,function(n){var a=0,i=0;F(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),F(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function pue(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;F(n,function(s){var A=s.getLayout().value;A<i&&(i=A),A>o&&(o=A)}),F(n,function(s){var A=new Qr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),l=A.mapValueToVisual(s.getLayout().value),u=s.getModel().get(["itemStyle","color"]);u!=null?(s.setVisual("color",u),s.setVisual("style",{fill:u})):(s.setVisual("color",l),s.setVisual("style",{fill:l}))})}a.length&&F(a,function(s){var A=s.getModel().get("lineStyle");s.setVisual("style",A)})})}function gue(r){r.registerChartView(Zle),r.registerSeriesModel(Jle),r.registerLayout(qle),r.registerVisual(pue),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){var i=a.coordinateSystem,o=Xg(i,e,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}var U5=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),A;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),A=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),A=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],u=e.layout==="horizontal"?0:1,c=this._baseAxisDim=l[u],f=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=e.data;if(p&&A){var g=[];F(p,function(w,B){var C;ge(w)?(C=w.slice(),w.unshift(B)):ge(w.value)?(C=ve({},w),C.value=C.value.slice(),w.value.unshift(B)):C=w,g.push(C)}),e.data=g}var y=this.defaultValueDimensions,m=[{name:c,type:hp(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hp(d),dimsDef:y.slice()}];return Au(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:ze(OO,m,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),P5=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:le.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:le.color.shadow}},animationDuration:800},e}(Pt);ir(P5,U5,!0);const yue=P5;var mue=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var A=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),c=IE(u,i,l,A,!0);i.setItemGraphicEl(l,c),o.add(c)}}).update(function(l,u){var c=s.getItemGraphicEl(u);if(!i.hasValue(l)){o.remove(c);return}var f=i.getItemLayout(l);c?(Jn(c),k5(f,c,i,l)):c=IE(f,i,l,A),o.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=s.getItemGraphicEl(l);u&&o.remove(u)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(bt),wue=function(){function r(){}return r}(),Bue=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new wue},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e}(Ze);function IE(r,e,t,n,a){var i=r.ends,o=new Bue({shape:{points:a?Cue(i,n,r):i}});return k5(r,o,e,t,a),o}function k5(r,e,t,n,a){var i=t.hostModel,o=lA[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),A=s.getModel("emphasis");cr(e,s),Qt(e,A.get("focus"),A.get("blurScope"),A.get("disabled"))}function Cue(r,e,t){return me(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}const bue=mue;var Nc=F;function xue(r){var e=_ue(r);Nc(e,function(t){var n=t.seriesModels;n.length&&(Sue(t),Nc(n,function(a,i){Tue(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function _ue(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=$e(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function Sue(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var A=0;Nc(t,function(v){A=Math.max(A,v.getData().count())});var l=e.getExtent();s=Math.abs(l[1]-l[0])/A}Nc(t,function(v){var d=v.get("boxWidth");ge(d)||(d=[d,d]),o.push([Be(d[0],s)||0,Be(d[1],s)||0])});var u=s*.8-2,c=u/n*.3,f=(u-c*(n-1))/n,h=f/2-u/2;Nc(t,function(v,d){i.push(h),h+=c+f,a.push(Math.min(Math.max(f,o[d][0]),o[d][1]))})}function Tue(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,A=["x","y"],l=a.mapDimension(A[o]),u=a.mapDimensionsAll(A[s]);if(l==null||u.length<5)return;for(var c=0;c<a.count();c++){var f=a.get(l,c),h=m(f,u[2],c),v=m(f,u[0],c),d=m(f,u[1],c),p=m(f,u[3],c),g=m(f,u[4],c),y=[];w(y,d,!1),w(y,p,!0),y.push(v,d,g,p),B(y,v),B(y,g),B(y,h),a.setItemLayout(c,{initBaseline:h[s],ends:y})}function m(C,b,_){var x=a.get(b,_),S=[];S[o]=C,S[s]=x;var I;return isNaN(C)||isNaN(x)?I=[NaN,NaN]:(I=n.dataToPoint(S),I[o]+=e),I}function w(C,b,_){var x=b.slice(),S=b.slice();x[o]+=i,S[o]-=i,_?C.push(x,S):C.push(S,x)}function B(C,b){var _=b.slice(),x=b.slice();_[o]-=i,x[o]+=i,C.push(_,x)}}function Iue(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Yn(r[o].slice()),A=tm(s,.25),l=tm(s,.5),u=tm(s,.75),c=s[0],f=s[s.length-1],h=(a??1.5)*(u-A),v=i?c:Math.max(c,A-h),d=i?f:Math.min(f,u+h),p=e.itemNameFormatter,g=Me(p)?p({value:o}):Ce(p)?p.replace("{value}",o+""):o+"";t.push([g,v,A,l,u,d]);for(var y=0;y<s.length;y++){var m=s[y];if(m<v||m>d){var w=[g,m];n.push(w)}}}return{boxData:t,outliers:n}}var Lue={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==_r){var n="";At(n)}var a=Iue(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Eue(r){r.registerSeriesModel(yue),r.registerChartView(bue),r.registerLayout(xue),r.registerTransform(Lue)}var Mue=["itemStyle","borderColor"],Due=["itemStyle","borderColor0"],Fue=["itemStyle","borderColorDoji"],Que=["itemStyle","color"],Uue=["itemStyle","color0"];function mx(r,e){return e.get(r>0?Que:Uue)}function Bx(r,e){return e.get(r===0?Fue:r>0?Mue:Due)}var Pue={seriesType:"candlestick",plan:nu(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,A=o.getItemStyle();A.fill=mx(s,o),A.stroke=Bx(s,o)||A.fill;var l=a.ensureUniqueItemVisual(i,"style");ve(l,A)}}}}}};const kue=Pue;var Rue=["color","borderColor"],Oue=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),A=t.coordinateSystem,l=A.getArea&&A.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var c=n.getItemLayout(u);if(s&&LE(l,c))return;var f=T0(c,u,!0);Lt(f,{shape:{points:c.ends}},t,u),I0(f,n,u,o),i.add(f),n.setItemGraphicEl(u,f)}}).update(function(u,c){var f=a.getItemGraphicEl(c);if(!n.hasValue(u)){i.remove(f);return}var h=n.getItemLayout(u);if(s&&LE(l,h)){i.remove(f);return}f?(at(f,{shape:{points:h.ends}},t,u),Jn(f)):f=T0(h),I0(f,n,u,o),i.add(f),n.setItemGraphicEl(u,f)}).remove(function(u){var c=a.getItemGraphicEl(u);c&&i.remove(c)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),EE(t,this.group);var n=t.get("clip",!0)?$f(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),A=T0(s);I0(A,a,o,i),A.incremental=!0,this.group.add(A),this._progressiveEls.push(A)}},e.prototype._incrementalRenderLarge=function(t,n){EE(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(bt),Hue=function(){function r(){}return r}(),Nue=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Hue},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ze);function T0(r,e,t){var n=r.ends;return new Nue({shape:{points:t?Vue(n,r):n},z2:100})}function LE(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function I0(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,cr(r,a);var i=e.getItemLayout(t).sign;F(r.states,function(s,A){var l=a.getModel(A),u=mx(i,l),c=Bx(i,l)||u,f=s.style||(s.style={});u&&(f.fill=u),c&&(f.stroke=c)});var o=a.getModel("emphasis");Qt(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Vue(r,e){return me(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var Gue=function(){function r(){}return r}(),L0=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Gue},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(Ze);function EE(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new L0({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new L0({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var A=new L0({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(A),E0(1,o,r),E0(-1,s,r),E0(0,A,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function E0(r,e,t,n){var a=Bx(r,t)||mx(r,t),i=t.getModel("itemStyle").getItemStyle(Rue);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const zue=Oue;var R5=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Pt);ir(R5,U5,!0);const $ue=R5;function Kue(r){!r||!ge(r.series)||F(r.series,function(e){Oe(e)&&e.type==="k"&&(e.type="candlestick")})}var Wue={seriesType:"candlestick",plan:nu(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=Xue(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),A=me(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),l=A[0],u=A[1],c=A[2],f=A[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||A.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(s,g),w=y.get(l,g),B=y.get(u,g),C=y.get(c,g),b=y.get(f,g),_=Math.min(w,B),x=Math.max(w,B),S=E(_,m),I=E(x,m),L=E(C,m),T=E(b,m),M=[];k(M,I,0),k(M,S,1),M.push(U(T),U(I),U(L),U(S));var R=p.getItemModel(g),P=!!R.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:ME(y,g,w,B,u,P),initBaseline:w>B?I[i]:S[i],ends:M,brushRect:D(C,b,m)})}function E(O,G){var X=[];return X[a]=G,X[i]=O,isNaN(G)||isNaN(O)?[NaN,NaN]:e.dataToPoint(X)}function k(O,G,X){var te=G.slice(),ne=G.slice();te[a]=hd(te[a]+n/2,1,!1),ne[a]=hd(ne[a]-n/2,1,!0),X?O.push(te,ne):O.push(ne,te)}function D(O,G,X){var te=E(O,X),ne=E(G,X);return te[a]-=n/2,ne[a]-=n/2,{x:te[0],y:te[1],width:n,height:ne[1]-te[1]}}function U(O){return O[a]=hd(O[a],1),O}}function v(d,p){for(var g=Ga(d.count*4),y=0,m,w=[],B=[],C,b=p.getStore(),_=!!r.get(["itemStyle","borderColorDoji"]);(C=d.next())!=null;){var x=b.get(s,C),S=b.get(l,C),I=b.get(u,C),L=b.get(c,C),T=b.get(f,C);if(isNaN(x)||isNaN(L)||isNaN(T)){g[y++]=NaN,y+=3;continue}g[y++]=ME(b,C,S,I,u,_),w[a]=x,w[i]=L,m=e.dataToPoint(w,null,B),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=T,m=e.dataToPoint(w,null,B),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function ME(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function Xue(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=Be(Le(r.get("barMaxWidth"),a),a),o=Be(Le(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?Be(s,a):Math.max(Math.min(a/2,i),o)}const Yue=Wue;function Zue(r){r.registerChartView(zue),r.registerSeriesModel($ue),r.registerPreprocessor(Kue),r.registerVisual(kue),r.registerLayout(Yue)}function DE(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var jue=function(r){ce(e,r);function e(t,n){var a=r.call(this)||this,i=new Gf(t,n),o=new Fe;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var A=ar(n,-1,-1,2,2,a);A.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-s/i*t.period+t.effectOffset;A.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(l).start(),A.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),o.add(A)}DE(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}DE(a,t)},e.prototype.highlight=function(){Li(this)},e.prototype.downplay=function(){Ei(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),A=t.getItemVisual(n,"symbol"),l=iu(t.getItemVisual(n,"symbolSize")),u=t.getItemVisual(n,"style"),c=u&&u.fill,f=s.getModel("emphasis");o.setScale(l),o.traverse(function(p){p.setStyle("fill",c)});var h=hA(t.getItemVisual(n,"symbolOffset"),l);h&&(o.x=h[0],o.y=h[1]);var v=t.getItemVisual(n,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=n/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=A,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(p){p==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):p==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,Qt(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Fe);const Jue=jue;var que=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new zf(Jue)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=Kf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=_7(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(bt);const ece=que;var tce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Pt);const rce=tce;function nce(r){r.registerChartView(ece),r.registerSeriesModel(rce),r.registerLayout(Kf("effectScatter"))}var ace=function(r){ce(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new lx(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");ge(o)||(o=[o,o]);var A=t.getItemVisual(n,"style"),l=i.get("color")||A&&A.stroke,u=this.childAt(1);this._symbolType!==s&&(this.remove(u),u=ar(s,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.scaleX=o[0],u.scaleY=o[1],u.setColor(l),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,A=n.get("loop"),l=n.get("roundTrip"),u=n.get("constantSpeed"),c=Fr(n.get("delay"),function(h){return h/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),u>0&&(s=this._getLineLength(i)/u*1e3),s!==this._period||A!==this._loop||l!==this._roundTrip){i.stopAnimation();var f=void 0;Me(c)?f=c(a):f=c,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,A,l)}this._period=s,this._loop=A,this._roundTrip=l}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,A=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||A.done(function(){s.remove(t)}),A.start()}},e.prototype._getLineLength=function(t){return ao(t.__p1,t.__cp1)+ao(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],A=s.slice(),l=Cr,u=r1;s[0]=l(n[0],i[0],a[0],o),s[1]=l(n[1],i[1],a[1],o);var c=t.__t<1?u(n[0],i[0],a[0],o):u(a[0],i[0],n[0],1-o),f=t.__t<1?u(n[1],i[1],a[1],o):u(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(f,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=ao(A,s)*1.05,o===1&&(s[0]=A[0]+(s[0]-A[0])/2,s[1]=A[1]+(s[1]-A[1])/2)):t.__lastT===1?t.scaleY=2*ao(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e}(Fe);const O5=ace;var ice=function(r){ce(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Wr({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};at(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,A=a&&a.focus,l=a&&a.blurScope,u=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),u=c.get("disabled"),A=c.get("focus"),l=c.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var f=i.ensureState("emphasis");f.style=s,Qt(this,A,l,u)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e}(Fe);const H5=ice;var oce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new H5(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],A=n[o];i+=ao(s,A),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,A;if(n<this._lastFramePercent){var l=Math.min(s+1,o-1);for(A=l;A>=0&&!(i[A]<=n);A--);A=Math.min(A,o-2)}else{for(A=s;A<o&&!(i[A]>n);A++);A=Math.min(A-1,o-2)}var u=(n-i[A])/(i[A+1]-i[A]),c=a[A],f=a[A+1];t.x=c[0]*(1-u)+u*f[0],t.y=c[1]*(1-u)+u*f[1];var h=t.__t<1?f[0]-c[0]:c[0]-f[0],v=t.__t<1?f[1]-c[1]:c[1]-f[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=A,this._lastFramePercent=n,t.ignore=!1}},e}(O5);const sce=oce;var Ace=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),lce=function(r){ce(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:le.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Ace},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var A=1;A<s;A++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var l=a[o++],u=a[o++],c=a[o++],f=a[o++];if(t.moveTo(l,u),i>0){var h=(l+c)/2-(u-f)*i,v=(u+f)/2-(c-l)*i;t.quadraticCurveTo(h,v,c,f)}else t.lineTo(c,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var A=0,l=0;l<i.length;){var u=i[l++];if(u>0)for(var c=i[l++],f=i[l++],h=1;h<u;h++){var v=i[l++],d=i[l++];if(qi(c,f,v,d,s,t,n))return A}A++}else for(var A=0,l=0;l<i.length;){var c=i[l++],f=i[l++],v=i[l++],d=i[l++];if(o>0){var p=(c+v)/2-(f-d)*o,g=(f+d)/2-(v-c)*o;if(yR(c,f,p,g,v,d,s,t,n))return A}else if(qi(c,f,v,d,s,t,n))return A;A++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,A=-1/0,l=0;l<a.length;){var u=a[l++],c=a[l++];i=Math.min(u,i),s=Math.max(u,s),o=Math.min(c,o),A=Math.max(c,A)}t=this._rect=new Ne(i,o,s,A)}return t},e}(Ze),uce=function(){function r(){this.group=new Fe}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var A=this._create();A.incremental=!0,A.setShape({segs:a}),this._setCommon(A,t),A.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new lce({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Ve(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var A=e.hoverDataIdx;A>0&&(o.dataIndex=A+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const cce=uce;var fce={seriesType:"lines",plan:nu(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,A=a.end-a.start;if(t){for(var l=0,u=a.start;u<a.end;u++)l+=r.getLineCoordsCount(u);s=new Float32Array(A+l*2)}else s=new Float32Array(A*4);for(var c=0,f=[],u=a.start;u<a.end;u++){var h=r.getLineCoords(u,o);t&&(s[c++]=h);for(var v=0;v<h;v++)f=e.dataToPoint(o[v],!1,f),s[c++]=f[0],s[c++]=f[1]}i.setLayout("linesPoints",s)}else for(var u=a.start;u<a.end;u++){var d=i.getItemModel(u),h=r.getLineCoords(u,o),p=[];if(t)for(var g=0;g<h;g++)p.push(e.dataToPoint(o[g]));else{p[0]=e.dataToPoint(o[0]),p[1]=e.dataToPoint(o[1]);var y=d.get(["lineStyle","curveness"]);+y&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*y,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*y])}i.setItemLayout(u,p)}}}}}};const N5=fce;var hce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),A=t.get(["effect","trailLength"]),l=a.getZr(),u=l.painter.getType()==="svg";u||l.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!u&&l.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&A>0&&(u||l.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&$f(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=N5.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,A=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=A?new cce:new ux(o?i?sce:H5:i?O5:lx),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=A),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(bt);const vce=hce;var dce=typeof Uint32Array>"u"?Array:Uint32Array,pce=typeof Float64Array>"u"?Array:Float64Array;function FE(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=me(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),EC([a,t[0],t[1]])}))}var gce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],FE(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(FE(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Wc(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Wc(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),qe(t[0])){for(var a=t.length,i=new dce(a),o=new pce(a),s=0,A=0,l=0,u=0;u<a;){l++;var c=t[u++];i[A++]=s+n,i[A++]=c;for(var f=0;f<c;f++){var h=t[u++],v=t[u++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,A),flatCoords:o,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){var a=new tn(["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],function(i,o,s,A){if(i instanceof Array)return NaN;a.hasItemOption=!0;var l=i.value;if(l!=null)return l instanceof Array?l[A]:l}),a},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var A=o.get("fromName"),l=o.get("toName"),u=[];return A!=null&&u.push(A),l!=null&&u.push(l),nr("nameValue",{name:u.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Pt);const yce=gce;function Bv(r){return r instanceof Array||(r=[r,r]),r}var mce={seriesType:"lines",reset:function(r){var e=Bv(r.get("symbol")),t=Bv(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),A=Bv(s.getShallow("symbol",!0)),l=Bv(s.getShallow("symbolSize",!0));A[0]&&i.setItemVisual(o,"fromSymbol",A[0]),A[1]&&i.setItemVisual(o,"toSymbol",A[1]),l[0]&&i.setItemVisual(o,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(o,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};const wce=mce;function Bce(r){r.registerChartView(vce),r.registerSeriesModel(yce),r.registerLayout(N5),r.registerVisual(wce)}var Cce=256,bce=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ha.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),A=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,f=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var v=0;v<h;++v){var d=e[v],p=d[0],g=d[1],y=d[2],m=a(y);f.globalAlpha=m,f.drawImage(s,p-u,g-u)}if(!c.width||!c.height)return c;for(var w=f.getImageData(0,0,c.width,c.height),B=w.data,C=0,b=B.length,_=this.minOpacity,x=this.maxOpacity,S=x-_;C<b;){var m=B[C+3]/256,I=Math.floor(m*(Cce-1))*4;if(m>0){var L=o(m)?A:l;m>0&&(m=m*S+_),B[C++]=L[I],B[C++]=L[I+1],B[C++]=L[I+2],B[C++]=L[I+3]*m*256}else C+=4}return f.putImageData(w,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ha.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=le.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const xce=bce;function _ce(r,e,t){var n=r[1]-r[0];e=me(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var A=e[s].interval;if(A[0]<=o&&o<=A[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var A=e[s].interval;if(A[0]<=o&&o<=A[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function Sce(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function QE(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Tce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(A){A===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):QE(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(QE(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,A=Eo(s,"cartesian2d"),l=Eo(s,"matrix"),u,c,f,h;if(A){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),w=t.getModel(["select","itemStyle"]).getItemStyle(),B=t.get(["itemStyle","borderRadius"]),C=fr(t),b=t.getModel("emphasis"),_=b.get("focus"),x=b.get("blurScope"),S=b.get("disabled"),I=A||l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],L=a;L<i;L++){var T=void 0,M=g.getItemVisual(L,"style");if(A){var R=g.get(I[0],L),P=g.get(I[1],L);if(isNaN(g.get(I[2],L))||isNaN(R)||isNaN(P)||R<f[0]||R>f[1]||P<h[0]||P>h[1])continue;var E=s.dataToPoint([R,P]);T=new Xe({shape:{x:E[0]-u/2,y:E[1]-c/2,width:u,height:c},style:M})}else if(l){var k=s.dataToLayout([g.get(I[0],L),g.get(I[1],L)]).rect;if(zr(k.x))continue;T=new Xe({z2:1,shape:k,style:M})}else{if(isNaN(g.get(I[1],L)))continue;var D=s.dataToLayout([g.get(I[0],L)]),k=D.contentRect||D.rect;if(zr(k.x)||zr(k.y))continue;T=new Xe({z2:1,shape:k,style:M})}if(g.hasItemOption){var U=g.getItemModel(L),O=U.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=U.getModel(["blur","itemStyle"]).getItemStyle(),w=U.getModel(["select","itemStyle"]).getItemStyle(),B=U.get(["itemStyle","borderRadius"]),_=O.get("focus"),x=O.get("blurScope"),S=O.get("disabled"),C=fr(U)}T.shape.r=B;var G=t.getRawValue(L),X="-";G&&G[2]!=null&&(X=G[2]+""),yr(T,C,{labelFetcher:t,labelDataIndex:L,defaultOpacity:M.opacity,defaultText:X}),T.ensureState("emphasis").style=y,T.ensureState("blur").style=m,T.ensureState("select").style=w,Qt(T,_,x,S),T.incremental=o,o&&(T.states.emphasis.hoverLayer=!0),p.add(T),g.setItemGraphicEl(L,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,A=n.getData(),l=this._hmLayer||this._hmLayer||new xce;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=t.getViewRect().clone(),c=t.getRoamTransform();u.applyTransform(c);var f=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-f,g=d-h,y=[A.mapDimension("lng"),A.mapDimension("lat"),A.mapDimension("value")],m=A.mapArray(y,function(b,_,x){var S=t.dataToPoint([b,_]);return S[0]-=f,S[1]-=h,S.push(x),S}),w=a.getExtent(),B=a.type==="visualMap.continuous"?Sce(w,a.option.range):_ce(w,a.getPieceList(),a.option.selected);l.update(m,p,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},B);var C=new Ur({style:{width:p,height:g,x:f,y:h,image:l.canvas},silent:!0});this.group.add(C)},e.type="heatmap",e}(bt);const Ice=Tce;var Lce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return ki(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Rf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:le.color.primary}}},e}(Pt);const Ece=Lce;function Mce(r){r.registerChartView(Ice),r.registerSeriesModel(Ece)}var Dce=["itemStyle","borderWidth"],UE=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],M0=new Po,Fce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,A=t.coordinateSystem,l=A.getBaseAxis(),u=l.isHorizontal(),c=A.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:A,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:UE[+u],categoryDim:UE[1-+u]};o.diff(s).add(function(v){if(o.hasValue(v)){var d=kE(o,v),p=PE(o,v,d,f),g=RE(o,f,p);o.setItemGraphicEl(v,g),i.add(g),HE(g,f,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){i.remove(p);return}var g=kE(o,v),y=PE(o,v,g,f),m=W5(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(v,null),p=null),p?Hce(p,f,y):p=RE(o,f,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),HE(p,f,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&OE(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?$f(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){OE(i,Ve(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(bt);function PE(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",A=t.get("symbolRotate"),l=(A||0)*Math.PI/180||0,u=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Qce(t,i,a,n,f),Uce(r,e,a,i,o,f.boundingLength,f.pxSign,u,n,f),Pce(t,f.symbolScale,l,n,f);var h=f.symbolSize,v=hA(t.get("symbolOffset"),h);return kce(t,h,a,i,o,v,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,n,f),f}function Qce(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),A=s.toGlobalCoord(s.dataToCoord(0)),l=1-+(t[i.wh]<=0),u;if(ge(o)){var c=[D0(s,o[0])-A,D0(s,o[1])-A];c[1]<c[0]&&c.reverse(),u=c[l]}else o!=null?u=D0(s,o)-A:e?u=n.coordSysExtent[i.index][l]-A:u=t[i.wh];a.boundingLength=u,e&&(a.repeatCutLength=t[i.wh]);var f=i.xy==="x",h=s.inverse;a.pxSign=f&&!h||!f&&h?u>=0?1:-1:u>0?1:-1}function D0(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Uce(r,e,t,n,a,i,o,s,A,l){var u=A.valueDim,c=A.categoryDim,f=Math.abs(t[c.wh]),h=r.getItemVisual(e,"symbolSize"),v;ge(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[c.index]=Be(v[c.index],f),v[u.index]=Be(v[u.index],n?f:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/s,v[1]/s];d[u.index]*=(A.isHorizontal?-1:1)*o}function Pce(r,e,t,n,a){var i=r.get(Dce)||0;i&&(M0.attr({scaleX:e[0],scaleY:e[1],rotation:t}),M0.updateTransform(),i/=M0.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function kce(r,e,t,n,a,i,o,s,A,l,u,c){var f=u.categoryDim,h=u.valueDim,v=c.pxSign,d=Math.max(e[h.index]+s,0),p=d;if(n){var g=Math.abs(A),y=Fr(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=Be(y,e[h.index]),B=Math.max(d+w*2,0),C=m?0:w*2,b=rR(n),_=b?n:NE((g+C)/B),x=g-_*d;w=x/2/(m?_:Math.max(_-1,1)),B=d+w*2,C=m?0:w*2,!b&&n!=="fixed"&&(_=l?NE((Math.abs(l)+C)/B):0),p=_*B-C,c.repeatTimes=_,c.symbolMargin=w}var S=v*(p/2),I=c.pathPosition=[];I[f.index]=t[f.wh]/2,I[h.index]=o==="start"?S:o==="end"?A-S:A/2,i&&(I[0]+=i[0],I[1]+=i[1]);var L=c.bundlePosition=[];L[f.index]=t[f.xy],L[h.index]=t[h.xy];var T=c.barRectShape=ve({},t);T[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(I[h.index]+S)),T[f.wh]=t[f.wh];var M=c.clipShape={};M[f.xy]=-t[f.xy],M[f.wh]=u.ecSize[f.wh],M[h.xy]=0,M[h.wh]=t[h.wh]}function V5(r){var e=r.symbolPatternSize,t=ar(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function G5(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,A=e.valueDim,l=t.repeatTimes||0,u=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(Cx(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u<l?xl(d,null,v(u),t,n):xl(d,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(d)}),u++});u<l;u++){var f=V5(t);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,a.add(f);var h=v(u);xl(f,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,n)}function v(d){var p=s.slice(),g=t.pxSign,y=d;return(t.symbolRepeatDirection==="start"?g>0:g<0)&&(y=l-1-d),p[A.index]=c*(y-l/2+.5)+s[A.index],{x:p[0],y:p[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function z5(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?xl(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=V5(t),a.add(i),xl(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function $5(r,e,t){var n=ve({},e.barRectShape),a=r.__pictorialBarRect;a?xl(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Xe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function K5(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=ve({},t.clipShape),o=e.valueDim,s=t.animationModel,A=t.dataIndex;if(a)at(a,{shape:i},s,A);else{i[o.wh]=0,a=new Xe({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[o.wh]=t.clipShape[o.wh],lA[n?"updateProps":"initProps"](a,{shape:l},s,A)}}}function kE(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=Rce,t.isAnimationEnabled=Oce,t}function Rce(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Oce(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function RE(r,e,t,n){var a=new Fe,i=new Fe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?G5(a,e,t):z5(a,e,t),$5(a,t,n),K5(a,e,t,n),a.__pictorialShapeStr=W5(r,t),a.__pictorialSymbolMeta=t,a}function Hce(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;at(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?G5(r,e,t,!0):z5(r,e,t,!0),$5(r,t,!0),K5(r,e,t,!0)}function OE(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Cx(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),F(i,function(o){To(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function W5(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Cx(r,e,t){F(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function xl(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&lA[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function HE(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),A=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),c=i.get("blurScope"),f=i.get("scale");Cx(r,function(d){if(d instanceof Ur){var p=d.style;d.useStyle(ve({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,f&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=A,l&&(d.cursor=l),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,yr(v,fr(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Rl(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Qt(r,u,c,i.get("disabled"))}function NE(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const Nce=Fce;var Vce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ro(Cp.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:le.color.primary}}}),e}(Cp);const Gce=Vce;function zce(r){r.registerChartView(Nce),r.registerSeriesModel(Gce),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ze(A4,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,l4("pictorialBar"))}var $ce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,A=t.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;s.x=0,s.y=u.y+c[0];function f(p){return p.name}var h=new Mi(this._layersSeries||[],A,f,f),v=[];h.add(be(d,this,"add")).update(be(d,this,"update")).remove(be(d,this,"remove")).execute();function d(p,g,y){var m=o._layers;if(p==="remove"){s.remove(m[g]);return}for(var w=[],B=[],C,b=A[g].indices,_=0;_<b.length;_++){var x=i.getItemLayout(b[_]),S=x.x,I=x.y0,L=x.y;w.push(S,I),B.push(S,I+L),C=i.getItemVisual(b[_],"style")}var T,M=i.getItemLayout(b[0]),R=t.getModel("label"),P=R.get("margin"),E=t.getModel("emphasis");if(p==="add"){var k=v[g]=new Fe;T=new tN({shape:{points:w,stackedOnPoints:B,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(T),s.add(k),t.isAnimationEnabled()&&T.setClipPath(Kce(T.getBoundingRect(),t,function(){T.removeClipPath()}))}else{var k=m[y];T=k.childAt(0),s.add(k),v[g]=k,at(T,{shape:{points:w,stackedOnPoints:B}},t),Jn(T)}yr(T,fr(t),{labelDataIndex:b[_-1],defaultText:i.getName(b[_-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),T.setTextConfig({position:null,local:!0});var D=T.getTextContent();D&&(D.x=M.x-P,D.y=M.y0+M.y/2),T.useStyle(C),i.setItemGraphicEl(g,T),cr(T,t),Qt(T,E.get("focus"),E.get("blurScope"),E.get("disabled"))}this._layersSeries=A,this._layers=v},e.type="themeRiver",e}(bt);function Kce(r,e,t){var n=new Xe({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Lt(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}const Wce=$ce;var F0=2,Xce=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new lu(be(this.getData,this),be(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=g1(t,function(f){return a.hasOwnProperty(f[0]+"")||(a[f[0]+""]=-1),f[2]}),o=[];i.buckets.each(function(f,h){o.push({name:h,dataList:f})});for(var s=o.length,A=0;A<s;++A){for(var l=o[A].name,u=0;u<o[A].dataList.length;++u){var c=o[A].dataList[u][0]+"";a[c]=A}for(var c in a)a.hasOwnProperty(c)&&a[c]!==A&&(a[c]=A,t[n]=[c,0,l],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",zt).models[0],i=a.get("type"),o=ft(t.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),A=[],l=this.nameMap=Ie(),u=0,c=0;c<s.length;++c)A.push(s[c][F0]),l.get(s[c][F0])||(l.set(s[c][F0],u),u++);var f=Nf(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:hp(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new tn(f,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=g1(a,function(l){return t.get("name",l)}),A=[];return s.buckets.each(function(l,u){l.sort(function(c,f){return t.get(o,c)-t.get(o,f)}),A.push({name:u,indices:l})}),A},e.prototype.getAxisTooltipData=function(t,n,a){ge(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],A=o.length,l,u=0;u<A;++u){for(var c=Number.MAX_VALUE,f=-1,h=o[u].indices.length,v=0;v<h;++v){var d=i.get(t[0],o[u].indices[v]),p=Math.abs(d-n);p<=c&&(l=d,c=p,f=o[u].indices[v])}s.push(f)}return{dataIndices:s,nestestValue:l}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return nr("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Pt);const Yce=Xce;function Zce(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),A=a.getAxis();if(i.boundaryGap=s,A.orient==="horizontal"){s[0]=Be(s[0],o.height),s[1]=Be(s[1],o.height);var l=o.height-s[0]-s[1];VE(n,t,l)}else{s[0]=Be(s[0],o.width),s[1]=Be(s[1],o.width);var u=o.width-s[0]-s[1];VE(n,t,u)}n.setLayout("layoutInfo",i)})}function VE(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=me(a,function(p){return me(p.indices,function(g){var y=n.dataToPoint(r.get(i,g));return y[1]=r.get(o,g),y})}),A=jce(s),l=A.y0,u=t/A.max,c=a.length,f=a[0].indices.length,h,v=0;v<f;++v){h=l[v]*u,r.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*u});for(var d=1;d<c;++d)h+=s[d-1][v][1]*u,r.setItemLayout(a[d].indices[v],{layerIndex:d,x:s[d][v][0],y0:h,y:s[d][v][1]*u})}}function jce(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,A=0;A<e;++A)s+=r[A][o][1];s>i&&(i=s),n.push(s)}for(var l=0;l<t;++l)a[l]=(i-n[l])/2;i=0;for(var u=0;u<t;++u){var c=n[u]+a[u];c>i&&(i=c)}return{y0:a,max:i}}function Jce(r){r.registerChartView(Wce),r.registerSeriesModel(Yce),r.registerLayout(Zce),r.registerProcessor(su("themeRiver"))}var qce=2,efe=4,tfe=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=qce,o.textConfig={inside:!0},Ve(o).seriesIndex=n.seriesIndex;var s=new nt({z2:efe,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Ve(s).dataIndex=n.dataIndex;var A=n.getModel(),l=A.getModel("emphasis"),u=n.getLayout(),c=ve({},u);c.label=null;var f=n.getVisual("style");f.lineJoin="bevel";var h=n.getVisual("decal");h&&(f.decal=Ul(h,o));var v=$a(A.getModel("itemStyle"),c,!0);ve(c,v),F(rn,function(y){var m=s.ensureState(y),w=A.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var B=$a(w,c);B&&(m.shape=B)}),t?(s.setShape(c),s.shape.r=u.r0,Lt(s,{shape:{r:u.r}},a,n.dataIndex)):(at(s,{shape:c},a),Jn(s)),s.useStyle(f),this._updateLabel(a);var d=A.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="relative"?Wc(n.getAncestorsIndices(),n.getDescendantIndices()):p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;Qt(this,g,l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,A=(o.startAngle+o.endAngle)/2,l=Math.cos(A),u=Math.sin(A),c=this,f=c.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(s)<v);f.ignore=!d,F(ef,function(g){var y=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),m=g==="normal",w=m?f:f.ensureState(g),B=t.getFormattedLabel(h,g);m&&(B=B||n.node.name),w.style=Ct(y,{},null,g!=="normal",!0),B&&(w.style.text=B);var C=y.get("show");C!=null&&!m&&(w.ignore=!C);var b=p(y,"position"),_=m?c:c.states[g],x=_.style.fill;_.textConfig={outsideFill:y.get("color")==="inherit"?x:null,inside:b!=="outside"};var S,I=p(y,"distance")||0,L=p(y,"align"),T=p(y,"rotate"),M=Math.PI*.5,R=Math.PI*1.5,P=Bn(T==="tangential"?Math.PI/2-A:A),E=P>M&&!jc(P-M)&&P<R;b==="outside"?(S=o.r+I,L=E?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?S=0:S=(o.r+o.r0)/2,L="center"):L==="left"?(S=o.r0+I,L=E?"right":"left"):L==="right"&&(S=o.r-I,L=E?"left":"right"),w.style.align=L,w.style.verticalAlign=p(y,"verticalAlign")||"middle",w.x=S*l+o.cx,w.y=S*u+o.cy;var k=0;T==="radial"?k=Bn(-A)+(E?Math.PI:0):T==="tangential"?k=Bn(Math.PI/2-A)+(E?Math.PI:0):qe(T)&&(k=T*Math.PI/180),w.rotation=Bn(k)});function p(g,y){var m=g.get(y);return m??i.get(y)}f.dirtyStyle()},e}(nn);const GE=tfe;var MB="sunburstRootToNode",zE="sunburstHighlight",rfe="sunburstUnhighlight";function nfe(r){r.registerAction({type:MB,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=gf(e,[MB],a);if(o){var s=a.getViewRoot();s&&(e.direction=nx(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:zE,update:"none"},function(e,t,n){e=ve({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=gf(e,[zE],i);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(ve(e,{type:"highlight"}))}),r.registerAction({type:rfe,update:"updateView"},function(e,t,n){e=ve({},e),n.dispatchAction(ve(e,{type:"downplay"}))})}var afe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),A=s.tree.root,l=t.getViewRoot(),u=this.group,c=t.get("renderLabelForZeroData"),f=[];l.eachNode(function(y){f.push(y)});var h=this._oldChildren||[];v(f,h),g(A,l),this._initEvents(),this._oldChildren=f;function v(y,m){if(y.length===0&&m.length===0)return;new Mi(m,y,w,w).add(B).update(B).remove(ze(B,null)).execute();function w(C){return C.getId()}function B(C,b){var _=C==null?null:y[C],x=b==null?null:m[b];d(_,x)}}function d(y,m){if(!c&&y&&!y.getValue()&&(y=null),y!==A&&m!==A){if(m&&m.piece)y?(m.piece.updateData(!1,y,t,n,a),s.setItemGraphicEl(y.dataIndex,m.piece)):p(m);else if(y){var w=new GE(y,t,n,a);u.add(w),s.setItemGraphicEl(y.dataIndex,w)}}}function p(y){y&&y.piece&&(u.remove(y.piece),y.piece=null)}function g(y,m){m.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,n,a):(o.virtualPiece=new GE(y,t,n,a),u.add(o.virtualPiece)),m.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(m.parentNode)})):o.virtualPiece&&(u.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var A=o.getModel(),l=A.get("link");if(l){var u=A.get("target",!0)||"_blank";ip(l,u)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:MB,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,A=Math.sqrt(o*o+s*s);return A<=i.r&&A>=i.r0}},e.type="sunburst",e}(bt);const ife=afe;var ofe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};X5(a);var i=this._levelModels=me(t.levels||[],function(A){return new ot(A,this,n)},this),o=rx.createTree(a,this,s);function s(A){A.wrapMethod("getItemModel",function(l,u){var c=o.getNodeByDataIndex(u),f=i[c.depth];return f&&(l.parentModel=f),l})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Zg(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){jN(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Pt);function X5(r){var e=0;F(r.children,function(n){X5(n);var a=n.value;ge(a)&&(a=a[0]),e+=a});var t=r.value;ge(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ge(r.value)?r.value[0]=t:r.value=t}const sfe=ofe;var $E=Math.PI/180;function Afe(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");ge(i)||(i=[0,i]),ge(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),A=Math.min(o,s),l=Be(a[0],o),u=Be(a[1],s),c=Be(i[0],A/2),f=Be(i[1],A/2),h=-n.get("startAngle")*$E,v=n.get("minAngle")*$E,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&Y5(p,y);var m=0;F(p.children,function(P){!isNaN(P.getValue())&&m++});var w=p.getValue(),B=Math.PI/(w||m)*2,C=p.depth>0,b=p.height-(C?-1:1),_=(f-c)/(b||1),x=n.get("clockwise"),S=n.get("stillShowZeroSum"),I=x?1:-1,L=function(P,E){if(P){var k=E;if(P!==d){var D=P.getValue(),U=w===0&&S?B:D*B;U<v&&(U=v),k=E+I*U;var O=P.depth-g-(C?-1:1),G=c+_*O,X=c+_*(O+1),te=n.getLevelModel(P);if(te){var ne=te.get("r0",!0),ye=te.get("r",!0),re=te.get("radius",!0);re!=null&&(ne=re[0],ye=re[1]),ne!=null&&(G=Be(ne,A/2)),ye!=null&&(X=Be(ye,A/2))}P.setLayout({angle:U,startAngle:E,endAngle:k,clockwise:x,cx:l,cy:u,r0:G,r:X})}if(P.children&&P.children.length){var W=0;F(P.children,function(ee){W+=L(ee,E+W)})}return k-E}};if(C){var T=c,M=c+_,R=Math.PI*2;d.setLayout({angle:R,startAngle:h,endAngle:h+R,clockwise:x,cx:l,cy:u,r0:T,r:M})}L(p,h)})}function Y5(r,e){var t=r.children||[];r.children=lfe(t,e),t.length&&F(r.children,function(n){Y5(n,e)})}function lfe(r,e){if(Me(e)){var t=me(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),me(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function ufe(r){var e={};function t(n,a,i){if(n.depth===0)return le.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Ce(s)&&(s=i1(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),A=s.getModel("itemStyle").getItemStyle();A.fill||(A.fill=t(o,n,i.root.height));var l=a.ensureUniqueItemVisual(o.dataIndex,"style");ve(l,A)})})}function cfe(r){r.registerChartView(ife),r.registerSeriesModel(sfe),r.registerLayout(ze(Afe,"sunburst")),r.registerProcessor(ze(su,"sunburst")),r.registerVisual(ufe),nfe(r)}var KE={color:"fill",borderColor:"stroke"},ffe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ci=Ye(),hfe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return ki(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=Ci(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Pt);const vfe=hfe;function dfe(r,e){return e=e||[0,0],me(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function pfe(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:be(dfe,r)}}}function gfe(r,e){return e=e||[0,0],me([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function yfe(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:be(gfe,r)}}}function mfe(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function wfe(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:be(mfe,r)}}}function Bfe(r,e){return e=e||[0,0],me(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,A=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(A=A*Math.PI/180),A},this)}function Cfe(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:be(Bfe,r)}}}function bfe(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function xfe(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,n){return r.dataToPoint(t,n)},layout:function(t,n){return r.dataToLayout(t,n)}}}}function Z5(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||Se(r,"text")))}function j5(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},Se(n,"text")&&(o.text=n.text),Se(n,"rich")&&(o.rich=n.rich),Se(n,"textFill")&&(o.fill=n.textFill),Se(n,"textStroke")&&(o.stroke=n.textStroke),Se(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Se(n,"fontSize")&&(o.fontSize=n.fontSize),Se(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Se(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Se(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Se(n,"textPosition")&&(a.position=n.textPosition),Se(n,"textOffset")&&(a.offset=n.textOffset),Se(n,"textRotation")&&(a.rotation=n.textRotation),Se(n,"textDistance")&&(a.distance=n.textDistance)}return WE(o,r),F(o.rich,function(A){WE(A,A)}),{textConfig:a,textContent:i}}function WE(r,e){e&&(e.font=e.textFont||e.font,Se(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Se(e,"textAlign")&&(r.align=e.textAlign),Se(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Se(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Se(e,"textWidth")&&(r.width=e.textWidth),Se(e,"textHeight")&&(r.height=e.textHeight),Se(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Se(e,"textPadding")&&(r.padding=e.textPadding),Se(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Se(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Se(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Se(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Se(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Se(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Se(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function XE(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||le.color.neutral99;YE(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||le.color.neutral00,!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||le.color.neutral00),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,F(e.rich,function(s){YE(s,s)}),n}function YE(r,e){e&&(Se(e,"fill")&&(r.textFill=e.fill),Se(e,"stroke")&&(r.textStroke=e.fill),Se(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Se(e,"font")&&(r.font=e.font),Se(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Se(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Se(e,"fontSize")&&(r.fontSize=e.fontSize),Se(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Se(e,"align")&&(r.textAlign=e.align),Se(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Se(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Se(e,"width")&&(r.textWidth=e.width),Se(e,"height")&&(r.textHeight=e.height),Se(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Se(e,"padding")&&(r.textPadding=e.padding),Se(e,"borderColor")&&(r.textBorderColor=e.borderColor),Se(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Se(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Se(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Se(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Se(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Se(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Se(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Se(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Se(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Se(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var J5={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ZE=je(J5);Za(Ja,function(r,e){return r[e]=1,r},{});Ja.join(", ");var Dp=["","style","shape","extra"],Vl=Ye();function bx(r,e,t,n,a){var i=r+"Animation",o=ql(r,n,a)||{},s=Vl(e).userDuring;return o.duration>0&&(o.during=s?be(Lfe,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),ve(o,t[i]),o}function Bd(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),A=Vl(r),l=e.style;A.userDuring=e.during;var u={},c={};if(Mfe(r,e,c),r.type==="compound")for(var f=r.shape.paths,h=e.shape.paths,v=0;v<h.length;v++){var d=h[v];Q0("shape",d,f[v])}else Q0("shape",e,c),Q0("extra",e,c);if(!i&&s&&(Efe(r,e,u),jE("shape",r,e,u),jE("extra",r,e,u),Dfe(r,e,l,u)),c.style=l,_fe(r,c,o),Tfe(r,e),s)if(i){var p={};F(Dp,function(y){var m=y?e[y]:e;m&&m.enterFrom&&(y&&(p[y]=p[y]||{}),ve(y?p[y]:p,m.enterFrom))});var g=bx("enter",r,e,t,a);g.duration>0&&r.animateFrom(p,g)}else Sfe(r,e,a||0,t,u);q5(r,e),l?r.dirty():r.markRedraw()}function q5(r,e){for(var t=Vl(r).leaveToProps,n=0;n<Dp.length;n++){var a=Dp[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=Vl(r).leaveToProps={}),a&&(t[a]=t[a]||{}),ve(a?t[a]:t,i.leaveTo))}}function qg(r,e,t,n){if(r){var a=r.parent,i=Vl(r).leaveToProps;if(i){var o=bx("update",r,e,t,0);o.done=function(){a&&a.remove(r),n&&n()},r.animateTo(i,o)}else a&&a.remove(r),n&&n()}}function Xs(r){return r==="all"}function _fe(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function Sfe(r,e,t,n,a){if(a){var i=bx("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function Tfe(r,e){Se(e,"silent")&&(r.silent=e.silent),Se(e,"ignore")&&(r.ignore=e.ignore),r instanceof jn&&Se(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ze&&Se(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Qa={},Ife={setTransform:function(r,e){return Qa.el[r]=e,this},getTransform:function(r){return Qa.el[r]},setShape:function(r,e){var t=Qa.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Qa.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Qa.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Qa.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Qa.el.extra||(Qa.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Qa.el.extra;if(e)return e[r]}};function Lfe(){var r=this,e=r.el;if(e){var t=Vl(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}Qa.el=e,n(Ife)}}function jE(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,A=a.transition;if(A)if(!o&&(o=n[r]={}),Xs(A))ve(o,i);else for(var l=gt(A),u=0;u<l.length;u++){var c=l[u],f=i[c];o[c]=f}else if(Xs(s)||$e(s,r)>=0){!o&&(o=n[r]={});for(var h=je(i),u=0;u<h.length;u++){var c=h[u],f=i[c];Ffe(a[c],f)&&(o[c]=f)}}}}}function Q0(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=je(n),o=0;o<i.length;o++){var s=i[o];a[s]=Dc(n[s])}}function Efe(r,e,t){for(var n=e.transition,a=Xs(n)?Ja:gt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function Mfe(r,e,t){for(var n=0;n<ZE.length;n++){var a=ZE[n],i=J5[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<Ja.length;n++){var s=Ja[n];e[s]!=null&&(t[s]=e[s])}}function Dfe(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!Xs(o)){var A=gt(o);!i&&(i=n.style={});for(var l=0;l<A.length;l++){var u=A[l],c=a[u];i[u]=c}}else if(r.getAnimationStyleProps&&(Xs(s)||Xs(o)||$e(s,"style")>=0)){var f=r.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=n.style={});for(var v=je(t),l=0;l<v.length;l++){var u=v[l];if(h[u]){var c=a[u];i[u]=c}}}}}}}function Ffe(r,e){return $r(r)?r!==e:r!=null&&isFinite(r)}var e3=Ye(),Qfe=["percent","easing","shape","style","extra"];function t3(r){r.stopAnimation("keyframe"),r.attr(e3(r))}function Fp(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(ge(e)){F(e,function(s){Fp(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=ql("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=e3(r);F(Dp,function(s){if(!(s&&!r[s])){var A;n.sort(function(l,u){return l.percent-u.percent}),F(n,function(l){var u=r.animators,c=s?l[s]:l;if(c){var f=je(c);if(s||(f=ft(f,function(d){return $e(Qfe,d)<0})),!!f.length){A||(A=r.animate(s,e.loop,!0),A.scope="keyframe");for(var h=0;h<u.length;h++)u[h]!==A&&u[h].targetName===A.targetName&&u[h].stopTracks(f);s&&(o[s]=o[s]||{});var v=s?o[s]:o;F(f,function(d){v[d]=((s?r[s]:r)||{})[d]}),A.whenWithKeys(a*l.percent,c,f,l.easing)}}}),A&&A.delay(e.delay||0).duration(a).start(e.easing)}})}}}var bi="emphasis",co="normal",xx="blur",_x="select",Fo=[co,bi,xx,_x],U0={normal:["itemStyle"],emphasis:[bi,"itemStyle"],blur:[xx,"itemStyle"],select:[_x,"itemStyle"]},P0={normal:["label"],emphasis:[bi,"label"],blur:[xx,"label"],select:[_x,"label"]},Ufe=["x","y"],Pfe="e\0\0",Qn={normal:{},emphasis:{},blur:{},select:{}},kfe={cartesian2d:pfe,geo:yfe,single:wfe,polar:Cfe,calendar:bfe,matrix:xfe};function DB(r){return r instanceof Ze}function FB(r){return r instanceof jn}function Rfe(r,e){e.copyTransform(r),FB(e)&&FB(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,DB(e)&&DB(r)&&e.setShape(r.shape))}var Ofe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),A=this.group,l=JE(t,s,n,a);o||A.removeAll(),s.diff(o).add(function(c){k0(a,null,c,l(c,i),t,A,s)}).remove(function(c){var f=o.getItemGraphicEl(c);f&&qg(f,Ci(f).option,t)}).update(function(c,f){var h=o.getItemGraphicEl(f);k0(a,h,c,l(c,i),t,A,s)}).execute();var u=t.get("clip",!0)?$f(t.coordinateSystem,!1,t):null;u?A.setClipPath(u):A.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),A=JE(n,s,a,i),l=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var f=k0(null,null,c,A(c,o),n,this.group,s);f&&(f.traverse(u),l.push(f))}},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(bt);const Hfe=Ofe;function Sx(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=a3(n);t=rf(i,null,a,n.layout||"center"),Ci(t).customPathData=i}else if(e==="image")t=new Ur({}),Ci(t).customImagePath=r.style.image;else if(e==="text")t=new nt({});else if(e==="group")t=new Fe;else if(e==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";At(o)}var s=me(n.paths,function(u){if(u.type==="path")return rf(u.shape.pathData,u,null);var c=rp(u.type);if(!c){var f="";At(f)}return new c});t=new Dg({shape:{paths:s}})}else{var A=rp(e);if(!A){var o="";At(o)}t=new A}return Ci(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Tx(r,e,t,n,a,i,o){t3(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=Ufe);var A=n&&n.style;if(A){if(e.type==="text"){var l=A;Se(l,"textFill")&&(l.fill=l.textFill),Se(l,"textStroke")&&(l.stroke=l.textStroke)}var u=void 0,c=DB(e)?A.decal:null;r&&c&&(c.dirty=!0,u=Ul(c,r)),A.__decalPattern=u}if(FB(e)&&A){var u=A.__decalPattern;u&&(A.decal=u)}Bd(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),Fp(e,n.keyframeAnimation,i)}function r3(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var A=i.getState(r);A&&(A.style=null)}else s.style=n||null;o&&(s.textConfig=o),qs(i)}}function Nfe(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Fo.length;s++)Vfe(n,e,Fo[s])}}function Vfe(r,e,t){var n=t===co,a=n?e:Qp(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function JE(r,e,t,n){var a=r.get("renderItem");if(typeof a=="string"){var i=aee(a);i&&(a=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):kfe[o.type](o));for(var A=Re({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:B,style:b,ordinalRawValue:C,styleEmphasis:_,visual:I,barLayout:L,currentSeriesIndices:T,font:M},s.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:Gfe(r.getData()),itemPayload:r.get("itemPayload")||{}},u,c,f={},h={},v={},d={},p=0;p<Fo.length;p++){var g=Fo[p];v[g]=r.getModel(U0[g]),d[g]=r.getModel(P0[g])}function y(R){return R===u?c||(c=e.getItemModel(R)):e.getItemModel(R)}function m(R,P){return e.hasItemOption?R===u?f[P]||(f[P]=y(R).getModel(U0[P])):y(R).getModel(U0[P]):v[P]}function w(R,P){return e.hasItemOption?R===u?h[P]||(h[P]=y(R).getModel(P0[P])):y(R).getModel(P0[P]):d[P]}return function(R,P){return u=R,c=null,f={},h={},a&&a(Re({dataIndexInside:R,dataIndex:e.getRawIndex(R),actionType:P?P.type:null},l),A)};function B(R,P){return P==null&&(P=u),e.getStore().get(e.getDimensionIndex(R||0),P)}function C(R,P){P==null&&(P=u),R=R||0;var E=e.getDimensionInfo(R);if(!E){var k=e.getDimensionIndex(R);return k>=0?e.getStore().get(k,P):void 0}var D=e.get(E.name,P),U=E&&E.ordinalMeta;return U?U.categories[D]:D}function b(R,P){P==null&&(P=u);var E=e.getItemVisual(P,"style"),k=E&&E.fill,D=E&&E.opacity,U=m(P,co).getItemStyle();k!=null&&(U.fill=k),D!=null&&(U.opacity=D);var O={inheritColor:Ce(k)?k:le.color.neutral99},G=w(P,co),X=Ct(G,null,O,!1,!0);X.text=G.getShallow("show")?Le(r.getFormattedLabel(P,co),Rl(e,P)):null;var te=np(G,O,!1);return S(R,U),U=XE(U,X,te),R&&x(U,R),U.legacy=!0,U}function _(R,P){P==null&&(P=u);var E=m(P,bi).getItemStyle(),k=w(P,bi),D=Ct(k,null,null,!0,!0);D.text=k.getShallow("show")?bn(r.getFormattedLabel(P,bi),r.getFormattedLabel(P,co),Rl(e,P)):null;var U=np(k,null,!0);return S(R,E),E=XE(E,D,U),R&&x(E,R),E.legacy=!0,E}function x(R,P){for(var E in P)Se(P,E)&&(R[E]=P[E])}function S(R,P){R&&(R.textFill&&(P.textFill=R.textFill),R.textPosition&&(P.textPosition=R.textPosition))}function I(R,P){if(P==null&&(P=u),Se(KE,R)){var E=e.getItemVisual(P,"style");return E?E[KE[R]]:null}if(Se(ffe,R))return e.getItemVisual(P,R)}function L(R){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return ote(Re({axis:P},R))}}function T(){return t.getCurrentSeriesIndices()}function M(R){return ab(R,t)}}function Gfe(r){var e={};return F(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function k0(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=Ix(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&Qt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Ix(r,e,t,n,a,i){var o=-1,s=e;e&&n3(e,n,a)&&(o=$e(i.childrenRef(),e),e=null);var A=!e,l=e;l?l.clearStates():(l=Sx(n),s&&Rfe(s,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),n.tooltipDisabled&&(l.tooltipDisabled=!0),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,$fe(l,t,n,a,A,Qn),zfe(l,t,n,a,A),Tx(r,l,t,n,Qn,a,A),Se(n,"info")&&(Ci(l).info=n.info);for(var u=0;u<Fo.length;u++){var c=Fo[u];if(c!==co){var f=Qp(n,c),h=Lx(n,f,c);r3(c,l,f,h,Qn)}}return Nfe(l,n,a),n.type==="group"&&Kfe(r,l,t,n,a),o>=0?i.replaceAt(l,o):i.add(l),l}function n3(r,e,t){var n=Ci(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Zfe(i)&&a3(i)!==n.customPathData||a==="image"&&Se(o,"image")&&o.image!==n.customImagePath}function zfe(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&n3(o,i,n)&&(o=null),o||(o=Sx(i),r.setClipPath(o)),Tx(null,o,e,i,null,n,a)}}function $fe(r,e,t,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){qE(t,null,i),qE(t,bi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,A=i.blur.conOpt,l=i.select.conOpt;if(o!=null||s!=null||l!=null||A!=null){var u=r.getTextContent();if(o===!1)u&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=Sx(o),r.setTextContent(u)),Tx(null,u,e,o,null,n,a);for(var c=o&&o.style,f=0;f<Fo.length;f++){var h=Fo[f];if(h!==co){var v=i[h].conOpt;r3(h,u,v,Lx(o,v,h),null)}}c?u.dirty():u.markRedraw()}}}}function qE(r,e,t){var n=e?Qp(r,e):r,a=e?Lx(r,n,bi):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,A=s?e?Qp(s,e):s:null;if(a&&(t.isLegacy||Z5(a,i,!!o,!!A))){t.isLegacy=!0;var l=j5(a,i,!e);!o&&l.textConfig&&(o=l.textConfig),!A&&l.textContent&&(A=l.textContent)}if(!e&&A){var u=A;!u.type&&(u.type="text")}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=A}function Qp(r,e){return e?r?r[e]:null:r}function Lx(r,e,t){var n=e&&e.style;return n==null&&t===bi&&r&&(n=r.styleEmphasis),n}function Kfe(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,A=s==="byName"||n.diffChildrenByName,l=s===!1;if(!(!o&&!A&&!l)){if(A){Xfe({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}l&&e.removeAll();for(var u=0;u<o;u++){var c=i[u],f=e.childAt(u);c?(c.ignore==null&&(c.ignore=!1),Ix(r,f,t,c,a,e)):f.ignore=!0}for(var h=e.childCount()-1;h>=u;h--){var v=e.childAt(h);Wfe(e,v,a)}}}function Wfe(r,e,t){e&&qg(e,Ci(r).option,t)}function Xfe(r){new Mi(r.oldChildren,r.newChildren,eM,eM,r).add(tM).update(tM).remove(Yfe).execute()}function eM(r,e){var t=r&&r.name;return t??Pfe+e}function tM(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;Ix(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function Yfe(r){var e=this.context,t=e.oldChildren[r];t&&qg(t,Ci(t).option,e.seriesModel)}function a3(r){return r&&(r.pathData||r.d)}function Zfe(r){return r&&(Se(r,"pathData")||Se(r,"d"))}function jfe(r){r.registerChartView(Hfe),r.registerSeriesModel(vfe)}var _s=Ye(),rM=De,R0=be,Jfe=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,A=this._handle;if(!o||o==="hide"){s&&s.hide(),A&&A.hide();return}s&&s.show(),A&&A.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Fe,this.createPointerEl(s,l,e,t),this.createLabelEl(s,l,e,t),n.getZr().add(s);else{var f=ze(nM,t,c);this.updatePointerEl(s,l,f),this.updateLabelEl(s,l,f,t)}iM(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var A=Yb(e).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/A>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=_s(e).pointerEl=new lA[i.type](rM(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=_s(e).labelEl=new nt(rM(t.label));e.add(i),aM(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=_s(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=_s(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),aM(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Pf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ti(l.event)},onmousedown:R0(this._onHandleDragMove,this,0,0),drift:R0(this._onHandleDragMove,this),ondragend:R0(this._onHandleDragEnd,this)}),n.add(a)),iM(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var A=i.get("size");ge(A)||(A=[A,A]),a.scaleX=A[0]/2,a.scaleY=A[1]/2,au(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){nM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,O0(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(O0(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(O0(a)),_s(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function nM(r,e,t,n){i3(_s(t).lastProp,n)||(_s(t).lastProp=n,e?at(t,n,r):(t.stopAnimation(),t.attr(n)))}function i3(r,e){if(Oe(r)&&Oe(e)){var t=!0;return F(e,function(n,a){t=t&&i3(r[a],n)}),!!t}else return r===e}function aM(r,e){r[e.get(["label","show"])?"show":"hide"]()}function O0(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function iM(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}const Ex=Jfe;function Mx(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function o3(r,e,t,n,a){var i=t.get("value"),o=s3(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),A=kf(s.get("padding")||0),l=s.getFont(),u=Bg(o,l),c=a.position,f=u.width+A[1]+A[3],h=u.height+A[0]+A[2],v=a.align;v==="right"&&(c[0]-=f),v==="center"&&(c[0]-=f/2);var d=a.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),qfe(c,f,h,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ct(s,{text:o,font:l,fill:s.getTextColor(),padding:A,backgroundColor:p}),z2:10}}function qfe(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function s3(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:vp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};F(n,function(A){var l=t.getSeriesByIndex(A.seriesIndex),u=A.dataIndexInside,c=l&&l.getDataParams(u);c&&s.seriesData.push(c)}),Ce(o)?i=o.replace("{value}",i):Me(o)&&(i=o(s))}return i}function Dx(r,e,t){var n=xr();return Uo(n,n,t.rotation),ja(n,n,t.position),ua([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function A3(r,e,t,n,a,i){var o=Di.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),o3(e,n,a,i,{position:Dx(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Fx(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function l3(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function oM(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var ehe=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,A=s.grid,l=i.get("type"),u=sM(A,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var f=Mx(i),h=the[l](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var v=_p(A.getRect(),a);A3(n,t,v,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=_p(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Dx(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,A=o.getGlobalExtent(!0),l=sM(s,o).getOtherAxis(o).getGlobalExtent(),u=o.dim==="x"?0:1,c=[t.x,t.y];c[u]+=n[u],c[u]=Math.min(A[1],c[u]),c[u]=Math.max(A[0],c[u]);var f=(l[1]+l[0])/2,h=[f,f];h[u]=c[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[u]}},e}(Ex);function sM(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var the={line:function(r,e,t){var n=Fx([e,t[0]],[e,t[1]],AM(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:l3([e-n/2,t[0]],[n,a],AM(r))}}};function AM(r){return r.dim==="x"?0:1}const rhe=ehe;var nhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:le.color.border,width:1,type:"dashed"},shadowStyle:{color:le.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:le.color.neutral00,padding:[5,7,5,7],backgroundColor:le.color.accent60,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:le.color.accent40,throttle:40}},e}(et);const ahe=nhe;var yi=Ye(),ihe=F;function u3(r,e,t){if(!st.node){var n=e.getZr();yi(n).records||(yi(n).records={}),ohe(n,e);var a=yi(n).records[r]||(yi(n).records[r]={});a.handler=t}}function ohe(r,e){if(yi(r).initialized)return;yi(r).initialized=!0,t("click",ze(lM,"click")),t("mousemove",ze(lM,"mousemove")),t("globalout",Ahe);function t(n,a){r.on(n,function(i){var o=lhe(e);ihe(yi(r).records,function(s){s&&a(s,i,o.dispatchAction)}),she(o.pendings,e)})}}function she(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Ahe(r,e,t){r.handler("leave",null,t)}function lM(r,e,t,n){e.handler(r,t,n)}function lhe(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function QB(r,e){if(!st.node){var t=e.getZr(),n=(yi(t).records||{})[r];n&&(yi(t).records[r]=null)}}var uhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";u3("axisPointer",a,function(s,A,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:A&&A.offsetX,y:A&&A.offsetY})})},e.prototype.remove=function(t,n){QB("axisPointer",n)},e.prototype.dispose=function(t,n){QB("axisPointer",n)},e.type="axisPointer",e}(Nt);const che=uhe;function c3(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=js(i,r);if(o==null||o<0||ge(o))return{point:[]};var s=i.getItemGraphicEl(o),A=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(A&&A.dataToPoint)if(r.isStacked){var l=A.getBaseAxis(),u=A.getOtherAxis(l),c=u.dim,f=l.dim,h=c==="x"||c==="radius"?1:0,v=i.mapDimension(f),d=[];d[h]=i.get(v,o),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=A.dataToPoint(d)||[]}else t=A.dataToPoint(i.getValues(me(A.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),t=[p.x+p.width/2,p.y+p.height/2]}return{point:t,el:s}}var uM=Ye();function fhe(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||be(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Cd(a)&&(a=c3({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var A=Cd(a),l=i.axesInfo,u=s.axesInfo,c=n==="leave"||Cd(a),f={},h={},v={list:[],map:{}},d={showPointer:ze(vhe,h),showTooltip:ze(dhe,v)};F(s.coordSysMap,function(g,y){var m=A||g.containPoint(a);F(s.coordSysAxesInfo[y],function(w,B){var C=w.axis,b=mhe(l,w);if(!c&&m&&(!l||b)){var _=b&&b.value;_==null&&!A&&(_=C.pointToData(a)),_!=null&&cM(w,_,d,!1,f)}})});var p={};return F(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&F(m.axesInfo,function(w,B){var C=h[B];if(w!==g&&C){var b=C.value;m.mapper&&(b=g.axis.scale.parse(m.mapper(b,fM(w),fM(g)))),p[g.key]=b}})}),F(p,function(g,y){cM(u[y],g,d,!0,f)}),phe(h,u,f),ghe(v,a,r,o),yhe(u,o,t),f}}function cM(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=hhe(e,r),s=o.payloadBatch,A=o.snapToValue;s[0]&&a.seriesIndex==null&&ve(a,s[0]),!n&&r.snap&&i.containData(A)&&A!=null&&(e=A),t.showPointer(r,e,s),t.showTooltip(r,o,A)}}function hhe(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return F(e.seriesModels,function(A,l){var u=A.getData().mapDimensionsAll(n),c,f;if(A.getAxisTooltipData){var h=A.getAxisTooltipData(u,r,t);f=h.dataIndices,c=h.nestestValue}else{if(f=A.indicesOfNearest(n,u[0],r,t.type==="category"?.5:null),!f.length)return;c=A.getData().get(u[0],f[0])}if(!(c==null||!isFinite(c))){var v=r-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,a=c,i.length=0),F(f,function(p){i.push({seriesIndex:A.seriesIndex,dataIndexInside:p,dataIndex:A.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function vhe(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function dhe(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var A=e.coordSys.model,l=pf(A),u=r.map[l];u||(u=r.map[l]={coordSysId:A.id,coordSysIndex:A.componentIndex,coordSysType:A.type,coordSysMainType:A.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function phe(r,e,t){var n=t.axesInfo=[];F(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function ghe(r,e,t,n){if(Cd(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function yhe(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=uM(n)[a]||{},o=uM(n)[a]={};F(r,function(l,u){var c=l.axisPointerModel.option;c.status==="show"&&l.triggerEmphasis&&F(c.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],A=[];F(i,function(l,u){!o[u]&&A.push(l)}),F(o,function(l,u){!i[u]&&s.push(l)}),A.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:A}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function mhe(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function fM(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Cd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xf(r){pA.registerAxisPointerClass("CartesianAxisPointer",rhe),r.registerComponentModel(ahe),r.registerComponentView(che),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ge(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Xae(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fhe)}function whe(r){We(FN),We(Xf)}var Bhe=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var A=s.polar,l=A.getOtherAxis(s),u=l.getExtent(),c=s.dataToCoord(n),f=i.get("type");if(f&&f!=="none"){var h=Mx(i),v=bhe[f](s,A,c,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=i.get(["label","margin"]),p=Che(n,a,i,A,d);o3(t,a,i,o,p)},e}(Ex);function Che(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var A=n.getRadiusAxis().getExtent(),l,u,c;if(i.dim==="radius"){var f=xr();Uo(f,f,s),ja(f,f,[n.cx,n.cy]),l=ua([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,v=Di.innerTextLayout(s,h*Math.PI/180,-1);u=v.textAlign,c=v.textVerticalAlign}else{var d=A[1];l=n.coordToPoint([d+a,o]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",c=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var bhe={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:Fx(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:oM(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:oM(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const xhe=Bhe;var _he=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(et);const She=_he;var Qx=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zt).models[0]},e.type="polarAxis",e}(et);ir(Qx,Vf);var The=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Qx),Ihe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Qx),Ux=function(r){ce(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(Ba);Ux.prototype.dataToRadius=Ba.prototype.dataToCoord;Ux.prototype.radiusToData=Ba.prototype.coordToData;const Lhe=Ux;var Ehe=Ye(),Px=function(r){ce(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],A=t.dataToCoord(s+1)-t.dataToCoord(s),l=Math.abs(A),u=Bg(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(u.height,7),f=c/l;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),v=Ehe(t.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-o)<=1&&d>h?h=d:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(Ba);Px.prototype.dataToAngle=Ba.prototype.dataToCoord;Px.prototype.angleToData=Ba.prototype.coordToData;const Mhe=Px;var f3=["radius","angle"],Dhe=function(){function r(e){this.dimensions=f3,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Lhe,this._angleAxis=new Mhe,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(a[0],t),n[1]=this._angleAxis.angleToData(a[1],t),n},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var A=Math.sqrt(t*t+n*n);t/=A,n/=A;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;l<o||l>s;)l+=u*360;return[A,l]},r.prototype.coordToPoint=function(e,t){t=t||[];var n=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*n+this.cx,t[1]=-Math.sin(a)*n+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,A){var l=s-this.cx,u=A-this.cy,c=l*l+u*u,f=this.r,h=this.r0;return f!==h&&c-o<=f*f&&c+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(e,t,n){var a=hM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=hM(t);return a===this?this.pointToData(n):null},r}();function hM(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const Fhe=Dhe;function Qhe(r,e,t){var n=e.get("center"),a=hr(e,t).refContainer;r.cx=Be(n[0],a.width)+a.x,r.cy=Be(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:ge(s)||(s=[0,s]);var A=[Be(s[0],o),Be(s[1],o)];i.inverse?i.setExtent(A[1],A[0]):i.setExtent(A[0],A[1])}function Uhe(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var A=s.getData();F(dp(A,"radius"),function(l){a.scale.unionExtentFromData(A,l)}),F(dp(A,"angle"),function(l){n.scale.unionExtentFromData(A,l)})}}),Pl(n.scale,n.model),Pl(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Phe(r){return r.mainType==="angleAxis"}function vM(r,e){var t;if(r.type=e.get("type"),r.scale=Gg(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Phe(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var khe={dimensions:f3,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new Fhe(a+"");i.update=Uhe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),A=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");vM(o,A),vM(s,l),Qhe(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",zt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}};const Rhe=khe;var Ohe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Cv(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function bv(r){var e=r.getRadiusAxis();return e.inverse?0:1}function dM(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Hhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),A=a.getMinorTicksCoords(),l=me(a.getViewLabels(),function(u){u=De(u);var c=a.scale,f=c.type==="ordinal"?c.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(f),u});dM(l),dM(s),F(Ohe,function(u){t.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&Nhe[u](this.group,t,i,s,A,o,l)},this)}},e.type="angleAxis",e}(pA),Nhe={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),A=Math.PI/180,l=s.getExtent(),u=bv(t),c=u?0:1,f,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[c]===0?f=new lA[h]({shape:{cx:t.cx,cy:t.cy,r:i[u],startAngle:-l[0]*A,endAngle:-l[1]*A,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new Eg({shape:{cx:t.cx,cy:t.cy,r:i[u],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,r.add(f)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),A=i[bv(t)],l=me(n,function(u){return new lr({shape:Cv(t,[A,A+s],u.coord)})});r.add(zn(l,{style:Re(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),A=(o.get("inside")?-1:1)*s.get("length"),l=i[bv(t)],u=[],c=0;c<a.length;c++)for(var f=0;f<a[c].length;f++)u.push(new lr({shape:Cv(t,[l,l+A],a[c][f].coord)}));r.add(zn(u,{style:Re(s.getModel("lineStyle").getLineStyle(),Re(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),A=e.getModel("axisLabel"),l=A.get("margin"),u=e.get("triggerEvent");F(o,function(c,f){var h=A,v=c.tickValue,d=i[bv(t)],p=t.coordToPoint([d+l,c.coord]),g=t.cx,y=t.cy,m=Math.abs(p[0]-g)/d<.3?"center":p[0]>g?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[v]){var B=s[v];Oe(B)&&B.textStyle&&(h=new ot(B.textStyle,A,A.ecModel))}var C=new nt({silent:Di.isLabelSilent(e),style:Ct(h,{x:p[0],y:p[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:m,verticalAlign:w})});if(r.add(C),Pi({el:C,componentModel:e,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return C.isTruncated},value:c.rawLabel,tickIndex:f}}),u){var b=Di.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=c.rawLabel,Ve(C).eventData=b}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),A=s.get("color"),l=0;A=A instanceof Array?A:[A];for(var u=[],c=0;c<n.length;c++){var f=l++%A.length;u[f]=u[f]||[],u[f].push(new lr({shape:Cv(t,i,n[c].coord)}))}for(var c=0;c<u.length;c++)r.add(zn(u[c],{style:Re({stroke:A[c%A.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),A=[],l=0;l<a.length;l++)for(var u=0;u<a[l].length;u++)A.push(new lr({shape:Cv(t,i,a[l][u].coord)}));r.add(zn(A,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),A=s.get("color"),l=0;A=A instanceof Array?A:[A];for(var u=[],c=Math.PI/180,f=-n[0].coord*c,h=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),d=e.get("clockwise"),p=1,g=n.length;p<=g;p++){var y=p===g?n[0].coord:n[p].coord,m=l++%A.length;u[m]=u[m]||[],u[m].push(new nn({shape:{cx:t.cx,cy:t.cy,r0:h,r:v,startAngle:f,endAngle:-y*c,clockwise:d},silent:!0})),f=-y*c}for(var p=0;p<u.length;p++)r.add(zn(u[p],{style:Re({fill:A[p%A.length]},s.getAreaStyle()),silent:!0}))}}};const Vhe=Hhe;var Ghe=["splitLine","splitArea","minorSplitLine"],zhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new Fe;this.group.add(o);var s=t.axis,A=s.polar,l=A.getAngleAxis(),u=s.getTicksCoords(),c=s.getMinorTicksCoords(),f=l.getExtent()[0],h=s.getExtent(),v=Khe(A,t,f),d=new Di(t,a,v);d.build(),o.add(d.group),Uf(i,o,t),F(Ghe,function(p){t.get([p,"show"])&&!s.scale.isBlank()&&$he[p](this.group,t,A,f,h,u,c)},this)}},e.type="radiusAxis",e}(pA),$he={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),A=s.get("color"),l=0,u=t.getAngleAxis(),c=Math.PI/180,f=u.getExtent(),h=Math.abs(f[1]-f[0])===360?"Circle":"Arc";A=A instanceof Array?A:[A];for(var v=[],d=0;d<i.length;d++){var p=l++%A.length;v[p]=v[p]||[],v[p].push(new lA[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[d].coord,0),startAngle:-f[0]*c,endAngle:-f[1]*c,clockwise:u.inverse}}))}for(var d=0;d<v.length;d++)r.add(zn(v[d],{style:Re({stroke:A[d%A.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),A=s.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new Po({shape:{cx:t.cx,cy:t.cy,r:o[u][c].coord}}));r.add(zn(l,{style:Re({fill:null},A.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),A=s.get("color"),l=0;A=A instanceof Array?A:[A];for(var u=[],c=i[0].coord,f=1;f<i.length;f++){var h=l++%A.length;u[h]=u[h]||[],u[h].push(new nn({shape:{cx:t.cx,cy:t.cy,r0:c,r:i[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[f].coord}for(var f=0;f<u.length;f++)r.add(zn(u[f],{style:Re({fill:A[f%A.length]},s.getAreaStyle()),silent:!0}))}}};function Khe(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const Whe=zhe;function h3(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function v3(r,e){return e.dim+r.model.componentIndex}function Xhe(r,e,t){var n={},a=Yhe(ft(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,A=s.getBaseAxis(),l=v3(s,A),u=h3(i),c=a[l][u],f=c.offset,h=c.width,v=s.getOtherAxis(A),d=i.coordinateSystem.cx,p=i.coordinateSystem.cy,g=i.get("barMinHeight")||0,y=i.get("barMinAngle")||0;n[u]=n[u]||[];for(var m=o.mapDimension(v.dim),w=o.mapDimension(A.dim),B=Io(o,m),C=A.dim!=="radius"||!i.get("roundCap",!0),b=v.model,_=b.get("startValue"),x=v.dataToCoord(_||0),S=0,I=o.count();S<I;S++){var L=o.get(m,S),T=o.get(w,S),M=L>=0?"p":"n",R=x;B&&(n[u][T]||(n[u][T]={p:x,n:x}),R=n[u][T][M]);var P=void 0,E=void 0,k=void 0,D=void 0;if(v.dim==="radius"){var U=v.dataToCoord(L)-x,O=A.dataToCoord(T);Math.abs(U)<g&&(U=(U<0?-1:1)*g),P=R,E=R+U,k=O-f,D=k-h,B&&(n[u][T][M]=E)}else{var G=v.dataToCoord(L,C)-x,X=A.dataToCoord(T);Math.abs(G)<y&&(G=(G<0?-1:1)*y),P=X+f,E=P+h,k=R,D=R+G,B&&(n[u][T][M]=D)}o.setItemLayout(S,{cx:d,cy:p,r0:P,r:E,startAngle:-k*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:k>=D})}}})}function Yhe(r){var e={};F(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),A=v3(o,s),l=s.getExtent(),u=s.type==="category"?s.getBandWidth():Math.abs(l[1]-l[0])/i.count(),c=e[A]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=c.stacks;e[A]=c;var h=h3(n);f[h]||c.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var v=Be(n.get("barWidth"),u),d=Be(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!f[h].width&&(v=Math.min(c.remainedWidth,v),f[h].width=v,c.remainedWidth-=v),d&&(f[h].maxWidth=d),p!=null&&(c.gap=p),g!=null&&(c.categoryGap=g)});var t={};return F(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=Be(n.categoryGap,o),A=Be(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,c=(l-s)/(u+(u-1)*A);c=Math.max(c,0),F(i,function(d,p){var g=d.maxWidth;g&&g<c&&(g=Math.min(g,l),d.width&&(g=Math.min(g,d.width)),l-=g,d.width=g,u--)}),c=(l-s)/(u+(u-1)*A),c=Math.max(c,0);var f=0,h;F(i,function(d,p){d.width||(d.width=c),h=d,f+=d.width*(1+A)}),h&&(f-=h.width*A);var v=-f/2;F(i,function(d,p){t[a][p]=t[a][p]||{offset:v,width:d.width},v+=d.width*(1+A)})}),t}var Zhe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},jhe={splitNumber:5},Jhe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Nt);function qhe(r){We(Xf),pA.registerAxisPointerClass("PolarAxisPointer",xhe),r.registerCoordinateSystem("polar",Rhe),r.registerComponentModel(She),r.registerComponentView(Jhe),Ol(r,"angle",The,Zhe),Ol(r,"radius",Ihe,jhe),r.registerComponentView(Vhe),r.registerComponentView(Whe),r.registerLayout(ze(Xhe,"bar"))}function UB(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.getRect(),A=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:A[2],bottom:A[3]},vertical:{left:A[0],right:A[1]}};a.position=[o==="vertical"?l.vertical[i]:A[0],o==="horizontal"?l.horizontal[i]:A[3]];var u={horizontal:0,vertical:1};a.rotation=Math.PI/2*u[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Fr(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var f=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-f:f,a.z2=1,a}var eve=["splitArea","splitLine","breakArea"],tve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Fe;var A=UB(t),l=new Di(t,a,A);l.build(),o.add(this._axisGroup),o.add(l.group),F(eve,function(u){t.get([u,"show"])&&rve[u](this,this.group,this._axisGroup,t,a)},this),Uf(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){EN(this)},e.type="singleAxis",e}(pA),rve={splitLine:function(r,e,t,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),A=s.get("color");A=A instanceof Array?A:[A];for(var l=s.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],h=0,v=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],p=[],g=0;g<v.length;++g){var y=i.toGlobalCoord(v[g].coord);c?(d[0]=y,d[1]=u.y,p[0]=y,p[1]=u.y+u.height):(d[0]=u.x,d[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new lr({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Fl(m.shape,l);var w=h++%A.length;f[w]=f[w]||[],f[w].push(m)}for(var B=s.getLineStyle(["color"]),g=0;g<f.length;++g)e.add(zn(f[g],{style:Re({stroke:A[g%A.length]},B),silent:!0}))}},splitArea:function(r,e,t,n,a){LN(r,t,n,n)},breakArea:function(r,e,t,n,a){var i=Wf(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,n,n.coordinateSystem.getRect(),a)}};const nve=tve;var d3=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(et);ir(d3,Vf.prototype);const H0=d3;var ave=function(r){ce(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e}(Ba);const ive=ave;var p3=["single"],ove=function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=p3,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new ive(a,Gg(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();F(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Pl(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){var n=hr(e,t).refContainer;this._rect=Ut(e.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(e,t,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+e)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(e,t,n){var a=pM(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=pM(t);return a===this?this.pointToData(n):null},r}();function pM(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function sve(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new ove(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",zt).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var Ave={create:sve,dimensions:p3};const lve=Ave;var gM=["x","y"],uve=["width","height"],cve=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,A=s.coordinateSystem,l=N0(A,1-Up(s)),u=A.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var f=Mx(i),h=fve[c](s,u,l);h.style=f,t.graphicKey=h.type,t.pointer=h}var v=UB(a);A3(n,t,v,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=UB(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Dx(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,A=Up(o),l=N0(s,A),u=[t.x,t.y];u[A]+=n[A],u[A]=Math.min(l[1],u[A]),u[A]=Math.max(l[0],u[A]);var c=N0(s,1-A),f=(c[1]+c[0])/2,h=[f,f];return h[A]=u[A],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(Ex),fve={line:function(r,e,t){var n=Fx([e,t[0]],[e,t[1]],Up(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:l3([e-n/2,t[0]],[n,a],Up(r))}}};function Up(r){return r.isHorizontal()?0:1}function N0(r,e){var t=r.getRect();return[t[gM[e]],t[gM[e]]+t[uve[e]]]}const hve=cve;var vve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Nt);function dve(r){We(Xf),pA.registerAxisPointerClass("SingleAxisPointer",hve),r.registerComponentView(vve),r.registerComponentView(nve),r.registerComponentModel(H0),Ol(r,"single",H0,H0.defaultOption),r.registerCoordinateSystem("single",lve)}var pve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=cA(t);r.prototype.init.apply(this,arguments),yM(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),yM(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:le.color.axisLine,width:1,type:"solid"}},itemStyle:{color:le.color.neutral00,borderWidth:1,borderColor:le.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:le.size.s,color:le.color.secondary},monthLabel:{show:!0,position:"start",margin:le.size.s,align:"center",formatter:null,color:le.color.secondary},yearLabel:{show:!0,position:null,margin:le.size.xl,formatter:null,color:le.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(et);function yM(r,e){var t=r.cellSize,n;ge(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=me([0,1],function(i){return kj(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});ei(r,e,{type:"box",ignoreSize:a})}const gve=pve;var yve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),A=o.getOrient(),l=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,A,i),this._renderYearText(t,s,A,i),this._renderMonthText(t,l,A,i),this._renderWeekText(t,l,s,A,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),A=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToCalendarLayout([l],!1).tl,c=new Xe({shape:{x:u[0],y:u[1],width:s,height:A},cursor:"default",style:o});a.add(c)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,A=t.getModel(["splitLine","lineStyle"]).getLineStyle(),l=t.get(["splitLine","show"]),u=A.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,f=0;c.time<=n.end.time;f++){v(c.formatedDate),f===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var p=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),l&&o._drawSplitline(p,A,i)}l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,a),A,i),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,a),A,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Wr({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],A=0;A<7;A++){var l=i.getNextNDay(o.time,A),u=i.dataToCalendarLayout([l.time],!1);s[2*l.day]=u.tl,s[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return Ce(t)&&t?Mj(t,n):Me(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],A=n[1],l=["center","bottom"];i==="bottom"?(A+=o,l=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,l=["center","top"]):A-=o;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:s,y:A,style:{align:l[0],verticalAlign:l[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),A=o.get("position");A||(A=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,f=a==="horizontal"?0:1,h={top:[u,l[f][1]],bottom:[u,l[1-f][1]],left:[l[1-f][0],c],right:[l[f][0],c]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=o.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new nt({z2:30,style:Ct(o,{text:g}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,h[A],a,A,s)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",A="top",l=t[0],u=t[1];return a==="horizontal"?(u=u+o,n&&(s="center"),i==="start"&&(A="bottom")):(l=l+o,n&&(A="middle"),i==="start"&&(s="right")),{x:l,y:u,align:s,verticalAlign:A}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),A=o.get("margin"),l=o.get("position"),u=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Ce(s))&&(s&&(n=D1(s)||n),s=n.get(["time","monthAbbr"])||[]);var f=l==="start"?0:1,h=a==="horizontal"?0:1;A=l==="start"?-A:A;for(var v=u==="center",d=o.get("silent"),p=0;p<c[f].length-1;p++){var g=c[f][p].slice(),y=this._firstDayOfMonth[p];if(v){var m=this._firstDayPoints[p];g[h]=(m[h]+c[0][p+1][h])/2}var w=o.get("formatter"),B=s[+y.m-1],C={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:B},b=this._formatterLabel(w,C),_=new nt({z2:30,style:ve(Ct(o,{text:b}),this._monthTextPositionControl(g,v,a,l,A)),silent:d});i.add(_)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",A="middle",l=t[0],u=t[1],c=a==="start";return n==="horizontal"?(l=l+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(u=u+i+(c?1:-1)*o[1]/2,A=c?"bottom":"top"),{x:l,y:u,align:s,verticalAlign:A}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var A=t.coordinateSystem,l=s.get("position"),u=s.get("nameMap"),c=s.get("margin"),f=A.getFirstDayOfWeek();if(!u||Ce(u)){u&&(n=D1(u)||n);var h=n.get(["time","dayOfWeekShort"]);u=h||me(n.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var v=A.getNextNDay(a.end.time,7-a.lweek).time,d=[A.getCellWidth(),A.getCellHeight()];c=Be(c,Math.min(d[1],d[0])),l==="start"&&(v=A.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var p=s.get("silent"),g=0;g<7;g++){var y=A.getNextNDay(v,g),m=A.dataToCalendarLayout([y.time],!1).center,w=g;w=Math.abs((g+f)%7);var B=new nt({z2:30,style:ve(Ct(s,{text:u[w]}),this._weekTextPositionControl(m,i,l,c,d)),silent:p});o.add(B)}}},e.type="calendar",e}(Nt);const mve=yve;var V0=864e5,wve=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,n)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=sA(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];F([0,1],function(c){u(i,c)&&(o[a[c]]=i[c]*s[c])});var A={width:t.getWidth(),height:t.getHeight()},l=this._rect=Ut(o,A);F([0,1],function(c){u(i,c)||(i[c]=l[a[c]]/s[c])});function u(c,f){return c[f]!=null&&c[f]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,n){n=n||[],ge(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),i=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=i.start.time&&a.time<i.end.time+V0))return n[0]=n[1]=NaN,n;var s=a.day,A=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+A*this._sh+this._sh/2):(n[0]=this._rect.x+A*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(e,t);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,Ne.copy(i,a),eA(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=G0(t);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(e,t,n){var a=G0(t);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=G0(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(ge(e)&&e.length===1&&(e=e[0]),ge(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/V0)-Math.floor(t[0].time/V0)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var A=i.getDate();if(A!==s)for(var l=i.getTime()-t[1].time>0?1:-1;(A=i.getDate())!==s&&(i.getTime()-t[1].time)*l>0;)a-=l,i.setDate(A-l);var u=Math.floor((a+t[0].day+6)/7),c=n?-u+1:u-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:u,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Of({targetModel:i,coordSysType:"calendar",coordSysProvider:IO})}),n},r.dimensions=["time","value"],r}();function G0(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const Bve=wve;function Cve(r){r.registerComponentModel(gve),r.registerComponentView(mve),r.registerCoordinateSystem("calendar",Bve)}var pi={level:1,leaf:2,nonLeaf:3},xi={none:0,all:1,body:2,corner:3};function PB(r,e,t){var n=e[Ge[t]].getCell(r);return!n&&qe(r)&&r<0&&(n=e[Ge[1-t]].getUnitLayoutInfo(t,Math.round(r))),n}function g3(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function y3(r,e,t,n,a){mM(r[0],e,a,t,n,0),mM(r[1],e,a,t,n,1)}function mM(r,e,t,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=ge(o)?o:[o],A=s.length,l=!!t;if(A>=1?(wM(r,e,s,l,a,i,0),A>1&&wM(r,e,s,l,a,i,A-1)):r[0]=r[1]=NaN,l){var u=-a[Ge[1-i]].getLocatorCount(i),c=a[Ge[i]].getLocatorCount(i)-1;t===xi.body?u=Wt(0,u):t===xi.corner&&(c=xn(-1,c)),c<u&&(u=c=NaN),zr(r[0])&&(r[0]=u),zr(r[1])&&(r[1]=c),r[0]=Wt(xn(r[0],c),u),r[1]=Wt(xn(r[1],c),u)}}function wM(r,e,t,n,a,i,o){var s=PB(t[o],a,i);if(!s){r[0]=r[1]=NaN;return}var A=s.id[Ge[i]],l=A,u=Sve(s);u&&(l+=u.span[Ge[i]]-1),r[0]=xn(r[0],A,l),r[1]=Wt(r[1],A,l)}function xv(r,e){return zr(r[e][0])||zr(r[e][1])}function BM(r,e,t,n){e=e||bve;for(var a=0;a<n;a++)e[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&xve(r,o.locatorRange)&&(e[a]=!0,i=!0)}if(!i)break}}var bve=[];function xve(r,e){return!CM(r[0],e[0])||!CM(r[1],e[1])?!1:(r[0][0]=xn(r[0][0],e[0][0]),r[0][1]=Wt(r[0][1],e[0][1]),r[1][0]=xn(r[1][0],e[1][0]),r[1][1]=Wt(r[1][1],e[1][1]),!0)}function CM(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function bM(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function _ve(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function xM(r,e,t,n){var a=PB(e[n][0],t,n),i=PB(e[n][1],t,n);r[Ge[n]]=r[rr[n]]=NaN,a&&i&&(r[Ge[n]]=a.xy,r[rr[n]]=i.xy+i.wh-a.xy)}function Hu(r,e,t,n){return r[Ge[e]]=t,r[Ge[1-e]]=n,r}function Sve(r){return r&&(r.type===pi.leaf||r.type===pi.nonLeaf)?r:null}function Pp(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var _M=function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=Tve(e);var n=t.get("data",!0);n!=null&&!ge(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,n=t._cells,a=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),A();return;function s(l,u,c){var f=0;return l&&F(l,function(h,v){var d;Ce(h)?d={value:h}:Oe(h)?(d=h,h.value!=null&&!Ce(h.value)&&(d={value:null})):d={value:null};var p={type:pi.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:u,id:new ke,span:Hu(new ke,t.dimIdx,1,1),option:d,xy:NaN,wh:NaN,dim:t,rect:Pp()};o++,(i[u]||(i[u]=[])).push(p),a[c]||(a[c]={type:pi.level,xy:NaN,wh:NaN,option:null,id:new ke,dim:t});var g=s(d.children,u,c+1),y=Math.max(1,g);p.span[Ge[t.dimIdx]]=y,f+=y,u+=y}),f}function A(){for(var l=[];n.length<o;)for(var u=0;u<i.length;u++){var c=i[u].pop();if(c){c.ordinal=l.length;var f=c.option.value;l.push(f),n.push(c),t._uniqueValueGen.calcDupBase(f)}}t._uniqueValueGen.ensureValueUnique(l,n);var h=t._ordinalMeta=new cf({categories:l,needCollect:!1,deduplication:!1});t._scale=new ff({ordinalMeta:h});for(var v=0;v<t._leavesCount;v++){var d=t._cells[v];d.type=pi.leaf,d.span[Ge[1-t.dimIdx]]=t._levels.length-d.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:pi.level,xy:NaN,wh:NaN,option:null,id:new ke,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new cf({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=e._cells[a]={type:pi.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new ke,span:Hu(new ke,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:Pp()};e._leavesCount++,e._setCellId(i)}});e._scale=new ff({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;Hu(e.id,n,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;F(this._cells,function(n){Hu(n.id,t,n.firstLeafLocator,n.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get("levels",!0);n=ge(n)?n:[],F(this._levels,function(a,i){Hu(a.id,t,0,i-e),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,n,a){if(e=e||new wo,t===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,e.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,e.reset(this._levels,o,o+a)}return e},r.prototype.resetCellIterator=function(e){return(e||new wo).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new wo).reset(this._levels,0)},r.prototype.getLayout=function(e,t,n){var a=this.getUnitLayoutInfo(t,n);e[Ge[t]]=a?a.xy:NaN,e[rr[t]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return zr(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}();function Tve(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),n=0;function a(s){var A;s!=null&&(A=s.match(t))&&(n=Wt(n,+A[1]+1))}function i(){return""+e+n++}function o(s,A){for(var l=Ie(),u=0;u<s.length;u++){var c=s[u];(c==null||l.get(c)!=null)&&(s[u]=c=i(),A[u].option=Re({value:c},A[u].option)),l.set(c,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var SM=function(){function r(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=Ie(),n()),t;function n(){var i=[],o=e._model.getShallow("data");o&&!ge(o)&&(o=null),F(o,function(v,d){if(!(!Oe(v)||!ge(v.coord))){var p=g3([]),g=null;if(y3(p,g,v.coord,e._dims,v.coordClamp?xi[e._kind]:xi.none),!(xv(p,0)||xv(p,1))){var y=v&&v.mergeCells,m={id:new ke,span:new ke,locatorRange:p,option:v,cellMergeOwner:y};bM(m,p),i.push(m)}}});for(var s=[],A=0;A<i.length;A++){var l=i[A];if(l.cellMergeOwner){var u=l.locatorRange;BM(u,s,i,A);for(var c=0;c<A;c++)s[c]&&(i[c].cellMergeOwner=!1);if(u[0][0]!==l.id.x||u[1][0]!==l.id.y){l.cellMergeOwner=!1;var f=ve({},l.option);f.coord=null;var h={id:new ke,span:new ke,locatorRange:u,option:f,cellMergeOwner:!0};bM(h,u),i.push(h)}}}F(i,function(v){var d=a(v.id.x,v.id.y);if(v.cellMergeOwner&&(d.cellMergeOwner=!0,d.span=v.span,d.locatorRange=v.locatorRange,d.spanRect=Pp(),e._cellMergeOwnerList.push(d)),!(!v.cellMergeOwner&&!v.option))for(var p=0;p<v.span.y;p++)for(var g=0;g<v.span.x;g++){var y=a(v.id.x+g,v.id.y+p);y.option=v.option,v.cellMergeOwner&&(y.inSpanOf=d)}})}function a(i,o){var s=TM(i,o),A=t.get(s);return A||(A=t.set(s,{id:new ke(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),A}},r.prototype.getCell=function(e){return this._ensureCellMap().get(TM(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!xv(e,0)&&!xv(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){z0[0]=e[0][0],z0[1]=e[1][0];var t=this.getCell(z0),n=t&&t.inSpanOf;if(n){_ve(e,n.locatorRange);return}}var a=this._cellMergeOwnerList;BM(e,null,a,a.length)},r}(),z0=[];function TM(r,e){return r+"|"+e}var kx={show:!0,color:le.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function Rx(r){return{color:"none",borderWidth:1,borderColor:r?"none":le.color.borderTint}}var IM={show:!0,label:kx,itemStyle:Rx(!1),silent:void 0,dividerLineStyle:{width:1,color:le.color.border}},Ive={label:kx,itemStyle:Rx(!1),silent:void 0},Lve={label:kx,itemStyle:Rx(!0),silent:void 0},Eve={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:IM,y:IM,body:Ive,corner:Lve,backgroundStyle:{color:"none",borderColor:le.color.axisLine,borderWidth:1}},Mve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new LM(this.get("x",!0)||{}),y:new LM(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var n=t.x.dim=new _M("x",t.x),a=t.y.dim=new _M("y",t.y),i={x:n,y:a};this._body=new SM("body",new ot(this.getShallow("body")),i),this._corner=new SM("corner",new ot(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=Eve,e}(et),LM=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(ot);const Dve=Mve;var _v=Math.round,Fve=0,Qve=99,Uve={normal:25,special:100},Pve={normal:50,special:125},kve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n){this.group.removeAll();var a=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),A=t.getDimensionModel("y"),l=s.dim,u=A.dim;Rve(a,t,n),Ove(a,t,l,u,n);var c=t.getShallow("borderZ2",!0),f=Le(c,Qve),h=f-1,v=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);v.lineWidth=0;var d=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);d.fill="none";var p=kB(o.clone(),v,Fve),g=kB(o.clone(),d,f);p.silent=!0,g.silent=!0,a.add(p),a.add(g);var y=l.getUnitLayoutInfo(0,0),m=u.getUnitLayoutInfo(1,0);y&&m&&(l.shouldShow()&&a.add(EM({x1:o.x,y1:m.xy,x2:o.x+o.width,y2:m.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),u.shouldShow()&&a.add(EM({x1:y.xy,y1:o.y,x2:y.xy,y2:o.y+o.height},A.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e}(Nt);function Rve(r,e,t){n(0),n(1);function n(a){var i=e.getDimensionModel(Ge[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),A=i.getModel("label"),l=e.getShallow("tooltip",!0),u=[],c=o.resetCellIterator();c.next();){var f=c.item,h={};Ne.copy(h,f.rect),DC(u,f.id.x,f.id.y),m3(u,e,r,t,f.option,s,A,i,h,f.option.value,Pve,l)}}}function Ove(r,e,t,n,a){i("body",e.getBody(),t,n),t.shouldShow()&&n.shouldShow()&&i("corner",e.getCorner(),n,t);function i(o,s,A,l){var u=new ot(e.getShallow(o,!0)),c=u.getModel("itemStyle"),f=u.getModel("label"),h=new wo,v=new wo,d=[],p=e.getShallow("tooltip",!0);for(l.resetLayoutIterator(v,1);v.next();)for(A.resetLayoutIterator(h,0);h.next();){var g=h.item,y=v.item;DC(d,g.id.x,y.id.y);var m=s.getCell(d);if(!(m&&m.inSpanOf&&m.inSpanOf!==m)){var w={};m&&m.span?Ne.copy(w,m.spanRect):(g.dim.getLayout(w,0,d[0]),y.dim.getLayout(w,1,d[1]));var B=m?m.option:null;m3(d,e,r,a,B,c,f,u,w,B?B.value:null,Uve,p)}}}}function m3(r,e,t,n,a,i,o,s,A,l,u,c){var f;Sv.option=a?a.itemStyle:null,Sv.parentModel=i,YA.option=a,YA.parentModel=s;var h=Le(YA.getShallow("z2"),a&&a.itemStyle?u.special:u.normal),v=c&&c.show,d=kB(A,Sv.getItemStyle(),h);t.add(d);var p=YA.get("cursor");p!=null&&d.attr("cursor",p);var g;if(l!=null){var y=l+"";if(ZA.option=a?a.label:null,ZA.parentModel=o,ZA.ecModel=n,yr(d,{normal:ZA},{defaultText:y,autoOverflowArea:!0,layoutRect:De(d.shape)}),g=d.getTextContent(),g){g.z2=h+1;var m=g.style;if(m&&m.overflow&&m.overflow!=="none"&&m.lineOverflow){var w={};Ne.copy(w,A),eA(w,(((f=d.style)===null||f===void 0?void 0:f.lineWidth)||0)/2,!0,!0),d.updateInnerText(),g.getLocalTransform(Tv),va(Tv,Tv),Ne.applyTransform(w,w,Tv),g.setClipPath(new Xe({shape:w}))}}Pi({el:d,componentModel:e,itemName:y,itemTooltipOption:c,formatterParamsExtra:{xyLocator:r.slice()}})}if(g){var B=ZA.get("silent");B==null&&(B=!v),g.silent=B,g.ignoreHostSilent=!0}var C=YA.get("silent");C==null&&(C=!d.style||d.style.fill==="none"||!d.style.fill),d.silent=C,rm(YA),rm(Sv),rm(ZA)}var YA=new ot,Sv=new ot,ZA=new ot,Tv=[];function kB(r,e,t){var n=e.lineWidth;if(n){var a=r.x+r.width,i=r.y+r.height;r.x=Cn(r.x,n,!0),r.y=Cn(r.y,n,!0),r.width=Cn(a,n,!0)-r.x,r.height=Cn(i,n,!0)-r.y}return new Xe({shape:r,style:e,z2:t})}function EM(r,e,t){var n=e.lineWidth;return n&&(_v(r.x1*2)===_v(r.x2*2)&&(r.x1=r.x2=Cn(r.x1,n,!0)),_v(r.y1*2)===_v(r.y2*2)&&(r.y1=r.y2=Cn(r.y1,n,!0))),new lr({shape:r,style:e,silent:!0,z2:t})}const Hve=kve;var Nve=function(){function r(e,t,n){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var n=[];return e.eachComponent("matrix",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Of({targetModel:i,coordSysType:"matrix",coordSysProvider:IO})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var n=this._dims,a=this._dimModels,i=this._rect=Ut(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});MM(a,n,i,0),MM(a,n,i,1),DM(0,n),DM(1,n),FM(this._model.getBody(),n),FM(this._model.getCorner(),n)},r.prototype.dataToPoint=function(e,t,n){return n=n||[],this.dataToLayout(e,t,Nu),n[0]=Nu.rect.x+Nu.rect.width/2,n[1]=Nu.rect.y+Nu.rect.height/2,n},r.prototype.dataToLayout=function(e,t,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=g3(n.matrixXYLocatorRange);return ge(e)&&(y3(o,null,e,a,Le(t&&t.clamp,xi.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==xi.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==xi.body)&&this._model.getCorner().expandRangeByCellMerge(o)),xM(i,o,a,0),xM(i,o,a,1)),n},r.prototype.pointToData=function(e,t,n){var a=this._dims;return QM(Da,0,a,e,t&&t.clamp),QM(Da,1,a,e,t&&t.clamp),n=n||[],n[0]=n[1]=NaN,Da.y===Lr.inCorner&&Da.x===Lr.inBody?UM(Da,n,0,a):Da.x===Lr.inCorner&&Da.y===Lr.inBody?UM(Da,n,1,a):(PM(Da,n,0,a),PM(Da,n,1,a)),n},r.prototype.convertToPixel=function(e,t,n,a){var i=K0(t);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(e,t,n,a){var i=K0(t);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(e,t,n,a){var i=K0(t);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r}(),Nu={rect:Pp()},Iv=new wo,$0=new wo;function MM(r,e,t,n){for(var a=1-n,i=e[Ge[n]],o=e[Ge[a]],s=o.shouldShow(),A=i.resetCellIterator();A.next();)A.item.wh=A.item.xy=NaN;for(var l=o.resetLayoutIterator(null,n);l.next();)l.item.wh=l.item.xy=NaN;for(var u=t[rr[n]],c=i.getLocatorCount(n)+o.getLocatorCount(n),f=new ot,h=o.resetLevelIterator();h.next();)f.option=h.item.option,f.parentModel=r[Ge[a]],p(h.item,s?f.get("levelSize"):0);for(var v=new ot,d=i.resetCellIterator();d.next();)d.item.type===pi.leaf&&(v.option=d.item.option,v.parentModel=void 0,p(d.item,v.get("size")));function p(b,_){var x=Vve(_,n,t);zr(x)||(b.wh=RB(x,u),u=RB(u-b.wh),c--)}var g=c?u/c:0,y=!c&&u>=1,m=t[Ge[n]],w=i.getLocatorCount(n)-1,B=new wo;for(o.resetLayoutIterator(B,n);B.next();)C(B.item);for(i.resetLayoutIterator(B,n);B.next();)C(B.item);function C(b){zr(b.wh)&&(b.wh=g),b.xy=m,b.id[Ge[n]]===w&&!y&&(b.wh=t[Ge[n]]+t[rr[n]]-b.xy),m+=b.wh}}function DM(r,e){for(var t=e[Ge[r]].resetCellIterator();t.next();){var n=t.item;kp(n.rect,r,n.id,n.span,e),kp(n.rect,1-r,n.id,n.span,e),n.type===pi.nonLeaf&&(n.xy=n.rect[Ge[r]],n.wh=n.rect[rr[r]])}}function FM(r,e){r.travelExistingCells(function(t){var n=t.span;if(n){var a=t.spanRect,i=t.id;kp(a,0,i,n,e),kp(a,1,i,n,e)}})}function kp(r,e,t,n,a){r[rr[e]]=0;var i=t[Ge[e]],o=i<0?a[Ge[1-e]]:a[Ge[e]],s=o.getUnitLayoutInfo(e,t[Ge[e]]);if(r[Ge[e]]=s.xy,r[rr[e]]=s.wh,n[Ge[e]]>1){var A=o.getUnitLayoutInfo(e,t[Ge[e]]+n[Ge[e]]-1);r[rr[e]]=A.xy+A.wh-s.xy}}function Vve(r,e,t){var n=jd(r,t[rr[e]]);return RB(n,t[rr[e]])}function RB(r,e){return Math.max(Math.min(r,Le(e,1/0)),0)}function K0(r){var e=r.matrixModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}var Lr={inBody:1,inCorner:2,outside:3},Da={x:null,y:null,point:[]};function QM(r,e,t,n,a){var i=t[Ge[e]],o=t[Ge[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),A=i.getUnitLayoutInfo(e,0),l=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),u=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,c=r.point[e]=n[e];if(!A&&!u){r[Ge[e]]=Lr.outside;return}if(a===xi.body){A?(r[Ge[e]]=Lr.inBody,c=xn(s.xy+s.wh,Wt(A.xy,c)),r.point[e]=c):r[Ge[e]]=Lr.outside;return}else if(a===xi.corner){u?(r[Ge[e]]=Lr.inCorner,c=xn(u.xy+u.wh,Wt(l.xy,c)),r.point[e]=c):r[Ge[e]]=Lr.outside;return}var f=A?A.xy:u?u.xy+u.wh:NaN,h=l?l.xy:f,v=s?s.xy+s.wh:f;if(c<h){if(!a){r[Ge[e]]=Lr.outside;return}c=h}else if(c>v){if(!a){r[Ge[e]]=Lr.outside;return}c=v}r.point[e]=c,r[Ge[e]]=f<=c&&c<=v?Lr.inBody:h<=c&&c<=f?Lr.inCorner:Lr.outside}function UM(r,e,t,n){var a=1-t;if(r[Ge[t]]!==Lr.outside)for(n[Ge[t]].resetCellIterator($0);$0.next();){var i=$0.item;if(kM(r.point[t],i.rect,t)&&kM(r.point[a],i.rect,a)){e[t]=i.ordinal,e[a]=i.id[Ge[a]];return}}}function PM(r,e,t,n){if(r[Ge[t]]!==Lr.outside){var a=r[Ge[t]]===Lr.inCorner?n[Ge[1-t]]:n[Ge[t]];for(a.resetLayoutIterator(Iv,t);Iv.next();)if(Gve(r.point[t],Iv.item)){e[t]=Iv.item.id[Ge[t]];return}}}function Gve(r,e){return e.xy<=r&&r<=e.xy+e.wh}function kM(r,e,t){return e[Ge[t]]<=r&&r<=e[Ge[t]]+e[rr[t]]}const zve=Nve;function $ve(r){r.registerComponentModel(Dve),r.registerComponentView(Hve),r.registerCoordinateSystem("matrix",zve)}function Kve(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RM(r,e){var t;return F(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function Wve(r,e,t){var n=ve({},t),a=r[e],i=t.$action||"merge";i==="merge"?a?(Ke(a,n,!0),ei(a,n,{ignoreSize:!0}),FO(t,a),Lv(t,a),Lv(t,a,"shape"),Lv(t,a,"style"),Lv(t,a,"extra"),t.clipPath=a.clipPath):r[e]=n:i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var w3=["transition","enterFrom","leaveTo"],Xve=w3.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Lv(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?w3:Xve,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function Yve(r,e){if(r&&(r.hv=e.hv=[RM(e,["left","right"]),RM(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var Zve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var A=AR(o,s,"normalMerge"),l=this._elOptionsToUpdate=[];F(A,function(u,c){var f=u.newOption;f&&(l.push(f),Kve(u,f),Wve(o,c,f),Yve(o[c],f))},this),a.elements=ft(o,function(u){return u&&delete u.$action,u!=null})},e.prototype._flatten=function(t,n,a){F(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(et),OM={path:null,compoundPath:null,group:Fe,image:Ur,text:nt},Hn=Ye(),jve=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Ie()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");F(n,function(A){var l=Ar(A.id,null),u=l!=null?a.get(l):null,c=Ar(A.parentId,null),f=c!=null?a.get(c):i,h=A.type,v=A.style;h==="text"&&v&&A.hv&&A.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var d=A.textContent,p=A.textConfig;if(v&&Z5(v,h,!!p,!!d)){var g=j5(v,h,!0);!p&&g.textConfig&&(p=A.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var y=Jve(A),m=A.$action||"merge",w=m==="merge",B=m==="replace";if(w){var C=!u,b=u;C?b=HM(l,f,A.type,a):(b&&(Hn(b).isNew=!1),t3(b)),b&&(Bd(b,y,t,{isInit:C}),NM(b,A,o,s))}else if(B){bd(u,A,a,t);var _=HM(l,f,A.type,a);_&&(Bd(_,y,t,{isInit:!0}),NM(_,A,o,s))}else m==="remove"&&(q5(u,A),bd(u,A,a,t));var x=a.get(l);if(x&&d)if(w){var S=x.getTextContent();S?S.attr(d):x.setTextContent(new nt(d))}else B&&x.setTextContent(new nt(d));if(x){var I=A.clipPath;if(I){var L=I.type,T=void 0,C=!1;if(w){var M=x.getClipPath();C=!M||Hn(M).type!==L,T=C?OB(L):M}else B&&(C=!0,T=OB(L));x.setClipPath(T),Bd(T,I,t,{isInit:C}),Fp(T,I.keyframeAnimation,t)}var R=Hn(x);x.setTextConfig(p),R.option=A,qve(x,t,A),Pi({el:x,componentModel:t,itemName:x.name,itemTooltipOption:A.tooltip}),Fp(x,A.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),A=n.getHeight(),l=["x","y"],u=0;u<a.length;u++){var c=a[u],f=Ar(c.id,null),h=f!=null?o.get(f):null;if(!(!h||!h.isGroup)){var v=h.parent,d=v===i,p=Hn(h),g=Hn(v);p.width=Be(p.option.width,d?s:g.width)||0,p.height=Be(p.option.height,d?A:g.height)||0}}for(var u=a.length-1;u>=0;u--){var c=a[u],f=Ar(c.id,null),h=f!=null?o.get(f):null;if(h){var v=h.parent,g=Hn(v),y=v===i?{width:s,height:A}:{width:g.width,height:g.height},m={},w=kg(h,c,y,null,{hv:c.hv,boundingMode:c.bounding},m);if(!Hn(h).isNew&&w){for(var B=c.transition,C={},b=0;b<l.length;b++){var _=l[b],x=m[_];B&&(Xs(B)||$e(B,_)>=0)?C[_]=x:h[_]=x}at(h,C,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){bd(a,Hn(a).option,n,t._lastGraphicModel)}),this._elMap=Ie()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Nt);function OB(r){var e=Se(OM,r)?OM[r]:rp(r),t=new e({});return Hn(t).type=r,t}function HM(r,e,t,n){var a=OB(t);return e.add(a),n.set(r,a),Hn(a).id=r,Hn(a).isNew=!0,a}function bd(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){bd(i,e,t,n)}),qg(r,e,n),t.removeKey(Hn(r).id))}function NM(r,e,t,n){r.isGroup||F([["cursor",jn.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];Se(e,i)?r[i]=Le(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),F(je(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=Me(i)?i:null}}),Se(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Jve(r){return r=ve({},r),F(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LO),function(e){delete r[e]}),r}function qve(r,e,t){var n=Ve(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ve(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function ede(r){r.registerComponentModel(Zve),r.registerComponentView(jve),r.registerPreprocessor(function(e){var t=e.graphic;ge(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var VM=["x","y","radius","angle","single"],tde=["cartesian2d","polar","singleAxis"];function rde(r){var e=r.get("coordinateSystem");return $e(tde,e)>=0}function fo(r){return r+"Axis"}function nde(r,e){var t=Ie(),n=[],a=Ie();r.eachComponent({mainType:"dataZoom",query:e},function(u){a.get(u.uid)||s(u)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(u){!a.get(u.uid)&&A(u)&&(s(u),i=!0)}function s(u){a.set(u.uid,!0),n.push(u),l(u)}function A(u){var c=!1;return u.eachTargetAxis(function(f,h){var v=t.get(f);v&&v[h]&&(c=!0)}),c}function l(u){u.eachTargetAxis(function(c,f){(t.get(c)||t.set(c,[]))[f]=!0})}return n}function B3(r){var e=r.ecModel,t={infoList:[],infoMap:Ie()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(fo(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,A=t.infoMap.get(s);A||(A={model:o,axisModels:[]},t.infoList.push(A),t.infoMap.set(s,A)),A.axisModels.push(i)}}}),t}var W0=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),ade=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=GM(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=GM(t);Ke(this.option,t,!0),Ke(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Ie(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return F(VM,function(a){var i=this.getReferringComponents(fo(a),nY);if(i.specified){n=!0;var o=new W0;F(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});A(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});A(s,"single")}function A(l,u){var c=l[0];if(c){var f=new W0;if(f.add(c.componentIndex),t.set(u,f),i=!1,u==="x"||u==="y"){var h=c.getReferringComponents("grid",zt).models[0];h&&F(l,function(v){c.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",zt).models[0]&&f.add(v.componentIndex)})}}}i&&F(VM,function(l){if(i){var u=a.findComponents({mainType:fo(l),filter:function(f){return f.get("type",!0)==="category"}});if(u[0]){var c=new W0;c.add(u[0].componentIndex),t.set(l,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");F([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,A=t[i[1]]!=null;s&&!A?n[o]="percent":!s&&A?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(fo(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){F(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(fo(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;F(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),A=0;A<s.indexList.length;A++){var l=this.getAxisProxy(o,s.indexList[A]);if(l.hostedBy(this))return l;n||(n=l)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(et);function GM(r){var e={};return F(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const Cf=ade;var ide=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Cf);const ode=ide;var sde=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Nt);const Ox=sde;var Ade=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ox);const lde=Ade;var sl=F,zM=Yn,ude=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(rde(t)){var n=fo(this._dimName),a=t.getReferringComponents(n,zt).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return De(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],A=[],l;sl(["start","end"],function(f,h){var v=e[f],d=e[f+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),d=a.parse(ct(v,o,t))):(l=!0,d=d==null?t[h]:a.parse(d),v=ct(d,t,o)),A[h]=d==null||isNaN(d)?t[h]:d,s[h]=v==null||isNaN(v)?o[h]:v}),zM(A),zM(s);var u=this._minMaxSpan;l?c(A,s,t,o,!1):c(s,A,o,t,!0);function c(f,h,v,d,p){var g=p?"Span":"ValueSpan";Mo(0,f,v,"all",u["min"+g],u["max"+g]);for(var y=0;y<2;y++)h[y]=ct(f[y],v,d,!0),p&&(h[y]=a.parse(h[y]))}return{valueWindow:A,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=cde(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;sl(a,function(A){var l=A.getData(),u=l.mapDimensionsAll(n);if(u.length){if(i==="weakFilter"){var c=l.getStore(),f=me(u,function(h){return l.getDimensionIndex(h)},l);l.filterSelf(function(h){for(var v,d,p,g=0;g<u.length;g++){var y=c.get(f[g],h),m=!isNaN(y),w=y<o[0],B=y>o[1];if(m&&!w&&!B)return!0;m&&(p=!0),w&&(v=!0),B&&(d=!0)}return p&&v&&d})}else sl(u,function(h){if(i==="empty")A.setData(l=l.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,l.selectRange(v)}});sl(u,function(h){l.setApproximateExtent(o,h)})}});function s(A){return A>=o[0]&&A<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;sl(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ct(n[0]+o,n,[0,100],!0):i!=null&&(o=ct(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=qk(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function cde(r,e,t){var n=[1/0,-1/0];sl(t,function(o){Ste(n,o.getData(),e)});var a=r.getAxisModel(),i=p4(a.axis.scale,a,n).calculate();return[i.min,i.max]}const fde=ude;var hde={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var A=r.getComponent(fo(o),s);a(o,s,A,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new fde(a,i,s,r),t.push(o.__dzAxisProxy))});var n=Ie();return F(t,function(a){F(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const vde=hde;function dde(r){r.registerAction("dataZoom",function(e,t){var n=nde(t,e);F(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var $M=!1;function Hx(r){$M||($M=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,vde),dde(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function pde(r){r.registerComponentModel(ode),r.registerComponentView(lde),Hx(r)}var Gn=function(){function r(){}return r}(),C3={};function Al(r,e){C3[r]=e}function b3(r){return C3[r]}var gde=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;F(this.option.feature,function(n,a){var i=b3(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Ke(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:le.color.border,borderRadius:0,borderWidth:0,padding:le.size.m,itemSize:15,itemGap:le.size.s,showTitle:!0,iconStyle:{borderColor:le.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:le.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(et);const yde=gde;function x3(r,e){var t=kf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new Xe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var mde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),A=t.get("orient")==="vertical",l=t.get("feature")||{},u=this._features||(this._features={}),c=[];F(l,function(y,m){c.push(m)}),new Mi(this._featureNames||[],c).add(f).update(f).remove(ze(f,null)).execute(),this._featureNames=c;function f(y,m){var w=c[y],B=c[m],C=l[w],b=new ot(C,t,t.ecModel),_;if(i&&i.newTitle!=null&&i.featureName===w&&(C.title=i.newTitle),w&&!B){if(wde(w))_={onclick:b.option.onclick,featureName:w};else{var x=b3(w);if(!x)return;_=new x}u[w]=_}else if(_=u[B],!_)return;_.uid=tu("toolbox-feature"),_.model=b,_.ecModel=n,_.api=a;var S=_ instanceof Gn;if(!w&&B){S&&_.dispose&&_.dispose(n,a);return}if(!b.get("show")||S&&_.unusable){S&&_.remove&&_.remove(n,a);return}h(b,_,w),b.setIconStatus=function(I,L){var T=this.option,M=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[I]=L,M[I]&&(L==="emphasis"?Li:Ei)(M[I])},_ instanceof Gn&&_.render&&_.render(b,n,a,i)}function h(y,m,w){var B=y.getModel("iconStyle"),C=y.getModel(["emphasis","iconStyle"]),b=m instanceof Gn&&m.getIcons?m.getIcons():y.get("icon"),_=y.get("title")||{},x,S;Ce(b)?(x={},x[w]=b):x=b,Ce(_)?(S={},S[w]=_):S=_;var I=y.iconPaths={};F(x,function(L,T){var M=Pf(L,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(B.getItemStyle());var R=M.ensureState("emphasis");R.style=C.getItemStyle();var P=new nt({style:{text:S[T],align:C.get("textAlign"),borderRadius:C.get("textBorderRadius"),padding:C.get("textPadding"),fill:null,font:ab({fontStyle:C.get("textFontStyle"),fontFamily:C.get("textFontFamily"),fontSize:C.get("textFontSize"),fontWeight:C.get("textFontWeight")},n)},ignore:!0});M.setTextContent(P),Pi({el:M,componentModel:t,itemName:T,formatterParamsExtra:{title:S[T]}}),M.__title=S[T],M.on("mouseover",function(){var E=C.getItemStyle(),k=A?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:C.get("textFill")||E.fill||E.stroke||le.color.neutral99,backgroundColor:C.get("textBackgroundColor")}),M.setTextConfig({position:C.get("textPosition")||k}),P.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",T])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(y.get(["iconStatus",T])==="emphasis"?Li:Ei)(M),o.add(M),M.on("click",be(m.onclick,m,n,a,T)),I[T]=M})}var v=hr(t,a).refContainer,d=t.getBoxLayoutParams(),p=t.get("padding"),g=Ut(d,v,p);$s(t.get("orient"),o,t.get("itemGap"),g.width,g.height),kg(o,d,v,p),o.add(x3(o.getBoundingRect(),t)),A||o.eachChild(function(y){var m=y.__title,w=y.ensureState("emphasis"),B=w.textConfig||(w.textConfig={}),C=y.getTextContent(),b=C&&C.ensureState("emphasis");if(b&&!Me(b)&&m){var _=b.style||(b.style={}),x=Bg(m,nt.makeFont(_)),S=y.x+o.x,I=y.y+o.y+s,L=!1;I+x.height>a.getHeight()&&(B.position="top",L=!0);var T=L?-5-x.height:s+10;S+x.width/2>a.getWidth()?(B.position=["100%",T],_.align="right"):S-x.width/2<0&&(B.position=[0,T],_.align="left")}})},e.prototype.updateView=function(t,n,a,i){F(this._features,function(o){o instanceof Gn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){F(this._features,function(a){a instanceof Gn&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){F(this._features,function(a){a instanceof Gn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Nt);function wde(r){return r.indexOf("my")===0}const Bde=mde;var Cde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",A=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||le.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=st.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+s,u.target="_blank",u.href=A;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var f=A.split(","),h=f[0].indexOf("base64")>-1,v=o?decodeURIComponent(f[1]):f[1];h&&(v=window.atob(v));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,B=w.document;B.open("image/svg+xml","replace"),B.write(v),B.close(),w.focus(),B.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var C=a.get("lang"),b='<body style="margin:0;"><img src="'+A+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',_=window.open();_.document.write(b),_.document.title=i}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:le.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Gn);const bde=Cde;var KM="__ec_magicType_stack__",xde=[["line","bar"],["stack"]],_de=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return F(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(WM[a]){var s={series:[]},A=function(c){var f=c.subType,h=c.id,v=WM[a](f,h,c,i);v&&(Re(v,c.option),s.series.push(v));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=c.getReferringComponents(y,zt).models[0],w=m.componentIndex;s[y]=s[y]||[];for(var B=0;B<=w;B++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=a==="bar"}}};F(xde,function(c){$e(c,a)>=0&&F(c,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},A);var l,u=a;a==="stack"&&(l=Ke({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:s,newTitle:l,featureName:"magicType"})}},e}(Gn),WM={line:function(r,e,t,n){if(r==="bar")return Ke({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Ke({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===KM;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ke({id:e,stack:a?"":KM},n.get(["option","stack"])||{},!0)}};ai({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const Sde=_de;var ey=new Array(60).join("-"),Gl=" ";function Tde(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function Ide(r){var e=[];return F(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(me(t.series,function(h){return h.name})),A=[a.model.getCategories()];F(t.series,function(h){var v=h.getRawData();A.push(h.getRawData().mapArray(v.mapDimension(o),function(d){return d}))});for(var l=[s.join(Gl)],u=0;u<A[0].length;u++){for(var c=[],f=0;f<A.length;f++)c.push(A[f][u]);l.push(c.join(Gl))}e.push(l.join(`
`))}),e.join(`
`+ey+`
`)}function Lde(r){return me(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),A=0;A<i-1;A++)a[A]=arguments[A];n.push((s?s+Gl:"")+a.join(Gl))}),n.join(`
`)}).join(`
`+ey+`
`)}function Ede(r){var e=Tde(r);return{value:ft([Ide(e.seriesGroupByCategoryAxis),Lde(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+ey+`
`),meta:e.meta}}function Rp(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mde(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(Gl)>=0)return!0}var HB=new RegExp("["+Gl+"]+","g");function Dde(r){for(var e=r.split(/\n+/g),t=Rp(e.shift()).split(HB),n=[],a=me(t,function(A){return{name:A,data:[]}}),i=0;i<e.length;i++){var o=Rp(e[i]).split(HB);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Fde(r){for(var e=r.split(/\n+/g),t=Rp(e.shift()),n=[],a=0;a<e.length;a++){var i=Rp(e[a]);if(i){var o=i.split(HB),s="",A=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},A=n[a].value):A=n[a]=[];for(var u=0;u<o.length;u++)A.push(+o[u]);A.length===1&&(l?n[a].value=A[0]:n[a]=A[0])}}return{name:t,data:n}}function Qde(r,e){var t=r.split(new RegExp(`
*`+ey+`
*`,"g")),n={series:[]};return F(t,function(a,i){if(Mde(a)){var o=Dde(a),s=e[i],A=s.axisDim+"Axis";s&&(n[A]=n[A]||[],n[A][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Fde(a);n.series.push(o)}}),n}var Ude=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||le.color.neutral00;var s=document.createElement("h4"),A=i.get("lang")||[];s.innerHTML=A[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var c=i.get("optionToContent"),f=i.get("contentToOption"),h=Ede(t);if(Me(c)){var v=c(n.getOption());Ce(v)?l.innerHTML=v:El(v)&&l.appendChild(v)}else{u.readOnly=i.get("readOnly");var d=u.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),u.value=h.value,l.appendChild(u)}var p=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var B=this;function C(){a.removeChild(o),B._dom=null}Jw(m,"click",C),Jw(w,"click",function(){if(f==null&&c!=null||f!=null&&c==null){C();return}var b;try{Me(f)?b=f(l,n.getOption()):b=Qde(u.value,p)}catch(_){throw C(),new Error("Data view format error "+_)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),C()}),m.innerHTML=A[1],w.innerHTML=A[2],w.style.cssText=m.style.cssText=y,!i.get("readOnly")&&g.appendChild(w),g.appendChild(m),o.appendChild(s),o.appendChild(l),o.appendChild(g),l.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:le.color.background,textColor:le.color.primary,textareaColor:le.color.background,textareaBorderColor:le.color.border,buttonColor:le.color.accent50,buttonTextColor:le.color.neutral00};return n},e}(Gn);function Pde(r,e){return me(r,function(t,n){var a=e&&e[n];if(Oe(a)&&!ge(a)){var i=Oe(t)&&!ge(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=Re(t,a),o&&delete t.name,t}else return t})}ai({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];F(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(ve({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:Pde(n.data,i)})}}),e.mergeOption(Re({series:t},r.newOption))});const kde=Ude;var _3=F,S3=Ye();function Rde(r,e){var t=Nx(r);_3(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var A=s.getPercentRange();t[0][a]={dataZoomId:a,start:A[0],end:A[1]}}}}),t.push(e)}function Ode(r){var e=Nx(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return _3(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function Hde(r){S3(r).snapshots=null}function Nde(r){return Nx(r).length}function Nx(r){var e=S3(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Vde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){Hde(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(Gn);ai({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const Gde=Vde;var zde=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],$de=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=XM(t,e);F(Kde,function(o,s){(!n||!n.include||$e(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=X0[n.brushType](0,i,a);n.__rangeOffset={offset:JM[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){F(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&F(i.coordSyses,function(o){var s=X0[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){F(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=X0[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?JM[n.brushType](i.values,o.offset,Wde(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return me(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:E5(a),isTargetByCursor:D5(a,e,n.coordSysModel),getLinearBrushOtherExtent:M5(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&$e(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=XM(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var A=0;A<YM.length;A++)if(YM[A](a,o))return o}return!0},r}();function NB(r){return r[0]>r[1]&&r.reverse(),r}function XM(r,e){return Bl(r,e,{includeMainTypes:zde})}var Kde={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=Ie(),o={},s={};!t&&!n&&!a||(F(t,function(A){var l=A.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),F(n,function(A){var l=A.axis.grid.model;i.set(l.id,l),s[l.id]=!0}),F(a,function(A){i.set(A.id,A),o[A.id]=!0,s[A.id]=!0}),i.each(function(A){var l=A.coordinateSystem,u=[];F(l.getCartesians(),function(c,f){($e(t,c.getAxis("x").model)>=0||$e(n,c.getAxis("y").model)>=0)&&u.push(c)}),e.push({panelId:"grid--"+A.id,gridModel:A,coordSysModel:A,coordSys:u[0],coordSyses:u,getPanelRect:ZM.grid,xAxisDeclared:o[A.id],yAxisDeclared:s[A.id]})}))},geo:function(r,e){F(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:ZM.geo})})}},YM=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],ZM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(zs(r)),e}},X0={lineX:ze(jM,0),lineY:ze(jM,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[NB([a[0],i[0]]),NB([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=me(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function jM(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=NB(me([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var JM={lineX:ze(qM,0),lineY:ze(qM,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return me(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function qM(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function Wde(r,e){var t=eD(r),n=eD(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function eD(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Vx=$de;var VB=F,Xde=J9("toolbox-dataZoom_"),Yde=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new gx(a.getZr()),this._brushController.on("brush",be(this._onBrush,this)).mount()),Jde(t,n,this,i,a),jde(t,n)},e.prototype.onclick=function(t,n,a){Zde[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Vx(Gx(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(l,u,c){if(c.type==="cartesian2d"){var f=l.brushType;f==="rect"?(s("x",c,u[0]),s("y",c,u[1])):s({lineX:"x",lineY:"y"}[f],c,u)}}),Rde(i,a),this._dispatchZoomAction(a);function s(l,u,c){var f=u.getAxis(l),h=f.model,v=A(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Mo(0,c.slice(),f.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:c[0],endValue:c[1]})}function A(l,u,c){var f;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var n=[];VB(t,function(a,i){n.push(De(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:le.color.backgroundTint}};return n},e}(Gn),Zde={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ode(this.ecModel))}};function Gx(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function jde(r,e){r.setIconStatus("back",Nde(e)>1?"emphasis":"normal")}function Jde(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Vx(Gx(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(A){return A.xAxisDeclared&&!A.yAxisDeclared?"lineX":!A.xAxisDeclared&&A.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}zj("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Gx(n),o=Bl(r,i);VB(o.xAxisModels,function(A){return s(A,"xAxis","xAxisIndex")}),VB(o.yAxisModels,function(A){return s(A,"yAxis","yAxisIndex")});function s(A,l,u){var c=A.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Xde+l+c};f[u]=c,a.push(f)}return a});const qde=Yde;function epe(r){r.registerComponentModel(yde),r.registerComponentView(Bde),Al("saveAsImage",bde),Al("magicType",Sde),Al("dataView",kde),Al("dataZoom",qde),Al("restore",Gde),We(pde)}var tpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:le.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:le.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:le.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:le.color.tertiary,fontSize:14}},e}(et);const rpe=tpe;function T3(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function I3(r){if(st.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var L3=I3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),npe=I3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function E3(r,e){if(!r)return e;e=xO(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function ape(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var ipe=E3(npe,"transition"),zx=E3(L3,"transform"),ope="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(st.transform3dSupported?"will-change:transform;":"");function spe(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Ape(r,e,t){if(!Ce(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=rA(e);var i=spe(t),o=Math.max(Math.round(a)*1.5,6),s="",A=zx+":",l;$e(["left","right"],i)>-1?(s+="top:50%",A+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(s+="left:50%",A+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,c=o+a,f=c*Math.abs(Math.cos(u))+c*Math.abs(Math.sin(u)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+A+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function lpe(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(st.transformSupported?""+zx+a:",left"+a+",top"+a)),ipe+":"+i}function tD(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!st.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=st.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+zx+":"+o+";":[["top",0],["left",0],[L3,o]]}function upe(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Le(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,A=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+A+"px "+o+"px "+i),F(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function cpe(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),A=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=hH(r,"html"),h=l+"px "+u+"px "+s+"px "+A;return a.push("box-shadow:"+h),e&&i>0&&a.push(lpe(i,t,n)),o&&a.push("background-color:"+o),F(["width","color","radius"],function(v){var d="border-"+v,p=xO(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(upe(c)),f!=null&&a.push("padding:"+kf(f).join("px ")+"px"),a.join(";")+";"}function rD(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&h7(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var fpe=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,st.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(Ce(i)?document.querySelector(i):El(i)?i:Me(i)&&i(e.getDom()));rD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(A){if(A=A||window.event,!s._enterable){var l=a.handler,u=a.painter.getViewportRoot();kn(u,A,!0),l.dispatch("mousemove",A)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=ape(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=ope+cpe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+tD(i[0],i[1],!0)+("border-color:"+rA(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Ce(i)&&n.get("trigger")==="item"&&!T3(n)&&(s=Ape(n,a,i)),Ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",ge(e)||(e=[e]);for(var A=0;A<e.length;A++)El(e[A])&&e[A].parentNode!==o&&o.appendChild(e[A]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(rD(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=tD(n[0],n[1]);F(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",st.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(be(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;v7(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r}();const hpe=fpe;var vpe=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),aD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;Oe(e)&&At(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new nt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:hH(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),F(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),F(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var A=this;this.el.on("mouseover",function(){A._enterable&&(clearTimeout(A._hideTimeout),A._show=!0),A._inContent=!0}),this.el.on("mouseout",function(){A._enterable&&A._show&&A.hideLater(A._hideDelay),A._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=nD(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;aD(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=ji(i.borderWidth||0),s=nD(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(be(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function ji(r){return Math.max(0,r)}function nD(r){var e=ji(r.shadowBlur||0),t=ji(r.shadowOffsetX||0),n=ji(r.shadowOffsetY||0);return{left:ji(e-t),right:ji(e+t),top:ji(e-n),bottom:ji(e+n)}}function aD(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const dpe=vpe;var ppe=new Xe({shape:{x:-1,y:-1,width:2,height:2}}),gpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(st.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=iY(a.get("renderMode"));this._tooltipContent=i==="richText"?new dpe(n):new hpe(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(st.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?au(this,"_updatePosition",50,"fixRate"):sf(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");u3("itemTooltip",this._api,be(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||st.node||!a.getDom())){var o=iD(i,a);this._ticket="";var s=i.dataByCoordSys,A=Bpe(i,n,a);if(A){var l=A.el.getBoundingRect().clone();l.applyTransform(A.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:A.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=ppe;u.x=i.x,u.y=i.y,u.update(),Ve(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var c=c3(i,n),f=c.point[0],h=c.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(iD(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,A=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||A==null)){var l=n.getSeriesByIndex(o);if(l){var u=l.getData(),c=Vu([u.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=Ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var A,l;Qs(a,function(u){if(u.tooltipDisabled)return A=l=null,!0;A||l||(Ve(u).dataIndex!=null?A=u:Ve(u).tooltipConfig!=null&&(l=u))},!0),A?this._showSeriesItemTooltip(t,A,n):l?this._showComponentItemTooltip(t,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=be(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Vu([n.tooltipOption],i),A=this._renderMode,l=[],u=nr("section",{blocks:[],noHeader:!0}),c=[],f=new Im;F(t,function(y){F(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),B=m.value;if(!(!w||B==null)){var C=s3(B,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),b=nr("section",{header:C,noHeader:!Xn(C),sortBlocks:!0,blocks:[]});u.blocks.push(b),F(m.seriesDataIndices,function(_){var x=a.getSeriesByIndex(_.seriesIndex),S=_.dataIndexInside,I=x.getDataParams(S);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=vp(w.axis,{value:B}),I.axisValueLabel=C,I.marker=f.makeTooltipMarker("item",rA(I.color),A);var L=yI(x.formatTooltip(S,!0,null)),T=L.frag;if(T){var M=Vu([x],i).get("valueFormatter");b.blocks.push(M?ve({valueFormatter:M},T):T)}L.text&&c.push(L.text),l.push(I)}})}})}),u.blocks.reverse(),c.reverse();var h=n.position,v=s.get("order"),d=xI(u,f,A,v,a.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var p=A==="richText"?`
`:"<br/>",g=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=Ve(n),s=o.seriesIndex,A=i.getSeriesByIndex(s),l=o.dataModel||A,u=o.dataIndex,c=o.dataType,f=l.getData(c),h=this._renderMode,v=t.positionDefault,d=Vu([f.getItemModel(u),l,A&&(A.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,c),y=new Im;g.marker=y.makeTooltipMarker("item",rA(g.color),h);var m=yI(l.formatTooltip(u,!1,c)),w=d.get("order"),B=d.get("valueFormatter"),C=m.frag,b=C?xI(B?ve({valueFormatter:B},C):C,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,_="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,_,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:f.getRawIndex(u),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=Ve(n),s=o.tooltipConfig,A=s.option||{},l=A.encodeHTMLContent;if(Ce(A)){var u=A;A={content:u,formatter:u},l=!0}l&&i&&A.content&&(A=De(A),A.content=Vr(A.content));var c=[A],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&c.push(f),c.push({formatter:A.content});var h=t.positionDefault,v=Vu(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new Im;this._showOrMove(v,function(){var y=De(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,t.offsetX,t.offsetY,t.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,A,l,u){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var f=t.get("formatter");A=A||t.get("position");var h=n,v=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=v.color;if(f)if(Ce(f)){var p=t.ecModel.get("useUTC"),g=ge(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=f,y&&(h=Pg(g.axisValue,h,p)),h=_O(h,a,!0)}else if(Me(f)){var m=be(function(w,B){w===this._ticket&&(c.setContent(B,u,t,d,A),this._updatePosition(t,A,o,s,c,a,l))},this);this._ticket=i,h=f(a,i,m)}else h=f;c.setContent(h,u,t,d,A),c.show(t,d),this._updatePosition(t,A,o,s,c,a,l)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||ge(n))return{color:i||o};if(!ge(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,A){var l=this._api.getWidth(),u=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),v=A&&A.getBoundingRect().clone();if(A&&v.applyTransform(A.transform),Me(n)&&(n=n([a,i],s,o.el,v,{viewSize:[l,u],contentSize:c.slice()})),ge(n))a=Be(n[0],l),i=Be(n[1],u);else if(Oe(n)){var d=n;d.width=c[0],d.height=c[1];var p=Ut(d,{width:l,height:u});a=p.x,i=p.y,f=null,h=null}else if(Ce(n)&&A){var g=wpe(n,v,c,t.get("borderWidth"));a=g[0],i=g[1]}else{var g=ype(a,i,o,l,u,f?null:20,h?null:20);a=g[0],i=g[1]}if(f&&(a-=oD(f)?c[0]/2:f==="right"?c[0]:0),h&&(i-=oD(h)?c[1]/2:h==="bottom"?c[1]:0),T3(t)){var g=mpe(a,i,o,l,u);a=g[0],i=g[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&F(a,function(s,A){var l=s.dataByAxis||[],u=t[A]||{},c=u.dataByAxis||[];o=o&&l.length===c.length,o&&F(l,function(f,h){var v=c[h]||{},d=f.seriesDataIndices||[],p=v.seriesDataIndices||[];o=o&&f.value===v.value&&f.axisType===v.axisType&&f.axisId===v.axisId&&d.length===p.length,o&&F(d,function(g,y){var m=p[y];o=o&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&F(f.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){st.node||!n.getDom()||(sf(this,"_updatePosition"),this._tooltipContent.dispose(),QB("itemTooltip",n))},e.type="tooltip",e}(Nt);function Vu(r,e,t){var n=e.ecModel,a;t?(a=new ot(t,n,n),a=new ot(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ot&&(o=o.get("tooltip",!0)),Ce(o)&&(o={formatter:o}),o&&(a=new ot(o,a,n)))}return a}function iD(r,e){return r.dispatchAction||be(e.dispatchAction,e)}function ype(r,e,t,n,a,i,o){var s=t.getSize(),A=s[0],l=s[1];return i!=null&&(r+A+i+2>n?r-=A+i:r+=i),o!=null&&(e+l+o>a?e-=l+o:e+=o),[r,e]}function mpe(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function wpe(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,A=0,l=e.width,u=e.height;switch(r){case"inside":s=e.x+l/2-a/2,A=e.y+u/2-i/2;break;case"top":s=e.x+l/2-a/2,A=e.y-i-o;break;case"bottom":s=e.x+l/2-a/2,A=e.y+u+o;break;case"left":s=e.x-a-o,A=e.y+u/2-i/2;break;case"right":s=e.x+l+o,A=e.y+u/2-i/2}return[s,A]}function oD(r){return r==="center"||r==="middle"}function Bpe(r,e,t){var n=VC(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=jl(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),A;if(s.group.traverse(function(l){var u=Ve(l).tooltipConfig;if(u&&u.name===r.name)return A=l,!0}),A)return{componentMainType:a,componentIndex:o.componentIndex,el:A}}}}const Cpe=gpe;function bpe(r){We(Xf),r.registerComponentModel(rpe),r.registerComponentView(Cpe),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var xpe=["rect","polygon","keep","clear"];function _pe(r,e){var t=gt(r?r.brush:[]);if(t.length){var n=[];F(t,function(A){var l=A.hasOwnProperty("toolbox")?A.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;ge(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Spe(s),e&&!s.length&&s.push.apply(s,xpe)}}function Spe(r){var e={};F(r,function(t){e[t]=1}),r.length=0,F(e,function(t,n){r.push(n)})}var sD=F;function AD(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function GB(r,e,t){var n={};return sD(e,function(i){var o=n[i]=a();sD(r[i],function(s,A){if(Qr.isValidType(A)){var l={type:A,visual:s};t&&t(l,i),o[A]=new Qr(l),A==="opacity"&&(l=De(l),l.type="colorAlpha",o.__hidden.__alphaForOpacity=new Qr(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function M3(r,e,t){var n;F(t,function(a){e.hasOwnProperty(a)&&AD(e[a])&&(n=!0)}),n&&F(t,function(a){e.hasOwnProperty(a)&&AD(e[a])?r[a]=De(e[a]):delete r[a]})}function Tpe(r,e,t,n,a,i){var o={};F(r,function(c){var f=Qr.prepareVisualTypes(e[c]);o[c]=f});var s;function A(c){return Sb(t,s,c)}function l(c,f){bH(t,s,c,f)}i==null?t.each(u):t.each([i],u);function u(c,f){s=i==null?c:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=n.call(a,c),d=e[v],p=o[v],g=0,y=p.length;g<y;g++){var m=p[g];d[m]&&d[m].applyVisual(c,A,l)}}}function Ipe(r,e,t,n){var a={};return F(r,function(i){var o=Qr.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var A;n!=null&&(A=s.getDimensionIndex(n));function l(B){return Sb(s,c,B)}function u(B,C){bH(s,c,B,C)}for(var c,f=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var v=n!=null?f.get(A,c):c,d=t(v),p=e[d],g=a[d],y=0,m=g.length;y<m;y++){var w=g[y];p[w]&&p[w].applyVisual(v,l,u)}}}}}function Lpe(r){var e=r.brushType,t={point:function(n){return lD[e].point(n,t,r)},rect:function(n){return lD[e].rect(n,t,r)}};return t}var lD={lineX:uD(0),lineY:uD(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&bs(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,A=n[0];if(bs(n,a,i)||bs(n,a+o,i)||bs(n,a,i+s)||bs(n,a+o,i+s)||Ne.create(r).contain(A[0],A[1])||pc(a,i,a+o,i,n)||pc(a,i,a,i+s,n)||pc(a+o,i,a+o,i+s,n)||pc(a,i+s,a+o,i+s,n))return!0}}};function uD(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return Gu(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),Gu(s[0],o)||Gu(s[1],o)||Gu(o[0],s)||Gu(o[1],s)}}}}function Gu(r,e){return e[0]<=r&&r<=e[1]}var cD=["inBrush","outOfBrush"],Y0="__ecBrushSelect",zB="__ecInBrushSelectEvent";function D3(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Vx(e.option,r);t.setInputRanges(e.areas,r)})}function Epe(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),D3(r),r.eachComponent({mainType:"brush"},function(o,s){var A={brushId:o.id,brushIndex:s,brushName:o.name,areas:De(o.areas),selected:[]};n.push(A);var l=o.option,u=l.brushLink,c=[],f=[],h=[],v=!1;s||(a=l.throttleType,i=l.throttleDelay);var d=me(o.areas,function(B){var C=Qpe[B.brushType],b=Re({boundingRect:C?C(B):void 0},B);return b.selectors=Lpe(b),b}),p=GB(o.option,cD,function(B){B.mappingMethod="fixed"});ge(u)&&F(u,function(B){c[B]=1});function g(B){return u==="all"||!!c[B]}function y(B){return!!B.length}r.eachSeries(function(B,C){var b=h[C]=[];B.subType==="parallel"?m(B,C):w(B,C,b)});function m(B,C){var b=B.coordinateSystem;v=v||b.hasAxisBrushed(),g(C)&&b.eachActiveState(B.getData(),function(_,x){_==="active"&&(f[x]=1)})}function w(B,C,b){if(!(!B.brushSelector||Fpe(o,C))&&(F(d,function(x){o.brushTargetManager.controlSeries(x,B,r)&&b.push(x),v=v||y(b)}),g(C)&&y(b))){var _=B.getData();_.each(function(x){fD(B,b,_,x)&&(f[x]=1)})}}r.eachSeries(function(B,C){var b={seriesId:B.id,seriesIndex:C,seriesName:B.name,dataIndex:[]};A.selected.push(b);var _=h[C],x=B.getData(),S=g(C)?function(I){return f[I]?(b.dataIndex.push(x.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return fD(B,_,x,I)?(b.dataIndex.push(x.getRawIndex(I)),"inBrush"):"outOfBrush"};(g(C)?v:y(_))&&Tpe(cD,p,x,S)})}),Mpe(e,a,i,n,t)}function Mpe(r,e,t,n,a){if(a){var i=r.getZr();if(!i[zB]){i[Y0]||(i[Y0]=Dpe);var o=au(i,Y0,t,e);o(r,n)}}}function Dpe(r,e){if(!r.isDisposed()){var t=r.getZr();t[zB]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[zB]=!1}}function fD(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function Fpe(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(ge(t)?$e(t,e)<0:e!==t)}var Qpe={rect:function(r){return hD(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&hD(e)}};function hD(r){return new Ne(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Upe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new gx(n.getZr())).on("brush",be(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){D3(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:De(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:De(a),$from:n})},e.type="brush",e}(Nt);const Ppe=Upe;var kpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&M3(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=me(t,function(n){return vD(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=vD(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:le.color.backgroundTint,borderColor:le.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:le.color.disabled},e}(et);function vD(r,e){return Ke({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ot(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const Rpe=kpe;var Ope=["rect","polygon","lineX","lineY","keep","clear"],Hpe=function(r){ce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(A){i=A.brushType,o=A.brushOption.brushMode||"single",s=s||!!A.areas.length}),this._brushType=i,this._brushMode=o,F(t.get("type",!0),function(A){t.setIconStatus(A,(A==="keep"?o==="multiple":A==="clear"?s:A===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return F(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:Ope.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(Gn);const Npe=Hpe;function Vpe(r){r.registerComponentView(Ppe),r.registerComponentModel(Rpe),r.registerPreprocessor(_pe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Epe),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),Al("brush",Npe)}var Gpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:le.size.m,backgroundColor:le.color.transparent,borderColor:le.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:le.color.primary},subtextStyle:{fontSize:12,color:le.color.quaternary}},e}(et),zpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),A=t.get("textAlign"),l=Le(t.get("textBaseline"),t.get("textVerticalAlign")),u=new nt({style:Ct(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),f=t.get("subtext"),h=new nt({style:Ct(s,{text:f,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),p=t.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){ip(v,"_"+t.get("target"))}),d&&h.on("click",function(){ip(d,"_"+t.get("subtarget"))}),Ve(u).eventData=Ve(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),f&&i.add(h);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=hr(t,a),w=Ut(y,m.refContainer,t.get("padding"));A||(A=t.get("left")||t.get("right"),A==="middle"&&(A="center"),A==="right"?w.x+=w.width:A==="center"&&(w.x+=w.width/2)),l||(l=t.get("top")||t.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?w.y+=w.height:l==="middle"&&(w.y+=w.height/2),l=l||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var B={align:A,verticalAlign:l};u.setStyle(B),h.setStyle(B),g=i.getBoundingRect();var C=w.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var _=new Xe({shape:{x:g.x-C[3],y:g.y-C[0],width:g.width+C[1]+C[3],height:g.height+C[0]+C[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(Nt);function $pe(r){r.registerComponentModel(Gpe),r.registerComponentView(zpe)}var Kpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],F(n,function(l,u){var c=Ar(Zl(l),""),f;Oe(l)?(f=De(l),f.value=u):f=u,o.push(f),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",A=this._data=new tn([{name:"value",type:s}],this);A.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:le.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:le.color.secondary},data:[]},e}(et);const dD=Kpe;var F3=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Ro(dD.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:le.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:le.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:le.color.tertiary},itemStyle:{color:le.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:le.color.accent50,borderColor:le.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:le.color.accent50,borderColor:le.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:le.color.accent60},itemStyle:{color:le.color.accent60,borderColor:le.color.accent60},controlStyle:{color:le.color.accent70,borderColor:le.color.accent70}},progress:{lineStyle:{color:le.color.accent30},itemStyle:{color:le.color.accent40}},data:[]}),e}(dD);ir(F3,Og.prototype);const Wpe=F3;var Xpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Nt);const Ype=Xpe;var Zpe=function(r){ce(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Ba);const jpe=Zpe;var Z0=Math.PI,pD=Ye(),Jpe=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),A=this._axis=this._createAxis(i,t);t.formatTooltip=function(l){var u=A.scale.getLabel({value:l});return nr("nameValue",{noName:!0,value:u})},F(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,o,A,t)},this),this._renderAxisLabel(i,s,A,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=ege(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Ce(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var A={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},l={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:Z0/2},c=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),v=h?f.get("itemSize"):0,d=h?f.get("itemGap"):0,p=v+d,g=t.get(["label","rotate"])||0;g=g*Z0/180;var y,m,w,B=f.get("position",!0),C=h&&f.get("showPlayBtn",!0),b=h&&f.get("showPrevBtn",!0),_=h&&f.get("showNextBtn",!0),x=0,S=c;B==="left"||B==="bottom"?(C&&(y=[0,0],x+=p),b&&(m=[x,0],x+=p),_&&(w=[S-v,0],S-=p)):(C&&(y=[S-v,0],S-=p),b&&(m=[0,0],x+=p),_&&(w=[S-v,0],S-=p));var I=[x,S];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||A[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=xr(),A=o.x,l=o.y+o.height;ja(s,s,[-A,-l]),Uo(s,s,-Z0/2),ja(s,s,[A,l]),o=o.clone(),o.applyTransform(s)}var u=y(o),c=y(a.getBoundingRect()),f=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=t.labelPosOpt;if(d==null||Ce(d)){var p=d==="+"?0:1;m(h,c,u,1,p),m(v,f,u,1,1-p)}else{var p=d>=0?0:1;m(h,c,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=t.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,B,C,b,_){w[b]+=C[b][_]-B[b][_]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=qpe(n,i);o.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var A=new jpe("value",o,t.axisExtent,i);return A.model=n,A},e.prototype._createGroup=function(t){var n=this[t]=new Fe;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new lr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ve({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var A=this._progressLine=new lr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Re({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(A)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),A=a.scale.getTicks();this._tickSymbols=[],F(A,function(l){var u=a.dataToCoord(l.value),c=s.getItemModel(l.value),f=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),v=c.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:be(o._changeTimeline,o,l.value)},p=gD(c,f,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),Gs(p);var g=Ve(p);c.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,o._tickSymbols.push(p)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var A=i.getData(),l=a.getViewLabels();this._tickLabels=[],F(l,function(u){var c=u.tickValue,f=A.getItemModel(c),h=f.getModel("label"),v=f.getModel(["emphasis","label"]),d=f.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new nt({x:p,y:0,rotation:t.labelRotation-t.rotation,onclick:be(o._changeTimeline,o,c),silent:!1,style:Ct(h,{text:u.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Ct(v),g.ensureState("progress").style=Ct(d),n.add(g),Gs(g),pD(g).dataIndex=c,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,A=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),c=i.get("inverse",!0);f(t.nextBtnPosition,"next",be(this._changeTimeline,this,c?"-":"+")),f(t.prevBtnPosition,"prev",be(this._changeTimeline,this,c?"+":"-")),f(t.playPosition,u?"stop":"play",be(this._handlePlayClick,this,!u),!0);function f(h,v,d,p){if(h){var g=da(Le(i.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-g/2,g,g],m=tge(i,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:A,onclick:d});m.ensureState("emphasis").style=l,n.add(m),Gs(m)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),A=o.getItemModel(s).getModel("checkpointStyle"),l=this,u={onCreate:function(c){c.draggable=!0,c.drift=be(l._handlePointerDrag,l),c.ondragend=be(l._handlePointerDragend,l),yD(c,l._progressLine,s,a,i,!0)},onUpdate:function(c){yD(c,l._progressLine,s,a,i)}};this._currentPointer=gD(A,A,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Yn(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var A=this._findNearestTick(a),l=this.model;(n||A!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(A)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return ua(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,A){var l=o.dataToCoord(s),u=Math.abs(l-t);u<a&&(a=u,i=A)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",pD(a[i]).dataIndex<=t)},e.type="timeline.slider",e}(Ype);function qpe(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new ff({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new v4({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Lo}}function ege(r,e){return Ut(r.getBoxLayoutParams(),hr(r,e).refContainer,r.get("padding"))}function tge(r,e,t,n){var a=n.style,i=Pf(r.get(["controlStyle",e]),n||{},new Ne(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function gD(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=ar(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var A=e.getItemStyle(["color"]);a.setStyle(A),n=Ke({rectHover:!0,z2:100},n,!0);var l=iu(r.get("symbolSize"));n.scaleX=l[0]/2,n.scaleY=l[1]/2;var u=hA(r.get("symbolOffset"),l);u&&(n.x=(n.x||0)+u[0],n.y=(n.y||0)+u[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function yD(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var A={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},A),e&&e.animateTo({shape:{x2:s}},A)}}}const rge=Jpe;function nge(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Re({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function age(r){var e=r&&r.timeline;ge(e)||(e=e?[e]:[]),F(e,function(t){t&&ige(t)})}function ige(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),mD(r),Ss(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});Ss(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!Ss(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}F(r.data||[],function(a){Oe(a)&&!ge(a)&&(!Ss(a,"value")&&Ss(a,"name")&&(a.value=a.name),mD(a))})}function mD(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};F(n,function(o,s){!i[s]&&!Ss(a,s)&&(a[s]=o)}),t.label&&!Ss(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function Ss(r,e){return r.hasOwnProperty(e)}function oge(r){r.registerComponentModel(Wpe),r.registerComponentView(rge),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),nge(r),r.registerPreprocessor(age)}function $x(r,e){if(!r)return!1;for(var t=ge(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function Ev(r){Zs(r,"label",["show"])}var Mv=Ye(),Q3=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(st.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var A=s.get(this.mainType,!0),l=Mv(s)[o];if(!A||!A.data){Mv(s)[o]=null;return}l?l._mergeOption(A,n,!0):(i&&Ev(A),F(A.data,function(u){u instanceof Array?(Ev(u[0]),Ev(u[1])):Ev(u)}),l=this.createMarkerModelFromSeries(A,this,n),ve(l,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),l.__hostSeries=s),Mv(s)[o]=l},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return nr("section",{header:this.name,blocks:[nr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var a=Og.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return Mv(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(et);ir(Q3,Og.prototype);const Qi=Q3;var sge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Qi);const Age=sge;function $B(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function lge(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Dv(r,e,t,n,a,i,o){var s=[],A=Io(e,a),l=A?e.getCalculationInfo("stackResultDimension"):a,u=Op(e,l,r),c=e.hostModel,f=c.indicesOfNearest(t,l,u)[0];s[i]=e.get(n,f),s[o]=e.get(l,f);var h=e.get(a,f),v=Na(e.get(a,f));return v=Math.min(v,20),v>=0&&(s[o]=+s[o].toFixed(v)),[s,h]}var Fv={min:ze(Dv,"min"),max:ze(Dv,"max"),average:ze(Dv,"average"),median:ze(Dv,"median")};function bf(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!lge(e)&&!ge(e.coord)&&ge(a)){var i=U3(e,t,n,r);if(e=De(e),e.type&&Fv[e.type]&&i.baseAxis&&i.valueAxis){var o=$e(a,i.baseAxis.dim),s=$e(a,i.valueAxis.dim),A=Fv[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=A[0],e.value=A[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ge(a)){e.coord=[];var l=r.getBaseAxis();if(l&&e.type&&Fv[e.type]){var u=n.getOtherAxis(l);u&&(e.value=Op(t,t.mapDimension(u.dim),e.type))}}else for(var c=e.coord,f=0;f<2;f++)Fv[c[f]]&&(c[f]=Op(t,t.mapDimension(a[f]),c[f]));return e}}function U3(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(uge(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function uge(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function xf(r,e){return r&&r.containData&&e.coord&&!$B(e)?r.containData(e.coord):!0}function cge(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!$B(e)&&!$B(t)?r.containZone(e.coord,t.coord):!0}function P3(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Co(o,e[i])}:function(t,n,a,i){return Co(t.value,e[i])}}function Op(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var j0=Ye(),fge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Ie()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){j0(s).keep=!1}),n.eachSeries(function(s){var A=Qi.getMarkerModelFromSeries(s,i.type);A&&i.renderSeries(s,A,n,a)}),o.each(function(s){!j0(s).keep&&i.group.remove(s.group)}),hge(n,o,this.type)},e.prototype.markKeep=function(t){j0(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;F(t,function(i){var o=Qi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(A){A&&(n?MR(A):ZC(A))})}})},e.type="marker",e}(Nt);function hge(r,e,t){r.eachSeries(function(n){var a=Qi.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=tA(a),s=o.z,A=o.zlevel;Qg(i.group,s,A)}})}const Kx=fge;function wD(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var A=r.getItemModel(s),l=A.get("relativeTo")==="coordinate",u=l?o?o.width:0:a,c=l?o?o.height:0:i,f=l&&o?o.x:0,h=l&&o?o.y:0,v,d=Be(A.get("x"),u)+f,p=Be(A.get("y"),c)+h;if(!isNaN(d)&&!isNaN(p))v=[d,p];else if(e.getMarkerPosition)v=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var g=r.get(n.dimensions[0],s),y=r.get(n.dimensions[1],s);v=n.dataToPoint([g,y])}isNaN(d)||(v[0]=d),isNaN(p)||(v[1]=p),r.setItemLayout(s,v)})}var vge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Qi.getMarkerModelFromSeries(i,"markPoint");o&&(wD(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,A=t.getData(),l=this.markerGroupMap,u=l.get(s)||l.set(s,new zf),c=dge(o,t,n);n.setData(c),wD(n.getData(),t,i),c.each(function(f){var h=c.getItemModel(f),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Me(v)||Me(d)||Me(p)||Me(g)){var m=n.getRawValue(f),w=n.getDataParams(f);Me(v)&&(v=v(m,w)),Me(d)&&(d=d(m,w)),Me(p)&&(p=p(m,w)),Me(g)&&(g=g(m,w))}var B=h.getModel("itemStyle").getItemStyle(),C=h.get("z2"),b=Hf(A,"color");B.fill||(B.fill=b),c.setItemVisual(f,{z2:Le(C,0),symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:B})}),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl(function(f){f.traverse(function(h){Ve(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(Kx);function dge(r,e,t){var n;r?n=me(r&&r.dimensions,function(s){var A=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return ve(ve({},A),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tn(n,t),i=me(t.get("data"),ze(bf,e));r&&(i=ft(i,ze(xf,r)));var o=P3(!!r,n);return a.initData(i,null,o),a}const pge=vge;function gge(r){r.registerComponentModel(Age),r.registerComponentView(pge),r.registerPreprocessor(function(e){$x(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var yge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Qi);const mge=yge;var Qv=Ye(),wge=function(r,e,t,n){var a=r.getData(),i;if(ge(n))i=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,A=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),A=Fr(n.yAxis,n.xAxis);else{var l=U3(n,a,e,r);s=l.valueAxis;var u=e4(a,l.valueDataDim);A=Op(a,u,o)}var c=s.dim==="x"?0:1,f=1-c,h=De(n),v={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,v.coord[f]=1/0;var d=t.get("precision");d>=0&&qe(A)&&(A=+A.toFixed(Math.min(d,20))),h.coord[c]=v.coord[c]=A,i=[h,v,{type:o,valueIndex:n.valueIndex,value:A}]}else i=[]}var p=[bf(r,i[0]),bf(r,i[1]),ve({},i[2])];return p[2].type=p[2].type||null,Ke(p[2],p[0]),Ke(p[2],p[1]),p};function Hp(r){return!isNaN(r)&&!isFinite(r)}function BD(r,e,t,n){var a=1-r,i=n.dimensions[r];return Hp(e[a])&&Hp(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function Bge(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(BD(1,t,n,r)||BD(0,t,n,r)))return!0}return xf(r,e[0])&&xf(r,e[1])}function J0(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,A=Be(o.get("x"),a.getWidth()),l=Be(o.get("y"),a.getHeight());if(!isNaN(A)&&!isNaN(l))s=[A,l];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var u=i.dimensions,c=r.get(u[0],e),f=r.get(u[1],e);s=i.dataToPoint([c,f])}if(Eo(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;Hp(r.get(u[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):Hp(r.get(u[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(A)||(s[0]=A),isNaN(l)||(s[1]=l)}r.setItemLayout(e,s)}var Cge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Qi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),A=Qv(o).from,l=Qv(o).to;A.each(function(u){J0(A,u,!0,i,a),J0(l,u,!1,i,a)}),s.each(function(u){s.setItemLayout(u,[A.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,A=t.getData(),l=this.markerGroupMap,u=l.get(s)||l.set(s,new ux);this.group.add(u.group);var c=bge(o,t,n),f=c.from,h=c.to,v=c.line;Qv(n).from=f,Qv(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");ge(d)||(d=[d,d]),ge(p)||(p=[p,p]),ge(g)||(g=[g,g]),ge(y)||(y=[y,y]),c.from.each(function(w){m(f,w,!0),m(h,w,!1)}),v.each(function(w){var B=v.getItemModel(w),C=B.getModel("lineStyle").getLineStyle();v.setItemLayout(w,[f.getItemLayout(w),h.getItemLayout(w)]);var b=B.get("z2");C.stroke==null&&(C.stroke=f.getItemVisual(w,"style").fill),v.setItemVisual(w,{z2:Le(b,0),fromSymbolKeepAspect:f.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(w,"symbolOffset"),fromSymbolRotate:f.getItemVisual(w,"symbolRotate"),fromSymbolSize:f.getItemVisual(w,"symbolSize"),fromSymbol:f.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:C})}),u.updateData(v),c.line.eachItemGraphicEl(function(w){Ve(w).dataModel=n,w.traverse(function(B){Ve(B).dataModel=n})});function m(w,B,C){var b=w.getItemModel(B);J0(w,B,C,t,i);var _=b.getModel("itemStyle").getItemStyle();_.fill==null&&(_.fill=Hf(A,"color")),w.setItemVisual(B,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:Le(b.get("symbolOffset",!0),y[C?0:1]),symbolRotate:Le(b.get("symbolRotate",!0),g[C?0:1]),symbolSize:Le(b.get("symbolSize"),p[C?0:1]),symbol:Le(b.get("symbol",!0),d[C?0:1]),style:_})}this.markKeep(u),u.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(Kx);function bge(r,e,t){var n;r?n=me(r&&r.dimensions,function(l){var u=e.getData().getDimensionInfo(e.getData().mapDimension(l))||{};return ve(ve({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new tn(n,t),i=new tn(n,t),o=new tn([],t),s=me(t.get("data"),ze(wge,e,r,t));r&&(s=ft(s,ze(Bge,r)));var A=P3(!!r,n);return a.initData(me(s,function(l){return l[0]}),null,A),i.initData(me(s,function(l){return l[1]}),null,A),o.initData(me(s,function(l){return l[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const xge=Cge;function _ge(r){r.registerComponentModel(mge),r.registerComponentView(xge),r.registerPreprocessor(function(e){$x(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Sge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Qi);const Tge=Sge;var Uv=Ye(),Ige=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=bf(r,a),s=bf(r,i),A=o.coord,l=s.coord;A[0]=Fr(A[0],-1/0),A[1]=Fr(A[1],-1/0),l[0]=Fr(l[0],1/0),l[1]=Fr(l[1],1/0);var u=EC([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function Np(r){return!isNaN(r)&&!isFinite(r)}function CD(r,e,t,n){var a=1-r;return Np(e[a])&&Np(t[a])}function Lge(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Eo(r,"cartesian2d")?t&&n&&(CD(1,t,n)||CD(0,t,n))?!0:cge(r,a,i):xf(r,a)||xf(r,i)}function bD(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,A=Be(o.get(t[0]),a.getWidth()),l=Be(o.get(t[1]),a.getHeight());if(!isNaN(A)&&!isNaN(l))s=[A,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],e),c=r.getValues(["x1","y1"],e),f=i.clampData(u),h=i.clampData(c),v=[];t[0]==="x0"?v[0]=f[0]>h[0]?c[0]:u[0]:v[0]=f[0]>h[0]?u[0]:c[0],t[1]==="y0"?v[1]=f[1]>h[1]?c[1]:u[1]:v[1]=f[1]>h[1]?u[1]:c[1],s=n.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),p=r.get(t[1],e),g=[d,p];i.clampData&&i.clampData(g,g),s=i.dataToPoint(g,!0)}if(Eo(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(t[0],e),p=r.get(t[1],e);Np(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):Np(p)&&(s[1]=m.toGlobalCoord(m.getExtent()[t[1]==="y0"?0:1]))}isNaN(A)||(s[0]=A),isNaN(l)||(s[1]=l)}return s}var xD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ege=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=Qi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(A){var l=me(xD,function(c){return bD(s,A,c,i,a)});s.setItemLayout(A,l);var u=s.getItemGraphicEl(A);u.setShape("points",l)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,A=t.getData(),l=this.markerGroupMap,u=l.get(s)||l.set(s,{group:new Fe});this.group.add(u.group),this.markKeep(u);var c=Mge(o,t,n);n.setData(c),c.each(function(f){var h=me(xD,function(S){return bD(c,f,S,t,i)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(c.get("x0",f)),v.parse(c.get("x1",f))],m=[d.parse(c.get("y0",f)),d.parse(c.get("y1",f))];Yn(y),Yn(m);var w=!(p[0]>y[1]||p[1]<y[0]||g[0]>m[1]||g[1]<m[0]),B=!w;c.setItemLayout(f,{points:h,allClipped:B});var C=c.getItemModel(f),b=C.getModel("itemStyle").getItemStyle(),_=C.get("z2"),x=Hf(A,"color");b.fill||(b.fill=x,Ce(b.fill)&&(b.fill=$d(b.fill,.4))),b.stroke||(b.stroke=x),c.setItemVisual(f,"style",b),c.setItemVisual(f,"z2",Le(_,0))}),c.diff(Uv(u).data).add(function(f){var h=c.getItemLayout(f),v=c.getItemVisual(f,"z2");if(!h.allClipped){var d=new an({z2:Le(v,0),shape:{points:h.points}});c.setItemGraphicEl(f,d),u.group.add(d)}}).update(function(f,h){var v=Uv(u).data.getItemGraphicEl(h),d=c.getItemLayout(f),p=c.getItemVisual(f,"z2");d.allClipped?v&&u.group.remove(v):(v?at(v,{z2:Le(p,0),shape:{points:d.points}},n,f):v=new an({shape:{points:d.points}}),c.setItemGraphicEl(f,v),u.group.add(v))}).remove(function(f){var h=Uv(u).data.getItemGraphicEl(f);u.group.remove(h)}).execute(),c.eachItemGraphicEl(function(f,h){var v=c.getItemModel(h),d=c.getItemVisual(h,"style");f.useStyle(c.getItemVisual(h,"style")),yr(f,fr(v),{labelFetcher:n,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:Ce(d.fill)?$d(d.fill,1):le.color.neutral99}),cr(f,v),Qt(f,null,null,v.get(["emphasis","disabled"])),Ve(f).dataModel=n}),Uv(u).data=c,u.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(Kx);function Mge(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=me(r&&r.dimensions,function(l){var u=e.getData(),c=u.getDimensionInfo(u.mapDimension(l))||{};return ve(ve({},c),{name:l,ordinalMeta:null})});a=me(i,function(l,u){return{name:l,type:o[u%2].type}}),n=new tn(a,t)}else a=[{name:"value",type:"float"}],n=new tn(a,t);var s=me(t.get("data"),ze(Ige,e,r,t));r&&(s=ft(s,ze(Lge,r)));var A=r?function(l,u,c,f){var h=l.coord[Math.floor(f/2)][f%2];return Co(h,a[f])}:function(l,u,c,f){return Co(l.value,a[f])};return n.initData(s,null,A),n.hasItemOption=!0,n}const Dge=Ege;function Fge(r){r.registerComponentModel(Tge),r.registerComponentView(Dge),r.registerPreprocessor(function(e){$x(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Qge=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Uge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),ge(n)&&F(n,function(i,o){Ce(i)&&(i={type:i}),n[o]=Ke(i,Qge(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(A){var l=A.name;a.push(l);var u;if(A.legendVisualProvider){var c=A.legendVisualProvider,f=c.getAllNames();t.isSeriesFiltered(A)||(a=a.concat(f)),f.length?n=n.concat(f):u=!0}else u=!0;u&&NC(A)&&n.push(A.name)}),this._availableNames=a;var i=this.get("data")||n,o=Ie(),s=me(i,function(A){return(Ce(A)||qe(A))&&(A={name:A}),o.get(A.name)?null:(o.set(A.name,!0),new ot(A,this,this.ecModel))},this);this._data=ft(s,function(A){return!!A})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;F(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;F(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;F(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&$e(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:le.size.m,align:"auto",backgroundColor:le.color.transparent,borderColor:le.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:le.color.disabled,inactiveBorderColor:le.color.disabled,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:le.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:le.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:le.color.tertiary,borderWidth:1,borderColor:le.color.border},emphasis:{selectorLabel:{show:!0,color:le.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(et);const KB=Uge;var jA=ze,WB=F,Pv=Fe,Pge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Pv),this.group.add(this._selectorGroup=new Pv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var A=t.get("selector",!0),l=t.get("selectorPosition",!0);A&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,A,s,l);var u=hr(t,a).refContainer,c=t.getBoxLayoutParams(),f=t.get("padding"),h=Ut(c,u,f),v=this.layoutInner(t,o,h,i,A,l),d=Ut(Re({width:v.width,height:v.height},c),u,f);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=x3(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,A){var l=this.getContentGroup(),u=Ie(),c=n.get("selectedMode"),f=n.get("triggerEvent"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),WB(n.getData(),function(v,d){var p=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var y=new Pv;y.newline=!0,l.add(y);return}var m=a.getSeriesByName(g)[0];if(!u.get(g))if(m){var w=m.getData(),B=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),b=w.getVisual("style"),_=this._createItem(m,g,d,v,n,t,B,b,C,c,i);_.on("click",jA(_D,g,null,i,h)).on("mouseover",jA(XB,m.name,null,i,h)).on("mouseout",jA(YB,m.name,null,i,h)),a.ssr&&_.eachChild(function(x){var S=Ve(x);S.seriesIndex=m.seriesIndex,S.dataIndex=d,S.ssrType="legend"}),f&&_.eachChild(function(x){p.packEventData(x,n,m,d,g)}),u.set(g,!0)}else a.eachRawSeries(function(x){var S=this;if(!u.get(g)&&x.legendVisualProvider){var I=x.legendVisualProvider;if(!I.containName(g))return;var L=I.indexOfName(g),T=I.getItemVisual(L,"style"),M=I.getItemVisual(L,"legendIcon"),R=hn(T.fill);R&&R[3]===0&&(R[3]=.2,T=ve(ve({},T),{fill:Wa(R,"rgba")}));var P=this._createItem(x,g,d,v,n,t,{},T,M,c,i);P.on("click",jA(_D,null,g,i,h)).on("mouseover",jA(XB,null,g,i,h)).on("mouseout",jA(YB,null,g,i,h)),a.ssr&&P.eachChild(function(E){var k=Ve(E);k.seriesIndex=x.seriesIndex,k.dataIndex=d,k.ssrType="legend"}),f&&P.eachChild(function(E){S.packEventData(E,n,x,d,g)}),u.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,A)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Ve(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();WB(t,function(l){var u=l.type,c=new nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var f=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);yr(c,{normal:f,emphasis:h},{defaultText:l.title}),Gs(c)})},e.prototype._createItem=function(t,n,a,i,o,s,A,l,u,c,f){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),p=o.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=kge(u,i,A,l,h,p,f),B=new Pv,C=i.getModel("textStyle");if(Me(t.getLegendIcon)&&(!m||m==="inherit"))B.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var b=m==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;B.add(Rge({itemWidth:v,itemHeight:d,icon:u,iconRotate:b,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var _=s==="left"?v+5:-5,x=s,S=o.get("formatter"),I=n;Ce(S)&&S?I=S.replace("{name}",n??""):Me(S)&&(I=S(n));var L=p?C.getTextColor():i.get("inactiveColor");B.add(new nt({style:Ct(C,{text:I,x:_,y:d/2,fill:L,align:x,verticalAlign:"middle"},{inheritColor:L})}));var T=new Xe({shape:B.getBoundingRect(),style:{fill:"transparent"}}),M=i.getModel("tooltip");return M.get("show")&&Pi({el:T,componentModel:o,itemName:n,itemTooltipOption:M.option}),B.add(T),B.eachChild(function(R){R.silent=!0}),T.silent=!c,this.getContentGroup().add(B),Gs(B),B.__legendDataIndex=a,B},e.prototype.layoutInner=function(t,n,a,i,o,s){var A=this.getContentGroup(),l=this.getSelectorGroup();$s(t.get("orient"),A,t.get("itemGap"),a.width,a.height);var u=A.getBoundingRect(),c=[-u.x,-u.y];if(l.markRedraw(),A.markRedraw(),o){$s("horizontal",l,t.get("selectorItemGap",!0));var f=l.getBoundingRect(),h=[-f.x,-f.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=u[p]+v:c[d]+=f[p]+v,h[1-d]+=u[g]/2-f[g]/2,l.x=h[0],l.y=h[1],A.x=c[0],A.y=c[1];var m={x:0,y:0};return m[p]=u[p]+v+f[p],m[g]=Math.max(u[g],f[g]),m[y]=Math.min(0,f[y]+h[1-d]),m}else return A.x=c[0],A.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Nt);function kge(r,e,t,n,a,i,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),WB(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var A=e.getModel("itemStyle"),l=A.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=A.getShallow("decal");l.decal=!c||c==="inherit"?n.decal:Ul(c,o),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:t).opacity),s(l,n);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=e.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function Rge(r){var e=r.icon||"roundRect",t=ar(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=le.color.neutral00,t.style.lineWidth=2),t}function _D(r,e,t,n){YB(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),XB(r,e,t,n)}function k3(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function XB(r,e,t,n){k3(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function YB(r,e,t,n){k3(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}const R3=Pge;function Oge(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function zu(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),SD(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){F(a,function(A,l){s[A?"select":"unSelect"](l)}),SD(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function SD(r,e){var t=e||{};return F(r.getData(),function(n){var a=n.get("name");if(!(a===`
`||a==="")){var i=r.isSelected(a);Se(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function Hge(r){r.registerAction("legendToggleSelect","legendselectchanged",ze(zu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ze(zu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ze(zu,"inverseSelect")),r.registerAction("legendSelect","legendselected",ze(zu,"select")),r.registerAction("legendUnSelect","legendunselected",ze(zu,"unSelect"))}function O3(r){r.registerComponentModel(KB),r.registerComponentView(R3),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Oge),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Hge(r)}var Nge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=cA(t);r.prototype.init.call(this,t,n,a),TD(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),TD(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Ro(KB.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:le.color.accent50,pageIconInactiveColor:le.color.accent10,pageIconSize:15,pageTextStyle:{color:le.color.tertiary},animationDurationUpdate:800}),e}(KB);function TD(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,ei(e,t,{type:"box",ignoreSize:!!a})}const Vge=Nge;var ID=Fe,q0=["width","height"],ew=["x","y"],Gge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new ID),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ID)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,A){var l=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,A);var u=this._controllerGroup,c=n.get("pageIconSize",!0),f=ge(c)?c:[c,c];v("pagePrev",0);var h=n.getModel("pageTextStyle");u.add(new nt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,p){var g=d+"DataIndex",y=Pf(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:be(l._pageGo,l,g,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=d,u.add(y)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var A=this.getSelectorGroup(),l=t.getOrient().index,u=q0[l],c=ew[l],f=q0[1-l],h=ew[1-l];o&&$s("horizontal",A,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),d=A.getBoundingRect(),p=[-d.x,-d.y],g=De(a);o&&(g[u]=a[u]-d[u]-v);var y=this._layoutContentAndController(t,i,g,l,u,f,h,c);if(o){if(s==="end")p[l]+=y[u]+v;else{var m=d[u]+v;p[l]-=m,y[c]-=m}y[u]+=d[u]+v,p[1-l]+=y[h]+y[f]/2-d[f]/2,y[f]=Math.max(y[f],d[f]),y[h]=Math.min(y[h],d[h]+p[1-l]),A.x=p[0],A.y=p[1],A.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,A,l){var u=this.getContentGroup(),c=this._containerGroup,f=this._controllerGroup;$s(t.get("orient"),u,t.get("itemGap"),i?a.width:null,i?null:a.height),$s("horizontal",f,t.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),v=f.getBoundingRect(),d=this._showController=h[o]>a[o],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=Le(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var w=t.get("pageButtonPosition",!0);w==="end"?y[i]+=a[o]-v[o]:g[i]+=v[o]+m}y[1-i]+=h[s]/2-v[s]/2,u.setPosition(p),c.setPosition(g),f.setPosition(y);var B={x:0,y:0};if(B[o]=d?a[o]:h[o],B[s]=Math.max(h[s],v[s]),B[A]=Math.min(0,v[A]+y[1-i]),c.__rectSize=a[o],d){var C={x:0,y:0};C[o]=Math.max(a[o]-v[o]-m,0),C[s]=B[s],c.setClipPath(new Xe({shape:C})),c.__rectSize=C[o]}else f.eachChild(function(_){_.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&at(u,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),B},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;F(["pagePrev","pageNext"],function(u){var c=u+"DataIndex",f=n[c]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,A=s!=null?s+1:0,l=n.pageCount;i&&o&&i.setStyle("text",Ce(o)?o.replace("{current}",A==null?"":A+"").replace("{total}",l==null?"":l+""):o({current:A,total:l}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=q0[o],A=ew[o],l=this._findTargetItemIndex(n),u=a.children(),c=u[l],f=u.length,h=f?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=w(c);v.contentPosition[o]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=f;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!B(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!B(y,m.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=m;return v;function w(C){if(C){var b=C.getBoundingRect(),_=b[A]+C[A];return{s:_,e:_+b[s],i:C.__legendDataIndex}}}function B(C,b){return C.e>=b&&C.s<=b+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var A=o.__legendDataIndex;i==null&&A!=null&&(i=s),A===t&&(n=s)}),n??i},e.type="legend.scroll",e}(R3);const zge=Gge;function $ge(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function Kge(r){We(O3),r.registerComponentModel(Vge),r.registerComponentView(zge),$ge(r)}function Wge(r){We(O3),We(Kge)}var Xge=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Ro(Cf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Cf);const Yge=Xge;var Wx=Ye();function Zge(r,e,t){Wx(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function jge(r,e){for(var t=Wx(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var A=e.uid,l=s.get(A);l&&(s.removeKey(A),s.keys().length||H3(t,o))}}}function H3(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Jge(r,e){var t={model:e,containsPoint:ze(eye,e),dispatchAction:ze(qge,r),dataZoomInfoMap:null,controller:null},n=t.controller=new gA(r.getZr());return F(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var A=(s.getRange||{})[a],l=A&&A(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&l&&o.push({dataZoomId:s.model.id,start:l[0],end:l[1]})}}),o.length&&t.dispatchAction(o)})}),t}function qge(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function eye(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function tye(r,e,t){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var A=s.model,l=A.get("disabled",!0)?!1:A.get("zoomLock",!0)?"move":!0;i[a+l]>i[a+n]&&(n=l),o=o&&A.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function rye(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Wx(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=Ie());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=B3(i);F(o.infoList,function(s){var A=s.model.uid,l=a.get(A)||a.set(A,Jge(t,s.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=Ie());u.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,A=i.dataZoomInfoMap;if(A){var l=A.keys()[0];l!=null&&(s=A.get(l))}if(!s){H3(a,i);return}var u=tye(A,i,t);o.enable(u.controlType,u.opt),au(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var nye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Zge(a,t,{pan:be(tw.pan,this),zoom:be(tw.zoom,this),scrollMove:be(tw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){jge(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ox),tw={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=rw[e](null,[n.originX,n.originY],o,t,r),A=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-A)*l+A,i[1]=(i[1]-A)*l+A;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Mo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:LD(function(r,e,t,n,a,i){var o=rw[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:LD(function(r,e,t,n,a,i){var o=rw[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function LD(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var A=r(o,s,e,t,n,a);if(Mo(A,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var rw={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,A=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=A[1]-A[0],o.pixelStart=A[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const aye=nye;function N3(r){Hx(r),r.registerComponentModel(Yge),r.registerComponentView(aye),rye(r)}var iye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ro(Cf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:le.color.accent10,borderRadius:0,backgroundColor:le.color.transparent,dataBackground:{lineStyle:{color:le.color.accent30,width:.5},areaStyle:{color:le.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:le.color.accent40,width:.5},areaStyle:{color:le.color.accent20,opacity:.3}},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:le.color.neutral00,borderColor:le.color.accent20},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:le.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:le.color.tertiary},brushSelect:!0,brushStyle:{color:le.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:le.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(Cf);const oye=iye;var $u=Xe,sye=1,nw=30,Aye=7,Ku="horizontal",ED="vertical",lye=5,uye=["line","bar","candlestick","scatter"],cye={easing:"cubicOut",duration:100,delay:0},fye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=be(this._onBrush,this),this._onBrushEnd=be(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),au(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){sf(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Fe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?Aye:0,o=hr(t,n).refContainer,s=this._findCoordRect(),A=t.get("defaultLocationEdgeGap",!0)||0,l=this._orient===Ku?{right:o.width-s.x-s.width,top:o.height-nw-A-i,width:s.width,height:nw}:{right:A,top:s.y,width:nw,height:s.height},u=cA(t.option);F(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Ut(u,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ED&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,A=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Ku&&!o?{scaleY:A?1:-1,scaleX:1}:a===Ku&&o?{scaleY:A?1:-1,scaleX:-1}:a===ED&&!o?{scaleY:A?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:A?-1:1,scaleX:-1,rotation:Math.PI/2});var l=t.getBoundingRect([s]);t.x=n.x-l.x,t.y=n.y-l.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new $u({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new $u({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:be(this._onClickPanel,this)}),s=this.api.getZr();i?(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)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),A=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(A==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||A!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(t.thisDim),f=o.getDataExtent(A),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),m=n[0]/(c[1]-c[0]),w=t.thisAxis.type==="time",B=-y,C=Math.round(o.count()/n[0]),b;o.each([t.thisDim,A],function(L,T,M){if(C>0&&M%C){w||(B+=y);return}B=w?(+L-c[0])*m:B+y;var R=T==null||isNaN(T)||T==="",P=R?0:ct(T,f,v,!0);R&&!b&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!R&&b&&(p.push([B,0]),g.push([B,0])),R||(p.push([B,P]),g.push([B,P])),b=R}),l=this._shadowPolygonPts=p,u=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=A,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function x(L){var T=_.getModel(L?"selectedDataBackground":"dataBackground"),M=new Fe,R=new an({shape:{points:l},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Wr({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(R),M.add(P),M}for(var S=0;S<3;S++){var I=x(S===1);this._displayables.sliderGroup.add(I),this._displayables.dataShadowSegs.push(I)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var A=t.getAxisProxy(o,s).getTargetSeriesModels();F(A,function(l){if(!a&&!(n!==!0&&$e(uye,l.get("type"))<0)){var u=i.getComponent(fo(o),s).axis,c=hye(o),f,h=l.coordinateSystem;c!=null&&h.getOtherAxis&&(f=h.getOtherAxis(u).inverse),c=l.getData().mapDimension(c);var v=l.getData().mapDimension(o);a={thisAxis:u,series:l,thisDim:v,otherDim:c,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,A=this.dataZoomModel,l=this.api,u=A.get("borderRadius")||0,c=A.get("brushSelect"),f=n.filler=new $u({silent:c,style:{fill:A.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new $u({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:u},style:{stroke:A.get("dataBackgroundColor")||A.get("borderColor"),lineWidth:sye,fill:le.color.transparent}})),F([0,1],function(m){var w=A.get("handleIcon");!Ap[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var B=ar(w,-1,0,2,2,null,!0);B.attr({cursor:vye(this._orient),draggable:!0,drift:be(this._onDragMove,this,m),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1),z2:5});var C=B.getBoundingRect(),b=A.get("handleSize");this._handleHeight=Be(b,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,B.setStyle(A.getModel("handleStyle").getItemStyle()),B.style.strokeNoScale=!0,B.rectHover=!0,B.ensureState("emphasis").style=A.getModel(["emphasis","handleStyle"]).getItemStyle(),Gs(B);var _=A.get("handleColor");_!=null&&(B.style.fill=_),o.add(a[m]=B);var x=A.getModel("textStyle"),S=A.get("handleLabel")||{},I=S.show||!1;t.add(i[m]=new nt({silent:!0,invisible:!I,style:Ct(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=f;if(c){var v=Be(A.get("moveHandleSize"),s[1]),d=n.moveHandle=new Xe({style:A.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=ar(A.get("moveHandleIcon"),-p/2,-p/2,p,p,le.color.neutral00,!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=A.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Xe({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:be(this._onDragMove,this,"all"),ondragstart:be(this._showDataInfo,this,!0),ondragend:be(this._onDragEnd,this),onmouseover:be(this._showDataInfo,this,!0),onmouseout:be(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(t[0],[0,100],n,!0),ct(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),A=[0,100];Mo(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?ct(s.minSpan,A,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,A,o,!0):null);var l=this._range,u=this._range=Yn([ct(i[0],o,A,!0),ct(i[1],o,A,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Yn(a.slice()),o=this._size;F([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[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 A=n.dataShadowSegs,l=[0,i[0],i[1],o[0]],u=0;u<A.length;u++){var c=A[u],f=c.getClipPath();f||(f=new Xe,c.setClipPath(f)),f.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var A=n.findRepresentativeAxisProxy();if(A){var l=A.getAxisModel().axis,u=this._range,c=t?A.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:A.getDataValueWindow();s=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var f=Yn(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var d=zs(a.handles[v].parent,this.group),p=Fg(v===0?"right":"left",d),g=this._handleWidth/2+lye,y=ua([f[v]+(v===0?-g:g),this._size[1]/2],d);i[v].setStyle({x:y[0],y:y[1],verticalAlign:o===Ku?"middle":p,align:o===Ku?p:"center",text:s[v]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Me(i)?i(t,s):Ce(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,A=this._displayables,l=A.handleLabels;l[0].attr("invisible",!s),l[1].attr("invisible",!s),A.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](A.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,Ti(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ua([n,a],o,!0),A=this._updateInterval(t,s[0]),l=this.dataZoomModel.get("realtime");this._updateView(!l),A&&l&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ke(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],A=this._handleEnds=[a.x,a.x+a.width],l=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Mo(0,A,o,0,l.minSpan!=null?ct(l.minSpan,s,o,!0):null,l.maxSpan!=null?ct(l.maxSpan,s,o,!0):null),this._range=Yn([ct(A[0],o,s,!0),ct(A[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ti(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new $u({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,A=this._displayables.sliderGroup,l=A.transformCoordToLocal(t,n),u=A.transformCoordToLocal(s.x,s.y),c=this._size;l[0]=Math.max(Math.min(c[0],l[0]),0),o.setShape({x:u[0],y:0,width:l[0]-u[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?cye:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=B3(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Ox);function hye(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function vye(r){return r==="vertical"?"ns-resize":"ew-resize"}const dye=fye;function V3(r){r.registerComponentModel(oye),r.registerComponentView(dye),Hx(r)}function pye(r){We(N3),We(V3)}var gye={get:function(r,e,t){var n=De((yye[r]||{})[e]);return t&&ge(n)?n[n.length-1]:n}},yye={color:{active:["#006edd","#e0ffff"],inactive:[le.color.transparent]},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 G3=gye;var MD=Qr.mapVisual,mye=Qr.eachVisual,wye=ge,DD=F,Bye=Yn,Cye=ct,bye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&M3(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=be(t,this),this.controllerVisuals=GB(this.option.controller,n,t),this.targetVisuals=GB(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,n=this.option.seriesIndex;n==null&&t==null&&(n="all");var a=jl(this.ecModel,"series",{index:n,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return me(a,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,n){F(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,A=i.formatter,l;a=a||["<",">"],ge(t)&&(t=t.slice(),l=!0);var u=n?t:l?[c(t[0]),c(t[1])]:c(t);if(Ce(A))return A.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(Me(A))return l?A(t[0],t[1]):A(t);if(l)return t[0]===s[0]?a[0]+" "+u[1]:t[1]===s[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function c(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=Bye([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Ke(i,a),Ke(o,a);var s=this.isCategory();A.call(this,i),A.call(this,o),l.call(this,i,"inRange","outOfRange"),u.call(this,o);function A(c){wye(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function l(c,f,h){var v=c[f],d=c[h];v&&!d&&(d=c[h]={},DD(v,function(p,g){if(Qr.isValidType(g)){var y=G3.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(c){var f=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";DD(this.stateList,function(g){var y=this.itemSize,m=c[g];m||(m=c[g]={color:s?v:[v]}),m.symbol==null&&(m.symbol=f&&De(f)||(s?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&De(h)||(s?y[0]:[y[0],y[0]])),m.symbol=MD(m.symbol,function(C){return C==="none"?p:C});var w=m.symbolSize;if(w!=null){var B=-1/0;mye(w,function(C){C>B&&(B=C)}),m.symbolSize=MD(w,function(C){return Cye(C,[0,B],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:le.color.transparent,borderColor:le.color.borderTint,contentColor:le.color.theme[0],inactiveColor:le.color.disabled,borderWidth:0,padding:le.size.m,textGap:10,precision:0,textStyle:{color:le.color.secondary}},e}(et);const Vp=bye;var FD=[20,140],xye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=FD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=FD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):ge(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),F(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Yn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=Le(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,A){t[0]<=s&&s<=t[1]&&i.push(A)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=QD(this,"outOfRange",this.getExtent()),a=QD(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:t(h,v)})}for(var s=0,A=0,l=a.length,u=n.length;A<u&&(!a.length||n[A]<=a[0]);A++)n[A]<a[s]&&o(n[A],"outOfRange");for(var c=1;s<l;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;A<u;A++)(!a.length||a[a.length-1]<n[A])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[A],"outOfRange"));var f=i.length;return{stops:i,outerColors:[f?i[0].color:"transparent",f?i[f-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ro(Vp.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:le.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:le.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:le.color.shadow}}),e}(Vp);function QD(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}const _ye=xye;var Sye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=kf(n.get("padding")||0),i=t.getBoundingRect();t.add(new Xe({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var A=o.get("contentColor");s.color=A}function l(h){return s[h]}function u(h,v){s[h]=v}var c=o.controllerVisuals[i||o.getValueState(t)],f=Qr.prepareVisualTypes(c);return F(f,function(h){var v=c[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=c.__alphaForOpacity),Qr.dependsOn(h,n)&&v&&v.applyVisual(t,l,u)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=hr(n,a).refContainer;kg(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e}(Nt);const z3=Sye;var UD=[["left","right","width"],["top","bottom","height"]];function $3(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=UD[o],A=[0,null,10],l={},u=0;u<3;u++)l[UD[1-o][u]]=A[u],l[s[u]]=u===2?t[0]:n[s[u]];var c=[["x","width",3],["y","height",0]][o],f=Ut(l,i,n.padding);return s[(f.margin[c[2]]||0)+f[c[0]]+f[c[1]]*.5<i[c[1]]*.5?0:1]}function xd(r,e){return F(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Ua=ct,Tye=F,PD=Math.min,aw=Math.max,Iye=12,Lye=6,Eye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=be(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=be(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),A=o.itemSize,l=this._shapes.mainGroup,u=this._applyTransform([A[0]/2,a===0?-s:A[1]+s],l),c=this._applyTransform(a===0?"bottom":"top",l),f=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new nt({style:Ct(h,{x:u[0],y:u[1],verticalAlign:h.get("verticalAlign")||(f==="horizontal"?"middle":c),align:h.get("align")||(f==="horizontal"?c:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,A=$3(n,this.api,i),l=a.mainGroup=this._createBarGroup(A),u=new Fe;l.add(u),u.add(a.outOfRange=kD()),u.add(a.inRange=kD(null,s?OD(this._orient):null,be(this._dragHandle,this,"all",!1),be(this._dragHandle,this,"all",!0))),u.setClipPath(new Xe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),f=aw(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,l,0,i,f,o),this._createHandle(n,l,1,i,f,o)),this._createIndicator(n,l,i,f,o),t.add(l)},e.prototype._createHandle=function(t,n,a,i,o,s){var A=be(this._dragHandle,this,a,!1),l=be(this._dragHandle,this,a,!0),u=da(t.get("handleSize"),i[0]),c=ar(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),f=OD(this._orient);c.attr({cursor:f,draggable:!0,drift:A,ondragend:l,onmousemove:function(g){Ti(g.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Ms(c,!0),n.add(c);var h=this.visualMapModel.textStyleModel,v=new nt({cursor:f,draggable:!0,drift:A,onmousemove:function(g){Ti(g.event)},ondragend:l,style:Ct(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var d=[u,0],p=this._shapes;p.handleThumbs[a]=c,p.handleLabelPoints[a]=d,p.handleLabels[a]=v},e.prototype._createIndicator=function(t,n,a,i,o){var s=da(t.get("indicatorSize"),a[0]),A=ar(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);A.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(A instanceof Ur){var u=A.style;A.useStyle(ve({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else A.useStyle(l);n.add(A);var c=this.visualMapModel.textStyleModel,f=new nt({silent:!0,invisible:!0,style:Ct(c,{x:0,y:0,text:""})});this.group.add(f);var h=[(o==="horizontal"?i/2:Lye)+a[0]/2,0],v=this._shapes;v.indicator=A,v.indicatorLabel=f,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():RD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Ua(n[0],a,i,!0),Ua(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Mo(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Ua(i[0],o,s,!0),Ua(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,A=this._createBarVisual(this._dataInterval,a,s,"inRange"),l=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:A.barColor}).setShape("points",A.barPoints),i.outOfRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),this._updateHandle(s,A)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),A=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],l=this._createBarPoints(a,A);return{barColor:new AA(0,0,0,1,s),barPoints:l,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var A=t[0]+o*s;if(A>t[1])break;i.push({color:this.getControllerVisual(A,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Fe(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,A=i.itemSize,l=i.getExtent(),u=this._applyTransform("left",a.mainGroup);Tye([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=t[c];var h=Ua(t[c],[0,A[1]],l,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/A[0],f.x=A[0]-v/2;var d=ua(a.handleLabelPoints[c],zs(f,this.group));if(this._orient==="horizontal"){var p=u==="left"||u==="top"?(A[0]-v)/2:(A[0]-v)/-2;d[1]+=p}s[c].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),A=o.itemSize,l=[0,A[1]],u=this._shapes,c=u.indicator;if(c){c.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),v=this.getControllerVisual(t,"symbolSize"),d=Ua(t,s,l,!0),p=A[0]-v/2,g={x:c.x,y:c.y};c.y=d,c.x=p;var y=ua(u.indicatorLabelPoint,zs(c,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),B=this._orient,C=B==="horizontal";m.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:C?w:"middle",align:C?"center":w});var b={x:p,y:d,style:{fill:h}},_={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(b,x),m.animateTo(_,x)}else c.attr(b),m.attr(_);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var I=0;I<S.length;I++)this.api.enterBlur(S[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=PD(aw(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=PD(aw(o[0],t),o[1]);var A=Mye(a,s,o),l=[t-A,t+A],u=Ua(t,o,s,!0),c=[Ua(l[0],o,s,!0),Ua(l[1],o,s,!0)];l[0]<o[0]&&(c[0]=-1/0),l[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(u,c[1],"< ",A):c[1]===1/0?this._showIndicator(u,c[0],"> ",A):this._showIndicator(u,u,"≈ ",A));var f=this._hoverLinkDataIndices,h=[];(n||RD(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var v=tY(f,h);this._dispatchHighDown("downplay",xd(v[0],a)),this._dispatchHighDown("highlight",xd(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Qs(t.target,function(A){var l=Ve(A);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",xd(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=zs(n,i?null:this.group);return ge(t)?ua(t,o,a):Fg(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(z3);function kD(r,e,t,n){return new an({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Ti(a.event)},ondragend:n})}function Mye(r,e,t){var n=Iye/2,a=r.get("hoverLinkDataSize");return a&&(n=Ua(a,e,t,!0)/2),n}function RD(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function OD(r){return r==="vertical"?"ns-resize":"ew-resize"}const Dye=Eye;var Fye={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Qye=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Uye=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(Ipe(n.stateList,n.targetVisuals,be(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(be(Pye,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Pye(r,e,t,n){for(var a=e.targetVisuals[n],i=Qr.prepareVisualTypes(a),o={color:Hf(r.getData(),"color")},s=0,A=i.length;s<A;s++){var l=i[s],u=a[l==="opacity"?"__alphaForOpacity":l];u&&u.applyVisual(t,c,f)}return o.color;function c(h){return o[h]}function f(h,v){o[h]=v}}var HD=F;function kye(r){var e=r&&r.visualMap;ge(e)||(e=e?[e]:[]),HD(e,function(t){if(t){JA(t,"splitList")&&!JA(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&ge(n)&&HD(n,function(a){Oe(a)&&(JA(a,"start")&&!JA(a,"min")&&(a.min=a.start),JA(a,"end")&&!JA(a,"max")&&(a.max=a.end))})}})}function JA(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var ND=!1;function K3(r){ND||(ND=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Fye,Qye),F(Uye,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(kye))}function W3(r){r.registerComponentModel(_ye),r.registerComponentView(Dye),K3(r)}var Rye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Oye[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=De(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=me(this._pieceList,function(A){return A=De(A),s!=="inRange"&&(A.visual=null),A}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=Qr.listVisualTypes(),i=this.isCategory();F(t.pieces,function(s){F(a,function(A){s.hasOwnProperty(A)&&(n[A]=1)})}),F(n,function(s,A){var l=!1;F(this.stateList,function(u){l=l||o(t,u,A)||o(t.target,u,A)},this),!l&&F(this.stateList,function(u){(t[u]||(t[u]={}))[A]=G3.get(A,u==="inRange"?"active":"inactive",i)})},this);function o(s,A,l){return s&&s[A]&&s[A].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,F(i,function(A,l){var u=this.getSelectedMapKey(A);o.hasOwnProperty(u)||(o[u]=!0)},this),a.selectedMode==="single"){var s=!1;F(i,function(A,l){var u=this.getSelectedMapKey(A);o[u]&&(s?o[u]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=De(t)},e.prototype.getValueState=function(t){var n=Qr.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(A,l){var u=Qr.findPieceIndex(A,a);u===t&&o.push(l)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(u,c){var f=i.getRepresentValue({interval:u});c||(c=i.getValueState(f));var h=t(f,c);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var A=s[0].interval[0];A!==-1/0&&s.unshift({interval:[-1/0,A]}),A=s[s.length-1].interval[1],A!==1/0&&s.push({interval:[A,1/0]})}var l=-1/0;return F(s,function(u){var c=u.interval;c&&(c[0]>l&&o([l,c[0]],"outOfRange"),o(c.slice()),l=c[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Ro(Vp.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Vp),Oye={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var A=o===a-1?n[1]:s+i;r.push({interval:[s,A],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),oT(r),F(r,function(l,u){l.index=u,l.text=this.formatValueText(l.interval)},this)},categories:function(r){var e=this.option;F(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),VD(e,r)},pieces:function(r){var e=this.option;F(e.pieces,function(t,n){Oe(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],A=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var f=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=t[f[h]],s[c]=A[h],u[c]=h===2;o[c]==null&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(s[0]=0),u[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Qr.retrieveVisuals(t),r.push(a)},this),VD(e,r),oT(r),F(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function VD(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const Hye=Rye;var Nye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,A=this._getViewData(),l=A.endsText,u=Fr(n.get("showLabel",!0),!l),c=!n.get("selectedMode");l&&this._renderEndsText(t,l[0],s,u,o),F(A.viewPieceList,function(f){var h=f.piece,v=new Fe;v.onclick=be(this._onItemClick,this,h),this._enableHoverLink(v,f.indexInModelPieceList);var d=n.getRepresentValue(h);if(this._createItemSymbol(v,d,[0,0,s[0],s[1]],c),u){var p=this.visualMapModel.getValueState(d),g=i.get("align")||o;v.add(new nt({style:Ct(i,{x:g==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:Le(i.get("opacity"),p==="outOfRange"?.5:1)}),silent:c}))}t.add(v)},this),l&&this._renderEndsText(t,l[1],s,u,o),$s(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:xd(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return $3(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Fe,A=this.visualMapModel.textStyleModel;s.add(new nt({style:Ct(A,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=me(t.getPieceList(),function(s,A){return{piece:s,indexInModelPieceList:A}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=ar(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=De(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,F(o,function(A,l){o[l]=l===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(z3);const Vye=Nye;function X3(r){r.registerComponentModel(Hye),r.registerComponentView(Vye),K3(r)}function Gye(r){We(W3),We(X3)}var zye=function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:sO(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r}(),$ye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,n){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new zye(this);if(this._target=null,this.ecModel.eachSeries(function(a){fE(a,null)}),this.shouldShow()){var n=this.getTarget();fE(n.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:le.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:le.color.neutral30,borderColor:le.color.neutral40,opacity:.3},z:10},e}(et),Kye=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new yA),!this._isEnabled()){this._clear();return}this._renderVersion=a.getMainProcessVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||le.color.neutral00);var A=hr(t,a).refContainer,l=Ut(EO(t,!0),A),u=s.lineWidth||0,c=this._contentRect=eA(l.clone(),u/2,!0,!0),f=new Fe;i.add(f),f.setClipPath(new Xe({shape:c.plain()}));var h=this._targetGroup=new Fe;f.add(h);var v=l.plain();v.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Xe({style:s,shape:v,silent:!1,cursor:"grab"}));var d=t.getModel("windowStyle"),p=d.getShallow("borderRadius",!0);f.add(this._windowRect=new Xe({shape:{x:0,y:0,width:0,height:0,r:p},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),zD(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),zD(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=t.z2Range.min-10,a.setBoundingRect(s.x,s.y,s.width,s.height);var A=Ut({left:"center",top:"center",aspect:s.width/s.height},i);a.setViewRect(A.x,A.y,A.width,A.height),o.attr(a.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var n=this._bridgeRendered;n&&n.renderVersion===t.renderVersion&&(n.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=va([],t.targetTrans),a=Ka([],this._coordSys.transform,n);this._transThisToTarget=va([],a);var i=t.viewportRect;i?i=i.clone():i=new Ne(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(Re({r:s},i))}},e.prototype._resetRoamController=function(t){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new gA(a.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,A){return n._contentRect.contain(s,A)}}}),i.off("pan").off("zoom").on("pan",be(this._onPan,this)).on("zoom",be(this._onZoom,this))},e.prototype._onPan=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Yt([],[t.oldX,t.oldY],n),i=Yt([],[t.oldX-t.dx,t.oldY-t.dy],n);this._api.dispatchAction(GD(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},e.prototype._onZoom=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Yt([],[t.originX,t.originY],n);this._api.dispatchAction(GD(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var n=t.getTarget().baseMapProvider;return!!n},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(Nt);function GD(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:t};return n[r.mainType+"Id"]=r.id,ve(n,e),n}function zD(r,e){var t=tA(r);Qg(e.group,t.z,t.zlevel)}function Wye(r){r.registerComponentModel($ye),r.registerComponentView(Kye)}var Xye={label:{enabled:!0},decal:{show:!1}},$D=Ye(),Yye={};function Zye(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=De(Xye);Ke(n.label,r.getLocaleModel().get("aria"),!1),Ke(t.option,n,!1),a(),i();function a(){var l=t.getModel("decal"),u=l.get("show");if(u){var c=Ie();r.eachSeries(function(f){if(!f.isColorBySeries()){var h=c.get(f.type);h||(h={},c.set(f.type,h)),$D(f).scope=h}}),r.eachRawSeries(function(f){if(r.isSeriesFiltered(f))return;if(Me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var y=R1(f.ecModel,f.name,Yye,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=f.getRawData(),d={},p=$D(f).scope;h.each(function(B){var C=h.getRawIndex(B);d[C]=B});var g=v.count();v.each(function(B){var C=d[B],b=v.getName(B)||B+"",_=R1(f.ecModel,b,p,g),x=h.getItemVisual(C,"decal");h.setItemVisual(C,"decal",w(x,_))})}function w(B,C){var b=B?ve(ve({},C),B):C;return b.dirty=!0,b}})}}function i(){var l=e.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=Re(c.option,u),!!c.get("enabled")){if(l.setAttribute("role","img"),c.get("description")){l.setAttribute("aria-label",c.get("description"));return}var f=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,d=Math.min(f,v),p;if(!(f<1)){var g=s();if(g){var y=c.get(["general","withTitle"]);p=o(y,{title:g})}else p=c.get(["general","withoutTitle"]);var m=[],w=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);p+=o(w,{seriesCount:f}),r.eachSeries(function(_,x){if(x<d){var S=void 0,I=_.get("name"),L=I?"withName":"withoutName";S=f>1?c.get(["series","multiple",L]):c.get(["series","single",L]),S=o(S,{seriesId:_.seriesIndex,seriesName:_.get("name"),seriesType:A(_.subType)});var T=_.getData();if(T.count()>h){var M=c.get(["data","partialData"]);S+=o(M,{displayCnt:h})}else S+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),P=c.get(["data","separator","end"]),E=c.get(["data","excludeDimensionId"]),k=[],D=0;D<T.count();D++)if(D<h){var U=T.getName(D),O=E?ft(T.getValues(D),function(X,te){return $e(E,te)===-1}):T.getValues(D),G=c.get(["data",U?"withName":"withoutName"]);k.push(o(G,{name:U,value:O.join(R)}))}S+=k.join(R)+P,m.push(S)}});var B=c.getModel(["series","multiple","separator"]),C=B.get("middle"),b=B.get("end");p+=m.join(C)+b,l.setAttribute("aria-label",p)}}}}function o(l,u){if(!Ce(l))return l;var c=l;return F(u,function(f,h){c=c.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),f)}),c}function s(){var l=r.get("title");return l&&l.length&&(l=l[0]),l&&l.text}function A(l){var u=r.getLocaleModel().get(["series","typeNames"]);return u[l]||u.chart}}function jye(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},F(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function Jye(r){r.registerPreprocessor(jye),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Zye)}var KD={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qye=function(){function r(e){var t=this._condVal=Ce(e)?new RegExp(e):n7(e)?e:null;if(t==null){var n="";At(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return Ce(t)?this._condVal.test(e):qe(t)?this._condVal.test(e+""):!1},r}(),eme=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),tme=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),rme=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),nme=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),ame=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r}();function Xx(r,e){if(r===!0||r===!1){var t=new eme;return t.value=r,t}var n="";return Y3(r)||At(n),r.and?WD("and",r,e):r.or?WD("or",r,e):r.not?ime(r,e):ome(r,e)}function WD(r,e,t){var n=e[r],a="";ge(n)||At(a),n.length||At(a);var i=r==="and"?new tme:new rme;return i.children=me(n,function(o){return Xx(o,t)}),i.children.length||At(a),i}function ime(r,e){var t=r.not,n="";Y3(t)||At(n);var a=new nme;return a.child=Xx(t,e),a.child||At(n),a}function ome(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=je(r),o=r.parser,s=o?eH(o):null,A=0;A<i.length;A++){var l=i[A];if(!(l==="parser"||e.valueGetterAttrMap.get(l))){var u=Se(KD,l)?KD[l]:l,c=r[l],f=s?s(c):c,h=TJ(u,f)||u==="reg"&&new qye(f);h||At(t),a.push(h)}}a.length||At(t);var v=new ame;return v.valueGetterParam=n,v.valueParser=s,v.getValue=e.getValue,v.subCondList=a,v}function Y3(r){return Oe(r)&&!$r(r)}var sme=function(){function r(e,t){this._cond=Xx(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function Ame(r,e){return new sme(r,e)}var lme={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=Ame(r.config,{valueGetterAttrMap:Ie({dimension:!0}),prepareGetValue:function(s){var A="",l=s.dimension;Se(s,"dimension")||At(A);var u=e.getDimensionInfo(l);return u||At(A),{dimIdx:u.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},ume={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=gt(t);a.length||At(n);var i=[];F(a,function(u){var c=u.dimension,f=u.order,h=u.parser,v=u.incomparable;if(c==null&&At(n),f!=="asc"&&f!=="desc"&&At(n),v&&v!=="min"&&v!=="max"){var d="";At(d)}if(f!=="asc"&&f!=="desc"){var p="";At(p)}var g=e.getDimensionInfo(c);g||At(n);var y=h?eH(h):null;h&&!y&&At(n),i.push({dimIdx:g.index,parser:y,comparator:new rH(f,v)})});var o=e.sourceFormat;o!==_r&&o!==Tn&&At(n);for(var s=[],A=0,l=e.count();A<l;A++)s.push(e.getRawDataItem(A));return s.sort(function(u,c){for(var f=0;f<i.length;f++){var h=i[f],v=e.retrieveValueFromItem(u,h.dimIdx),d=e.retrieveValueFromItem(c,h.dimIdx);h.parser&&(v=h.parser(v),d=h.parser(d));var p=h.comparator.evaluate(v,d);if(p!==0)return p}return 0}),{data:s}}};function cme(r){r.registerTransform(lme),r.registerTransform(ume)}var fme=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new oH(this),CI(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),CI(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ca},e}(et),hme=function(r){ce(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Nt);function vme(r){r.registerComponentModel(fme),r.registerComponentView(hme)}var Fa=qa.CMD;function pl(r,e){return Math.abs(r-e)<1e-5}function ZB(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,A=0;function l(T,M){a&&a.length>2&&n.push(a),a=[T,M]}function u(T,M,R,P){pl(T,R)&&pl(M,P)||a.push(T,M,R,P,R,P)}function c(T,M,R,P,E,k){var D=Math.abs(M-T),U=Math.tan(D/4)*4/3,O=M<T?-1:1,G=Math.cos(T),X=Math.sin(T),te=Math.cos(M),ne=Math.sin(M),ye=G*E+R,re=X*k+P,W=te*E+R,ee=ne*k+P,oe=E*U*O,H=k*U*O;a.push(ye-oe*X,re+H*G,W+oe*ne,ee-H*te,W,ee)}for(var f,h,v,d,p=0;p<t;){var g=e[p++],y=p===1;switch(y&&(i=e[p],o=e[p+1],s=i,A=o,(g===Fa.L||g===Fa.C||g===Fa.Q)&&(a=[s,A])),g){case Fa.M:i=s=e[p++],o=A=e[p++],l(s,A);break;case Fa.L:f=e[p++],h=e[p++],u(i,o,f,h),i=f,o=h;break;case Fa.C:a.push(e[p++],e[p++],e[p++],e[p++],i=e[p++],o=e[p++]);break;case Fa.Q:f=e[p++],h=e[p++],v=e[p++],d=e[p++],a.push(i+2/3*(f-i),o+2/3*(h-o),v+2/3*(f-v),d+2/3*(h-d),v,d),i=v,o=d;break;case Fa.A:var m=e[p++],w=e[p++],B=e[p++],C=e[p++],b=e[p++],_=e[p++]+b;p+=1;var x=!e[p++];f=Math.cos(b)*B+m,h=Math.sin(b)*C+w,y?(s=f,A=h,l(s,A)):u(i,o,f,h),i=Math.cos(_)*B+m,o=Math.sin(_)*C+w;for(var S=(x?-1:1)*Math.PI/2,I=b;x?I>_:I<_;I+=S){var L=x?Math.max(I+S,_):Math.min(I+S,_);c(I,L,m,w,B,C)}break;case Fa.R:s=i=e[p++],A=o=e[p++],f=s+e[p++],h=A+e[p++],l(f,A),u(f,A,f,h),u(f,h,s,h),u(s,h,s,A),u(s,A,f,A);break;case Fa.Z:a&&u(i,o,s,A),i=s,o=A;break}}return a&&a.length>2&&n.push(a),n}function jB(r,e,t,n,a,i,o,s,A,l){if(pl(r,t)&&pl(e,n)&&pl(a,o)&&pl(i,s)){A.push(o,s);return}var u=2/l,c=u*u,f=o-r,h=s-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var d=t-r,p=n-e,g=a-o,y=i-s,m=d*d+p*p,w=g*g+y*y;if(m<c&&w<c){A.push(o,s);return}var B=f*d+h*p,C=-f*g-h*y,b=m-B*B,_=w-C*C;if(b<c&&B>=0&&_<c&&C>=0){A.push(o,s);return}var x=[],S=[];So(r,t,a,o,.5,x),So(e,n,i,s,.5,S),jB(x[0],S[0],x[1],S[1],x[2],S[2],x[3],S[3],A,l),jB(x[4],S[4],x[5],S[5],x[6],S[6],x[7],S[7],A,l)}function dme(r,e){var t=ZB(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],A=i[1];o.push(s,A);for(var l=2;l<i.length;){var u=i[l++],c=i[l++],f=i[l++],h=i[l++],v=i[l++],d=i[l++];jB(s,A,u,c,f,h,v,d,o,e),s=v,A=d}n.push(o)}return n}function Z3(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var A=[],l=0;l<o;l++)A.push(s);var u=o*s,c=t-u;if(c>0)for(var l=0;l<c;l++)A[l%o]+=1;return A}function XD(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),A=s*a,l=a-n,u=A>Math.abs(l),c=Z3([A,l],u?0:1,e),f=(u?s:l)/c.length,h=0;h<c.length;h++)for(var v=(u?l:s)/c[h],d=0;d<c[h];d++){var p={};u?(p.startAngle=i+f*h,p.endAngle=i+f*(h+1),p.r0=n+v*d,p.r=n+v*(d+1)):(p.startAngle=i+v*d,p.endAngle=i+v*(d+1),p.r0=n+f*h,p.r=n+f*(h+1)),p.clockwise=r.clockwise,p.cx=r.cx,p.cy=r.cy,t.push(p)}}function pme(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=Z3([n,a],i?0:1,e),s=i?"width":"height",A=i?"height":"width",l=i?"x":"y",u=i?"y":"x",c=r[s]/o.length,f=0;f<o.length;f++)for(var h=r[A]/o[f],v=0;v<o[f];v++){var d={};d[l]=f*c,d[u]=v*h,d[s]=c,d[A]=h,d.x+=r.x,d.y+=r.y,t.push(d)}}function YD(r,e,t,n){return r*n-t*e}function gme(r,e,t,n,a,i,o,s){var A=t-r,l=n-e,u=o-a,c=s-i,f=YD(u,c,A,l);if(Math.abs(f)<1e-6)return null;var h=r-a,v=e-i,d=YD(h,v,u,c)/f;return d<0||d>1?null:new ke(d*A+r,d*l+e)}function yme(r,e,t){var n=new ke;ke.sub(n,t,e),n.normalize();var a=new ke;ke.sub(a,r,e);var i=a.dot(n);return i}function qA(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function mme(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],A=gme(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);A&&a.push({projPt:yme(A,e,t),pt:A,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(p,g){return p.projPt-g.projPt});var l=a[0],u=a[a.length-1];if(u.idx<l.idx){var c=l;l=u,u=c}for(var f=[l.pt.x,l.pt.y],h=[u.pt.x,u.pt.y],v=[f],d=[h],i=l.idx+1;i<=u.idx;i++)qA(v,r[i].slice());qA(v,h),qA(v,f);for(var i=u.idx+1;i<=l.idx+n;i++)qA(d,r[i%n].slice());return qA(d,f),qA(d,h),[{points:v},{points:d}]}function ZD(r){var e=r.points,t=[],n=[];_g(e,t,n);var a=new Ne(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,A=a.y,l=new ke,u=new ke;return i>o?(l.x=u.x=s+i/2,l.y=A,u.y=A+o):(l.y=u.y=A+o/2,l.x=s,u.x=s+i),mme(e,l,u)}function Gp(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);Gp(r,i[0],a,n),Gp(r,i[1],t-a,n)}return n}function wme(r,e){for(var t=[],n=0;n<e;n++)t.push(JC(r));return t}function Bme(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Cme(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function bme(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":pme(n,e,t),a=Xe;break;case"sector":XD(n,e,t),a=nn;break;case"circle":XD({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=nn;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=me(dme(r.getUpdatedPathProxy(),o),function(g){return Cme(g)}),A=s.length;if(A===0)Gp(ZD,{points:s[0]},e,t);else if(A===e)for(var l=0;l<A;l++)t.push({points:s[l]});else{var u=0,c=me(s,function(g){var y=[],m=[];_g(g,y,m);var w=(m[1]-y[1])*(m[0]-y[0]);return u+=w,{poly:g,area:w}});c.sort(function(g,y){return y.area-g.area});for(var f=e,l=0;l<A;l++){var h=c[l];if(f<=0)break;var v=l===A-1?f:Math.ceil(h.area/u*e);v<0||(Gp(ZD,{points:h.poly},v,t),f-=v)}}a=an;break}if(!a)return wme(r,e);for(var d=[],l=0;l<t.length;l++){var p=new a;p.setShape(t[l]),Bme(r,p),d.push(p)}return d}function xme(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),A=Math.abs(n-t)/6,l=(s-2)/6,u=Math.ceil(A/l)+1,c=[o[0],o[1]],f=A,h=2;h<s;){var v=o[h-2],d=o[h-1],p=o[h++],g=o[h++],y=o[h++],m=o[h++],w=o[h++],B=o[h++];if(f<=0){c.push(p,g,y,m,w,B);continue}for(var C=Math.min(f,u-1)+1,b=1;b<=C;b++){var _=b/C;So(v,p,y,w,_,a),So(d,g,m,B,_,i),v=a[3],d=i[3],c.push(a[1],i[1],a[2],i[2],v,d),p=a[5],g=i[5],y=a[6],m=i[6]}f-=C-1}return o===r?[c,e]:[r,c]}function jD(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function _me(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var A=r[s],l=e[s],u=void 0,c=void 0;A?l?(t=xme(A,l),u=t[0],c=t[1],n=u,a=c):(c=jD(a||A,A),u=A):(u=jD(n||l,l),c=l),i.push(u),o.push(c)}return[i,o]}function JD(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],A=r[o+1],l=r[i],u=r[i+1],c=s*u-l*A;e+=c,t+=(s+l)*c,n+=(A+u)*c}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function Sme(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,A=s-2,l=0;l<a;l++){for(var u=l*6,c=0,f=0;f<s;f+=2){var h=f===0?u:(u+f-2)%A+2,v=r[h]-t[0],d=r[h+1]-t[1],p=e[f]-n[0],g=e[f+1]-n[1],y=p-v,m=g-d;c+=y*y+m*m}c<i&&(i=c,o=l)}return o}function Tme(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function Ime(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],A=e[o],l=JD(s),u=JD(A);i==null&&(i=l[2]<0!=u[2]<0);var c=[],f=[],h=0,v=1/0,d=[],p=s.length;i&&(s=Tme(s));for(var g=Sme(s,A,l,u)*6,y=p-2,m=0;m<y;m+=2){var w=(g+m)%y+2;c[m+2]=s[w]-l[0],c[m+3]=s[w+1]-l[1]}if(c[0]=s[g]-l[0],c[1]=s[g+1]-l[1],t>0)for(var B=n/t,C=-n/2;C<=n/2;C+=B){for(var b=Math.sin(C),_=Math.cos(C),x=0,m=0;m<s.length;m+=2){var S=c[m],I=c[m+1],L=A[m]-u[0],T=A[m+1]-u[1],M=L*_-T*b,R=L*b+T*_;d[m]=M,d[m+1]=R;var P=M-S,E=R-I;x+=P*P+E*E}if(x<v){v=x,h=C;for(var k=0;k<d.length;k++)f[k]=d[k]}}else for(var D=0;D<p;D+=2)f[D]=A[D]-u[0],f[D+1]=A[D+1]-u[1];a.push({from:c,to:f,fromCp:l,toCp:u,rotation:-h})}return a}function zp(r){return r.__isCombineMorphing}var j3="__mOriginal_";function $p(r,e,t){var n=j3+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var A=arguments,l;return s&&s.apply(this,A),i?l=i.apply(this,A):l=a.apply(this,A),o&&o.apply(this,A),l}}function Vc(r,e){var t=j3+e;r[t]&&(r[e]=r[t],r[t]=null)}function qD(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function J3(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=_me(ZB(t),ZB(n)),i=a[0],o=a[1],s=r.getComputedTransform(),A=e.getComputedTransform();function l(){this.transform=null}s&&qD(i,s),A&&qD(o,A),$p(e,"updateTransform",{replace:l}),e.transform=null;var u=Ime(i,o,10,Math.PI),c=[];$p(e,"buildPath",{replace:function(f){for(var h=e.__morphT,v=1-h,d=[],p=0;p<u.length;p++){var g=u[p],y=g.from,m=g.to,w=g.rotation*h,B=g.fromCp,C=g.toCp,b=Math.sin(w),_=Math.cos(w);id(d,B,C,h);for(var x=0;x<y.length;x+=2){var S=y[x],I=y[x+1],L=m[x],T=m[x+1],M=S*v+L*h,R=I*v+T*h;c[x]=M*_-R*b+d[0],c[x+1]=M*b+R*_+d[1]}var P=c[0],E=c[1];f.moveTo(P,E);for(var x=2;x<y.length;){var L=c[x++],T=c[x++],k=c[x++],D=c[x++],U=c[x++],O=c[x++];P===L&&E===T&&k===U&&D===O?f.lineTo(U,O):f.bezierCurveTo(L,T,k,D,U,O),P=U,E=O}}}})}function Yx(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;J3(r,e),e.__morphT=0;function i(){Vc(e,"buildPath"),Vc(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Re({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function Lme(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,A,l=(1<<o)/2;l>0;l/=2){var u=0,c=0;(r&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),c===0&&(u===1&&(r=l-1-r,e=l-1-e),A=r,r=e,e=A)}return s}function Kp(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=me(r,function(s){var A=s.getBoundingRect(),l=s.getComputedTransform(),u=A.x+A.width/2+(l?l[4]:0),c=A.y+A.height/2+(l?l[5]:0);return e=Math.min(u,e),t=Math.min(c,t),n=Math.max(u,n),a=Math.max(c,a),[u,c]}),o=me(i,function(s,A){return{cp:s,z:Lme(s[0],s[1],e,t,n,a),path:r[A]}});return o.sort(function(s,A){return s.z-A.z}).map(function(s){return s.path})}function q3(r){return bme(r.path,r.count)}function JB(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Eme(r,e,t){var n=[];function a(B){for(var C=0;C<B.length;C++){var b=B[C];zp(b)?a(b.childrenRef()):b instanceof Ze&&n.push(b)}}a(r);var i=n.length;if(!i)return JB();var o=t.dividePath||q3,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),JB();n=Kp(n),s=Kp(s);for(var A=t.done,l=t.during,u=t.individualDelay,c=new gi,f=0;f<i;f++){var h=n[f],v=s[f];v.parent=e,v.copyTransform(c),u||J3(h,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(B){for(var C=0;C<s.length;C++)s[C].addSelfToZr(B)}$p(e,"addSelfToZr",{after:function(B){d(B)}}),$p(e,"removeSelfFromZr",{after:function(B){for(var C=0;C<s.length;C++)s[C].removeSelfFromZr(B)}});function p(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Vc(e,"addSelfToZr"),Vc(e,"removeSelfFromZr")}var g=s.length;if(u)for(var y=g,m=function(){y--,y===0&&(p(),A&&A())},f=0;f<g;f++){var w=u?Re({delay:(t.delay||0)+u(f,g,n[f],s[f]),done:m},t):t;Yx(n[f],s[f],w)}else e.__morphT=0,e.animateTo({__morphT:1},Re({during:function(B){for(var C=0;C<g;C++){var b=s[C];b.__morphT=e.__morphT,b.dirtyShape()}l&&l(B)},done:function(){p();for(var B=0;B<r.length;B++)Vc(r[B],"updateTransform");A&&A()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:n,toIndividuals:s,count:g}}function Mme(r,e,t){var n=e.length,a=[],i=t.dividePath||q3;function o(h){for(var v=0;v<h.length;v++){var d=h[v];zp(d)?o(d.childrenRef()):d instanceof Ze&&a.push(d)}}if(zp(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var A=0,l=s;l<n;l++)a.push(JC(a[A++%s]));a.length=n}else{a=i({path:r,count:n});for(var u=r.getComputedTransform(),l=0;l<a.length;l++)a[l].setLocalTransform(u);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),JB()}a=Kp(a),e=Kp(e);for(var c=t.individualDelay,l=0;l<n;l++){var f=c?Re({delay:(t.delay||0)+c(l,n,a[l],e[l])},t):t;Yx(a[l],e[l],f)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function eF(r){return ge(r[0])}function tF(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var A=t[s].many;if(A.length<=1)if(s)s=0;else return t;var i=A.length,l=Math.ceil(i/2);t[a].many=A.slice(l,i),t[s].many=A.slice(0,l),s++}return t}var Dme={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=JC(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function iw(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=ql("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),A=Object.assign({setToFinal:!0},o),l,u;eF(r)&&(l=r,u=e),eF(e)&&(l=e,u=r);function c(g,y,m,w,B){var C=g.many,b=g.one;if(C.length===1&&!B){var _=y?C[0]:b,x=y?b:C[0];if(zp(_))c({many:[_],one:x},!0,m,w,!0);else{var S=s?Re({delay:s(m,w)},A):A;Yx(_,x,S),i(_,x,_,x,S)}}else for(var I=Re({dividePath:Dme[t],individualDelay:s&&function(E,k,D,U){return s(E+m,w)}},A),L=y?Eme(C,b,I):Mme(b,C,I),T=L.fromIndividuals,M=L.toIndividuals,R=T.length,P=0;P<R;P++){var S=s?Re({delay:s(P,R)},A):A;i(T[P],M[P],y?C[P]:g.one,y?g.one:C[P],S)}}for(var f=l?l===r:r.length>e.length,h=l?tF(u,l):tF(f?e:r,[f?r:e]),v=0,d=0;d<h.length;d++)v+=h[d].many.length;for(var p=0,d=0;d<h.length;d++)c(h[d],f,p,v),p+=h[d].many.length}function ws(r){if(!r)return[];if(ge(r)){for(var e=[],t=0;t<r.length;t++)e.push(ws(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof Ze&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var eV=1e4,Fme=0,rF=1,nF=2,Qme=Ye();function Ume(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function Pme(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function aF(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=Ume(r,a);if(i){var o=Pme(r,e,i);return o}var s=r.getRawDataItem(e),A=n?"childGroupId":"groupId";if(s&&s[A])return s[A]+"";if(!n)return t||r.getId(e)}function iF(r){var e=[];return F(r,function(t){var n=t.data,a=t.dataGroupId;if(!(n.count()>eV))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:aF(n,o,a,!1),childGroupId:aF(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function ow(r,e,t){r.traverse(function(n){n instanceof Ze&&Lt(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function sw(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function el(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function kme(r,e,t){var n=ql("update",t,e);n&&r.traverse(function(a){if(a instanceof jn){var i=jZ(a);i&&a.animateFrom({style:i},n)}})}function Rme(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function tV(r,e,t){var n=iF(r),a=iF(e);function i(m,w,B,C,b){(B||m)&&w.animateFrom({style:B&&B!==m?ve(ve({},B.style),m.style):m.style},b)}var o=!1,s=Fme,A=Ie(),l=Ie();n.forEach(function(m){m.groupId&&A.set(m.groupId,!0),m.childGroupId&&l.set(m.childGroupId,!0)});for(var u=0;u<a.length;u++){var c=a[u].groupId;if(l.get(c)){s=rF;break}var f=a[u].childGroupId;if(f&&A.get(f)){s=nF;break}}function h(m,w){return function(B){var C=B.data,b=B.dataIndex;return w?C.getId(b):m?s===rF?B.childGroupId:B.groupId:s===nF?B.childGroupId:B.groupId}}var v=Rme(n,a),d={};if(!v)for(var u=0;u<a.length;u++){var p=a[u],g=p.data.getItemGraphicEl(p.dataIndex);g&&(d[g.id]=!0)}function y(m,w){var B=n[w],C=a[m],b=C.data.hostModel,_=B.data.getItemGraphicEl(B.dataIndex),x=C.data.getItemGraphicEl(C.dataIndex);if(_===x){x&&kme(x,C.dataIndex,b);return}_&&d[_.id]||x&&(el(x),_?(el(_),sw(_),o=!0,iw(ws(_),ws(x),C.divide,b,m,i)):ow(x,b,m))}new Mi(n,a,h(!0,v),h(!1,v),null,"multiple").update(y).updateManyToOne(function(m,w){var B=a[m],C=B.data,b=C.hostModel,_=C.getItemGraphicEl(B.dataIndex),x=ft(me(w,function(S){return n[S].data.getItemGraphicEl(n[S].dataIndex)}),function(S){return S&&S!==_&&!d[S.id]});_&&(el(_),x.length?(F(x,function(S){el(S),sw(S)}),o=!0,iw(ws(x),ws(_),B.divide,b,m,i)):ow(_,b,B.dataIndex))}).updateOneToMany(function(m,w){var B=n[w],C=B.data.getItemGraphicEl(B.dataIndex);if(!(C&&d[C.id])){var b=ft(me(m,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==C}),_=a[m[0]].data.hostModel;b.length&&(F(b,function(x){return el(x)}),C?(el(C),sw(C),o=!0,iw(ws(C),ws(b),B.divide,_,m[0],i)):F(b,function(x){return ow(x,_,m[0])}))}}).updateManyToMany(function(m,w){new Mi(w,m,function(B){return n[B].data.getId(n[B].dataIndex)},function(B){return a[B].data.getId(a[B].dataIndex)}).update(function(B,C){y(m[B],w[C])}).execute()}).execute(),o&&F(e,function(m){var w=m.data,B=w.hostModel,C=B&&t.getViewOfSeriesModel(B),b=ql("update",B,0);C&&B.isAnimationEnabled()&&b&&b.duration>0&&C.group.traverse(function(_){_ instanceof Ze&&!_.animators.length&&_.animateFrom({style:{opacity:0}},b)})})}function oF(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function sF(r){return ge(r)?r.sort().join(","):r}function eo(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Ome(r,e){var t=Ie(),n=Ie(),a=Ie();return F(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],A=r.oldData[o],l=oF(i),u=sF(l);n.set(u,{dataGroupId:s,data:A}),ge(l)&&F(l,function(c){a.set(c,{key:u,dataGroupId:s,data:A})})}),F(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),A=oF(i),l=sF(A),u=n.get(l);if(u)t.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:eo(u.data),data:u.data}],newSeries:[{dataGroupId:o,divide:eo(s),data:s}]});else if(ge(A)){var c=[];F(A,function(v){var d=n.get(v);d.data&&c.push({dataGroupId:d.dataGroupId,divide:eo(d.data),data:d.data})}),c.length&&t.set(l,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:eo(s)}]})}else{var f=a.get(A);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:eo(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:eo(s)})}}}}),t}function AF(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function Hme(r,e,t,n){var a=[],i=[];F(gt(r.from),function(o){var s=AF(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:eo(e.oldData[s]),groupIdDim:o.dimension})}),F(gt(r.to),function(o){var s=AF(t.updatedSeries,o);if(s>=0){var A=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:A,divide:eo(A),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&tV(a,i,n)}function Nme(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){F(gt(n.seriesTransition),function(a){F(gt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][yd]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=Qme(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)F(gt(i),function(h){Hme(h,a,n,t)});else{var o=Ome(a,n);F(o.keys(),function(h){var v=o.get(h);tV(v.oldSeries,v.newSeries,t)})}F(n.updatedSeries,function(h){h[yd]&&(h[yd]=!1)})}for(var s=e.getSeries(),A=a.oldSeries=[],l=a.oldDataGroupIds=[],u=a.oldData=[],c=0;c<s.length;c++){var f=s[c].getData();f.count()<eV&&(A.push(s[c]),l.push(s[c].get("dataGroupId")),u.push(f))}})}var Vme=function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(e){this.breaks=e.breaks},r.prototype.update=function(e){zme(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<e&&e<a.vmax){var i=t(e,a.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},r.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(e){for(var t=lF,n=uF,a=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(e<=o.vmax){e>o.vmin?t+=o.vmin-n+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:t+=e-n,n=o.vmax,a=!1;break}t+=o.vmin-n+o.gapReal,n=o.vmax}return a&&(t+=e-n),t},r.prototype.unelapse=function(e){for(var t=lF,n=uF,a=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],A=t+s.vmin-n,l=A+s.gapReal;if(e<=l){e>A?i=s.vmin+(e-A)/(l-A)*(s.vmax-s.vmin):i=n+e-t,n=s.vmax,a=!1;break}t=l,n=s.vmax}return a&&(i=n+e-t),i},r}();function Gme(){return new Vme}var lF=0,uF=0;function zme(r,e){var t=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};F(r.breaks,function(s){var A=s.gapParsed;A.type==="tpPrct"&&(t+=A.val);var l=Zx(s,e);if(l){var u=l.vmin!==s.vmin,c=l.vmax!==s.vmax,f=l.vmax-l.vmin;if(!(u&&c))if(u||c){var h=u?"S":"E";i[h][A.type].has=!0,i[h][A.type].span=f,i[h][A.type].inExtFrac=f/(s.vmax-s.vmin),i[h][A.type].val=A.val}else n[A.type].span+=f,n[A.type].val+=A.val}});var o=t*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));F(r.breaks,function(s){var A=s.gapParsed;A.type==="tpPrct"&&(s.gapReal=t!==0?Math.max(o,0)*A.val/t:0),A.type==="tpAbs"&&(s.gapReal=A.val),s.gapReal==null&&(s.gapReal=0)})}function $me(r,e,t,n,a,i){r!=="no"&&F(t,function(o){var s=Zx(o,i);if(s)for(var A=e.length-1;A>=0;A--){var l=e[A],u=n(l),c=a*3/4;u>s.vmin-c&&u<s.vmax+c&&(r!=="preserve_extent_bound"||u!==i[0]&&u!==i[1])&&e.splice(A,1)}})}function Kme(r,e,t,n){F(e,function(a){var i=Zx(a,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),e.length&&r.sort(function(a,i){return a.value-i.value})}function Zx(r,e){var t=Math.max(r.vmin,e[0]),n=Math.min(r.vmax,e[1]);return t<n||t===n&&t>e[0]&&t<e[1]?{vmin:t,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function qB(r,e,t){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}F(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:De(o),vmin:e(o.start),vmax:e(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var A=!1;if(Ce(o.gap)){var l=Xn(o.gap);if(l.match(/%$/)){var u=parseFloat(l)/100;a(u)||(u=0),s.gapParsed.type="tpPrct",s.gapParsed.val=u,A=!0}}if(!A){var c=e(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&F(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var f=s.vmax;s.vmax=s.vmin,s.vmin=f}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return F(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:n.filter(function(o){return!!o})}}function jx(r,e){return eC(e)===eC(r)}function eC(r){return r.start+"_\0_"+r.end}function Wme(r,e,t){var n=[];F(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&n.push([o])}),F(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var A=iA(n,function(l){return jx(e(r[l[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});A&&A.push(o)}});var a=[];return F(n,function(i){i.length===2&&a.push(t?i:[r[i[0]],r[i[1]]])}),a}function Xme(r,e,t,n){var a,i;if(r.break){var o=r.break.parsedBreak,s=iA(t,function(c){return jx(c.breakOption,r.break.parsedBreak.breakOption)}),A=n(Math.pow(e,o.vmin),s.vmin),l=n(Math.pow(e,o.vmax),s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?er(Math.pow(e,o.vmin+o.gapParsed.val))-A:o.gapParsed.val};a={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:A,vmax:l,gapParsed:u,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:a}}function Yme(r,e,t){var n={noNegative:!0},a=qB(r,t,n),i=qB(r,t,n),o=Math.log(e);return i.breaks=me(i.breaks,function(s){var A=Math.log(s.vmin)/o,l=Math.log(s.vmax)/o,u={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-A:s.gapParsed.val};return{vmin:A,vmax:l,gapParsed:u,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:a,parsedLogged:i}}var Zme={vmin:"start",vmax:"end"};function jme(r,e){return e&&(r=r||{},r.break={type:Zme[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function Jme(){Bj({createScaleBreakContext:Gme,pruneTicksByBreak:$me,addBreaksToTicks:Kme,parseAxisBreakOption:qB,identifyAxisBreak:jx,serializeAxisBreakIdentifier:eC,retrieveAxisBreakPairs:Wme,getTicksLogTransformBreak:Xme,logarithmicParseBreaksFromOption:Yme,makeAxisLabelFormatterParamBreak:jme})}var cF=Ye();function qme(r,e){var t=iA(r,function(n){return tr().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function e0e(r){F(r,function(e){return e.shouldRemove=!0})}function t0e(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function r0e(r,e,t,n,a){var i=t.axis;if(i.scale.isBlank()||!tr())return;var o=tr().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(x){return x.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),A=s.get("zigzagAmplitude"),l=s.get("zigzagMinSpan"),u=s.get("zigzagMaxSpan");l=Math.max(2,l||0),u=Math.max(l,u||0);var c=s.get("expandOnClick"),f=s.get("zigzagZ"),h=s.getModel("itemStyle"),v=h.getItemStyle(),d=v.stroke,p=v.lineWidth,g=v.lineDash,y=v.fill,m=new Fe({ignoreModelZ:!0}),w=i.isHorizontal(),B=cF(e).visualList||(cF(e).visualList=[]);e0e(B);for(var C=function(x){var S=o[x][0].break.parsedBreak,I=[];I[0]=i.toGlobalCoord(i.dataToCoord(S.vmin,!0)),I[1]=i.toGlobalCoord(i.dataToCoord(S.vmax,!0)),I[1]<I[0]&&I.reverse();var L=qme(B,S);L.shouldRemove=!1;var T=new Fe;_(L.zigzagRandomList,T,I[0],I[1],w,S),c&&T.on("click",function(){var M={type:Kg,breaks:[{start:S.breakOption.start,end:S.breakOption.end}]};M[i.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(M)}),T.silent=!c,m.add(T)},b=0;b<o.length;b++)C(b);r.add(m),t0e(B);function _(x,S,I,L,T,M){var R={stroke:d,lineWidth:p,lineDash:g,fill:"none"},P=T?0:1,E=1-P,k=n[Ge[E]]+n[rr[E]];function D(K){var $=[],j=[];$[P]=j[P]=K,$[E]=n[Ge[E]],j[E]=k;var ie={x1:$[0],y1:$[1],x2:j[0],y2:j[1]};return Tg(ie,ie,{lineWidth:1}),$[0]=ie.x1,$[1]=ie.y1,$[P]}I=D(I),L=D(L);for(var U=[],O=[],G=!0,X=n[Ge[E]],te=0;;te++){var ne=X===n[Ge[E]],ye=X>=k;ye&&(X=k);var re=[],W=[];re[P]=I,W[P]=L,!ne&&!ye&&(re[P]+=G?-A:A,W[P]-=G?A:-A),re[E]=X,W[E]=X,U.push(re),O.push(W);var ee=void 0;if(te<x.length?ee=x[te]:(ee=Math.random(),x.push(ee)),X+=ee*(u-l)+l,G=!G,ye)break}var oe=tr().serializeAxisBreakIdentifier(M.breakOption);if(S.add(new Wr({anid:"break_a_"+oe,shape:{points:U},style:R,z:f})),M.gapReal!==0){S.add(new Wr({anid:"break_b_"+oe,shape:{points:O},style:R,z:f}));var H=O.slice();H.reverse();var N=U.concat(H);S.add(new an({anid:"break_c_"+oe,shape:{points:N},style:{fill:y,opacity:v.opacity},z:f}))}}}function n0e(r,e,t,n){var a=r.axis,i=t.transform;Kr(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=tr().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(p){return p.break},!1),A=me(s,function(p){var g=p[0].break.parsedBreak,y=[a.dataToCoord(g.vmin,!0),a.dataToCoord(g.vmax,!0)];return y[0]>y[1]&&y.reverse(),{coordPair:y,brkId:tr().serializeAxisBreakIdentifier(g.breakOption)}});A.sort(function(p,g){return p.coordPair[0]-g.coordPair[0]});for(var l=o[0],u=null,c=0;c<A.length;c++){var f=A[c],h=Math.max(f.coordPair[0],o[0]),v=Math.min(f.coordPair[1],o[1]);l<=h&&d(l,h,u,f),l=v,u=f}l<=o[1]&&d(l,o[1],u,null);function d(p,g,y,m){function w(I,L){i&&(Yt(I,I,i),Yt(L,L,i))}function B(I,L){var T={x1:I[0],y1:I[1],x2:L[0],y2:L[1]};Tg(T,T,n.style),I[0]=T.x1,I[1]=T.y1,L[0]=T.x2,L[1]=T.y2}var C=[p,0],b=[g,0],_=[p,5],x=[g,5];w(C,_),B(C,_),w(b,x),B(b,x),B(C,b);var S=new lr(ve({shape:{x1:C[0],y1:C[1],x2:b[0],y2:b[1]}},n));e.add(S),S.anid="breakLine_"+(y?y.brkId:"\0")+"_\0_"+(m?m.brkId:"\0")}}function a0e(r,e,t){if(iA(t,function(y){return!y}))return;var n=new ke;if(!zg(t[0],t[1],n,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=xr();Uo(a,a,-e);var i=me(t,function(y){return y.transform?Ka(xr(),a,y.transform):a});function o(y){var m=t[0].localRect,w=new ke(m[rr[y]]*i[0][0],m[rr[y]]*i[0][1]);return Math.abs(w.y)<1e-5}var s=.5;if(o(0)||o(1)){var A=me(t,function(y,m){var w=y.localRect.clone();return w.applyTransform(i[m]),w}),l=new ke;l.copy(t[0].label).add(t[1].label).scale(.5),l.transform(a);var u=n.clone().transform(a),c=A[0].x+A[1].x+(u.x>=0?A[0].width:A[1].width),f=(c+u.x)/2-l.x,h=Math.min(f,f-u.x),v=Math.max(f,f-u.x),d=v<0?v:h>0?h:0;s=(f-d)/u.x}var p=new ke,g=new ke;ke.scale(p,n,-s),ke.scale(g,n,1-s),nB(t[0],p),nB(t[1],g)}function i0e(r,e){var t={breaks:[]};return F(e.breaks,function(n){if(n){var a=iA(r.get("breaks",!0),function(s){return tr().identifyAxisBreak(s,n)});if(a){var i=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===Kg?!0:i===yN?!1:i===mN?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function o0e(){vae({adjustBreakLabelPair:a0e,buildAxisBreakLine:n0e,rectCoordBuildBreakAxis:r0e,updateModelAxisBreak:i0e})}function s0e(r){Cae(r),Jme(),o0e()}function A0e(){Gae(l0e)}function l0e(r,e){F(r,function(t){if(!t.model.get(["axisLabel","inside"])){var n=u0e(t);if(n){var a=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[a]-=n[a]+i,t.position==="top"?e.y+=n.height+i:t.position==="left"&&(e.x+=n.width+i)}}})}function u0e(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var n,a,i=t.getExtent();t instanceof ff?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=ou(r),A,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;u<a;u+=l){var c=n?n[u]:{value:i[0]+u},f=s(c,u),h=o.getTextRect(f),v=d(h,o.get("rotate")||0);A?A.union(v):A=v}return A;function d(p,g){var y=g*Math.PI/180,m=p.width,w=p.height,B=m*Math.abs(Math.cos(y))+Math.abs(w*Math.sin(y)),C=m*Math.abs(Math.sin(y))+Math.abs(w*Math.cos(y)),b=new Ne(p.x,p.y,B,C);return b}}We([Jre]);We([$re]);We([Cne,Hne,qne,uie,Tie,xoe,ese,Hse,hAe,bAe,DAe,VAe,$le,gue,Eue,Zue,nce,Bce,Mce,zce,Jce,cfe,jfe]);We(whe);We(qhe);We(KN);We(dve);We(F5);We(Cve);We($ve);We(ede);We(epe);We(bpe);We(Xf);We(Vpe);We($pe);We(oge);We(gge);We(_ge);We(Fge);We(Wge);We(pye);We(N3);We(V3);We(Gye);We(W3);We(X3);We(Wye);We(Jye);We(cme);We(vme);We(Nme);We(lre);We(s0e);We(A0e);We(cie);const c0e={id:"chart-line",style:{width:"100%",height:"100%"}},f0e=vt({__name:"left-line",setup(r){var e={unit:"消费金额/订单数",names:["消费金额","订单数"],lineX:["1月","2月","3月","4月","5月","6月"],value:[]},t=["rgba(23, 255, 243","rgba(255,100,97"],n=[],a=()=>{n=[];for(var s=0;s<e.names.length;s++){var A=s;A>t.length-1&&(A=t.length-1);var l={name:e.names[s],type:"line",symbol:"none",color:t[A]+")",smooth:!0,areaStyle:{normal:{color:new AA(0,0,0,1,[{offset:0,color:t[A]+", 0.3)"},{offset:.8,color:t[A]+", 0)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},data:e.value[s]};n.push(l)}},i=()=>({tooltip:{trigger:"axis"},grid:{top:"0%",width:"90%",height:"80%"},xAxis:{type:"category",data:e.lineX,nameTextStyle:{color:"#fff"},axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:14}}},yAxis:{name:e.unit,type:"value",nameTextStyle:{padding:[0,0,0,30]},axisLabel:{formatter:"{value}",textStyle:{color:"rgb(0,253,255,0.6)"}},splitLine:{lineStyle:{color:"rgb(23,255,243,0.3)"}},axisLine:{lineStyle:{color:"rgb(0,253,255,0.6)"}}},series:n});St(()=>{o(),setInterval(()=>{o()},1e4)});function o(){fa.get("/orderStats/month").then(s=>{s.pop(),e.lineX=s.map(l=>l.month),e.value[0]=s.map(l=>l.amount),e.value[1]=s.map(l=>l.count),a();var A=zH(document.getElementById("chart-line"));A.setOption(i())})}return(s,A)=>(he(),de("div",c0e))}}),h0e={data(){return{}},props:{title:{type:String,default:()=>""}},created(){},mounted(){},methods:{}};const v0e={key:0,class:"item_title"},d0e={class:"title-inner"};function p0e(r,e,t,n,a,i){const o=ho("dv-border-box-13");return he(),Sd(o,{class:"lr_titles"},{default:Mr(()=>[t.title!==""?(he(),de("div",v0e,[e[0]||(e[0]=ae("div",{class:"zuo"},null,-1)),ae("span",d0e,"   "+Dt(t.title)+"   ",1),e[1]||(e[1]=ae("div",{class:"you"},null,-1))])):pt("",!0),ae("div",{class:nC(t.title!==""?"item_title_content":"item_title_content_def")},[Ft(r.$slots,"default",{},void 0,!0)],2)]),_:3})}const Wp=Wl(h0e,[["render",p0e],["__scopeId","data-v-6288be16"]]),g0e={class:"left"},y0e={style:{height:"100%"}},m0e={style:{height:"22%"}},w0e={class:"left_dzinfo"},B0e={class:"left_dzinfo_view"},C0e={class:"left_dzinfo_view"},b0e={class:"left_dzinfo_view"},x0e={class:"left_dzinfo_view"},_0e={class:"left_dzinfo_view"},S0e={class:"left_dzinfo_view"},T0e={style:{width:"100%","margin-top":"20px",height:"28%"}},I0e={style:{width:"100%","margin-top":"20px",height:"28%"}},L0e=vt({__name:"left",setup(r){let e=Ee({});St(()=>{t(),setInterval(()=>{t()},15e3)});function t(){fa("/orderStats/total").then(n=>{e.value={...e.value,...n}}),fa("/deviceStats/total").then(n=>{e.value={...e.value,...n}})}return(n,a)=>{const i=ho("dv-digital-flop"),o=ho("dv-border-box8"),s=ho("dv-border-box10");return he(),de("div",g0e,[ae("div",y0e,[a[6]||(a[6]=ae("div",{style:{height:"8%"}},null,-1)),ae("div",m0e,[se(s,null,{default:Mr(()=>[se(o,{dur:5},{default:Mr(()=>[ae("div",w0e,[ae("div",B0e,[se(i,{config:{number:[0+(Q(e).deviceTotal||0)],animationFrame:200}},null,8,["config"]),a[0]||(a[0]=ae("div",null,"总电桩数",-1))]),ae("div",C0e,[se(i,{config:{number:[0+(Q(e).gunTotal||0)],animationFrame:200}},null,8,["config"]),a[1]||(a[1]=ae("div",null,"总端口数",-1))]),ae("div",b0e,[se(i,{config:{number:[0+(Q(e).alertTotal||0)],animationFrame:200,style:{fill:"#ff4d4f"}}},null,8,["config"]),a[2]||(a[2]=ae("div",null,"总报警数",-1))]),ae("div",x0e,[se(i,{config:{number:[0+(Q(e).onlineDeviceTotal||0)],animationFrame:200}},null,8,["config"]),a[3]||(a[3]=ae("div",null,"在线电桩数",-1))]),ae("div",_0e,[se(i,{config:{number:[0+(Q(e).onlineGunTotal||0)],animationFrame:200}},null,8,["config"]),a[4]||(a[4]=ae("div",null,"在线端口数",-1))]),ae("div",S0e,[se(i,{config:{number:[0+(Q(e).useTotal||0)],animationFrame:200}},null,8,["config"]),a[5]||(a[5]=ae("div",null,"使用中",-1))])])]),_:1})]),_:1})]),ae("div",T0e,[se(s,null,{default:Mr(()=>[se(o,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",style:{"padding-top":"15px"},title:"订单数据趋势"},{default:Mr(()=>[se(f0e)]),_:1})]),_:1})]),_:1})]),ae("div",I0e,[se(s,null,{default:Mr(()=>[se(o,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",style:{"padding-top":"15px"},title:"实时消费记录"},{default:Mr(()=>[se(NX)]),_:1})]),_:1})]),_:1})])])])}}});const E0e=Wl(L0e,[["__scopeId","data-v-570ebe1d"]]),M0e={data(){return{gatewayno:"",config:{showValue:!0,data:[],labelNum:0,unit:"元"}}},created(){this.getData(),setInterval(()=>{this.getData()},1e4)},mounted(){},methods:{getData(){fa.get("/station/list").then(r=>{r.sort((t,n)=>n.amount-t.amount);var e=[];r.map((t,n)=>{e.push({value:t.amount,name:t.name})}),this.config.data=e})}}};const D0e={class:"right_bottom"};function F0e(r,e,t,n,a,i){const o=ho("dv-scroll-ranking-board");return he(),de("div",D0e,[se(o,{config:a.config,style:{width:"100%",height:"100%"}},null,8,["config"])])}const Q0e=Wl(M0e,[["render",F0e],["__scopeId","data-v-fcfd5141"]]),U0e={id:"chart-circleChat",style:{width:"100%",height:"225px"}},P0e=vt({__name:"rightBottom",setup(r){var e=(n,a)=>({color:["#EAEA26","#906BF9","#FE5656","#01E17E","#3DD1F9","#FFAD05"],grid:{left:-100,top:50,bottom:10,right:10,containLabel:!0},tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:{type:"scroll",orient:"vartical",top:"center",right:"15",itemWidth:16,itemHeight:8,itemGap:16,textStyle:{color:"#A3E2F4",fontSize:12,fontWeight:0},data:n},polar:{},angleAxis:{interval:1,type:"category",data:[],z:10,axisLine:{show:!1,lineStyle:{color:"#0B4A6B",width:1,type:"solid"}},axisLabel:{interval:0,show:!0,color:"#0B4A6B",margin:8,fontSize:16}},radiusAxis:{min:40,max:120,interval:20,axisLine:{show:!1,lineStyle:{color:"#0B3E5E",width:1,type:"solid"}},axisLabel:{formatter:"{value} %",show:!1,padding:[0,0,20,0],color:"#0B3E5E",fontSize:16},splitLine:{lineStyle:{color:"#0B3E5E",width:2,type:"solid"}}},calculable:!0,series:[{type:"pie",radius:["5%","10%"],hoverAnimation:!1,labelLine:{normal:{show:!1,length:30,length2:55},emphasis:{show:!1}},data:[{name:"",value:0,itemStyle:{normal:{color:"#0B4A6B"}}}]},{type:"pie",radius:["90%","95%"],hoverAnimation:!1,labelLine:{normal:{show:!1,length:30,length2:55},emphasis:{show:!1}},name:"",data:[{name:"",value:0,itemStyle:{normal:{color:"#0B4A6B"}}}]},{stack:"a",type:"pie",radius:["20%","80%"],roseType:"area",zlevel:10,label:{normal:{show:!0,formatter:"{c}",textStyle:{fontSize:12},position:"outside"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,length2:55},emphasis:{show:!1}},data:a}]});St(()=>{t(),setInterval(()=>{t()},1e4)});function t(){fa.get("/cityStats/rechargeRatio").then(n=>{var a=n.map(s=>s.cityName),i=n.map(s=>({name:s.cityName,value:s.amountRatio})),o=zH(document.getElementById("chart-circleChat"));o.setOption(e(a,i))})}return(n,a)=>(he(),de("div",U0e))}}),k0e={class:"center_note"},R0e={style:{width:"100%","margin-top":"20px",height:"30%"}},O0e={style:{width:"100%","margin-top":"20px",height:"38%"}},H0e=vt({__name:"right",setup(r){const e=Ee(2026);return Ee({yearAmount:[],yearCount:[]}),St(()=>{e.value=new Date().getFullYear(),setInterval(()=>{e.value=new Date().getFullYear()},1e4)}),(t,n)=>{const a=ho("dv-border-box8"),i=ho("dv-border-box10");return he(),de("div",k0e,[n[0]||(n[0]=ae("div",{style:{height:"18%"}},null,-1)),ae("div",R0e,[se(i,null,{default:Mr(()=>[se(a,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",title:"充值市场比例",style:{"padding-top":"15px"}},{default:Mr(()=>[se(P0e)]),_:1})]),_:1})]),_:1})]),ae("div",O0e,[se(i,null,{default:Mr(()=>[se(a,{dur:5},{default:Mr(()=>[se(Wp,{class:"contetn_left-bottom contetn_lr-item",title:"充电站收入排行",style:{"padding-top":"15px"}},{default:Mr(()=>[se(Q0e)]),_:1})]),_:1})]),_:1})])])}}});const N0e=Wl(H0e,[["__scopeId","data-v-cb176171"]]),V0e={class:"center_note"},G0e={class:"center_note_count"},z0e={class:"center_note_count_view",style:{}},$0e={class:"center_note_count_view_top"},K0e={class:"center_note_count_view_bottom center_note_count_view_bgc"},W0e={class:"center_note_count_view"},X0e={class:"center_note_count_view_top"},Y0e={class:"center_note_count_view_bottom"},Z0e=vt({__name:"center",setup(r){const e=Ee(2026);let t=Ee({yearAmount:[],yearCount:[]});St(()=>{n(),e.value=new Date().getFullYear(),setInterval(()=>{n(),e.value=new Date().getFullYear()},1e4)});function n(){fa("/orderStats/total").then(a=>{a.yearAmount=String(a.yearAmount).split(""),a.yearCount=String(a.yearCount).split(""),t.value={...t.value,...a}}),fa("/deviceStats/total").then(a=>{t.value={...t.value,...a}})}return(a,i)=>(he(),de("div",V0e,[ae("div",G0e,[ae("div",z0e,[ae("div",$0e,[(he(!0),de(lt,null,dt(8-Q(t).yearCount.length>0?8-Q(t).yearCount.length:0,o=>(he(),de("div",{key:o},"0"))),128)),(he(!0),de(lt,null,dt(Q(t).yearCount,(o,s)=>(he(),de("div",{key:s},Dt(o),1))),128))]),ae("div",K0e,Dt(e.value)+"年即途充电站消费订单数 ",1)]),ae("div",W0e,[ae("div",X0e,[(he(!0),de(lt,null,dt(10-Q(t).yearAmount.length>0?12-Q(t).yearAmount.length:0,o=>(he(),de("div",{key:o},"0 "))),128)),(he(!0),de(lt,null,dt(Q(t).yearAmount,(o,s)=>(he(),de("div",{key:s},Dt(o),1))),128))]),ae("div",Y0e,Dt(e.value)+"年即途充电站消费总金额 ",1)])])]))}});const j0e=Wl(Z0e,[["__scopeId","data-v-2ac0ead4"]]),J0e={id:"app"},q0e={style:{position:"fixed",top:"0",left:"0",width:"100%"}},ewe={key:0},twe=vt({__name:"App",setup(r){const e=Ee(null);let t=null;const n=Ee(new Date().toLocaleTimeString()),a=Ee({});function i(s,A=10){if(A>=s.length)return[...s];const l=[],u=new Set;for(;l.length<A;){const c=Math.floor(Math.random()*s.length);u.has(c)||(u.add(c),l.push(s[c]))}return l}St(async()=>{if(o().then(async s=>{const A=await vk({url:`https://devapi.qweather.com/v7/weather/now?location=${s.longitude},${s.latitude}&key=fd9afe7f4325414c809baef7e86b907c`,method:"GET"});a.value=A.data.now}),e.value){const s=await fa.get("/cityStats/list");t=new NW({dom:e.value,data:i(s)}),setInterval(async()=>{try{t==null||t.updateEarthData(i(s))}catch(A){console.error("Failed to update earth data:",A)}},1e4)}setInterval(()=>{n.value=new Date().toLocaleTimeString()},1e3)});function o(){return new Promise((s,A)=>{if(!navigator.geolocation){A(new Error("浏览器不支持地理定位"));return}navigator.geolocation.getCurrentPosition(l=>{s({latitude:l.coords.latitude,longitude:l.coords.longitude,accuracy:l.coords.accuracy})},l=>{let u="获取位置失败";switch(l.code){case l.PERMISSION_DENIED:u="用户拒绝授权";break;case l.POSITION_UNAVAILABLE:u="位置不可用";break;case l.TIMEOUT:u="请求超时";break}A(new Error(u))},{enableHighAccuracy:!0,timeout:1e4,maximumAge:6e4})})}return Qo(()=>{t&&(t.destroy(),t=null)}),jp.init({dh:1080,dw:1920,el:"body",resize:!0}),(s,A)=>(he(),de("div",J0e,[ae("div",q0e,[A[0]||(A[0]=ae("img",{src:OV,style:{width:"100%",height:"55px"}},null,-1)),A[1]||(A[1]=ae("img",{src:HV,style:{width:"500px",height:"100px",position:"absolute",left:"400px",animation:"light-go-503410de 3s ease-in-out infinite forwards"}},null,-1)),(he(),de("div",{style:{position:"absolute",right:"30px",top:"5px",color:"#3060F7","font-size":"20px",display:"flex","align-items":"center"},key:n.value},[a.value.text?(he(),de("span",ewe,[ae("i",{class:nC(`qi-${a.value.icon}`)},null,2),uw("    "+Dt(a.value.text)+"    "+Dt(a.value.windDir)+"    "+Dt(a.value.temp)+"°c   ",1)])):pt("",!0),uw(" "+Dt(n.value)+"   ",1)])),A[2]||(A[2]=ae("img",{src:NV,style:{position:"absolute",left:"5%",top:"5px"},alt:""},null,-1))]),se(E0e,{style:{position:"fixed",top:"3%",left:"30px"}}),se(j0e),se(N0e,{style:{position:"fixed",top:"3%",right:"30px"}}),A[4]||(A[4]=ae("div",{style:{position:"fixed",top:"25%",right:"26%"}},[ae("img",{src:VV,style:{width:"100%",height:"10px",position:"absolute",left:"-3%",animation:"light-go-5034104 3s ease-in-out infinite forwards"}}),ae("img",{style:{width:"80%"},src:GV,alt:""})],-1)),ae("div",null,[A[3]||(A[3]=ae("div",{id:"html2canvas",style:{position:"absolute",left:"-9999px",top:"-9999px"}},null,-1)),ae("div",{ref_key:"earthContainer",ref:e,id:"earth-container",style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center"}},null,512)])]))}});var rV=(r=>(r.transparent="rgba(0,0,0,0)",r.black="#000000",r.silver="#C0C0C0",r.gray="#808080",r.white="#FFFFFF",r.maroon="#800000",r.red="#FF0000",r.purple="#800080",r.fuchsia="#FF00FF",r.green="#008000",r.lime="#00FF00",r.olive="#808000",r.yellow="#FFFF00",r.navy="#000080",r.blue="#0000FF",r.teal="#008080",r.aqua="#00FFFF",r.aliceblue="#f0f8ff",r.antiquewhite="#faebd7",r.aquamarine="#7fffd4",r.azure="#f0ffff",r.beige="#f5f5dc",r.bisque="#ffe4c4",r.blanchedalmond="#ffebcd",r.blueviolet="#8a2be2",r.brown="#a52a2a",r.burlywood="#deb887",r.cadetblue="#5f9ea0",r.chartreuse="#7fff00",r.chocolate="#d2691e",r.coral="#ff7f50",r.cornflowerblue="#6495ed",r.cornsilk="#fff8dc",r.crimson="#dc143c",r.cyan="#00ffff",r.darkblue="#00008b",r.darkcyan="#008b8b",r.darkgoldenrod="#b8860b",r.darkgray="#a9a9a9",r.darkgreen="#006400",r.darkgrey="#a9a9a9",r.darkkhaki="#bdb76b",r.darkmagenta="#8b008b",r.darkolivegreen="#556b2f",r.darkorange="#ff8c00",r.darkorchid="#9932cc",r.darkred="#8b0000",r.darksalmon="#e9967a",r.darkseagreen="#8fbc8f",r.darkslateblue="#483d8b",r.darkslategray="#2f4f4f",r.darkslategrey="#2f4f4f",r.darkturquoise="#00ced1",r.darkviolet="#9400d3",r.deeppink="#ff1493",r.deepskyblue="#00bfff",r.dimgray="#696969",r.dimgrey="#696969",r.dodgerblue="#1e90ff",r.firebrick="#b22222",r.floralwhite="#fffaf0",r.forestgreen="#228b22",r.gainsboro="#dcdcdc",r.ghostwhite="#f8f8ff",r.gold="#ffd700",r.goldenrod="#daa520",r.greenyellow="#adff2f",r.grey="#808080",r.honeydew="#f0fff0",r.hotpink="#ff69b4",r.indianred="#cd5c5c",r.indigo="#4b0082",r.ivory="#fffff0",r.khaki="#f0e68c",r.lavender="#e6e6fa",r.lavenderblush="#fff0f5",r.lawngreen="#7cfc00",r.lemonchiffon="#fffacd",r.lightblue="#add8e6",r.lightcoral="#f08080",r.lightcyan="#e0ffff",r.lightgoldenrodyellow="#fafad2",r.lightgray="#d3d3d3",r.lightgreen="#90ee90",r.lightgrey="#d3d3d3",r.lightpink="#ffb6c1",r.lightsalmon="#ffa07a",r.lightseagreen="#20b2aa",r.lightskyblue="#87cefa",r.lightslategray="#778899",r.lightslategrey="#778899",r.lightsteelblue="#b0c4de",r.lightyellow="#ffffe0",r.limegreen="#32cd32",r.linen="#faf0e6",r.magenta="#ff00ff",r.mediumaquamarine="#66cdaa",r.mediumblue="#0000cd",r.mediumorchid="#ba55d3",r.mediumpurple="#9370db",r.mediumseagreen="#3cb371",r.mediumslateblue="#7b68ee",r.mediumspringgreen="#00fa9a",r.mediumturquoise="#48d1cc",r.mediumvioletred="#c71585",r.midnightblue="#191970",r.mintcream="#f5fffa",r.mistyrose="#ffe4e1",r.moccasin="#ffe4b5",r.navajowhite="#ffdead",r.oldlace="#fdf5e6",r.olivedrab="#6b8e23",r.orange="#ffa500",r.orangered="#ff4500",r.orchid="#da70d6",r.palegoldenrod="#eee8aa",r.palegreen="#98fb98",r.paleturquoise="#afeeee",r.palevioletred="#db7093",r.papayawhip="#ffefd5",r.peachpuff="#ffdab9",r.peru="#cd853f",r.pink="#ffc0cb",r.plum="#dda0dd",r.powderblue="#b0e0e6",r.rosybrown="#bc8f8f",r.royalblue="#4169e1",r.saddlebrown="#8b4513",r.salmon="#fa8072",r.sandybrown="#f4a460",r.seagreen="#2e8b57",r.seashell="#fff5ee",r.sienna="#a0522d",r.skyblue="#87ceeb",r.slateblue="#6a5acd",r.slategray="#708090",r.snow="#fffafa",r.springgreen="#00ff7f",r.steelblue="#4682b4",r.tan="#d2b48c",r.thistle="#d8bfd8",r.tomato="#ff6347",r.turquoise="#40e0d0",r.violet="#ee82ee",r.wheat="#f5deb3",r.whitesmoke="#f5f5f5",r.yellowgreen="#9acd32",r))(rV||{});function ty(r){return typeof r!="string"?!1:(r=r.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(r))}function rwe(r){return typeof r!="string"?!1:(r=r.toLowerCase(),/^(rgb\(|RGB\()/.test(r))}function nV(r){return typeof r!="string"?!1:(r=r.toLowerCase(),/^(rgba|RGBA)/.test(r))}function aV(r){return/^(rgb|rgba|RGB|RGBA)/.test(r)}function nwe(r){return rV[r]}function iV(r){if(ty(r)||aV(r))return r;const e=nwe(r);if(!e)throw new Error(`Color: Invalid Input of ${r}`);return e}function awe(r){r=r.replace("#",""),r.length===3&&(r=Array.from(r).map(t=>t+t).join(""));const e=r.split("");return new Array(3).fill(0).map((t,n)=>parseInt(`0x${e[n*2]}${e[n*2+1]}`))}function iwe(r){return r.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(e=>parseInt(e))}function Yf(r){const e=iV(r).toLowerCase();return ty(e)?awe(e):iwe(e)}function oV(r){const e=iV(r);return nV(e)?Number(e.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function Jx(r){const e=Yf(r);return e&&[...e,oV(r)]}function owe(r,e){const t=Yf(r);return typeof e=="number"?`rgba(${t.join(",")},${e})`:`rgb(${t.join(",")})`}function swe(r){if(ty(r))return r;const e=Yf(r),t=n=>Number(n).toString(16).padStart(2,"0");return`#${e.map(t).join("")}`}function ry(r){if(!Array.isArray(r))throw new Error(`getColorFromRgbValue: ${r} is not an array`);const{length:e}=r;if(e!==3&&e!==4)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(e===3?"rgb(":"rgba(")+r.join(",")+")"}function Awe(r,e=0){let t=Jx(r);return t=t.map((n,a)=>a===3?n:n-Math.ceil(2.55*e)).map(n=>n<0?0:n),ry(t)}function tC(r,e=0){let t=Jx(r);return t=t.map((n,a)=>a===3?n:n+Math.ceil(2.55*e)).map(n=>n>255?255:n),ry(t)}function br(r,e=100){const t=Yf(r);return ry([...t,e/100])}const lwe=Object.freeze(Object.defineProperty({__proto__:null,darken:Awe,fade:br,getColorFromRgbValue:ry,getOpacity:oV,getRgbValue:Yf,getRgbaValue:Jx,isHex:ty,isRgb:rwe,isRgbOrRgba:aV,isRgba:nV,lighten:tC,toHex:swe,toRgb:owe},Symbol.toStringTag,{value:"Module"})),Oo=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},uwe={},cwe={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function fwe(r,e){return he(),de("svg",cwe,e[0]||(e[0]=[ae("g",{style:{transform:"translate(2px, 2px)"}},[ae("g",null,[ae("path",{"data-type":"shape",d:"M0,0 L0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-bg"})]),ae("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19",class:"dv-button-svg-line"})],-1)]))}const hwe=Oo(uwe,[["render",fwe]]),vwe={},dwe={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function pwe(r,e){return he(),de("svg",dwe,e[0]||(e[0]=[Zp('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L164.1,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L0,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M1.1,34 L1.1,0" class="dv-button-svg-line"></path></g>',1)]))}const gwe=Oo(vwe,[["render",pwe]]),ywe={},mwe={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function wwe(r,e){return he(),de("svg",mwe,e[0]||(e[0]=[Zp('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M1,1 L1,33 L162,33 L162,1" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L0,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,0 L10,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,0 L153,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L153,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L163,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L0,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,34 L10,34" class="dv-button-svg-line"></path></g>',1)]))}const Bwe=Oo(ywe,[["render",wwe]]),Cwe={},bwe={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function xwe(r,e){return he(),de("svg",bwe,e[0]||(e[0]=[ae("g",{style:{transform:"translate(2px, 2px)"}},[ae("g",null,[ae("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L0,0",class:"dv-button-svg-bg"})]),ae("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),ae("path",{"data-type":"polyline",d:"M184.1,0 L0,0 L0,34.7",class:"dv-button-svg-line"})],-1)]))}const _we=Oo(Cwe,[["render",xwe]]),Swe={},Twe={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function Iwe(r,e){return he(),de("svg",Twe,e[0]||(e[0]=[ae("g",{style:{transform:"translate(2px, 2px)"}},[ae("g",null,[ae("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L15,0 L0,15",class:"dv-button-svg-bg"})]),ae("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),ae("path",{"data-type":"polyline",d:"M183,0 L15,0 L0,15 L0,34",class:"dv-button-svg-line"})],-1)]))}const Lwe=Oo(Swe,[["render",Iwe]]),Ewe={},Mwe={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function Dwe(r,e){return he(),de("svg",Mwe,e[0]||(e[0]=[Zp('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L81.6,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L81.4,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L81.6,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L81.4,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,1 L10,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,1 L153,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,33 L10,33" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,33 L153,33" class="dv-button-svg-line"></path></g>',1)]))}const Fwe=Oo(Ewe,[["render",Dwe]]),Qwe={class:"dv-button-wrapper"},Uwe={class:"dv-button"},Pwe={class:"dv-button-svg-container"},kwe={class:"dv-button-text"},Rwe=vt({components:{Border1:hwe,Border2:gwe,Border3:Bwe,Border4:_we,Border5:Lwe,Border6:Fwe},__name:"index",props:{color:{default:"#2058c7"},fontColor:{default:""},bg:{type:Boolean,default:!0},border:{default:"Border1"},fontSize:{default:14}},setup(r){Tf(s=>({"108fc75d":Q(o),"45ef2fd4":s.color,fc71f308:Q(n),"6ca41ab4":Q(t),"1faf6725":Q(a),"9aee3820":Q(i)}));const e=r,t=rt(()=>tC(e.color,40)),n=rt(()=>e.fontColor===""?e.color:e.fontColor),a=rt(()=>tC(n.value,40)),i=rt(()=>e.bg?.1:0),o=rt(()=>`${e.fontSize}px`);return(s,A)=>(he(),de("div",Qwe,[ae("button",Uwe,[ae("div",Pwe,[(he(),Sd(wV(s.border)))]),ae("div",kwe,[Ft(s.$slots,"default")])])]))}}),fF={install(r){r.component("DvButton",Rwe)}};function Owe(r){return _V()?(SV(r),!0):!1}function Xp(r){return typeof r=="function"?r():Q(r)}const Hwe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nwe=Object.prototype.toString,Vwe=r=>Nwe.call(r)==="[object Object]",rC=()=>{};function Gwe(r,e){function t(...n){return new Promise((a,i)=>{Promise.resolve(r(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(a).catch(i)})}return t}function zwe(r,e={}){let t,n,a=rC;const i=o=>{clearTimeout(o),a(),a=rC};return o=>{const s=Xp(r),A=Xp(e.maxWait);return t&&i(t),s<=0||A!==void 0&&A<=0?(n&&(i(n),n=null),Promise.resolve(o())):new Promise((l,u)=>{a=e.rejectOnCancel?u:l,A&&!n&&(n=setTimeout(()=>{t&&i(t),n=null,l(o())},A)),t=setTimeout(()=>{n&&i(n),n=null,l(o())},s)})}}function $we(r,e=200,t={}){return Gwe(zwe(e,t),r)}function Kwe(r){var e;const t=Xp(r);return(e=t==null?void 0:t.$el)!=null?e:t}const Wwe=Hwe?window:void 0;function Xwe(...r){let e,t,n,a;if(typeof r[0]=="string"||Array.isArray(r[0])?([t,n,a]=r,e=Wwe):[e,t,n,a]=r,!e)return rC;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),A=Et(()=>[Kwe(e),Xp(a)],([u,c])=>{if(o(),!u)return;const f=Vwe(c)?{...c}:c;i.push(...t.flatMap(h=>n.map(v=>s(u,h,v,f))))},{immediate:!0,flush:"post"}),l=()=>{A(),o()};return Owe(l),l}function _f(r,e){return arguments.length===1?Number.parseInt((Math.random()*r+1).toString(),10):Number.parseInt((Math.random()*(e-r+1)+r).toString(),10)}function Ywe(r,e){const t=window.MutationObserver,n=new t(e);return n.observe(r,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),n}function Yp(r,e){const t=Math.abs(r[0]-e[0]),n=Math.abs(r[1]-e[1]);return Math.sqrt(t*t+n*n)}function tl(r,e,t,n){return[r+Math.cos(n)*t,e+Math.sin(n)*t]}function Zwe(r){return r.filter(e=>typeof e=="number")}function jwe(r){return r=Zwe(r),r.reduce((e,t)=>e+t,0)}function Jwe(r,e){const t=Math.abs(r.x-e.x),n=Math.abs(r.y-e.y);return Math.sqrt(t*t+n*n)}function hF(r){const e=Array.from({length:r.length-1}).fill(0).map((t,n)=>[r[n],r[n+1]]).map(t=>Jwe(t[0],t[1]));return jwe(e)}function qwe(r){return`${r.x},${r.y}`}function vF(r){return r.map(qwe).join(" ")}function Ca(r){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Bt(r,e){for(const t in e){if(r[t]&&typeof r[t]=="object"){Bt(r[t],e[t]);continue}if(typeof e[t]=="object"){r[t]=_t(e[t]);continue}r[t]=e[t]}return r}function _t(r,e){if(!r)return r;const t=Array.isArray(r)?[]:{};if(r&&typeof r=="object")for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(r[n]&&typeof r[n]=="object"?t[n]=_t(r[n]):t[n]=r[n]);return t}function yt(r,e,t){const n=Ee(0),a=Ee(0);let i,o=null,s=null;const A=(h=!0)=>new Promise(v=>{Je(()=>{s=r.value,n.value=r.value?r.value.clientWidth:0,a.value=r.value?r.value.clientHeight:0,r.value?(!n.value||!a.value)&&console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),typeof e=="function"&&h&&e(),v(!0)})}),l=()=>{i=$we(A,200)},u=()=>{o=Ywe(s,i),Xwe(window,"resize",i)},c=()=>{o&&(o.disconnect(),o.takeRecords(),o=null)},f=async()=>{await A(!1),l(),u(),typeof t=="function"&&t()};return St(()=>{f()}),Qo(()=>{c()}),bV(f),xV(c),{width:n,height:a,initWH:A}}const e1e=["width","height"],t1e=["d","fill"],r1e=["fill","x","y"],n1e=["xlink:href","width","height","x","y"],a1e=["fill","x","y"],i1e={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){Tf(h=>({"51c9737a":Q(o)}));const e=r,t=Ee(null),{width:n,height:a}=yt(t,A,s),i=It({defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1,sort:!0},mergedConfig:null,column:[]}),o=rt(()=>`${e.config.fontSize?e.config.fontSize:i.defaultConfig.fontSize}px`);Et(()=>e.config,()=>{l()},{deep:!0});function s(){l()}function A(){l()}function l(){u(),c(),f()}function u(){i.mergedConfig=Bt(_t(i.defaultConfig),e.config||{})}function c(){let{data:h}=i.mergedConfig;const{sort:v}=i.mergedConfig;h=_t(h),v&&h.sort(({value:p},{value:g})=>p>g?-1:p<g?1:0);const d=Math.max(...h.map(p=>p.value));h=h.map(p=>({...p,percent:d===0?0:p.value/d})),i.mergedConfig.data=h}function f(){const{imgSideLength:h,fontSize:v,data:d}=i.mergedConfig,p=d.length,g=n.value/(p+1),y=a.value-h-v-5,m=a.value-v-5;i.column=d.map((w,B)=>{const{percent:C}=w,b=g*(B+1),_=g*B,x=g*(B+2),S=m-y*C,I=y*C*.6+S,L=`
M${_}, ${m}
Q${b}, ${I} ${b},${S}
M${b},${S}
Q${b}, ${I} ${x},${m}
L${_}, ${m}
Z
`,T=(m+S)/2+v/2;return{...w,d:L,x:b,y:S,textY:T}})}return(h,v)=>(he(),de("div",{ref_key:"conicalColumnChart",ref:t,class:"dv-conical-column-chart"},[(he(),de("svg",{width:Q(n),height:Q(a)},[(he(!0),de(lt,null,dt(Q(i).column,(d,p)=>(he(),de("g",{key:p},[ae("path",{d:d.d,fill:Q(i).mergedConfig.columnColor},null,8,t1e),ae("text",{fill:Q(i).mergedConfig.textColor,x:d.x,y:Q(a)-4},Dt(d.name),9,r1e),Q(i).mergedConfig.img.length?(he(),de("image",{key:0,"xlink:href":Q(i).mergedConfig.img[p%Q(i).mergedConfig.img.length],width:Q(i).mergedConfig.imgSideLength,height:Q(i).mergedConfig.imgSideLength,x:d.x-Q(i).mergedConfig.imgSideLength/2,y:d.y-Q(i).mergedConfig.imgSideLength},null,8,n1e)):pt("",!0),Q(i).mergedConfig.showValue?(he(),de("text",{key:1,fill:Q(i).mergedConfig.textColor,x:d.x,y:d.textY},Dt(d.value),9,a1e)):pt("",!0)]))),128))],8,e1e))],512))}},dF={install(r){r.component("DvConicalColumnChart",i1e)}},o1e=["id"],s1e=["offset","stop-color"],A1e=["id","x2"],l1e=["offset","stop-color"],u1e=["x","y","rx","ry","stroke-width","stroke","width","height"],c1e=["stroke-width","stroke-dasharray","stroke","points"],f1e=["stroke","fill","x","y"],h1e={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({gradientId1:`percent-pond-gradientId1-${t}`,gradientId2:`percent-pond-gradientId2-${t}`,width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}),i=rt(()=>{if(!a.mergedConfig)return 0;const{borderWidth:p}=a.mergedConfig;return a.width-p}),o=rt(()=>{if(!a.mergedConfig)return 0;const{borderWidth:p}=a.mergedConfig;return a.height-p}),s=rt(()=>{const p=a.height/2;if(!a.mergedConfig)return`0, ${p} 0, ${p}`;const{borderWidth:g,borderGap:y,value:m}=a.mergedConfig,w=(a.width-(g+y)*2)/100*m;return`
${g+y}, ${p}
${g+y+w}, ${p+.001}
`}),A=rt(()=>{if(!a.mergedConfig)return 0;const{borderWidth:p,borderGap:g}=a.mergedConfig;return a.height-(p+g)*2}),l=rt(()=>{if(!a.mergedConfig)return[];const{colors:p}=a.mergedConfig,g=100/(p.length-1);return p.map((y,m)=>[g*m,y])}),u=rt(()=>a.mergedConfig&&a.mergedConfig.localGradient?a.gradientId1:a.gradientId2),c=rt(()=>{if(!a.mergedConfig)return"100%";const{value:p}=a.mergedConfig;return`${200-p}%`}),f=rt(()=>{if(!a.mergedConfig)return"";const{value:p,formatter:g}=a.mergedConfig;return g.replace("{value}",p)});Et(()=>e.config,()=>{d()},{deep:!0}),St(()=>{h()});async function h(){await v(),e.config&&d()}async function v(){await Je();const{clientWidth:p,clientHeight:g}=n.value;a.width=p,a.height=g}function d(){a.mergedConfig=Bt(_t(a.defaultConfig),e.config||{})}return(p,g)=>(he(),de("div",{ref_key:"percentPond",ref:n,class:"dv-percent-pond"},[(he(),de("svg",null,[ae("defs",null,[ae("linearGradient",{id:Q(a).gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(he(!0),de(lt,null,dt(Q(l),y=>(he(),de("stop",{key:y[0],offset:`${y[0]}%`,"stop-color":y[1]},null,8,s1e))),128))],8,o1e),ae("linearGradient",{id:Q(a).gradientId2,x1:"0%",y1:"0%",x2:Q(c),y2:"0%"},[(he(!0),de(lt,null,dt(Q(l),y=>(he(),de("stop",{key:y[0],offset:`${y[0]}%`,"stop-color":y[1]},null,8,l1e))),128))],8,A1e)]),ae("rect",{x:Q(a).mergedConfig?Q(a).mergedConfig.borderWidth/2:"0",y:Q(a).mergedConfig?Q(a).mergedConfig.borderWidth/2:"0",rx:Q(a).mergedConfig?Q(a).mergedConfig.borderRadius:"0",ry:Q(a).mergedConfig?Q(a).mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":Q(a).mergedConfig?Q(a).mergedConfig.borderWidth:"0",stroke:`url(#${Q(a).gradientId1})`,width:Q(i)>0?Q(i):0,height:Q(o)>0?Q(o):0},null,8,u1e),ae("polyline",{"stroke-width":Q(A),"stroke-dasharray":Q(a).mergedConfig?Q(a).mergedConfig.lineDash.join(","):"0",stroke:`url(#${Q(u)})`,points:Q(s)},null,8,c1e),ae("text",{stroke:Q(a).mergedConfig?Q(a).mergedConfig.textColor:"#fff",fill:Q(a).mergedConfig?Q(a).mergedConfig.textColor:"#fff",x:Q(a).width/2,y:Q(a).height/2},Dt(Q(f)),9,f1e)]))],512))}},pF={install(r){r.component("DvPercentPond",h1e)}};function sV(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function v1e(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var ny={},AV={exports:{}};(function(r){function e(t){return t&&t.__esModule?t:{default:t}}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(AV);var Vt=AV.exports,gF={},yF={exports:{}},mF={exports:{}},wF={exports:{}},BF;function Xr(){return BF||(BF=1,function(r){function e(t){"@babel/helpers - typeof";return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r.exports.__esModule=!0,r.exports.default=r.exports,e(t)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(wF)),wF.exports}var CF={exports:{}},bF;function d1e(){return bF||(bF=1,function(r){var e=Xr().default;function t(n,a){if(e(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(e(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(CF)),CF.exports}var xF;function p1e(){return xF||(xF=1,function(r){var e=Xr().default,t=d1e();function n(a){var i=t(a,"string");return e(i)=="symbol"?i:String(i)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(mF)),mF.exports}var _F;function ba(){return _F||(_F=1,function(r){var e=p1e();function t(n,a,i){return a=e(a),a in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(yF)),yF.exports}var SF={exports:{}},TF={exports:{}},IF={exports:{}},LF;function lV(){return LF||(LF=1,function(r){function e(t,n){(n==null||n>t.length)&&(n=t.length);for(var a=0,i=new Array(n);a<n;a++)i[a]=t[a];return i}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(IF)),IF.exports}var EF;function g1e(){return EF||(EF=1,function(r){var e=lV();function t(n){if(Array.isArray(n))return e(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(TF)),TF.exports}var MF={exports:{}},DF;function y1e(){return DF||(DF=1,function(r){function e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(MF)),MF.exports}var FF={exports:{}},QF;function uV(){return QF||(QF=1,function(r){var e=lV();function t(n,a){if(n){if(typeof n=="string")return e(n,a);var i=Object.prototype.toString.call(n).slice(8,-1);if(i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set")return Array.from(n);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e(n,a)}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(FF)),FF.exports}var UF={exports:{}},PF;function m1e(){return PF||(PF=1,function(r){function e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(UF)),UF.exports}var kF;function Sr(){return kF||(kF=1,function(r){var e=g1e(),t=y1e(),n=uV(),a=m1e();function i(o){return e(o)||t(o)||n(o)||a()}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(SF)),SF.exports}var RF={exports:{}},OF;function Zf(){return OF||(OF=1,function(r){function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(RF)),RF.exports}const jf=v1e(lwe);var HF={},NF={},VF={exports:{}},GF={exports:{}},zF;function w1e(){return zF||(zF=1,function(r){function e(t){if(Array.isArray(t))return t}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(GF)),GF.exports}var $F={exports:{}},KF;function B1e(){return KF||(KF=1,function(r){function e(t,n){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var i,o,s,A,l=[],u=!0,c=!1;try{if(s=(a=a.call(t)).next,n===0){if(Object(a)!==a)return;u=!1}else for(;!(u=(i=s.call(a)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&a.return!=null&&(A=a.return(),Object(A)!==A))return}finally{if(c)throw o}}return l}}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}($F)),$F.exports}var WF={exports:{}},XF;function C1e(){return XF||(XF=1,function(r){function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports}(WF)),WF.exports}var YF;function on(){return YF||(YF=1,function(r){var e=w1e(),t=B1e(),n=uV(),a=C1e();function i(o,s){return e(o)||t(o,s)||n(o,s)||a()}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(VF)),VF.exports}var ZF;function b1e(){return ZF||(ZF=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.bezierCurveToPolyline=g,r.getBezierCurveLength=y,r.default=void 0;var t=e(on()),n=e(Sr()),a=Math.sqrt,i=Math.pow,o=Math.ceil,s=Math.abs,A=50;function l(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,C=w.length-1,b=w[0],_=w[C][2],x=w.slice(1),S=x.map(function(M,R){var P=R===0?b:x[R-1][2];return u.apply(void 0,[P].concat((0,n.default)(M)))}),I=new Array(C).fill(A),L=v(S,I),T=p(L,S,x,B);return T.segmentPoints.push(_),T}function u(w,B,C,b){return function(_){var x=1-_,S=i(x,3),I=i(x,2),L=i(_,3),T=i(_,2);return[w[0]*S+3*B[0]*_*I+3*C[0]*T*x+b[0]*L,w[1]*S+3*B[1]*_*I+3*C[1]*T*x+b[1]*L]}}function c(w,B){var C=(0,t.default)(w,2),b=C[0],_=C[1],x=(0,t.default)(B,2),S=x[0],I=x[1];return a(i(b-S,2)+i(_-I,2))}function f(w){return w.reduce(function(B,C){return B+C},0)}function h(w){return w.map(function(B,C){return new Array(B.length-1).fill(0).map(function(b,_){return c(B[_],B[_+1])})})}function v(w,B){return w.map(function(C,b){var _=1/B[b];return new Array(B[b]).fill("").map(function(x,S){return C(S*_)})})}function d(w,B){return w.map(function(C){return C.map(function(b){return s(b-B)})}).map(function(C){return f(C)}).reduce(function(C,b){return C+b},0)}function p(w,B,C,b){var _=4,x=1,S=function(){var L=w.reduce(function(G,X){return G+X.length},0);w.forEach(function(G,X){return G.push(C[X][2])});var T=h(w),M=T.reduce(function(G,X){return G+X.length},0),R=T.map(function(G){return f(G)}),P=f(R),E=P/M,k=d(T,E);if(k<=b)return"break";L=o(E/b*L*1.1);var D=R.map(function(G){return o(G/P*L)});w=v(B,D),L=w.reduce(function(G,X){return G+X.length},0);var U=JSON.parse(JSON.stringify(w));U.forEach(function(G,X){return G.push(C[X][2])}),T=h(U),M=T.reduce(function(G,X){return G+X.length},0),R=T.map(function(G){return f(G)}),P=f(R),E=P/M;var O=1/L/10;B.forEach(function(G,X){for(var te=D[X],ne=new Array(te).fill("").map(function(H,N){return N/D[X]}),ye=0;ye<_;ye++)for(var re=h([w[X]])[0],W=re.map(function(H){return H-E}),ee=0,oe=0;oe<te;oe++){if(oe===0)return;ee+=W[oe-1],ne[oe]-=O*ee,ne[oe]>1&&(ne[oe]=1),ne[oe]<0&&(ne[oe]=0),w[X][oe]=G(ne[oe])}}),_*=4,x++};do{var I=S();if(I==="break")break}while(_<=1025);return w=w.reduce(function(L,T){return L.concat(T)},[]),{segmentPoints:w,cycles:x,rounds:_}}function g(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!w)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(w instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if(typeof B!="number")return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var C=l(w,B),b=C.segmentPoints;return b}function y(w){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!w)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(w instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if(typeof B!="number")return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var C=l(w,B),b=C.segmentPoints,_=h([b])[0],x=f(_);return x}var m=g;r.default=m}(NF)),NF}var jF={},JF;function x1e(){return JF||(JF=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(on()),n=e(Sr());function a(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.25,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25;if(!(l instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(l.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var h=l[0],v=l.length-1,d=new Array(v).fill(0).map(function(p,g){return[].concat((0,n.default)(i(l,g,u,c,f)),[l[g+1]])});return u&&o(d,h),d.unshift(l[0]),d}function i(l,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.25,v=l.length;if(!(v<3||u>=v)){var d=u-1;d<0&&(d=c?v+d:0);var p=u+1;p>=v&&(p=c?p-v:v-1);var g=u+2;g>=v&&(g=c?g-v:v-1);var y=l[d],m=l[u],w=l[p],B=l[g];return[[m[0]+f*(w[0]-y[0]),m[1]+f*(w[1]-y[1])],[w[0]-h*(B[0]-m[0]),w[1]-h*(B[1]-m[1])]]}}function o(l,u){var c=l[0],f=l.slice(-1)[0];return l.push([s(f[1],f[2]),s(c[0],u),u]),l}function s(l,u){var c=(0,t.default)(l,2),f=c[0],h=c[1],v=(0,t.default)(u,2),d=v[0],p=v[1],g=d-f,y=p-h;return[d+g,p+y]}var A=a;r.default=A}(jF)),jF}var qF;function qx(){return qF||(qF=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"bezierCurveToPolyline",{enumerable:!0,get:function(){return t.bezierCurveToPolyline}}),Object.defineProperty(r,"getBezierCurveLength",{enumerable:!0,get:function(){return t.getBezierCurveLength}}),Object.defineProperty(r,"polylineToBezierCurve",{enumerable:!0,get:function(){return n.default}}),r.default=void 0;var t=b1e(),n=e(x1e()),a={bezierCurveToPolyline:t.bezierCurveToPolyline,getBezierCurveLength:t.getBezierCurveLength,polylineToBezierCurve:n.default};r.default=a}(HF)),HF}var eQ={},tQ;function Pr(){return tQ||(tQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.deepClone=f,r.eliminateBlur=h,r.checkPointIsInCircle=v,r.getTwoPointDistance=d,r.checkPointIsInPolygon=p,r.checkPointIsInSector=g,r.checkPointIsNearPolyline=m,r.checkPointIsInRect=w,r.getRotatePointPos=B,r.getScalePointPos=C,r.getTranslatePointPos=b,r.getDistanceBetweenPointAndLine=_,r.getCircleRadianPoint=x,r.getRegularPolygonPoints=S,r.default=void 0;var t=e(Sr()),n=e(on()),a=e(Xr()),i=Math.abs,o=Math.sqrt,s=Math.sin,A=Math.cos,l=Math.max,u=Math.min,c=Math.PI;function f(L){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!L)return L;var M=JSON.parse,R=JSON.stringify;if(!T)return M(R(L));var P=L instanceof Array?[]:{};if(L&&(0,a.default)(L)==="object")for(var E in L)L.hasOwnProperty(E)&&(L[E]&&(0,a.default)(L[E])==="object"?P[E]=f(L[E],!0):P[E]=L[E]);return P}function h(L){return L.map(function(T){var M=(0,n.default)(T,2),R=M[0],P=M[1];return[parseInt(R)+.5,parseInt(P)+.5]})}function v(L,T,M,R){return d(L,[T,M])<=R}function d(L,T){var M=(0,n.default)(L,2),R=M[0],P=M[1],E=(0,n.default)(T,2),k=E[0],D=E[1],U=i(R-k),O=i(P-D);return o(U*U+O*O)}function p(L,T){for(var M=0,R=(0,n.default)(L,2),P=R[0],E=R[1],k=T.length,D=1,U=T[0];D<=k;D++){var O=T[D%k];if(P>u(U[0],O[0])&&P<=l(U[0],O[0])&&E<=l(U[1],O[1])&&U[0]!==O[0]){var G=(P-U[0])*(O[1]-U[1])/(O[0]-U[0])+U[1];(U[1]===O[1]||E<=G)&&M++}U=O}return M%2===1}function g(L,T,M,R,P,E,k){if(!L||d(L,[T,M])>R)return!1;if(!k){var D=f([E,P]),U=(0,n.default)(D,2);P=U[0],E=U[1]}var O=P>E;if(O){var G=[E,P];P=G[0],E=G[1]}var X=E-P;if(X>=c*2)return!0;var te=(0,n.default)(L,2),ne=te[0],ye=te[1],re=x(T,M,R,P),W=(0,n.default)(re,2),ee=W[0],oe=W[1],H=x(T,M,R,E),N=(0,n.default)(H,2),K=N[0],$=N[1],j=[ne-T,ye-M],ie=[ee-T,oe-M],z=[K-T,$-M],q=X>c;if(q){var V=f([z,ie]),Y=(0,n.default)(V,2);ie=Y[0],z=Y[1]}var Z=y(ie,j)&&!y(z,j);return q&&(Z=!Z),O&&(Z=!Z),Z}function y(L,T){var M=(0,n.default)(L,2),R=M[0],P=M[1],E=(0,n.default)(T,2),k=E[0],D=E[1];return-P*k+R*D>0}function m(L,T,M){var R=M/2,P=T.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O,G-R]}),E=T.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O,G+R]}),k=[].concat((0,t.default)(P),(0,t.default)(E.reverse()));return p(L,k)}function w(L,T,M,R,P){var E=(0,n.default)(L,2),k=E[0],D=E[1];return!(k<T||D<M||k>T+R||D>M+P)}function B(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1?arguments[1]:void 0,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!T)return!1;if(L%360===0)return T;var R=(0,n.default)(T,2),P=R[0],E=R[1],k=(0,n.default)(M,2),D=k[0],U=k[1];return L*=c/180,[(P-D)*A(L)-(E-U)*s(L)+D,(P-D)*s(L)+(E-U)*A(L)+U]}function C(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[1,1],T=arguments.length>1?arguments[1]:void 0,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!T)return!1;if(L===1)return T;var R=(0,n.default)(T,2),P=R[0],E=R[1],k=(0,n.default)(M,2),D=k[0],U=k[1],O=(0,n.default)(L,2),G=O[0],X=O[1],te=P-D,ne=E-U;return[te*G+D,ne*X+U]}function b(L,T){if(!L||!T)return!1;var M=(0,n.default)(T,2),R=M[0],P=M[1],E=(0,n.default)(L,2),k=E[0],D=E[1];return[R+k,P+D]}function _(L,T,M){if(!L||!T||!M)return!1;var R=(0,n.default)(L,2),P=R[0],E=R[1],k=(0,n.default)(T,2),D=k[0],U=k[1],O=(0,n.default)(M,2),G=O[0],X=O[1],te=X-U,ne=D-G,ye=U*(G-D)-D*(X-U),re=i(te*P+ne*E+ye),W=o(te*te+ne*ne);return re/W}function x(L,T,M,R){return[L+A(R)*M,T+s(R)*M]}function S(L,T,M,R){var P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:c*-.5,E=c*2/R,k=new Array(R).fill("").map(function(D,U){return U*E+P});return k.map(function(D){return x(L,T,M,D)})}var I={deepClone:f,eliminateBlur:h,checkPointIsInCircle:v,checkPointIsInPolygon:p,checkPointIsInSector:g,checkPointIsNearPolyline:m,getTwoPointDistance:d,getRotatePointPos:B,getScalePointPos:C,getTranslatePointPos:b,getCircleRadianPoint:x,getRegularPolygonPoints:S,getDistanceBetweenPointAndLine:_};r.default=I}(eQ)),eQ}var rQ={},nQ={},aQ;function _1e(){return aQ||(aQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.drawPolylinePath=n,r.drawBezierCurvePath=a,r.default=void 0;var t=e(Sr());function n(o,s){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!o||s.length<2)return!1;A&&o.beginPath(),s.forEach(function(u,c){return u&&(c===0?o.moveTo.apply(o,(0,t.default)(u)):o.lineTo.apply(o,(0,t.default)(u)))}),l&&o.closePath()}function a(o,s){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o||!s)return!1;l&&o.beginPath(),A&&o.moveTo.apply(o,(0,t.default)(A)),s.forEach(function(c){return c&&o.bezierCurveTo.apply(o,(0,t.default)(c[0]).concat((0,t.default)(c[1]),(0,t.default)(c[2])))}),u&&o.closePath()}var i={drawPolylinePath:n,drawBezierCurvePath:a};r.default=i}(nQ)),nQ}var iQ;function e_(){return iQ||(iQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.extendNewGraph=C,r.default=r.text=r.bezierCurve=r.smoothline=r.polyline=r.regPolygon=r.sector=r.arc=r.ring=r.rect=r.ellipse=r.circle=void 0;var t=e(Sr()),n=e(on()),a=e(qx()),i=Pr(),o=_1e(),s=a.default.polylineToBezierCurve,A=a.default.bezierCurveToPolyline,l={shape:{rx:0,ry:0,r:0},validator:function(b){var _=b.shape,x=_.rx,S=_.ry,I=_.r;return typeof x!="number"||typeof S!="number"||typeof I!="number"?(console.error("Circle shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r;x.arc(I,L,T>0?T:.01,0,Math.PI*2),x.fill(),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=x.rx,I=x.ry,L=x.r;return(0,i.checkPointIsInCircle)(b,S,I,L)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.circle=l;var u={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(b){var _=b.shape,x=_.rx,S=_.ry,I=_.hr,L=_.vr;return typeof x!="number"||typeof S!="number"||typeof I!="number"||typeof L!="number"?(console.error("Ellipse shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.hr,M=S.vr;x.ellipse(I,L,T>0?T:.01,M>0?M:.01,0,0,Math.PI*2),x.fill(),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=x.rx,I=x.ry,L=x.hr,T=x.vr,M=Math.max(L,T),R=Math.min(L,T),P=Math.sqrt(M*M-R*R),E=[S-P,I],k=[S+P,I],D=(0,i.getTwoPointDistance)(b,E)+(0,i.getTwoPointDistance)(b,k);return D<=2*M},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.ellipse=u;var c={shape:{x:0,y:0,w:0,h:0},validator:function(b){var _=b.shape,x=_.x,S=_.y,I=_.w,L=_.h;return typeof x!="number"||typeof S!="number"||typeof I!="number"||typeof L!="number"?(console.error("Rect shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.x,L=S.y,T=S.w,M=S.h;x.rect(I,L,T,M),x.fill(),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=x.x,I=x.y,L=x.w,T=x.h;return(0,i.checkPointIsInRect)(b,S,I,L,T)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.x,L=x.y,T=x.w,M=x.h;S.graphCenter=[I+T/2,L+M/2]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{x:I.x+x,y:I.y+S})}};r.rect=c;var f={shape:{rx:0,ry:0,r:0},validator:function(b){var _=b.shape,x=_.rx,S=_.ry,I=_.r;return typeof x!="number"||typeof S!="number"||typeof I!="number"?(console.error("Ring shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r;x.arc(I,L,T>0?T:.01,0,Math.PI*2),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry,T=x.r,M=S.lineWidth,R=M/2,P=T-R,E=T+R,k=(0,i.getTwoPointDistance)(b,[I,L]);return k>=P&&k<=E},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.ring=f;var h={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(b){var _=b.shape,x=["rx","ry","r","startAngle","endAngle"];return x.find(function(S){return typeof _[S]!="number"})?(console.error("Arc shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r,M=S.startAngle,R=S.endAngle,P=S.clockWise;x.arc(I,L,T>0?T:.001,M,R,!P),x.stroke(),x.closePath()},hoverCheck:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry,T=x.r,M=x.startAngle,R=x.endAngle,P=x.clockWise,E=S.lineWidth,k=E/2,D=T-k,U=T+k;return!(0,i.checkPointIsInSector)(b,I,L,D,M,R,P)&&(0,i.checkPointIsInSector)(b,I,L,U,M,R,P)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape;this.attr("shape",{rx:I.rx+x,ry:I.ry+S})}};r.arc=h;var v={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(b){var _=b.shape,x=["rx","ry","r","startAngle","endAngle"];return x.find(function(S){return typeof _[S]!="number"})?(console.error("Sector shape configuration is abnormal!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape;x.beginPath();var I=S.rx,L=S.ry,T=S.r,M=S.startAngle,R=S.endAngle,P=S.clockWise;x.arc(I,L,T>0?T:.01,M,R,!P),x.lineTo(I,L),x.closePath(),x.stroke(),x.fill()},hoverCheck:function(b,_){var x=_.shape,S=x.rx,I=x.ry,L=x.r,T=x.startAngle,M=x.endAngle,R=x.clockWise;return(0,i.checkPointIsInSector)(b,S,I,L,T,M,R)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=I.rx,T=I.ry;this.attr("shape",{rx:L+x,ry:T+S})}};r.sector=v;var d={shape:{rx:0,ry:0,r:0,side:0},validator:function(b){var _=b.shape,x=_.side,S=["rx","ry","r","side"];return S.find(function(I){return typeof _[I]!="number"})?(console.error("RegPolygon shape configuration is abnormal!"),!1):x<3?(console.error("RegPolygon at least trigon!"),!1):!0},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.cache;x.beginPath();var L=S.rx,T=S.ry,M=S.r,R=S.side;if(!I.points||I.rx!==L||I.ry!==T||I.r!==M||I.side!==R){var P=(0,i.getRegularPolygonPoints)(L,T,M,R);Object.assign(I,{points:P,rx:L,ry:T,r:M,side:R})}var E=I.points;(0,o.drawPolylinePath)(x,E),x.closePath(),x.stroke(),x.fill()},hoverCheck:function(b,_){var x=_.cache,S=x.points;return(0,i.checkPointIsInPolygon)(b,S)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.rx,L=x.ry;S.graphCenter=[I,L]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=_.cache,T=I.rx,M=I.ry;L.rx+=x,L.ry+=S,this.attr("shape",{rx:T+x,ry:M+S}),L.points=L.points.map(function(R){var P=(0,n.default)(R,2),E=P[0],k=P[1];return[E+x,k+S]})}};r.regPolygon=d;var p={shape:{points:[],close:!1},validator:function(b){var _=b.shape,x=_.points;return x instanceof Array?!0:(console.error("Polyline points should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.style.lineWidth;x.beginPath();var L=S.points,T=S.close;I===1&&(L=(0,i.eliminateBlur)(L)),(0,o.drawPolylinePath)(x,L),T&&(x.closePath(),x.fill()),x.stroke()},hoverCheck:function(b,_){var x=_.shape,S=_.style,I=x.points,L=x.close,T=S.lineWidth;return L?(0,i.checkPointIsInPolygon)(b,I):(0,i.checkPointIsNearPolyline)(b,I,T)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.points;S.graphCenter=I[0]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=I.points,T=L.map(function(M){var R=(0,n.default)(M,2),P=R[0],E=R[1];return[P+x,E+S]});this.attr("shape",{points:T})}};r.polyline=p;var g={shape:{points:[],close:!1},validator:function(b){var _=b.shape,x=_.points;return x instanceof Array?!0:(console.error("Smoothline points should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.cache,L=S.points,T=S.close;if(!I.points||I.points.toString()!==L.toString()){var M=s(L,T),R=A(M);Object.assign(I,{points:(0,i.deepClone)(L,!0),bezierCurve:M,hoverPoints:R})}var P=I.bezierCurve;x.beginPath(),(0,o.drawBezierCurvePath)(x,P.slice(1),P[0]),T&&(x.closePath(),x.fill()),x.stroke()},hoverCheck:function(b,_){var x=_.cache,S=_.shape,I=_.style,L=x.hoverPoints,T=S.close,M=I.lineWidth;return T?(0,i.checkPointIsInPolygon)(b,L):(0,i.checkPointIsNearPolyline)(b,L,M)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.points;S.graphCenter=I[0]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=_.cache,T=I.points,M=T.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O+x,G+S]});L.points=M;var R=(0,n.default)(L.bezierCurve[0],2),P=R[0],E=R[1],k=L.bezierCurve.slice(1);L.bezierCurve=[[P+x,E+S]].concat((0,t.default)(k.map(function(D){return D.map(function(U){var O=(0,n.default)(U,2),G=O[0],X=O[1];return[G+x,X+S]})}))),L.hoverPoints=L.hoverPoints.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O+x,G+S]}),this.attr("shape",{points:M})}};r.smoothline=g;var y={shape:{points:[],close:!1},validator:function(b){var _=b.shape,x=_.points;return x instanceof Array?!0:(console.error("BezierCurve points should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=_.cache,L=S.points,T=S.close;if(!I.points||I.points.toString()!==L.toString()){var M=A(L,20);Object.assign(I,{points:(0,i.deepClone)(L,!0),hoverPoints:M})}x.beginPath(),(0,o.drawBezierCurvePath)(x,L.slice(1),L[0]),T&&(x.closePath(),x.fill()),x.stroke()},hoverCheck:function(b,_){var x=_.cache,S=_.shape,I=_.style,L=x.hoverPoints,T=S.close,M=I.lineWidth;return T?(0,i.checkPointIsInPolygon)(b,L):(0,i.checkPointIsNearPolyline)(b,L,M)},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.points;S.graphCenter=I[0]},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=_.cache,T=I.points,M=(0,n.default)(T[0],2),R=M[0],P=M[1],E=T.slice(1),k=[[R+x,P+S]].concat((0,t.default)(E.map(function(D){return D.map(function(U){var O=(0,n.default)(U,2),G=O[0],X=O[1];return[G+x,X+S]})})));L.points=k,L.hoverPoints=L.hoverPoints.map(function(D){var U=(0,n.default)(D,2),O=U[0],G=U[1];return[O+x,G+S]}),this.attr("shape",{points:k})}};r.bezierCurve=y;var m={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(b){var _=b.shape,x=_.content,S=_.position,I=_.rowGap;return typeof x!="string"?(console.error("Text content should be a string!"),!1):S instanceof Array?typeof I!="number"?(console.error("Text rowGap should be a number!"),!1):!0:(console.error("Text position should be an array!"),!1)},draw:function(b,_){var x=b.ctx,S=_.shape,I=S.content,L=S.position,T=S.maxWidth,M=S.rowGap,R=x.textBaseline,P=x.font,E=parseInt(P.replace(/\D/g,"")),k=L,D=(0,n.default)(k,2),U=D[0],O=D[1];I=I.split(`
`);var G=I.length,X=E+M,te=G*X-M,ne=0;R==="middle"&&(ne=te/2,O+=E/2),R==="bottom"&&(ne=te,O+=E),L=new Array(G).fill(0).map(function(ye,re){return[U,O+re*X-ne]}),x.beginPath(),I.forEach(function(ye,re){x.fillText.apply(x,[ye].concat((0,t.default)(L[re]),[T])),x.strokeText.apply(x,[ye].concat((0,t.default)(L[re]),[T]))}),x.closePath()},hoverCheck:function(b,_){return _.shape,_.style,!1},setGraphCenter:function(b,_){var x=_.shape,S=_.style,I=x.position;S.graphCenter=(0,t.default)(I)},move:function(b,_){var x=b.movementX,S=b.movementY,I=_.shape,L=(0,n.default)(I.position,2),T=L[0],M=L[1];this.attr("shape",{position:[T+x,M+S]})}};r.text=m;var w=new Map([["circle",l],["ellipse",u],["rect",c],["ring",f],["arc",h],["sector",v],["regPolygon",d],["polyline",p],["smoothline",g],["bezierCurve",y],["text",m]]),B=w;r.default=B;function C(b,_){if(!b||!_){console.error("ExtendNewGraph Missing Parameters!");return}if(!_.shape){console.error("Required attribute of shape to extendNewGraph!");return}if(!_.validator){console.error("Required function of validator to extendNewGraph!");return}if(!_.draw){console.error("Required function of draw to extendNewGraph!");return}w.set(b,_)}}(rQ)),rQ}var oQ={},sQ={exports:{}},AQ;function S1e(){return AQ||(AQ=1,function(r){var e=Xr().default;function t(){r.exports=t=function(){return a},r.exports.__esModule=!0,r.exports.default=r.exports;var n,a={},i=Object.prototype,o=i.hasOwnProperty,s=Object.defineProperty||function(D,U,O){D[U]=O.value},A=typeof Symbol=="function"?Symbol:{},l=A.iterator||"@@iterator",u=A.asyncIterator||"@@asyncIterator",c=A.toStringTag||"@@toStringTag";function f(D,U,O){return Object.defineProperty(D,U,{value:O,enumerable:!0,configurable:!0,writable:!0}),D[U]}try{f({},"")}catch{f=function(D,U,O){return D[U]=O}}function h(D,U,O,G){var X=U&&U.prototype instanceof w?U:w,te=Object.create(X.prototype),ne=new E(G||[]);return s(te,"_invoke",{value:T(D,O,ne)}),te}function v(D,U,O){try{return{type:"normal",arg:D.call(U,O)}}catch(G){return{type:"throw",arg:G}}}a.wrap=h;var d="suspendedStart",p="suspendedYield",g="executing",y="completed",m={};function w(){}function B(){}function C(){}var b={};f(b,l,function(){return this});var _=Object.getPrototypeOf,x=_&&_(_(k([])));x&&x!==i&&o.call(x,l)&&(b=x);var S=C.prototype=w.prototype=Object.create(b);function I(D){["next","throw","return"].forEach(function(U){f(D,U,function(O){return this._invoke(U,O)})})}function L(D,U){function O(X,te,ne,ye){var re=v(D[X],D,te);if(re.type!=="throw"){var W=re.arg,ee=W.value;return ee&&e(ee)=="object"&&o.call(ee,"__await")?U.resolve(ee.__await).then(function(oe){O("next",oe,ne,ye)},function(oe){O("throw",oe,ne,ye)}):U.resolve(ee).then(function(oe){W.value=oe,ne(W)},function(oe){return O("throw",oe,ne,ye)})}ye(re.arg)}var G;s(this,"_invoke",{value:function(X,te){function ne(){return new U(function(ye,re){O(X,te,ye,re)})}return G=G?G.then(ne,ne):ne()}})}function T(D,U,O){var G=d;return function(X,te){if(G===g)throw new Error("Generator is already running");if(G===y){if(X==="throw")throw te;return{value:n,done:!0}}for(O.method=X,O.arg=te;;){var ne=O.delegate;if(ne){var ye=M(ne,O);if(ye){if(ye===m)continue;return ye}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(G===d)throw G=y,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);G=g;var re=v(D,U,O);if(re.type==="normal"){if(G=O.done?y:p,re.arg===m)continue;return{value:re.arg,done:O.done}}re.type==="throw"&&(G=y,O.method="throw",O.arg=re.arg)}}}function M(D,U){var O=U.method,G=D.iterator[O];if(G===n)return U.delegate=null,O==="throw"&&D.iterator.return&&(U.method="return",U.arg=n,M(D,U),U.method==="throw")||O!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+O+"' method")),m;var X=v(G,D.iterator,U.arg);if(X.type==="throw")return U.method="throw",U.arg=X.arg,U.delegate=null,m;var te=X.arg;return te?te.done?(U[D.resultName]=te.value,U.next=D.nextLoc,U.method!=="return"&&(U.method="next",U.arg=n),U.delegate=null,m):te:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,m)}function R(D){var U={tryLoc:D[0]};1 in D&&(U.catchLoc=D[1]),2 in D&&(U.finallyLoc=D[2],U.afterLoc=D[3]),this.tryEntries.push(U)}function P(D){var U=D.completion||{};U.type="normal",delete U.arg,D.completion=U}function E(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(R,this),this.reset(!0)}function k(D){if(D||D===""){var U=D[l];if(U)return U.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var O=-1,G=function X(){for(;++O<D.length;)if(o.call(D,O))return X.value=D[O],X.done=!1,X;return X.value=n,X.done=!0,X};return G.next=G}}throw new TypeError(e(D)+" is not iterable")}return B.prototype=C,s(S,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:B,configurable:!0}),B.displayName=f(C,c,"GeneratorFunction"),a.isGeneratorFunction=function(D){var U=typeof D=="function"&&D.constructor;return!!U&&(U===B||(U.displayName||U.name)==="GeneratorFunction")},a.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,C):(D.__proto__=C,f(D,c,"GeneratorFunction")),D.prototype=Object.create(S),D},a.awrap=function(D){return{__await:D}},I(L.prototype),f(L.prototype,u,function(){return this}),a.AsyncIterator=L,a.async=function(D,U,O,G,X){X===void 0&&(X=Promise);var te=new L(h(D,U,O,G),X);return a.isGeneratorFunction(U)?te:te.next().then(function(ne){return ne.done?ne.value:te.next()})},I(S),f(S,c,"Generator"),f(S,l,function(){return this}),f(S,"toString",function(){return"[object Generator]"}),a.keys=function(D){var U=Object(D),O=[];for(var G in U)O.push(G);return O.reverse(),function X(){for(;O.length;){var te=O.pop();if(te in U)return X.value=te,X.done=!1,X}return X.done=!0,X}},a.values=k,E.prototype={constructor:E,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!D)for(var U in this)U.charAt(0)==="t"&&o.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=n)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var U=this;function O(re,W){return te.type="throw",te.arg=D,U.next=re,W&&(U.method="next",U.arg=n),!!W}for(var G=this.tryEntries.length-1;G>=0;--G){var X=this.tryEntries[G],te=X.completion;if(X.tryLoc==="root")return O("end");if(X.tryLoc<=this.prev){var ne=o.call(X,"catchLoc"),ye=o.call(X,"finallyLoc");if(ne&&ye){if(this.prev<X.catchLoc)return O(X.catchLoc,!0);if(this.prev<X.finallyLoc)return O(X.finallyLoc)}else if(ne){if(this.prev<X.catchLoc)return O(X.catchLoc,!0)}else{if(!ye)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return O(X.finallyLoc)}}}},abrupt:function(D,U){for(var O=this.tryEntries.length-1;O>=0;--O){var G=this.tryEntries[O];if(G.tryLoc<=this.prev&&o.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var X=G;break}}X&&(D==="break"||D==="continue")&&X.tryLoc<=U&&U<=X.finallyLoc&&(X=null);var te=X?X.completion:{};return te.type=D,te.arg=U,X?(this.method="next",this.next=X.finallyLoc,m):this.complete(te)},complete:function(D,U){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&U&&(this.next=U),m},finish:function(D){for(var U=this.tryEntries.length-1;U>=0;--U){var O=this.tryEntries[U];if(O.finallyLoc===D)return this.complete(O.completion,O.afterLoc),P(O),m}},catch:function(D){for(var U=this.tryEntries.length-1;U>=0;--U){var O=this.tryEntries[U];if(O.tryLoc===D){var G=O.completion;if(G.type==="throw"){var X=G.arg;P(O)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(D,U,O){return this.delegate={iterator:k(D),resultName:U,nextLoc:O},this.method==="next"&&(this.arg=n),m}},a}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(sQ)),sQ.exports}var Aw,lQ;function T1e(){if(lQ)return Aw;lQ=1;var r=S1e()();Aw=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}return Aw}var uQ={exports:{}},cQ;function I1e(){return cQ||(cQ=1,function(r){function e(n,a,i,o,s,A,l){try{var u=n[A](l),c=u.value}catch(f){i(f);return}u.done?a(c):Promise.resolve(c).then(o,s)}function t(n){return function(){var a=this,i=arguments;return new Promise(function(o,s){var A=n.apply(a,i);function l(c){e(A,o,s,l,u,"next",c)}function u(c){e(A,o,s,l,u,"throw",c)}l(void 0)})}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(uQ)),uQ.exports}var fQ={},hQ;function L1e(){return hQ||(hQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(Sr()),n=e(Zf()),a=jf,i=Pr(),o=function h(v){(0,n.default)(this,h),this.colorProcessor(v);var d={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,d,v)};r.default=o,o.prototype.colorProcessor=function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=v?a.getColorFromRgbValue:a.getRgbaValue,p=["fill","stroke","shadowColor"],g=Object.keys(h),y=g.filter(function(C){return p.find(function(b){return b===C})});y.forEach(function(C){return h[C]=d(h[C])});var m=h.gradientColor,w=h.colors;if(m&&(h.gradientColor=m.map(function(C){return d(C)})),w){var B=Object.keys(w);B.forEach(function(C){return w[C]=d(w[C])})}},o.prototype.initStyle=function(h){s(h,this),l(h,this),u(h,this)};function s(h,v){h.save();var d=v.graphCenter,p=v.rotate,g=v.scale,y=v.translate;d instanceof Array&&(h.translate.apply(h,(0,t.default)(d)),p&&h.rotate(p*Math.PI/180),g instanceof Array&&h.scale.apply(h,(0,t.default)(g)),y&&h.translate.apply(h,(0,t.default)(y)),h.translate(-d[0],-d[1]))}var A=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function l(h,v){var d=v.fill,p=v.stroke,g=v.shadowColor,y=v.opacity;A.forEach(function(S){(S||typeof S=="number")&&(h[S]=v[S])}),d=(0,t.default)(d),p=(0,t.default)(p),g=(0,t.default)(g),d[3]*=y,p[3]*=y,g[3]*=y,h.fillStyle=(0,a.getColorFromRgbValue)(d),h.strokeStyle=(0,a.getColorFromRgbValue)(p),h.shadowColor=(0,a.getColorFromRgbValue)(g);var m=v.lineDash,w=v.shadowBlur;m&&(m=m.map(function(S){return S>=0?S:0}),h.setLineDash(m)),typeof w=="number"&&(h.shadowBlur=w>0?w:.001);var B=v.fontStyle,C=v.fontVarient,b=v.fontWeight,_=v.fontSize,x=v.fontFamily;h.font=B+" "+C+" "+b+" "+_+"px "+x}function u(h,v){if(c(v)){var d=v.gradientColor,p=v.gradientParams,g=v.gradientType,y=v.gradientWith,m=v.gradientStops,w=v.opacity;d=d.map(function(C){var b=C[3]*w,_=(0,t.default)(C);return _[3]=b,_}),d=d.map(function(C){return(0,a.getColorFromRgbValue)(C)}),m==="auto"&&(m=f(d));var B=h["create".concat(g.slice(0,1).toUpperCase()+g.slice(1),"Gradient")].apply(h,(0,t.default)(p));m.forEach(function(C,b){return B.addColorStop(C,d[b])}),h["".concat(y,"Style")]=B}}function c(h){var v=h.gradientColor,d=h.gradientParams,p=h.gradientType,g=h.gradientWith,y=h.gradientStops;if(!v||!d)return!1;if(v.length===1)return console.warn("The gradient needs to provide at least two colors"),!1;if(p!=="linear"&&p!=="radial")return console.warn("GradientType only supports linear or radial, current value is "+p),!1;var m=d.length;return p==="linear"&&m!==4||p==="radial"&&m!==6?(console.warn("The expected length of gradientParams is "+(p==="linear"?"4":"6")),!1):g!=="fill"&&g!=="stroke"?(console.warn("GradientWith only supports fill or stroke, current value is "+g),!1):y!=="auto"&&!(y instanceof Array)?(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+y),!1):!0}function f(h){var v=1/(h.length-1);return h.map(function(d,p){return v*p})}o.prototype.restoreTransform=function(h){h.restore()},o.prototype.update=function(h){this.colorProcessor(h),Object.assign(this,h)},o.prototype.getStyle=function(){var h=(0,i.deepClone)(this,!0);return this.colorProcessor(h,!0),h}}(fQ)),fQ}var vQ={},dQ={},pQ;function E1e(){return pQ||(pQ=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.easeInOutBounce=r.easeOutBounce=r.easeInBounce=r.easeInOutElastic=r.easeOutElastic=r.easeInElastic=r.easeInOutBack=r.easeOutBack=r.easeInBack=r.easeInOutQuint=r.easeOutQuint=r.easeInQuint=r.easeInOutQuart=r.easeOutQuart=r.easeInQuart=r.easeInOutCubic=r.easeOutCubic=r.easeInCubic=r.easeInOutQuad=r.easeOutQuad=r.easeInQuad=r.easeInOutSine=r.easeOutSine=r.easeInSine=r.linear=void 0;var e=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];r.linear=e;var t=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];r.easeInSine=t;var n=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];r.easeOutSine=n;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];r.easeInOutSine=a;var i=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];r.easeInQuad=i;var o=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];r.easeOutQuad=o;var s=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];r.easeInOutQuad=s;var A=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];r.easeInCubic=A;var l=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];r.easeOutCubic=l;var u=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];r.easeInOutCubic=u;var c=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];r.easeInQuart=c;var f=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];r.easeOutQuart=f;var h=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];r.easeInOutQuart=h;var v=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];r.easeInQuint=v;var d=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];r.easeOutQuint=d;var p=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];r.easeInOutQuint=p;var g=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];r.easeInBack=g;var y=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];r.easeOutBack=y;var m=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];r.easeInOutBack=m;var w=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];r.easeInElastic=w;var B=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];r.easeOutElastic=B;var C=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];r.easeInOutElastic=C;var b=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];r.easeInBounce=b;var _=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];r.easeOutBounce=_;var x=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];r.easeInOutBounce=x;var S=new Map([["linear",e],["easeInSine",t],["easeOutSine",n],["easeInOutSine",a],["easeInQuad",i],["easeOutQuad",o],["easeInOutQuad",s],["easeInCubic",A],["easeOutCubic",l],["easeInOutCubic",u],["easeInQuart",c],["easeOutQuart",f],["easeInOutQuart",h],["easeInQuint",v],["easeOutQuint",d],["easeInOutQuint",p],["easeInBack",g],["easeOutBack",y],["easeInOutBack",m],["easeInElastic",w],["easeOutElastic",B],["easeInOutElastic",C],["easeInBounce",b],["easeOutBounce",_],["easeInOutBounce",x]]);r.default=S}(dQ)),dQ}var gQ;function M1e(){return gQ||(gQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.transition=o,r.injectNewCurve=m,r.default=void 0;var t=e(on()),n=e(Xr()),a=e(E1e()),i="linear";function o(B){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!s.apply(void 0,arguments))return!1;try{var S=A(B),I=l(S,_);return!x||typeof b=="number"?v(C,b,I):y(C,b,I)}catch{return console.warn("Transition parameter may be abnormal!"),[b]}}function s(B){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30;if(!B||C===!1||b===!1||!_)return console.error("transition: Missing Parameters!"),!1;if((0,n.default)(C)!==(0,n.default)(b))return console.error("transition: Inconsistent Status Types!"),!1;var x=(0,n.default)(b);return x==="string"||x==="boolean"||!B.length?(console.error("transition: Unsupported Data Type of State!"),!1):(!a.default.has(B)&&!(B instanceof Array)&&console.warn("transition: Transition curve not found, default curve will be used!"),!0)}function A(B){var C="";return a.default.has(B)?C=a.default.get(B):B instanceof Array?C=B:C=a.default.get(i),C}function l(B,C){var b=1/(C-1),_=new Array(C).fill(0).map(function(S,I){return I*b}),x=_.map(function(S){return u(B,S)});return x}function u(B,C){var b=c(B,C),_=f(b,C);return h(b,_)}function c(B,C){var b=B.length-1,_="",x="";B.findIndex(function(M,R){if(R!==b){_=M,x=B[R+1];var P=_[0][0],E=x[0][0];return C>=P&&C<E}});var S=_[0],I=_[2]||_[0],L=x[1]||x[0],T=x[0];return[S,I,L,T]}function f(B,C){var b=B[0][0],_=B[3][0],x=_-b,S=C-b;return S/x}function h(B,C){var b=(0,t.default)(B,4),_=(0,t.default)(b[0],2),x=_[1],S=(0,t.default)(b[1],2),I=S[1],L=(0,t.default)(b[2],2),T=L[1],M=(0,t.default)(b[3],2),R=M[1],P=Math.pow,E=1-C,k=x*P(E,3),D=3*I*C*P(E,2),U=3*T*P(C,2)*E,O=R*P(C,3);return 1-(k+D+U+O)}function v(B,C,b){var _="object";return typeof B=="number"&&(_="number"),B instanceof Array&&(_="array"),_==="number"?d(B,C,b):_==="array"?p(B,C,b):_==="object"?g(B,C,b):b.map(function(x){return C})}function d(B,C,b){var _=C-B;return b.map(function(x){return B+_*x})}function p(B,C,b){var _=C.map(function(x,S){return typeof x!="number"?!1:x-B[S]});return b.map(function(x){return _.map(function(S,I){return S===!1?C[I]:B[I]+S*x})})}function g(B,C,b){var _=Object.keys(C),x=_.map(function(L){return B[L]}),S=_.map(function(L){return C[L]}),I=p(x,S,b);return I.map(function(L){var T={};return L.forEach(function(M,R){return T[_[R]]=M}),T})}function y(B,C,b){var _=v(B,C,b),x=function(L){var T=B[L],M=C[L];if((0,n.default)(M)!=="object")return"continue";var R=y(T,M,b);_.forEach(function(P,E){return P[L]=R[E]})};for(var S in C)var I=x(S);return _}function m(B,C){if(!B||!C){console.error("InjectNewCurve Missing Parameters!");return}a.default.set(B,C)}var w=o;r.default=w}(vQ)),vQ}var yQ;function D1e(){return yQ||(yQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(T1e()),n=e(I1e()),a=e(Xr()),i=e(Sr()),o=e(Zf()),s=e(L1e()),A=e(M1e()),l=Pr(),u=function f(h,v){(0,o.default)(this,f),v=(0,l.deepClone)(v,!0);var d={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null},p={status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}};v.shape||(v.shape={}),v.style||(v.style={});var g=Object.assign({},h.shape,v.shape);Object.assign(d,v,p),Object.assign(this,h,d),this.shape=g,this.style=new s.default(v.style),this.addedProcessor()};r.default=u,u.prototype.addedProcessor=function(){typeof this.setGraphCenter=="function"&&this.setGraphCenter(null,this),typeof this.added=="function"&&this.added(this)},u.prototype.drawProcessor=function(f,h){var v=f.ctx;h.style.initStyle(v),typeof this.beforeDraw=="function"&&this.beforeDraw(this,f),h.draw(f,h),typeof this.drawed=="function"&&this.drawed(this,f),h.style.restoreTransform(v)},u.prototype.hoverCheckProcessor=function(f,h){var v=h.hoverRect,d=h.style,p=h.hoverCheck,g=d.graphCenter,y=d.rotate,m=d.scale,w=d.translate;return g&&(y&&(f=(0,l.getRotatePointPos)(-y,f,g)),m&&(f=(0,l.getScalePointPos)(m.map(function(B){return 1/B}),f,g)),w&&(f=(0,l.getTranslatePointPos)(w.map(function(B){return B*-1}),f))),v?l.checkPointIsInRect.apply(void 0,[f].concat((0,i.default)(v))):p(f,this)},u.prototype.moveProcessor=function(f){this.move(f,this),typeof this.beforeMove=="function"&&this.beforeMove(f,this),typeof this.setGraphCenter=="function"&&this.setGraphCenter(f,this),typeof this.moved=="function"&&this.moved(f,this)},u.prototype.attr=function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!f||h===void 0)return!1;var v=(0,a.default)(this[f])==="object";v&&(h=(0,l.deepClone)(h,!0));var d=this.render;f==="style"?this.style.update(h):v?Object.assign(this[f],h):this[f]=h,f==="index"&&d.sortGraphsByIndex(),d.drawAllGraph()},u.prototype.animation=function(){var f=(0,n.default)(t.default.mark(function h(v,d){var p,g,y,m,w,B,C,b,_,x=arguments;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(p=x.length>2&&x[2]!==void 0?x[2]:!1,!(v!=="shape"&&v!=="style")){S.next=4;break}return console.error("Only supported shape and style animation!"),S.abrupt("return");case 4:if(d=(0,l.deepClone)(d,!0),v==="style"&&this.style.colorProcessor(d),g=this[v],y=Object.keys(d),m={},y.forEach(function(I){return m[I]=g[I]}),w=this.animationFrame,B=this.animationCurve,C=this.animationDelay,b=(0,A.default)(B,m,d,w,!0),this.animationRoot.push(g),this.animationKeys.push(y),this.animationFrameState.push(b),!p){S.next=17;break}return S.abrupt("return");case 17:if(!(C>0)){S.next=20;break}return S.next=20,c(C);case 20:return _=this.render,S.abrupt("return",new Promise(function(){var I=(0,n.default)(t.default.mark(function L(T){return t.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,_.launchAnimation();case 2:T();case 3:case"end":return M.stop()}},L)}));return function(L){return I.apply(this,arguments)}}()));case 22:case"end":return S.stop()}},h,this)}));return function(h,v){return f.apply(this,arguments)}}(),u.prototype.turnNextAnimationFrame=function(f){var h=this.animationDelay,v=this.animationRoot,d=this.animationKeys,p=this.animationFrameState,g=this.animationPause;g||Date.now()-f<h||(v.forEach(function(y,m){d[m].forEach(function(w){y[w]=p[m][0][w]})}),p.forEach(function(y,m){y.shift();var w=y.length===0;w&&(v[m]=null),w&&(d[m]=null)}),this.animationFrameState=p.filter(function(y){return y.length}),this.animationRoot=v.filter(function(y){return y}),this.animationKeys=d.filter(function(y){return y}))},u.prototype.animationEnd=function(){var f=this.animationFrameState,h=this.animationKeys,v=this.animationRoot,d=this.render;return v.forEach(function(p,g){var y=h[g],m=f[g].pop();y.forEach(function(w){return p[w]=m[w]})}),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],d.drawAllGraph()},u.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},u.prototype.playAnimation=function(){var f=this.render;return this.attr("animationPause",!1),new Promise(function(){var h=(0,n.default)(t.default.mark(function v(d){return t.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,f.launchAnimation();case 2:d();case 3:case"end":return p.stop()}},v)}));return function(v){return h.apply(this,arguments)}}())},u.prototype.delProcessor=function(f){var h=this,v=f.graphs,d=v.findIndex(function(p){return p===h});d!==-1&&(typeof this.beforeDelete=="function"&&this.beforeDelete(this),v.splice(d,1,null),typeof this.deleted=="function"&&this.deleted(this))};function c(f){return new Promise(function(h){setTimeout(h,f)})}}(oQ)),oQ}var mQ;function F1e(){return mQ||(mQ=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(ba()),n=e(Sr()),a=e(Zf()),i=e(jf),o=e(qx()),s=Pr(),A=e(e_()),l=e(D1e());function u(y,m){var w=Object.keys(y);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(y);m&&(B=B.filter(function(C){return Object.getOwnPropertyDescriptor(y,C).enumerable})),w.push.apply(w,B)}return w}function c(y){for(var m=1;m<arguments.length;m++){var w=arguments[m]!=null?arguments[m]:{};m%2?u(w,!0).forEach(function(B){(0,t.default)(y,B,w[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(w)):u(w).forEach(function(B){Object.defineProperty(y,B,Object.getOwnPropertyDescriptor(w,B))})}return y}var f=function y(m){if((0,a.default)(this,y),!m){console.error("CRender Missing parameters!");return}var w=m.getContext("2d"),B=m.clientWidth,C=m.clientHeight,b=[B,C];m.setAttribute("width",B),m.setAttribute("height",C),this.ctx=w,this.area=b,this.animationStatus=!1,this.graphs=[],this.color=i.default,this.bezierCurve=o.default,m.addEventListener("mousedown",d.bind(this)),m.addEventListener("mousemove",p.bind(this)),m.addEventListener("mouseup",g.bind(this))};r.default=f,f.prototype.clearArea=function(){var y,m=this.area;(y=this.ctx).clearRect.apply(y,[0,0].concat((0,n.default)(m)))},f.prototype.add=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=y.name;if(!m){console.error("add Missing parameters!");return}var w=A.default.get(m);if(!w){console.warn("No corresponding graph configuration found!");return}var B=new l.default(w,y);if(B.validator(B))return B.render=this,this.graphs.push(B),this.sortGraphsByIndex(),this.drawAllGraph(),B},f.prototype.sortGraphsByIndex=function(){var y=this.graphs;y.sort(function(m,w){if(m.index>w.index)return 1;if(m.index===w.index)return 0;if(m.index<w.index)return-1})},f.prototype.delGraph=function(y){typeof y.delProcessor=="function"&&(y.delProcessor(this),this.graphs=this.graphs.filter(function(m){return m}),this.drawAllGraph())},f.prototype.delAllGraph=function(){var y=this;this.graphs.forEach(function(m){return m.delProcessor(y)}),this.graphs=this.graphs.filter(function(m){return m}),this.drawAllGraph()},f.prototype.drawAllGraph=function(){var y=this;this.clearArea(),this.graphs.filter(function(m){return m&&m.visible}).forEach(function(m){return m.drawProcessor(y,m)})},f.prototype.launchAnimation=function(){var y=this,m=this.animationStatus;if(!m)return this.animationStatus=!0,new Promise(function(w){h.call(y,function(){y.animationStatus=!1,w()},Date.now())})};function h(y,m){var w=this.graphs;if(!v(w)){y();return}w.forEach(function(B){return B.turnNextAnimationFrame(m)}),this.drawAllGraph(),requestAnimationFrame(h.bind(this,y,m))}function v(y){return y.find(function(m){return!m.animationPause&&m.animationFrameState.length})}function d(y){var m=this.graphs,w=m.find(function(B){return B.status==="hover"});w&&(w.status="active")}function p(y){var m=y.offsetX,w=y.offsetY,B=[m,w],C=this.graphs,b=C.find(function(T){return T.status==="active"||T.status==="drag"});if(b){if(!b.drag)return;if(typeof b.move!="function"){console.error("No move method is provided, cannot be dragged!");return}b.moveProcessor(y),b.status="drag";return}var _=C.find(function(T){return T.status==="hover"}),x=C.filter(function(T){return T.hover&&(typeof T.hoverCheck=="function"||T.hoverRect)}),S=x.find(function(T){return T.hoverCheckProcessor(B,T)});S?document.body.style.cursor=S.style.hoverCursor:document.body.style.cursor="default";var I=!1,L=!1;if(_&&(I=typeof _.mouseOuter=="function"),S&&(L=typeof S.mouseEnter=="function"),!(!S&&!_)){if(!S&&_){I&&_.mouseOuter(y,_),_.status="static";return}if(!(S&&S===_)){if(S&&!_){L&&S.mouseEnter(y,S),S.status="hover";return}S&&_&&S!==_&&(I&&_.mouseOuter(y,_),_.status="static",L&&S.mouseEnter(y,S),S.status="hover")}}}function g(y){var m=this.graphs,w=m.find(function(C){return C.status==="active"}),B=m.find(function(C){return C.status==="drag"});w&&typeof w.click=="function"&&w.click(y,w),m.forEach(function(C){return C&&(C.status="static")}),w&&(w.status="hover"),B&&(B.status="hover")}f.prototype.clone=function(y){var m=y.style.getStyle(),w=c({},y,{style:m});return delete w.render,w=(0,s.deepClone)(w,!0),this.add(w)}}(gF)),gF}(function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"CRender",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"extendNewGraph",{enumerable:!0,get:function(){return n.extendNewGraph}}),r.default=void 0;var t=e(F1e()),n=e_(),a=t.default;r.default=a})(ny);const cV=sV(ny),Q1e={class:"dv-water-pond-level"},U1e={key:0},P1e=["id"],k1e=["offset","stop-color"],R1e=["stroke","fill","x","y"],O1e=["cx","cy","rx","ry","stroke"],H1e=["rx","ry","width","height","stroke"],N1e={__name:"index",props:{config:Object,default:()=>({})},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({gradientId:`water-level-pond-${t}`,defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}),i=rt(()=>{const{shape:m}=a.mergedConfig;return m==="round"?"50%":m==="rect"?"0":m==="roundRect"?"10px":"0"}),o=rt(()=>{const{shape:m}=a.mergedConfig;return m||"rect"});Et(()=>e.config,()=>{a.renderer.delAllGraph(),a.waves=[],setTimeout(l,0)},{deep:!0}),St(()=>{s()}),BV(()=>{a.renderer.delAllGraph(),a.waves=[]});function s(){A(),e.config&&l()}function A(){a.renderer=new cV(n.value)}function l(){u(),c(),f(),h(),y()}function u(){a.mergedConfig=Bt(_t(a.defaultConfig),e.config)}function c(){const{colors:m}=a.mergedConfig,w=100/(m.length-1);a.svgBorderGradient=m.map((B,C)=>[w*C,B])}function f(){const{data:m,formatter:w}=a.mergedConfig;if(!m.length){a.details="";return}const B=Math.max(...m);a.details=w.replace("{value}",B)}function h(){const m=v(),w=p();a.waves=m.map(B=>a.renderer.add({name:"smoothline",animationFrame:300,shape:B,style:w,drawed:g}))}function v(){const{waveNum:m,waveHeight:w,data:B}=a.mergedConfig,[C,b]=a.renderer.area,_=m*4+4,x=C/m/2;return B.map(S=>{let I=Array.from({length:_}).fill(0).map((L,T)=>{const M=C-x*T,R=(1-S/100)*b,P=T%2===0?R:R-w;return[M,P]});return I=I.map(L=>d(L,[x*2,0])),{points:I}})}function d([m,w],[B,C]){return[m+B,w+C]}function p(){const m=a.renderer.area[1];return{gradientColor:a.mergedConfig.colors,gradientType:"linear",gradientParams:[0,0,0,m],gradientWith:"fill",opacity:a.mergedConfig.waveOpacity,translate:[0,0]}}function g({shape:{points:m}},{ctx:w,area:B}){const C=m[0],b=m.slice(-1)[0],_=B[1];w.lineTo(b[0],_),w.lineTo(C[0],_),w.closePath(),w.fill()}async function y(m=1){if(a.animation)return;a.animation=!0;const w=a.renderer.area[0];a.waves.forEach(B=>{B.attr("style",{translate:[0,0]}),B.animation("style",{translate:[w,0]},!0)}),await a.renderer.launchAnimation(),a.animation=!1,a.renderer.graphs.length&&y(m+1)}return(m,w)=>(he(),de("div",Q1e,[Q(a).renderer?(he(),de("svg",U1e,[ae("defs",null,[ae("linearGradient",{id:Q(a).gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[(he(!0),de(lt,null,dt(Q(a).svgBorderGradient,B=>(he(),de("stop",{key:B[0],offset:B[0],"stop-color":B[1]},null,8,k1e))),128))],8,P1e)]),Q(a).renderer?(he(),de("text",{key:0,stroke:`url(#${Q(a).gradientId})`,fill:`url(#${Q(a).gradientId})`,x:Q(a).renderer.area[0]/2+8,y:Q(a).renderer.area[1]/2+8},Dt(Q(a).details),9,R1e)):pt("",!0),!Q(o)||Q(o)==="round"?(he(),de("ellipse",{key:1,cx:Q(a).renderer.area[0]/2+8,cy:Q(a).renderer.area[1]/2+8,rx:Q(a).renderer.area[0]/2+5,ry:Q(a).renderer.area[1]/2+5,stroke:`url(#${Q(a).gradientId})`},null,8,O1e)):(he(),de("rect",{key:2,x:"2",y:"2",rx:Q(o)==="roundRect"?10:0,ry:Q(o)==="roundRect"?10:0,width:Q(a).renderer.area[0]+12,height:Q(a).renderer.area[1]+12,stroke:`url(#${Q(a).gradientId})`},null,8,H1e))])):pt("",!0),ae("canvas",{ref_key:"waterPondLevel",ref:n,style:qt(`border-radius: ${Q(i)};`)},null,4)]))}},wQ={install(r){r.component("DvWaterLevelPond",N1e)}},V1e={},G1e={class:"dv-loading"},z1e={class:"loading-tip"};function $1e(r,e){return he(),de("div",G1e,[e[0]||(e[0]=Zp('<svg width="50px" height="50px"><circle cx="25" cy="25" r="20" fill="transparent" stroke-width="3" stroke-dasharray="31.415, 31.415" stroke="#02bcfe" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="0, 25 25;360, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#02bcfe;#3be6cb;#02bcfe" dur="3s" repeatCount="indefinite"></animate></circle><circle cx="25" cy="25" r="10" fill="transparent" stroke-width="3" stroke-dasharray="15.7, 15.7" stroke="#3be6cb" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="360, 25 25;0, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#3be6cb;#02bcfe;#3be6cb" dur="3s" repeatCount="indefinite"></animate></circle></svg>',1)),ae("div",z1e,[Ft(r.$slots,"default")])])}const K1e=Oo(V1e,[["render",$1e]]),BQ={install(r){r.component("DvLoading",K1e)}},W1e=["width","height"],X1e=["id"],Y1e=["id"],Z1e=["id","cx","cy"],j1e=["values","dur"],J1e=["dur"],q1e=["id"],eBe=["xlink:href","fill"],tBe=["xlink:href","fill","mask"],rBe=["xlink:href","width","height","x","y"],nBe=["fill","x","y"],aBe=["id","d"],iBe=["xlink:href","stroke-width","stroke"],oBe=["id"],sBe=["r","fill"],ABe=["dur","path"],lBe=["xlink:href","stroke-width","stroke","mask"],uBe=["from","to","dur"],cBe={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(r){const e=r,t=Ca(),n=Ee(null),{width:a,height:i}=yt(n,l,A),o=It({unique:Math.random(),flylineGradientId:`flyline-gradient-id-${t}`,haloGradientId:`halo-gradient-id-${t}`,defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null});let s;St(()=>{s=PU()}),Et(()=>e.config,()=>{u()},{deep:!0});function A(){u()}function l(){u()}async function u(){c(),f(),h(),await g()}function c(){const m=Bt(_t(o.defaultConfig),e.config||{}),{points:w,lines:B,halo:C,text:b,icon:_,line:x}=m;m.points=w.map(S=>(S.halo=Bt(_t(C),S.halo||{}),S.text=Bt(_t(b),S.text||{}),S.icon=Bt(_t(_),S.icon||{}),S)),m.lines=B.map(S=>Bt(_t(x),S)),o.mergedConfig=m}function f(){const{relative:m,points:w}=o.mergedConfig;o.flylinePoints=w.map((B,C)=>{const{coordinate:[b,_],halo:x,icon:S,text:I}=B;m&&(B.coordinate=[b*a.value,_*i.value]),B.halo.time=_f(...x.duration)/10;const{width:L,height:T}=S;B.icon.x=B.coordinate[0]-L/2,B.icon.y=B.coordinate[1]-T/2;const[M,R]=I.offset;return B.text.x=B.coordinate[0]+M,B.text.y=B.coordinate[1]+R,B.key=`${B.coordinate.toString()}${C}`,B})}function h(){const{points:m,lines:w}=o.mergedConfig;o.flylines=w.map(B=>{const{source:C,target:b,duration:_}=B,x=m.find(({name:R})=>R===C).coordinate,S=m.find(({name:R})=>R===b).coordinate,I=v(x,S).map(R=>R.map(P=>Number.parseFloat(P.toFixed(10)))),L=`M${I[0].toString()} Q${I[1].toString()} ${I[2].toString()}`,T=`path${I.toString()}`,M=_f(..._)/10;return{...B,path:I,key:T,d:L,time:M}})}function v(m,w){const B=d(m,w);return[m,B,w]}function d([m,w],[B,C]){const{curvature:b,k:_}=o.mergedConfig,[x,S]=[(m+B)/2,(w+C)/2],I=Yp([m,w],[B,C])/b,L=I/2;let[T,M]=[x,S];do T+=L,M=p(_,[x,S],T)[1];while(Yp([x,S],[T,M])<I);return[T,M]}function p(m,[w,B],C){const b=B-m*w+m*C;return[C,b]}async function g(){await Je(),o.flylineLengths=o.flylines.map(({key:m})=>s.proxy.$refs[m][0].getTotalLength())}function y({offsetX:m,offsetY:w}){if(!e.dev)return;const B=(m/a.value).toFixed(2),C=(w/i.value).toFixed(2);console.warn(`dv-flyline-chart-enhanced DEV:
Click Position is [${m}, ${w}]
Relative Position is [${B}, ${C}]`)}return(m,w)=>(he(),de("div",{ref_key:"flylineChartEnhanced",ref:n,class:"dv-flyline-chart-enhanced",style:qt(`background-image: url(${Q(o).mergedConfig?Q(o).mergedConfig.bgImgSrc:""})`),onClick:y},[Q(o).flylines.length?(he(),de("svg",{key:0,width:Q(a),height:Q(i)},[ae("defs",null,[ae("radialGradient",{id:Q(o).flylineGradientId,cx:"50%",cy:"50%",r:"50%"},w[0]||(w[0]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)]),8,X1e),ae("radialGradient",{id:Q(o).haloGradientId,cx:"50%",cy:"50%",r:"50%"},w[1]||(w[1]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1)]),8,Y1e)]),(he(!0),de(lt,null,dt(Q(o).flylinePoints,B=>(he(),de("g",{key:B.key+Math.random()},[ae("defs",null,[B.halo.show?(he(),de("circle",{key:0,id:`halo${Q(o).unique}${B.key}`,cx:B.coordinate[0],cy:B.coordinate[1]},[ae("animate",{attributeName:"r",values:`1;${B.halo.radius}`,dur:`${B.halo.time}s`,repeatCount:"indefinite"},null,8,j1e),ae("animate",{attributeName:"opacity",values:"1;0",dur:`${B.halo.time}s`,repeatCount:"indefinite"},null,8,J1e)],8,Z1e)):pt("",!0)]),ae("mask",{id:`mask${Q(o).unique}${B.key}`},[B.halo.show?(he(),de("use",{key:0,"xlink:href":`#halo${Q(o).unique}${B.key}`,fill:`url(#${Q(o).haloGradientId})`},null,8,eBe)):pt("",!0)],8,q1e),B.halo.show?(he(),de("use",{key:0,"xlink:href":`#halo${Q(o).unique}${B.key}`,fill:B.halo.color,mask:`url(#mask${Q(o).unique}${B.key})`},null,8,tBe)):pt("",!0),B.icon.show?(he(),de("image",{key:1,"xlink:href":B.icon.src,width:B.icon.width,height:B.icon.height,x:B.icon.x,y:B.icon.y},null,8,rBe)):pt("",!0),B.text.show?(he(),de("text",{key:2,style:qt(`fontSize:${B.text.fontSize}px;color:${B.text.color}`),fill:B.text.color,x:B.text.x,y:B.text.y},Dt(B.name),13,nBe)):pt("",!0)]))),128)),(he(!0),de(lt,null,dt(Q(o).flylines,(B,C)=>(he(),de("g",{key:B.key+Math.random()},[ae("defs",null,[ae("path",{id:B.key,ref_for:!0,ref:B.key,d:B.d,fill:"transparent"},null,8,aBe)]),ae("use",{"xlink:href":`#${B.key}`,"stroke-width":B.width,stroke:B.orbitColor},null,8,iBe),ae("mask",{id:`mask${Q(o).unique}${B.key}`},[ae("circle",{cx:"0",cy:"0",r:B.radius,fill:`url(#${Q(o).flylineGradientId})`},[ae("animateMotion",{dur:B.time,path:B.d,rotate:"auto",repeatCount:"indefinite"},null,8,ABe)],8,sBe)],8,oBe),Q(o).flylineLengths[C]?(he(),de("use",{key:0,"xlink:href":`#${B.key}`,"stroke-width":B.width,stroke:B.color,mask:`url(#mask${Q(o).unique}${B.key})`},[ae("animate",{attributeName:"stroke-dasharray",from:`0, ${Q(o).flylineLengths[C]}`,to:`${Q(o).flylineLengths[C]}, 0`,dur:B.time,repeatCount:"indefinite"},null,8,uBe)],8,lBe)):pt("",!0)]))),128))],8,W1e)):pt("",!0)],4))}},CQ={install(r){r.component("DvFlylineChartEnhanced",cBe)}},fBe=["width","height"],hBe=["id"],vBe=["id"],dBe=["id","cx","cy"],pBe=["values","dur"],gBe=["dur"],yBe=["xlink:href","width","height","x","y"],mBe=["id"],wBe=["xlink:href","fill"],BBe=["xlink:href","fill","mask"],CBe=["id","d"],bBe=["xlink:href","stroke-width","stroke"],xBe=["xlink:href","stroke-width","stroke","mask"],_Be=["from","to","dur"],SBe=["id"],TBe=["r","fill"],IBe=["dur","path"],LBe=["xlink:href","width","height","x","y"],EBe=["fill","x","y"],MBe={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(r){const e=r,t=Ca(),n=Ee(null),{width:a,height:i}=yt(n,l,A),o=It({unique:Math.random(),maskId:`flyline-mask-id-${t}`,maskCircleId:`mask-circle-id-${t}`,gradientId:`gradient-id-${t}`,gradient2Id:`gradient2-id-${t}`,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]});let s;St(()=>{s=PU()}),Et(()=>e.config,()=>{u()},{deep:!0});function A(){u()}function l(){u()}async function u(){c(),f(),await p(),g(),y()}function c(){const w=Bt(_t(o.defaultConfig),e.config||{}),{points:B}=w;w.points=B.map(C=>Array.isArray(C)?{position:C,text:""}:C),o.mergedConfig=w}function f(){let{centerPoint:w,points:B}=o.mergedConfig;const{relative:C}=o.mergedConfig;B=B.map(({position:b})=>b),C&&(w=[a.value*w[0],i.value*w[1]],B=B.map(([b,_])=>[a.value*b,i.value*_])),o.paths=B.map(b=>h(w,b))}function h(w,B){const C=v(w,B);return[B,C,w]}function v([w,B],[C,b]){const{curvature:_,k:x}=o.mergedConfig,[S,I]=[(w+C)/2,(B+b)/2],L=Yp([w,B],[C,b])/_,T=L/2;let[M,R]=[S,I];do M+=T,R=d(x,[S,I],M)[1];while(Yp([S,I],[M,R])<L);return[M,R]}function d(w,[B,C],b){const _=C-w*B+w*b;return[b,_]}async function p(){await Je(),o.lengths=o.paths.map((w,B)=>s.proxy.$refs[`path${B}`][0].getTotalLength())}function g(){const{duration:w,points:B}=o.mergedConfig;o.times=B.map(()=>_f(...w)/10)}function y(){const{points:w}=o.mergedConfig;o.texts=w.map(({text:B})=>B)}function m({offsetX:w,offsetY:B}){if(!e.dev)return;const C=(w/a.value).toFixed(2),b=(B/i.value).toFixed(2);console.warn(`dv-flyline-chart DEV:
Click Position is [${w}, ${B}]
Relative Position is [${C}, ${b}]`)}return(w,B)=>(he(),de("div",{ref_key:"flylineChart",ref:n,class:"dv-flyline-chart",style:qt(`background-image: url(${Q(o).mergedConfig?Q(o).mergedConfig.bgImgUrl:""})`),onClick:m},[Q(o).mergedConfig?(he(),de("svg",{key:0,width:Q(a),height:Q(i)},[ae("defs",null,[ae("radialGradient",{id:Q(o).gradientId,cx:"50%",cy:"50%",r:"50%"},B[0]||(B[0]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)]),8,hBe),ae("radialGradient",{id:Q(o).gradient2Id,cx:"50%",cy:"50%",r:"50%"},B[1]||(B[1]=[ae("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),ae("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1)]),8,vBe),Q(o).paths[0]?(he(),de("circle",{key:0,id:`circle${Q(o).paths[0].toString()}`,cx:Q(o).paths[0][2][0],cy:Q(o).paths[0][2][1]},[ae("animate",{attributeName:"r",values:`1;${Q(o).mergedConfig.halo.radius}`,dur:`${Q(o).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,pBe),ae("animate",{attributeName:"opacity",values:"1;0",dur:`${Q(o).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,gBe)],8,dBe)):pt("",!0)]),Q(o).paths[0]?(he(),de("image",{key:0,"xlink:href":Q(o).mergedConfig.centerPointImg.url,width:Q(o).mergedConfig.centerPointImg.width,height:Q(o).mergedConfig.centerPointImg.height,x:Q(o).paths[0][2][0]-Q(o).mergedConfig.centerPointImg.width/2,y:Q(o).paths[0][2][1]-Q(o).mergedConfig.centerPointImg.height/2},null,8,yBe)):pt("",!0),ae("mask",{id:`maskhalo${Q(o).paths[0].toString()}`},[Q(o).paths[0]?(he(),de("use",{key:0,"xlink:href":`#circle${Q(o).paths[0].toString()}`,fill:`url(#${Q(o).gradient2Id})`},null,8,wBe)):pt("",!0)],8,mBe),Q(o).paths[0]&&Q(o).mergedConfig.halo.show?(he(),de("use",{key:1,"xlink:href":`#circle${Q(o).paths[0].toString()}`,fill:Q(o).mergedConfig.halo.color,mask:`url(#maskhalo${Q(o).paths[0].toString()})`},null,8,BBe)):pt("",!0),(he(!0),de(lt,null,dt(Q(o).paths,(C,b)=>(he(),de("g",{key:b},[ae("defs",null,[ae("path",{id:`path${C.toString()}`,ref_for:!0,ref:`path${b}`,d:`M${C[0].toString()} Q${C[1].toString()} ${C[2].toString()}`,fill:"transparent"},null,8,CBe)]),ae("use",{"xlink:href":`#path${C.toString()}`,"stroke-width":Q(o).mergedConfig.lineWidth,stroke:Q(o).mergedConfig.orbitColor},null,8,bBe),Q(o).lengths[b]?(he(),de("use",{key:0,"xlink:href":`#path${C.toString()}`,"stroke-width":Q(o).mergedConfig.lineWidth,stroke:Q(o).mergedConfig.flylineColor,mask:`url(#mask${Q(o).unique}${C.toString()})`},[ae("animate",{attributeName:"stroke-dasharray",from:`0, ${Q(o).lengths[b]}`,to:`${Q(o).lengths[b]}, 0`,dur:Q(o).times[b]||0,repeatCount:"indefinite"},null,8,_Be)],8,xBe)):pt("",!0),ae("mask",{id:`mask${Q(o).unique}${C.toString()}`},[ae("circle",{cx:"0",cy:"0",r:Q(o).mergedConfig.flylineRadius,fill:`url(#${Q(o).gradientId})`},[ae("animateMotion",{dur:Q(o).times[b]||0,path:`M${C[0].toString()} Q${C[1].toString()} ${C[2].toString()}`,rotate:"auto",repeatCount:"indefinite"},null,8,IBe)],8,TBe)],8,SBe),ae("image",{"xlink:href":Q(o).mergedConfig.pointsImg.url,width:Q(o).mergedConfig.pointsImg.width,height:Q(o).mergedConfig.pointsImg.height,x:C[0][0]-Q(o).mergedConfig.pointsImg.width/2,y:C[0][1]-Q(o).mergedConfig.pointsImg.height/2},null,8,LBe),ae("text",{style:qt(`fontSize:${Q(o).mergedConfig.text.fontSize}px;`),fill:Q(o).mergedConfig.text.color,x:C[0][0]+Q(o).mergedConfig.text.offset[0],y:C[0][1]+Q(o).mergedConfig.text.offset[1]},Dt(Q(o).texts[b]),13,EBe)]))),128))],8,fBe)):pt("",!0)],4))}},bQ={install(r){r.component("DvFlylineChart",MBe)}},DBe={class:"ranking-info"},FBe={class:"rank"},QBe=["innerHTML"],UBe={class:"ranking-value"},PBe={class:"ranking-column"},kBe={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){Tf(y=>({fdc8fe50:Q(o),"442085aa":Q(i),ca44414a:Q(A),"31d0b588":Q(s)}));const e=r,t=Ee(null),{height:n}=yt(t,u,l),a=It({defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null,textColor:"#fff",color:"#1370fb",fontSize:13},mergedConfig:null,rowsData:[],rows:[],heights:[],avgHeight:0,animationIndex:0,animationHandler:"",updater:0});Et(()=>e.config,()=>{g(),c()},{deep:!0});const i=rt(()=>e.config.textColor?e.config.textColor:a.defaultConfig.textColor),o=rt(()=>e.config.color?e.config.color:a.defaultConfig.color),s=rt(()=>br(o.value,50)),A=rt(()=>`${e.config.fontSize?e.config.fontSize:a.defaultConfig.fontSize}px`);Qo(()=>{g()});function l(){c()}function u(){a.mergedConfig&&v(!0)}function c(){f(),h(),v(),p(!0)}function f(){a.mergedConfig=Bt(_t(a.defaultConfig),e.config||{})}function h(){let{data:y}=a.mergedConfig;const{rowNum:m,sort:w}=a.mergedConfig;w&&y.sort(({value:S},{value:I})=>S>I?-1:S<I?1:0);const B=y.map(({value:S})=>S),C=Math.min(...B)||0,b=Math.abs(C),_=(Math.max(...B)||0)+b;y=y.map((S,I)=>({...S,ranking:I+1,percent:(S.value+b)/_*100}));const x=y.length;x>m&&x<2*m&&(y=[...y,...y]),y=y.map((S,I)=>({...S,scroll:I})),a.rowsData=y,a.rows=y}function v(y=!1){const{rowNum:m,data:w}=a.mergedConfig,B=n.value/m;a.avgHeight=B,y||(a.heights=Array.from({length:w.length}).fill(B))}const d=rt(()=>a.mergedConfig.carousel==="single");async function p(y=!1){const{waitTime:m,rowNum:w}=a.mergedConfig,B=a.rowsData.length;if(w>=B)return;const{updater:C}=a;if(y&&(await new Promise(S=>setTimeout(S,m)),C!==a.updater))return;const b=d.value?1:w,_=a.rowsData.slice(a.animationIndex);if(_.push(...a.rowsData.slice(0,a.animationIndex)),a.rows=_.slice(0,d.value?w+1:w*2),a.heights=Array.from({length:B}).fill(a.avgHeight),await new Promise(S=>setTimeout(S,300)),C!==a.updater)return;a.heights.fill(0,0,b),a.animationIndex+=b;const x=a.animationIndex-B;x>=0&&(a.animationIndex=x),a.animationHandler=setTimeout(p,m-300)}function g(){a.updater=(a.updater+1)%999999,a.animationHandler&&clearTimeout(a.animationHandler)}return(y,m)=>(he(),de("div",{ref_key:"scrollRankingBoard",ref:t,class:"dv-scroll-ranking-board"},[(he(!0),de(lt,null,dt(Q(a).rows,(w,B)=>(he(),de("div",{key:w.toString()+w.scroll,class:"row-item",style:qt(`height: ${Q(a).heights[B]}px;`)},[ae("div",DBe,[ae("div",FBe," No."+Dt(w.ranking),1),ae("div",{class:"info-name",innerHTML:w.name},null,8,QBe),ae("div",UBe,Dt(Q(a).mergedConfig.valueFormatter?Q(a).mergedConfig.valueFormatter(w):w.value+Q(a).mergedConfig.unit),1)]),ae("div",PBe,[ae("div",{class:"inside-column",style:qt(`width: ${w.percent}%;`)},m[0]||(m[0]=[ae("div",{class:"shine"},null,-1)]),4)])],4))),128))],512))}},RBe=Oo(kBe,[["__scopeId","data-v-26f5f75f"]]),xQ={install(r){r.component("DvScrollRankingBoard",RBe)}},OBe=["align","innerHTML"],HBe=["align","onClick","onMouseenter","innerHTML"],NBe={__name:"index",props:{config:{type:Object,default:()=>({})}},emits:["mouseover","click","getFirstRow"],setup(r,{expose:e,emit:t}){const n=r,a=t,i=Ee(null),{width:o,height:s}=yt(i,f,c),A=It({defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1});Et(()=>n.config,()=>{B(),h()},{deep:!0}),Qo(()=>{B()}),e({updateRows:C});function l(b,_,x,S){const{ceils:I,rowIndex:L}=x;a("click",{row:I,ceil:S,rowIndex:L,columnIndex:_})}function u(b,_,x,S,I){if(b){const{ceils:L,rowIndex:T}=S;a("mouseover",{row:L,ceil:I,rowIndex:T,columnIndex:x})}A.mergedConfig.hoverPause&&(b?B():w(!0))}function c(){h()}function f(){A.mergedConfig&&(g(),y())}function h(){v(),d(),p(),g(),y(),m(),w(!0)}function v(){A.mergedConfig=Bt(_t(A.defaultConfig),n.config||{})}function d(){let{header:b}=A.mergedConfig;const{index:_,indexHeader:x}=A.mergedConfig;if(!b.length){b=[];return}b=[...b],_&&b.unshift(x),A.header=b}function p(){let{data:b}=A.mergedConfig;const{index:_,headerBGC:x,rowNum:S}=A.mergedConfig;_&&(b=b.map((L,T)=>{L=[...L];const M=`<span class="index" style="background-color: ${x};">${T+1}</span>`;return L.unshift(M),L})),b=b.map((L,T)=>({ceils:L,rowIndex:T}));const I=b.length;I>S&&I<2*S&&(b=[...b,...b]),b=b.map((L,T)=>({...L,scroll:T})),A.rowsData=b,A.rows=b}function g(){const{columnWidth:b,header:_}=A.mergedConfig,x=b.reduce((T,M)=>T+M,0);let S=0;A.rowsData[0]?S=A.rowsData[0].ceils.length:_.length&&(S=_.length);const I=(o.value-x)/(S-b.length),L=Array.from({length:S}).fill(I);A.widths=Bt(L,b)}function y(b=!1){const{headerHeight:_,rowNum:x,data:S}=A.mergedConfig;let I=s.value;A.header.length&&(I-=_);const L=I/x;A.avgHeight=L,b||(A.heights=Array.from({length:S.length}).fill(L))}function m(){const b=A.header.length,_=Array.from({length:b}).fill("left"),{align:x}=A.mergedConfig;A.aligns=Bt(_,x)}async function w(b=!1){A.needCalc&&(p(),y(),A.needCalc=!1);const{waitTime:_,carousel:x,rowNum:S}=A.mergedConfig,{updater:I}=A,L=A.rowsData.length;if(S>=L||(b&&await new Promise(P=>setTimeout(P,_)),I!==A.updater))return;const T=x==="single"?1:S,M=A.rowsData.slice(A.animationIndex);if(M.push(...A.rowsData.slice(0,A.animationIndex)),A.rows=M.slice(0,x==="page"?S*2:S+1),A.heights=Array.from({length:L}).fill(A.avgHeight),await new Promise(P=>setTimeout(P,300)),I!==A.updater)return;A.heights.splice(0,T,...Array.from({length:T}).fill(0)),A.animationIndex+=T;const R=A.animationIndex-L;R>=0&&(A.animationIndex=R),A.animationHandler=setTimeout(w,_-300),a("getFirstRow",M[1])}function B(){A.updater=(A.updater+1)%999999,A.animationHandler&&clearTimeout(A.animationHandler)}function C(b,_){A.mergedConfig={...A.mergedConfig,data:[...b]},A.needCalc=!0,typeof _=="number"&&(A.animationIndex=_),A.animationHandler||w(!0)}return(b,_)=>(he(),de("div",{ref_key:"scrollBoard",ref:i,class:"dv-scroll-board"},[Q(A).header.length&&Q(A).mergedConfig?(he(),de("div",{key:0,class:"header",style:qt(`background-color: ${Q(A).mergedConfig.headerBGC};`)},[(he(!0),de(lt,null,dt(Q(A).header,(x,S)=>(he(),de("div",{key:`${x}${S}`,class:"header-item",style:qt(`
height: ${Q(A).mergedConfig.headerHeight}px;
line-height: ${Q(A).mergedConfig.headerHeight}px;
width: ${Q(A).widths[S]}px;
`),align:Q(A).aligns[S],innerHTML:x},null,12,OBe))),128))],4)):pt("",!0),Q(A).mergedConfig?(he(),de("div",{key:1,class:"rows",style:qt(`height: ${Q(s)-(Q(A).header.length?Q(A).mergedConfig.headerHeight:0)}px;`)},[(he(!0),de(lt,null,dt(Q(A).rows,(x,S)=>(he(),de("div",{key:`${x.toString()}${x.scroll}`,class:"row-item",style:qt(`
height: ${Q(A).heights[S]}px;
line-height: ${Q(A).heights[S]}px;
background-color: ${Q(A).mergedConfig[x.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]};
`)},[(he(!0),de(lt,null,dt(x.ceils,(I,L)=>(he(),de("div",{key:`${I}${S}${L}`,class:"ceil",style:qt(`width: ${Q(A).widths[L]}px;`),align:Q(A).aligns[L],onClick:T=>l(S,L,x,I),onMouseenter:T=>u(!0,S,L,x,I),onMouseleave:_[0]||(_[0]=T=>u(!1)),innerHTML:I},null,44,HBe))),128))],4))),128))],4)):pt("",!0)],512))}},_Q={install(r){r.component("DvScrollBoard",NBe)}};var fV={},SQ={},pn={},TQ;function In(){if(TQ)return pn;TQ=1;var r=Vt;Object.defineProperty(pn,"__esModule",{value:!0}),pn.filterNonNumber=a,pn.deepMerge=i,pn.mulAdd=o,pn.mergeSameStackData=s,pn.getTwoPointDistance=A,pn.getLinearGradientColor=l,pn.getPolylineLength=u,pn.getPointToLineDistance=c,pn.initNeedSeries=f,pn.radianToAngle=h;var e=r(Sr()),t=r(Xr()),n=Pr();function a(v){return v.filter(function(d){return typeof d=="number"})}function i(v,d){for(var p in d){if(v[p]&&(0,t.default)(v[p])==="object"){i(v[p],d[p]);continue}if((0,t.default)(d[p])==="object"){v[p]=(0,n.deepClone)(d[p],!0);continue}v[p]=d[p]}return v}function o(v){return v=a(v),v.reduce(function(d,p){return d+p},0)}function s(v,d){var p=v.stack;if(!p)return(0,e.default)(v.data);var g=d.filter(function(B){var C=B.stack;return C===p}),y=g.findIndex(function(B){var C=B.data;return C===v.data}),m=g.splice(0,y+1).map(function(B){var C=B.data;return C}),w=m[0].length;return new Array(w).fill(0).map(function(B,C){return o(m.map(function(b){return b[C]}))})}function A(v,d){var p=Math.abs(v[0]-d[0]),g=Math.abs(v[1]-d[1]);return Math.sqrt(p*p+g*g)}function l(v,d,p,g){if(!(!v||!d||!p||!g.length)){var y=g;typeof y=="string"&&(y=[g,g]);var m=v.createLinearGradient.apply(v,(0,e.default)(d).concat((0,e.default)(p))),w=1/(y.length-1);return y.forEach(function(B,C){return m.addColorStop(w*C,B)}),m}}function u(v){var d=new Array(v.length-1).fill(0).map(function(g,y){return[v[y],v[y+1]]}),p=d.map(function(g){return A.apply(void 0,(0,e.default)(g))});return o(p)}function c(v,d,p){var g=A(v,d),y=A(v,p),m=A(d,p);return .5*Math.sqrt((g+y+m)*(g+y-m)*(g+m-y)*(y+m-g))/m}function f(v,d,p){return v=v.filter(function(g){var y=g.type;return y===p}),v=v.map(function(g){return i((0,n.deepClone)(d,!0),g)}),v.filter(function(g){var y=g.show;return y})}function h(v){return v/Math.PI*180}return pn}var hV=Vt,VBe=hV(ba()),IQ=hV(Sr()),ay=ny,GBe=e_(),Sf=Pr(),zBe=jf,$Be=In();function LQ(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function EQ(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?LQ(Object(t),!0).forEach(function(n){(0,VBe.default)(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):LQ(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var KBe={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(r){var e=r.shape,t=["rx","ry","ir","or","startAngle","endAngle"];return t.find(function(n){return typeof e[n]!="number"})?(console.error("Pie shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape;t.beginPath();var a=n.rx,i=n.ry,o=n.ir,s=n.or,A=n.startAngle,l=n.endAngle,u=n.clockWise;a=parseInt(a)+.5,i=parseInt(i)+.5,t.arc(a,i,o>0?o:0,A,l,!u);var c=(0,Sf.getCircleRadianPoint)(a,i,s,l).map(function(h){return parseInt(h)+.5}),f=(0,Sf.getCircleRadianPoint)(a,i,o,A).map(function(h){return parseInt(h)+.5});t.lineTo.apply(t,(0,IQ.default)(c)),t.arc(a,i,s>0?s:0,l,A,u),t.lineTo.apply(t,(0,IQ.default)(f)),t.closePath(),t.stroke(),t.fill()}},WBe={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(r){var e=r.shape,t=["rx","ry","r","startAngle","endAngle"];return t.find(function(n){return typeof e[n]!="number"})?(console.error("AgArc shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape,a=e.style,i=a.gradient;i=i.map(function(C){return(0,zBe.getColorFromRgbValue)(C)}),i.length===1&&(i=[i[0],i[0]]);var o=i.length-1,s=n.gradientStartAngle,A=n.gradientEndAngle,l=n.startAngle,u=n.endAngle,c=n.r,f=n.rx,h=n.ry;s===null&&(s=l),A===null&&(A=u);var v=(A-s)/o;v===Math.PI*2&&(v=Math.PI*2-.001);for(var d=0;d<o;d++){t.beginPath();var p=(0,Sf.getCircleRadianPoint)(f,h,c,l+v*d),g=(0,Sf.getCircleRadianPoint)(f,h,c,l+v*(d+1)),y=(0,$Be.getLinearGradientColor)(t,p,g,[i[d],i[d+1]]),m=l+v*d,w=l+v*(d+1),B=!1;if(w>u&&(w=u,B=!0),t.arc(f,h,c,m,w),t.strokeStyle=y,t.stroke(),B)break}}},XBe={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(r){var e=r.shape,t=e.number,n=e.content,a=e.position;return!(t instanceof Array)||typeof n!="string"||!(a instanceof Array)?(console.error("NumberText shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape,a=n.number,i=n.content,o=n.toFixed,s=n.rowGap,A=n.formatter,l=i.split("{nt}"),u="";l.forEach(function(c,f){var h=a[f];typeof h!="number"&&(h=""),typeof h=="number"&&(h=h.toFixed(o),typeof A=="function"&&(h=A(h))),u+=c+(h||"")}),GBe.text.draw({ctx:t},{shape:EQ(EQ({},n),{},{content:u,rowGap:s})})}},YBe={shape:{x:0,y:0,w:0,h:0},validator:function(r){var e=r.shape,t=e.x,n=e.y,a=e.w,i=e.h;return typeof t!="number"||typeof n!="number"||typeof a!="number"||typeof i!="number"?(console.error("lineIcon shape configuration is abnormal!"),!1):!0},draw:function(r,e){var t=r.ctx,n=e.shape;t.beginPath();var a=n.x,i=n.y,o=n.w,s=n.h,A=s/2;t.strokeStyle=t.fillStyle,t.moveTo(a,i+A),t.lineTo(a+o,i+A),t.lineWidth=1,t.stroke(),t.beginPath();var l=A-5*2;l<=0&&(l=3),t.arc(a+o/2,i+A,l,0,Math.PI*2),t.lineWidth=5,t.stroke(),t.fillStyle="#fff",t.fill()},hoverCheck:function(r,e){var t=e.shape,n=t.x,a=t.y,i=t.w,o=t.h;return(0,Sf.checkPointIsInRect)(r,n,a,i,o)},setGraphCenter:function(r,e){var t=e.shape,n=e.style,a=t.x,i=t.y,o=t.w,s=t.h;n.graphCenter=[a+o/2,i+s/2]}};(0,ay.extendNewGraph)("pie",KBe);(0,ay.extendNewGraph)("agArc",WBe);(0,ay.extendNewGraph)("numberText",XBe);(0,ay.extendNewGraph)("lineIcon",YBe);var MQ={},kv={},DQ={},Wu={},FQ;function ZBe(){if(FQ)return Wu;FQ=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.colorConfig=void 0;var r=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];return Wu.colorConfig=r,Wu}var Xu={},QQ;function jBe(){if(QQ)return Xu;QQ=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.gridConfig=void 0;var r={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};return Xu.gridConfig=r,Xu}var vs={},UQ;function JBe(){if(UQ)return vs;UQ=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.yAxisConfig=vs.xAxisConfig=void 0;var r={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};vs.xAxisConfig=r;var e={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};return vs.yAxisConfig=e,vs}var Yu={},PQ;function qBe(){if(PQ)return Yu;PQ=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.titleConfig=void 0;var r={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return Yu.titleConfig=r,Yu}var Zu={},kQ;function eCe(){if(kQ)return Zu;kQ=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.lineConfig=void 0;var r={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return Zu.lineConfig=r,Zu}var ju={},RQ;function tCe(){if(RQ)return ju;RQ=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.barConfig=void 0;var r={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};return ju.barConfig=r,ju}var Ju={},OQ;function vV(){if(OQ)return Ju;OQ=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.pieConfig=void 0;var r={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};return Ju.pieConfig=r,Ju}var qu={},HQ;function rCe(){if(HQ)return qu;HQ=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.radarAxisConfig=void 0;var r={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};return qu.radarAxisConfig=r,qu}var ec={},NQ;function nCe(){if(NQ)return ec;NQ=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.radarConfig=void 0;var r={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};return ec.radarConfig=r,ec}var tc={},VQ;function dV(){if(VQ)return tc;VQ=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.gaugeConfig=void 0;var r={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-(Math.PI/4)*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return tc.gaugeConfig=r,tc}var rc={},GQ;function aCe(){if(GQ)return rc;GQ=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.legendConfig=void 0;var r={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return rc.legendConfig=r,rc}var zQ;function ii(){return zQ||(zQ=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.changeDefaultConfig=v,Object.defineProperty(r,"colorConfig",{enumerable:!0,get:function(){return e.colorConfig}}),Object.defineProperty(r,"gridConfig",{enumerable:!0,get:function(){return t.gridConfig}}),Object.defineProperty(r,"xAxisConfig",{enumerable:!0,get:function(){return n.xAxisConfig}}),Object.defineProperty(r,"yAxisConfig",{enumerable:!0,get:function(){return n.yAxisConfig}}),Object.defineProperty(r,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(r,"lineConfig",{enumerable:!0,get:function(){return i.lineConfig}}),Object.defineProperty(r,"barConfig",{enumerable:!0,get:function(){return o.barConfig}}),Object.defineProperty(r,"pieConfig",{enumerable:!0,get:function(){return s.pieConfig}}),Object.defineProperty(r,"radarAxisConfig",{enumerable:!0,get:function(){return A.radarAxisConfig}}),Object.defineProperty(r,"radarConfig",{enumerable:!0,get:function(){return l.radarConfig}}),Object.defineProperty(r,"gaugeConfig",{enumerable:!0,get:function(){return u.gaugeConfig}}),Object.defineProperty(r,"legendConfig",{enumerable:!0,get:function(){return c.legendConfig}}),r.keys=void 0;var e=ZBe(),t=jBe(),n=JBe(),a=qBe(),i=eCe(),o=tCe(),s=vV(),A=rCe(),l=nCe(),u=dV(),c=aCe(),f=In(),h={colorConfig:e.colorConfig,gridConfig:t.gridConfig,xAxisConfig:n.xAxisConfig,yAxisConfig:n.yAxisConfig,titleConfig:a.titleConfig,lineConfig:i.lineConfig,barConfig:o.barConfig,pieConfig:s.pieConfig,radarAxisConfig:A.radarAxisConfig,radarConfig:l.radarConfig,gaugeConfig:u.gaugeConfig,legendConfig:c.legendConfig};function v(p,g){if(!h["".concat(p,"Config")]){console.warn("Change default config Error - Invalid key!");return}(0,f.deepMerge)(h["".concat(p,"Config")],g)}var d=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];r.keys=d}(DQ)),DQ}var $Q;function iCe(){if($Q)return kv;$Q=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.mergeColor=n;var r=ii(),e=Pr(),t=In();function n(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(0,e.deepClone)(r.colorConfig,!0),s=i.color,A=i.series;if(A||(A=[]),s||(s=[]),i.color=s=(0,t.deepMerge)(o,s),!!A.length){var l=s.length;A.forEach(function(h,v){h.color||(h.color=s[v%l])});var u=A.filter(function(h){var v=h.type;return v==="pie"});u.forEach(function(h){return h.data.forEach(function(v,d){return v.color=s[d%l]})});var c=A.filter(function(h){var v=h.type;return v==="gauge"});c.forEach(function(h){return h.data.forEach(function(v,d){return v.color=s[d%l]})});var f=A.filter(function(h){var v=h.type,d=h.independentColor;return v==="bar"&&d});f.forEach(function(h){h.independentColors||(h.independentColors=s)})}}return kv}var Rv={},rl={},KQ;function oi(){if(KQ)return rl;KQ=1;var r=Vt;Object.defineProperty(rl,"__esModule",{value:!0}),rl.doUpdate=u,rl.Updater=void 0;var e=r(Sr()),t=r(Xr()),n=r(Zf()),a=function c(f,h){(0,n.default)(this,c);var v=f.chart,d=f.key,p=f.getGraphConfig;if(typeof p!="function"){console.warn("Updater need function getGraphConfig!");return}v[d]||(this.graphs=v[d]=[]),Object.assign(this,f),this.update(h)};rl.Updater=a,a.prototype.update=function(c){var f=this,h=this.graphs,v=this.beforeUpdate;if(i(this,c),!!c.length){var d=(0,t.default)(v);c.forEach(function(p,g){d==="function"&&v(h,p,g,f);var y=h[g];y?o(y,p,g,f):A(h,p,g,f)})}};function i(c,f){var h=c.graphs,v=c.chart.render,d=h.length,p=f.length;if(d>p){var g=h.splice(p);g.forEach(function(y){return y.forEach(function(m){return v.delGraph(m)})})}}function o(c,f,h,v){var d=v.getGraphConfig,p=v.chart.render,g=v.beforeChange,y=d(f,v);s(c,y,p),c.forEach(function(m,w){var B=y[w];typeof g=="function"&&g(m,B),l(m,B)})}function s(c,f,h){var v=c.length,d=f.length;if(d>v){var p=c.slice(-1)[0],g=d-v,y=new Array(g).fill(0).map(function(w){return h.clone(p)});c.push.apply(c,(0,e.default)(y))}else if(d<v){var m=c.splice(d);m.forEach(function(w){return h.delGraph(w)})}}function A(c,f,h,v){var d=v.getGraphConfig,p=v.getStartGraphConfig,g=v.chart,y=g.render,m=null;typeof p=="function"&&(m=p(f,v));var w=d(f,v);if(w.length){m?(c[h]=m.map(function(C){return y.add(C)}),c[h].forEach(function(C,b){var _=w[b];l(C,_)})):c[h]=w.map(function(C){return y.add(C)});var B=v.afterAddGraph;typeof B=="function"&&B(c[h])}}function l(c,f){var h=Object.keys(f);h.forEach(function(v){v==="shape"||v==="style"?c.animation(v,f[v],!0):c[v]=f[v]})}function u(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=c.chart,h=c.series,v=c.key,d=c.getGraphConfig,p=c.getStartGraphConfig,g=c.beforeChange,y=c.beforeUpdate,m=c.afterAddGraph;f[v]?f[v].update(h):f[v]=new a({chart:f,key:v,getGraphConfig:d,getStartGraphConfig:p,beforeChange:g,beforeUpdate:y,afterAddGraph:m},h)}return rl}var WQ;function oCe(){if(WQ)return Rv;WQ=1;var r=Vt;Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.title=o;var e=r(on()),t=oi(),n=Pr(),a=ii(),i=In();function o(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[];c.title&&(f[0]=(0,i.deepMerge)((0,n.deepClone)(a.titleConfig,!0),c.title)),(0,t.doUpdate)({chart:u,series:f,key:"title",getGraphConfig:s})}function s(u,c){var f=a.titleConfig.animationCurve,h=a.titleConfig.animationFrame,v=a.titleConfig.rLevel,d=A(u,c),p=l(u);return[{name:"text",index:v,visible:u.show,animationCurve:f,animationFrame:h,shape:d,style:p}]}function A(u,c){var f=u.offset,h=u.text,v=c.chart.gridArea,d=v.x,p=v.y,g=v.w,y=(0,e.default)(f,2),m=y[0],w=y[1];return{content:h,position:[d+g/2+m,p+w]}}function l(u){var c=u.style;return c}return Rv}var Ov={},XQ;function sCe(){if(XQ)return Ov;XQ=1;var r=Vt;Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.grid=l;var e=r(on()),t=r(ba()),n=oi(),a=Pr(),i=ii(),o=In();function s(v,d){var p=Object.keys(v);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(v);d&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(v,y).enumerable})),p.push.apply(p,g)}return p}function A(v){for(var d=1;d<arguments.length;d++){var p=arguments[d]!=null?arguments[d]:{};d%2?s(Object(p),!0).forEach(function(g){(0,t.default)(v,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach(function(g){Object.defineProperty(v,g,Object.getOwnPropertyDescriptor(p,g))})}return v}function l(v){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=d.grid;p=(0,o.deepMerge)((0,a.deepClone)(i.gridConfig,!0),p||{}),(0,n.doUpdate)({chart:v,series:[p],key:"grid",getGraphConfig:u})}function u(v,d){var p=v.animationCurve,g=v.animationFrame,y=v.rLevel,m=c(v,d),w=h(v);return d.chart.gridArea=A({},m),[{name:"rect",index:y,animationCurve:p,animationFrame:g,shape:m,style:w}]}function c(v,d){var p=(0,e.default)(d.chart.render.area,2),g=p[0],y=p[1],m=f(v.left,g),w=f(v.right,g),B=f(v.top,y),C=f(v.bottom,y),b=g-m-w,_=y-B-C;return{x:m,y:B,w:b,h:_}}function f(v,d){return typeof v=="number"?v:typeof v!="string"?0:d*parseInt(v)/100}function h(v){var d=v.style;return d}return Ov}var Hv={},YQ;function ACe(){if(YQ)return Hv;YQ=1;var r=Vt;Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.axis=v;var e=r(Xr()),t=r(on()),n=r(ba()),a=r(Sr()),i=oi(),o=ii(),s=In(),A=Pr();function l(V,Y){var Z=Object.keys(V);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(V);Y&&(J=J.filter(function(ue){return Object.getOwnPropertyDescriptor(V,ue).enumerable})),Z.push.apply(Z,J)}return Z}function u(V){for(var Y=1;Y<arguments.length;Y++){var Z=arguments[Y]!=null?arguments[Y]:{};Y%2?l(Object(Z),!0).forEach(function(J){(0,n.default)(V,J,Z[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(Z)):l(Object(Z)).forEach(function(J){Object.defineProperty(V,J,Object.getOwnPropertyDescriptor(Z,J))})}return V}var c={xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig},f=Math.abs,h=Math.pow;function v(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=Y.xAxis,J=Y.yAxis,ue=Y.series,fe=[];Z&&J&&ue&&(fe=d(Z,J),fe=p(fe),fe=fe.filter(function(we){var xe=we.show;return xe}),fe=g(fe),fe=y(fe,ue),fe=R(fe),fe=P(fe,V),fe=E(fe),fe=D(fe),fe=U(fe,V)),(0,i.doUpdate)({chart:V,series:fe,key:"axisLine",getGraphConfig:O}),(0,i.doUpdate)({chart:V,series:fe,key:"axisTick",getGraphConfig:te}),(0,i.doUpdate)({chart:V,series:fe,key:"axisLabel",getGraphConfig:re}),(0,i.doUpdate)({chart:V,series:fe,key:"axisName",getGraphConfig:N}),(0,i.doUpdate)({chart:V,series:fe,key:"splitLine",getGraphConfig:ie}),V.axisData=fe}function d(V,Y){var Z=[],J=[];if(V instanceof Array){var ue;(ue=Z).push.apply(ue,(0,a.default)(V))}else Z.push(V);if(Y instanceof Array){var fe;(fe=J).push.apply(fe,(0,a.default)(Y))}else J.push(Y);return Z.splice(2),J.splice(2),Z=Z.map(function(we,xe){return u(u({},we),{},{index:xe,axis:"x"})}),J=J.map(function(we,xe){return u(u({},we),{},{index:xe,axis:"y"})}),[].concat((0,a.default)(Z),(0,a.default)(J))}function p(V){var Y=V.filter(function(J){var ue=J.axis;return ue==="x"}),Z=V.filter(function(J){var ue=J.axis;return ue==="y"});return Y=Y.map(function(J){return(0,s.deepMerge)((0,A.deepClone)(o.xAxisConfig),J)}),Z=Z.map(function(J){return(0,s.deepMerge)((0,A.deepClone)(o.yAxisConfig),J)}),[].concat((0,a.default)(Y),(0,a.default)(Z))}function g(V){var Y=V.filter(function(J){var ue=J.data;return ue==="value"}),Z=V.filter(function(J){var ue=J.data;return ue!=="value"});return Y.forEach(function(J){typeof J.boundaryGap!="boolean"&&(J.boundaryGap=!1)}),Z.forEach(function(J){typeof J.boundaryGap!="boolean"&&(J.boundaryGap=!0)}),[].concat((0,a.default)(Y),(0,a.default)(Z))}function y(V,Y){var Z=V.filter(function(ue){var fe=ue.data;return fe==="value"}),J=V.filter(function(ue){var fe=ue.data;return fe instanceof Array});return Z=m(Z,Y),J=T(J),[].concat((0,a.default)(Z),(0,a.default)(J))}function m(V,Y){return V.map(function(Z){var J=w(Z,Y),ue=b(Z,J),fe=(0,t.default)(ue,2),we=fe[0],xe=fe[1],_e=M(we,xe,Z),Qe=Z.axisLabel.formatter,Ae=[];return we<0&&xe>0?Ae=S(we,xe,_e):Ae=I(we,xe,_e),Ae=Ae.map(function(Te){return parseFloat(Te.toFixed(2))}),u(u({},Z),{},{maxValue:Ae.slice(-1)[0],minValue:Ae[0],label:L(Ae,Qe)})})}function w(V,Y){if(Y=Y.filter(function(we){var xe=we.show,_e=we.type;return!(xe===!1||_e==="pie")}),Y.length===0)return[0,0];var Z=V.index,J=V.axis;Y=C(Y);var ue=J+"Axis",fe=Y.filter(function(we){return we[ue]===Z});return fe.length||(fe=Y),B(fe)}function B(V){if(V){var Y=Math.min.apply(Math,(0,a.default)(V.map(function(J){var ue=J.data;return Math.min.apply(Math,(0,a.default)((0,s.filterNonNumber)(ue)))}))),Z=Math.max.apply(Math,(0,a.default)(V.map(function(J){var ue=J.data;return Math.max.apply(Math,(0,a.default)((0,s.filterNonNumber)(ue)))})));return[Y,Z]}}function C(V){var Y=(0,A.deepClone)(V,!0);return V.forEach(function(Z,J){var ue=(0,s.mergeSameStackData)(Z,V);Y[J].data=ue}),Y}function b(V,Y){var Z=V.min,J=V.max,ue=V.axis,fe=(0,t.default)(Y,2),we=fe[0],xe=fe[1],_e=(0,e.default)(Z),Qe=(0,e.default)(J);if(x(Z)||(Z=c[ue+"AxisConfig"].min,_e="string"),x(J)||(J=c[ue+"AxisConfig"].max,Qe="string"),_e==="string"){Z=parseInt(we-f(we*parseFloat(Z)/100));var Ae=_(Z);Z=parseFloat((Z/Ae-.1).toFixed(1))*Ae}if(Qe==="string"){J=parseInt(xe+f(xe*parseFloat(J)/100));var Te=_(J);J=parseFloat((J/Te+.1).toFixed(1))*Te}return[Z,J]}function _(V){var Y=f(V).toString(),Z=Y.length,J=Y.replace(/0*$/g,"").indexOf("0"),ue=Z-1;return J!==-1&&(ue-=J),h(10,ue)}function x(V){var Y=(0,e.default)(V),Z=Y==="string"&&/^\d+%$/.test(V),J=Y==="number";return Z||J}function S(V,Y,Z){var J=[],ue=[],fe=0,we=0;do J.push(fe-=Z);while(fe>V);do ue.push(we+=Z);while(we<Y);return[].concat((0,a.default)(J.reverse()),[0],(0,a.default)(ue))}function I(V,Y,Z){var J=[V],ue=V;do J.push(ue+=Z);while(ue<Y);return J}function L(V,Y){return Y&&(typeof Y=="string"&&(V=V.map(function(Z){return Y.replace("{value}",Z)})),typeof Y=="function"&&(V=V.map(function(Z,J){return Y({value:Z,index:J})}))),V}function T(V){return V.map(function(Y){var Z=Y.data,J=Y.axisLabel.formatter;return u(u({},Y),{},{label:L(Z,J)})})}function M(V,Y,Z){var J=Z.interval,ue=Z.minInterval,fe=Z.maxInterval,we=Z.splitNumber,xe=Z.axis,_e=c[xe+"AxisConfig"];if(typeof J!="number"&&(J=_e.interval),typeof ue!="number"&&(ue=_e.minInterval),typeof fe!="number"&&(fe=_e.maxInterval),typeof we!="number"&&(we=_e.splitNumber),typeof J=="number")return J;var Qe=parseInt((Y-V)/(we-1));return Qe.toString().length>1&&(Qe=parseInt(Qe.toString().replace(/\d$/,"0"))),Qe===0&&(Qe=1),typeof ue=="number"&&Qe<ue?ue:typeof fe=="number"&&Qe>fe?fe:Qe}function R(V){var Y=V.filter(function(J){var ue=J.axis;return ue==="x"}),Z=V.filter(function(J){var ue=J.axis;return ue==="y"});return Y[0]&&!Y[0].position&&(Y[0].position=o.xAxisConfig.position),Y[1]&&!Y[1].position&&(Y[1].position=Y[0].position==="bottom"?"top":"bottom"),Z[0]&&!Z[0].position&&(Z[0].position=o.yAxisConfig.position),Z[1]&&!Z[1].position&&(Z[1].position=Z[0].position==="left"?"right":"left"),[].concat((0,a.default)(Y),(0,a.default)(Z))}function P(V,Y){var Z=Y.gridArea,J=Z.x,ue=Z.y,fe=Z.w,we=Z.h;return V=V.map(function(xe){var _e=xe.position,Qe=[];return _e==="left"?Qe=[[J,ue],[J,ue+we]].reverse():_e==="right"?Qe=[[J+fe,ue],[J+fe,ue+we]].reverse():_e==="top"?Qe=[[J,ue],[J+fe,ue]]:_e==="bottom"&&(Qe=[[J,ue+we],[J+fe,ue+we]]),u(u({},xe),{},{linePosition:Qe})}),V}function E(V,Y){return V.map(function(Z){var J=Z.axis,ue=Z.linePosition,fe=Z.position,we=Z.label,xe=Z.boundaryGap;typeof xe!="boolean"&&(xe=c[J+"AxisConfig"].boundaryGap);var _e=we.length,Qe=(0,t.default)(ue,2),Ae=(0,t.default)(Qe[0],2),Te=Ae[0],it=Ae[1],kt=(0,t.default)(Qe[1],2),vr=kt[0],Yr=kt[1],mA=J==="x"?vr-Te:Yr-it,Ho=mA/(xe?_e:_e-1),Mn=new Array(_e).fill(0).map(function(c_e,Jf){return J==="x"?[Te+Ho*(xe?Jf+.5:Jf),it]:[Te,it+Ho*(xe?Jf+.5:Jf)]}),ea=k(J,xe,fe,Mn,Ho);return u(u({},Z),{},{tickPosition:Mn,tickLinePosition:ea,tickGap:Ho})})}function k(V,Y,Z,J,ue){var fe=V==="x"?1:0,we=5;V==="x"&&Z==="top"&&(we=-5),V==="y"&&Z==="left"&&(we=-5);var xe=J.map(function(_e){var Qe=(0,A.deepClone)(_e);return Qe[fe]+=we,[(0,A.deepClone)(_e),Qe]});return Y&&(fe=V==="x"?0:1,we=ue/2,xe.forEach(function(_e){var Qe=(0,t.default)(_e,2),Ae=Qe[0],Te=Qe[1];Ae[fe]+=we,Te[fe]+=we})),xe}function D(V,Y){return V.map(function(Z){var J=Z.nameGap,ue=Z.nameLocation,fe=Z.position,we=Z.linePosition,xe=(0,t.default)(we,2),_e=xe[0],Qe=xe[1],Ae=(0,a.default)(_e);ue==="end"&&(Ae=(0,a.default)(Qe)),ue==="center"&&(Ae[0]=(_e[0]+Qe[0])/2,Ae[1]=(_e[1]+Qe[1])/2);var Te=0;fe==="top"&&ue==="center"&&(Te=1),fe==="bottom"&&ue==="center"&&(Te=1),fe==="left"&&ue!=="center"&&(Te=1),fe==="right"&&ue!=="center"&&(Te=1);var it=J;return fe==="top"&&ue!=="end"&&(it*=-1),fe==="left"&&ue!=="start"&&(it*=-1),fe==="bottom"&&ue==="start"&&(it*=-1),fe==="right"&&ue==="end"&&(it*=-1),Ae[Te]+=it,u(u({},Z),{},{namePosition:Ae})})}function U(V,Y){var Z=Y.gridArea,J=Z.w,ue=Z.h;return V.map(function(fe){var we=fe.tickLinePosition,xe=fe.position,_e=fe.boundaryGap,Qe=0,Ae=J;(xe==="top"||xe==="bottom")&&(Qe=1),(xe==="top"||xe==="bottom")&&(Ae=ue),(xe==="right"||xe==="bottom")&&(Ae*=-1);var Te=we.map(function(it){var kt=(0,t.default)(it,1),vr=kt[0],Yr=(0,a.default)(vr);return Yr[Qe]+=Ae,[(0,a.default)(vr),Yr]});return _e||Te.shift(),u(u({},fe),{},{splitLinePosition:Te})})}function O(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel;return[{name:"polyline",index:J,visible:V.axisLine.show,animationCurve:Y,animationFrame:Z,shape:G(V),style:X(V)}]}function G(V){var Y=V.linePosition;return{points:Y}}function X(V){return V.axisLine.style}function te(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel,ue=ne(V),fe=ye(V);return ue.map(function(we){return{name:"polyline",index:J,visible:V.axisTick.show,animationCurve:Y,animationFrame:Z,shape:we,style:fe}})}function ne(V){var Y=V.tickLinePosition;return Y.map(function(Z){return{points:Z}})}function ye(V){return V.axisTick.style}function re(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel,ue=W(V),fe=oe(V,ue);return ue.map(function(we,xe){return{name:"text",index:J,visible:V.axisLabel.show,animationCurve:Y,animationFrame:Z,shape:we,style:fe[xe],setGraphCenter:function(){}}})}function W(V){var Y=V.label,Z=V.tickPosition,J=V.position;return Z.map(function(ue,fe){return{position:ee(ue,J),content:Y[fe].toString()}})}function ee(V,Y){var Z=0,J=10;return(Y==="top"||Y==="bottom")&&(Z=1),(Y==="top"||Y==="left")&&(J=-10),V=(0,A.deepClone)(V),V[Z]+=J,V}function oe(V,Y){var Z=V.position,J=V.axisLabel.style,ue=H(Z);J=(0,s.deepMerge)(ue,J);var fe=Y.map(function(we){var xe=we.position;return u(u({},J),{},{graphCenter:xe})});return fe}function H(V){if(V==="left")return{textAlign:"right",textBaseline:"middle"};if(V==="right")return{textAlign:"left",textBaseline:"middle"};if(V==="top")return{textAlign:"center",textBaseline:"bottom"};if(V==="bottom")return{textAlign:"center",textBaseline:"top"}}function N(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel;return[{name:"text",index:J,animationCurve:Y,animationFrame:Z,shape:K(V),style:$(V)}]}function K(V){var Y=V.name,Z=V.namePosition;return{content:Y,position:Z}}function $(V){var Y=V.nameLocation,Z=V.position,J=V.nameTextStyle,ue=j(Z,Y);return(0,s.deepMerge)(ue,J)}function j(V,Y){if(V==="top"&&Y==="start"||V==="bottom"&&Y==="start"||V==="left"&&Y==="center")return{textAlign:"right",textBaseline:"middle"};if(V==="top"&&Y==="end"||V==="bottom"&&Y==="end"||V==="right"&&Y==="center")return{textAlign:"left",textBaseline:"middle"};if(V==="top"&&Y==="center"||V==="left"&&Y==="end"||V==="right"&&Y==="end")return{textAlign:"center",textBaseline:"bottom"};if(V==="bottom"&&Y==="center"||V==="left"&&Y==="start"||V==="right"&&Y==="start")return{textAlign:"center",textBaseline:"top"}}function ie(V){var Y=V.animationCurve,Z=V.animationFrame,J=V.rLevel,ue=z(V),fe=q(V);return ue.map(function(we){return{name:"polyline",index:J,visible:V.splitLine.show,animationCurve:Y,animationFrame:Z,shape:we,style:fe}})}function z(V){var Y=V.splitLinePosition;return Y.map(function(Z){return{points:Z}})}function q(V){return V.splitLine.style}return Hv}var Nv={},ZQ;function lCe(){if(ZQ)return Nv;ZQ=1;var r=Vt;Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.line=h;var e=r(Xr()),t=r(on()),n=r(Sr()),a=r(ba()),i=oi(),o=ii(),s=r(qx()),A=In();function l(re,W){var ee=Object.keys(re);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(re);W&&(oe=oe.filter(function(H){return Object.getOwnPropertyDescriptor(re,H).enumerable})),ee.push.apply(ee,oe)}return ee}function u(re){for(var W=1;W<arguments.length;W++){var ee=arguments[W]!=null?arguments[W]:{};W%2?l(Object(ee),!0).forEach(function(oe){(0,a.default)(re,oe,ee[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(ee)):l(Object(ee)).forEach(function(oe){Object.defineProperty(re,oe,Object.getOwnPropertyDescriptor(ee,oe))})}return re}var c=s.default.polylineToBezierCurve,f=s.default.getBezierCurveLength;function h(re){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=W.xAxis,oe=W.yAxis,H=W.series,N=[];ee&&oe&&H&&(N=(0,A.initNeedSeries)(H,o.lineConfig,"line"),N=v(N,re)),(0,i.doUpdate)({chart:re,series:N,key:"lineArea",getGraphConfig:m,getStartGraphConfig:_,beforeUpdate:x,beforeChange:S}),(0,i.doUpdate)({chart:re,series:N,key:"line",getGraphConfig:I,getStartGraphConfig:R,beforeUpdate:x,beforeChange:S}),(0,i.doUpdate)({chart:re,series:N,key:"linePoint",getGraphConfig:P,getStartGraphConfig:D}),(0,i.doUpdate)({chart:re,series:N,key:"lineLabel",getGraphConfig:U})}function v(re,W){var ee=W.axisData;return re.map(function(oe){var H=(0,A.mergeSameStackData)(oe,re);H=d(oe,H);var N=p(oe,ee),K=g(H,N),$=y(N);return u(u({},oe),{},{linePosition:K.filter(function(j){return j}),lineFillBottomPos:$})})}function d(re,W){var ee=re.data;return W.map(function(oe,H){return typeof ee[H]=="number"?oe:null})}function p(re,W){var ee=re.xAxisIndex,oe=re.yAxisIndex,H=W.find(function(K){var $=K.axis,j=K.index;return $==="x"&&j===ee}),N=W.find(function(K){var $=K.axis,j=K.index;return $==="y"&&j===oe});return[H,N]}function g(re,W){var ee=W.findIndex(function(fe){var we=fe.data;return we==="value"}),oe=W[ee],H=W[1-ee],N=oe.linePosition,K=oe.axis,$=H.tickPosition,j=$.length,ie=K==="x"?0:1,z=N[0][ie],q=N[1][ie],V=q-z,Y=oe.maxValue,Z=oe.minValue,J=Y-Z,ue=new Array(j).fill(0).map(function(fe,we){var xe=re[we];if(typeof xe!="number")return null;var _e=(xe-Z)/J;return J===0&&(_e=0),_e*V+z});return ue.map(function(fe,we){if(we>=j||typeof fe!="number")return null;var xe=[fe,$[we][1-ie]];return ie===0||xe.reverse(),xe})}function y(re){var W=re.find(function(q){var V=q.data;return V==="value"}),ee=W.axis,oe=W.linePosition,H=W.minValue,N=W.maxValue,K=ee==="x"?0:1,$=oe[0][K];if(H<0&&N>0){var j=N-H,ie=Math.abs(oe[0][K]-oe[1][K]),z=Math.abs(H)/j*ie;ee==="y"&&(z*=-1),$+=z}return{changeIndex:K,changeValue:$}}function m(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.lineFillBottomPos,H=re.rLevel;return[{name:L(re),index:H,animationCurve:W,animationFrame:ee,visible:re.lineArea.show,lineFillBottomPos:oe,shape:w(re),style:B(re),drawed:b}]}function w(re){var W=re.linePosition;return{points:W}}function B(re){var W=re.lineArea,ee=re.color,oe=W.gradient,H=W.style,N=[H.fill||ee],K=(0,A.deepMerge)(N,oe);K.length===1&&K.push(K[0]);var $=C(re);return H=u(u({},H),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,A.deepMerge)({gradientColor:K,gradientParams:$,gradientType:"linear",gradientWith:"fill"},H)}function C(re){var W=re.lineFillBottomPos,ee=re.linePosition,oe=W.changeIndex,H=W.changeValue,N=ee.map(function(ie){return ie[oe]}),K=Math.max.apply(Math,(0,n.default)(N)),$=Math.min.apply(Math,(0,n.default)(N)),j=K;return oe===1&&(j=$),oe===1?[0,j,0,H]:[j,0,H,0]}function b(re,W){var ee=re.lineFillBottomPos,oe=re.shape,H=W.ctx,N=oe.points,K=ee.changeIndex,$=ee.changeValue,j=(0,n.default)(N[N.length-1]),ie=(0,n.default)(N[0]);j[K]=$,ie[K]=$,H.lineTo.apply(H,(0,n.default)(j)),H.lineTo.apply(H,(0,n.default)(ie)),H.closePath(),H.fill()}function _(re){var W=m(re)[0],ee=u({},W.style);return ee.opacity=0,W.style=ee,[W]}function x(re,W,ee,oe){var H=re[ee];if(H){var N=L(W),K=oe.chart.render,$=H[0].name,j=N!==$;j&&(H.forEach(function(ie){return K.delGraph(ie)}),re[ee]=null)}}function S(re,W){var ee=W.shape.points,oe=re.shape.points,H=oe.length,N=ee.length;if(N>H){var K=oe.slice(-1)[0],$=new Array(N-H).fill(0).map(function(j){return(0,n.default)(K)});oe.push.apply(oe,(0,n.default)($))}else N<H&&oe.splice(N)}function I(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.rLevel;return[{name:L(re),index:oe+1,animationCurve:W,animationFrame:ee,shape:w(re),style:T(re)}]}function L(re){var W=re.smooth;return W?"smoothline":"polyline"}function T(re){var W=re.lineStyle,ee=re.color,oe=re.smooth,H=re.linePosition,N=M(H,oe);return(0,A.deepMerge)({stroke:ee,lineDash:[N,0]},W)}function M(re){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!W)return(0,A.getPolylineLength)(re);var ee=c(re);return f(ee)}function R(re){var W=re.lineStyle.lineDash,ee=I(re)[0],oe=ee.style.lineDash;return W?oe=[0,0]:oe=(0,n.default)(oe).reverse(),ee.style.lineDash=oe,[ee]}function P(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.rLevel,H=E(re),N=k(re);return H.map(function(K){return{name:"circle",index:oe+2,visible:re.linePoint.show,animationCurve:W,animationFrame:ee,shape:K,style:N}})}function E(re){var W=re.linePosition,ee=re.linePoint.radius;return W.map(function(oe){var H=(0,t.default)(oe,2),N=H[0],K=H[1];return{r:ee,rx:N,ry:K}})}function k(re){var W=re.color,ee=re.linePoint.style;return(0,A.deepMerge)({stroke:W},ee)}function D(re){var W=P(re);return W.forEach(function(ee){ee.shape.r=.1}),W}function U(re){var W=re.animationCurve,ee=re.animationFrame,oe=re.rLevel,H=O(re),N=ye(re);return H.map(function(K,$){return{name:"text",index:oe+3,visible:re.label.show,animationCurve:W,animationFrame:ee,shape:K,style:N}})}function O(re){var W=ne(re),ee=G(re);return W.map(function(oe,H){return{content:oe,position:ee[H]}})}function G(re){var W=re.linePosition,ee=re.lineFillBottomPos,oe=re.label,H=oe.position,N=oe.offset,K=ee.changeIndex,$=ee.changeValue;return W.map(function(j){if(H==="bottom"&&(j=(0,n.default)(j),j[K]=$),H==="center"){var ie=(0,n.default)(j);ie[K]=$,j=te(j,ie)}return X(j,N)})}function X(re,W){var ee=(0,t.default)(re,2),oe=ee[0],H=ee[1],N=(0,t.default)(W,2),K=N[0],$=N[1];return[oe+K,H+$]}function te(re,W){var ee=(0,t.default)(re,2),oe=ee[0],H=ee[1],N=(0,t.default)(W,2),K=N[0],$=N[1];return[(oe+K)/2,(H+$)/2]}function ne(re){var W=re.data,ee=re.label.formatter;if(W=W.filter(function(H){return typeof H=="number"}).map(function(H){return H.toString()}),!ee)return W;var oe=(0,e.default)(ee);return oe==="string"?W.map(function(H){return ee.replace("{value}",H)}):oe==="function"?W.map(function(H,N){return ee({value:H,index:N})}):W}function ye(re){var W=re.color,ee=re.label.style;return(0,A.deepMerge)({fill:W},ee)}return Nv}var Vv={},jQ;function uCe(){if(jQ)return Vv;jQ=1;var r=Vt;Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.bar=c;var e=r(Xr()),t=r(ba()),n=r(on()),a=r(Sr()),i=oi(),o=ii(),s=Pr(),A=In();function l(z,q){var V=Object.keys(z);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(z);q&&(Y=Y.filter(function(Z){return Object.getOwnPropertyDescriptor(z,Z).enumerable})),V.push.apply(V,Y)}return V}function u(z){for(var q=1;q<arguments.length;q++){var V=arguments[q]!=null?arguments[q]:{};q%2?l(Object(V),!0).forEach(function(Y){(0,t.default)(z,Y,V[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(V)):l(Object(V)).forEach(function(Y){Object.defineProperty(z,Y,Object.getOwnPropertyDescriptor(V,Y))})}return z}function c(z){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=q.xAxis,Y=q.yAxis,Z=q.series,J=[];V&&Y&&Z&&(J=(0,A.initNeedSeries)(Z,o.barConfig,"bar"),J=f(J,z),J=h(J),J=b(J)),(0,i.doUpdate)({chart:z,series:J.slice(-1),key:"backgroundBar",getGraphConfig:M}),J.reverse(),(0,i.doUpdate)({chart:z,series:J,key:"bar",getGraphConfig:k,getStartGraphConfig:ye,beforeUpdate:oe}),(0,i.doUpdate)({chart:z,series:J,key:"barLabel",getGraphConfig:H})}function f(z,q){var V=q.axisData;return z.forEach(function(Y){var Z=Y.xAxisIndex,J=Y.yAxisIndex;typeof Z!="number"&&(Z=0),typeof J!="number"&&(J=0);var ue=V.find(function(_e){var Qe=_e.axis,Ae=_e.index;return"".concat(Qe).concat(Ae)==="x".concat(Z)}),fe=V.find(function(_e){var Qe=_e.axis,Ae=_e.index;return"".concat(Qe).concat(Ae)==="y".concat(J)}),we=[ue,fe],xe=we.findIndex(function(_e){var Qe=_e.data;return Qe==="value"});Y.valueAxis=we[xe],Y.labelAxis=we[1-xe]}),z}function h(z,q){var V=d(z);return V.forEach(function(Y){v(Y),g(Y),y(Y),m(Y),C(Y)}),z}function v(z){var q=p(z);q=q.map(function(Y){return{stack:Y,index:-1}});var V=0;z.forEach(function(Y){var Z=Y.stack;if(!Z)Y.barIndex=V,V++;else{var J=q.find(function(ue){var fe=ue.stack;return fe===Z});J.index===-1&&(J.index=V,V++),Y.barIndex=J.index}})}function d(z){var q=z.map(function(V){var Y=V.labelAxis,Z=Y.axis,J=Y.index;return Z+J});return q=(0,a.default)(new Set(q)),q.map(function(V){return z.filter(function(Y){var Z=Y.labelAxis,J=Z.axis,ue=Z.index;return J+ue===V})})}function p(z){var q=[];return z.forEach(function(V){var Y=V.stack;Y&&q.push(Y)}),(0,a.default)(new Set(q))}function g(z){var q=(0,a.default)(new Set(z.map(function(V){var Y=V.barIndex;return Y}))).length;z.forEach(function(V){return V.barNum=q})}function y(z){var q=z.slice(-1)[0],V=q.barCategoryGap,Y=q.labelAxis.tickGap,Z=0;typeof V=="number"?Z=V:Z=(1-parseInt(V)/100)*Y,z.forEach(function(J){return J.barCategoryWidth=Z})}function m(z){var q=z.slice(-1)[0],V=q.barCategoryWidth,Y=q.barWidth,Z=q.barGap,J=q.barNum,ue=[];typeof Y=="number"||Y!=="auto"?ue=w(V,Y,Z):Y==="auto"&&(ue=B(V,Y,Z,J));var fe=ue,we=(0,n.default)(fe,2),xe=we[0],_e=we[1];z.forEach(function(Qe){Qe.barWidth=xe,Qe.barGap=_e})}function w(z,q,V){var Y=0,Z=0;return typeof q=="number"?Y=q:Y=parseInt(q)/100*z,typeof V=="number"?Z=V:Z=parseInt(V)/100*Y,[Y,Z]}function B(z,q,V,Y){var Z=0,J=0,ue=z/Y;if(typeof V=="number")J=V,Z=ue-J;else{var fe=10+parseInt(V)/10;fe===0?(Z=ue*2,J=-Z):(Z=ue/fe*10,J=ue-Z)}return[Z,J]}function C(z){var q=z.slice(-1)[0],V=q.barGap,Y=q.barWidth,Z=q.barNum,J=(V+Y)*Z-V;z.forEach(function(ue){return ue.barAllWidthAndGap=J})}function b(z,q){return z=x(z),z=_(z),z=I(z),z=L(z),z}function _(z){return z.map(function(q){var V=q.labelAxis,Y=q.barAllWidthAndGap,Z=q.barGap,J=q.barWidth,ue=q.barIndex,fe=V.tickGap,we=V.tickPosition,xe=V.axis,_e=xe==="x"?0:1,Qe=we.map(function(Ae,Te){var it=we[Te][_e]-fe/2,kt=it+(fe-Y)/2;return kt+(ue+.5)*J+ue*Z});return u(u({},q),{},{barLabelAxisPos:Qe})})}function x(z){return z.map(function(q){var V=(0,A.mergeSameStackData)(q,z);V=S(q,V);var Y=q.valueAxis,Z=Y.axis,J=Y.minValue,ue=Y.maxValue,fe=Y.linePosition,we=T(J,ue,J<0?0:J,fe,Z),xe=V.map(function(Qe){return T(J,ue,Qe,fe,Z)}),_e=xe.map(function(Qe){return[we,Qe]});return u(u({},q),{},{barValueAxisPos:_e})})}function S(z,q){var V=z.data;return q.map(function(Y,Z){return typeof V[Z]=="number"?Y:null}).filter(function(Y){return Y!==null})}function I(z){return z.map(function(q){var V=q.barLabelAxisPos,Y=q.data;return Y.forEach(function(Z,J){typeof Z!="number"&&(V[J]=null)}),u(u({},q),{},{barLabelAxisPos:V.filter(function(Z){return Z!==null})})})}function L(z){return z.forEach(function(q){var V=q.data,Y=q.barLabelAxisPos,Z=q.barValueAxisPos,J=V.filter(function(fe){return typeof fe=="number"}).length,ue=Y.length;ue>J&&(Y.splice(J),Z.splice(J))}),z}function T(z,q,V,Y,Z){if(typeof V!="number")return null;var J=q-z,ue=Z==="x"?0:1,fe=Y[1][ue]-Y[0][ue],we=(V-z)/J;J===0&&(we=0);var xe=we*fe;return xe+Y[0][ue]}function M(z){var q=z.animationCurve,V=z.animationFrame,Y=z.rLevel,Z=R(z),J=E(z);return Z.map(function(ue){return{name:"rect",index:Y,visible:z.backgroundBar.show,animationCurve:q,animationFrame:V,shape:ue,style:J}})}function R(z){var q=z.labelAxis,V=z.valueAxis,Y=q.tickPosition,Z=V.axis,J=V.linePosition,ue=P(z),fe=ue/2,we=Z==="x"?0:1,xe=Y.map(function(Te){return Te[1-we]}),_e=[J[0][we],J[1][we]],Qe=_e[0],Ae=_e[1];return xe.map(function(Te){return Z==="x"?{x:Qe,y:Te-fe,w:Ae-Qe,h:ue}:{x:Te-fe,y:Ae,w:ue,h:Qe-Ae}})}function P(z){var q=z.barAllWidthAndGap,V=z.barCategoryWidth,Y=z.backgroundBar,Z=Y.width;return typeof Z=="number"?Z:Z==="auto"?q:parseInt(Z)/100*V}function E(z){return z.backgroundBar.style}function k(z){var q=z.barLabelAxisPos,V=z.animationCurve,Y=z.animationFrame,Z=z.rLevel,J=D(z);return q.map(function(ue,fe){return{name:J,index:Z,animationCurve:V,animationFrame:Y,shape:U(z,fe),style:te(z,fe)}})}function D(z){var q=z.shapeType;return q==="leftEchelon"||q==="rightEchelon"?"polyline":"rect"}function U(z,q){var V=z.shapeType;return V==="leftEchelon"?O(z,q):V==="rightEchelon"?G(z,q):X(z,q)}function O(z,q){var V=z.barValueAxisPos,Y=z.barLabelAxisPos,Z=z.barWidth,J=z.echelonOffset,ue=(0,n.default)(V[q],2),fe=ue[0],we=ue[1],xe=Y[q],_e=Z/2,Qe=z.valueAxis.axis,Ae=[];return Qe==="x"?(Ae[0]=[we,xe-_e],Ae[1]=[we,xe+_e],Ae[2]=[fe,xe+_e],Ae[3]=[fe+J,xe-_e],we-fe<J&&Ae.splice(3,1)):(Ae[0]=[xe-_e,we],Ae[1]=[xe+_e,we],Ae[2]=[xe+_e,fe],Ae[3]=[xe-_e,fe-J],fe-we<J&&Ae.splice(3,1)),{points:Ae,close:!0}}function G(z,q){var V=z.barValueAxisPos,Y=z.barLabelAxisPos,Z=z.barWidth,J=z.echelonOffset,ue=(0,n.default)(V[q],2),fe=ue[0],we=ue[1],xe=Y[q],_e=Z/2,Qe=z.valueAxis.axis,Ae=[];return Qe==="x"?(Ae[0]=[we,xe+_e],Ae[1]=[we,xe-_e],Ae[2]=[fe,xe-_e],Ae[3]=[fe+J,xe+_e],we-fe<J&&Ae.splice(2,1)):(Ae[0]=[xe+_e,we],Ae[1]=[xe-_e,we],Ae[2]=[xe-_e,fe],Ae[3]=[xe+_e,fe-J],fe-we<J&&Ae.splice(2,1)),{points:Ae,close:!0}}function X(z,q){var V=z.barValueAxisPos,Y=z.barLabelAxisPos,Z=z.barWidth,J=(0,n.default)(V[q],2),ue=J[0],fe=J[1],we=Y[q],xe=z.valueAxis.axis,_e={};return xe==="x"?(_e.x=ue,_e.y=we-Z/2,_e.w=fe-ue,_e.h=Z):(_e.x=we-Z/2,_e.y=fe,_e.w=Z,_e.h=ue-fe),_e}function te(z,q){var V=z.barStyle,Y=z.gradient,Z=z.color,J=z.independentColor,ue=z.independentColors,fe=[V.fill||Z],we=(0,A.deepMerge)(fe,Y.color);if(J){var xe=ue[q%ue.length];we=xe instanceof Array?xe:[xe]}we.length===1&&we.push(we[0]);var _e=ne(z,q);return(0,A.deepMerge)({gradientColor:we,gradientParams:_e,gradientType:"linear",gradientWith:"fill"},V)}function ne(z,q){var V=z.barValueAxisPos,Y=z.barLabelAxisPos,Z=z.data,J=z.valueAxis,ue=J.linePosition,fe=J.axis,we=(0,n.default)(V[q],2),xe=we[0],_e=we[1],Qe=Y[q],Ae=Z[q],Te=(0,n.default)(ue,2),it=Te[0],kt=Te[1],vr=fe==="x"?0:1,Yr=_e;return z.gradient.local||(Yr=Ae<0?it[vr]:kt[vr]),fe==="y"?[Qe,Yr,Qe,xe]:[Yr,Qe,xe,Qe]}function ye(z){var q=k(z),V=z.shapeType;return q.forEach(function(Y){var Z=Y.shape;V==="leftEchelon"?Z=re(Z,z):V==="rightEchelon"?Z=W(Z,z):Z=ee(Z,z),Y.shape=Z}),q}function re(z,q){var V=q.valueAxis.axis;z=(0,s.deepClone)(z);var Y=z,Z=Y.points,J=V==="x"?0:1,ue=Z[2][J];return Z.forEach(function(fe){return fe[J]=ue}),z}function W(z,q){var V=q.valueAxis.axis;z=(0,s.deepClone)(z);var Y=z,Z=Y.points,J=V==="x"?0:1,ue=Z[2][J];return Z.forEach(function(fe){return fe[J]=ue}),z}function ee(z,q){var V=q.valueAxis.axis,Y=z.x,Z=z.y,J=z.w,ue=z.h;return V==="x"?J=0:(Z=Z+ue,ue=0),{x:Y,y:Z,w:J,h:ue}}function oe(z,q,V,Y){var Z=Y.chart.render,J=D(q);z[V]&&z[V][0].name!==J&&(z[V].forEach(function(ue){return Z.delGraph(ue)}),z[V]=null)}function H(z){var q=z.animationCurve,V=z.animationFrame,Y=z.rLevel,Z=N(z),J=ie(z);return Z.map(function(ue){return{name:"text",index:Y,visible:z.label.show,animationCurve:q,animationFrame:V,shape:ue,style:J}})}function N(z){var q=K(z),V=$(z);return V.map(function(Y,Z){return{position:Y,content:q[Z]}})}function K(z){var q=z.data,V=z.label,Y=V.formatter;if(q=q.filter(function(J){return typeof J=="number"}).map(function(J){return J.toString()}),!Y)return q;var Z=(0,e.default)(Y);return Z==="string"?q.map(function(J){return Y.replace("{value}",J)}):Z==="function"?q.map(function(J,ue){return Y({value:J,index:ue})}):q}function $(z){var q=z.label,V=z.barValueAxisPos,Y=z.barLabelAxisPos,Z=q.position,J=q.offset,ue=z.valueAxis.axis;return V.map(function(fe,we){var xe=(0,n.default)(fe,2),_e=xe[0],Qe=xe[1],Ae=Y[we],Te=[Qe,Ae];return Z==="bottom"&&(Te=[_e,Ae]),Z==="center"&&(Te=[(_e+Qe)/2,Ae]),ue==="y"&&Te.reverse(),j(Te,J)})}function j(z,q){var V=(0,n.default)(z,2),Y=V[0],Z=V[1],J=(0,n.default)(q,2),ue=J[0],fe=J[1];return[Y+ue,Z+fe]}function ie(z){var q=z.color,V=z.label.style,Y=z.gradient.color;return Y.length&&(q=Y[0]),V=(0,A.deepMerge)({fill:q},V),V}return Vv}var Gv={},JQ;function cCe(){if(JQ)return Gv;JQ=1;var r=Vt;Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.pie=c;var e=r(ba()),t=r(Xr()),n=r(on()),a=r(Sr()),i=oi(),o=vV(),s=Pr(),A=In();function l(N,K){var $=Object.keys(N);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(N);K&&(j=j.filter(function(ie){return Object.getOwnPropertyDescriptor(N,ie).enumerable})),$.push.apply($,j)}return $}function u(N){for(var K=1;K<arguments.length;K++){var $=arguments[K]!=null?arguments[K]:{};K%2?l(Object($),!0).forEach(function(j){(0,e.default)(N,j,$[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors($)):l(Object($)).forEach(function(j){Object.defineProperty(N,j,Object.getOwnPropertyDescriptor($,j))})}return N}function c(N){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=K.series;$||($=[]);var j=(0,A.initNeedSeries)($,o.pieConfig,"pie");j=f(j,N),j=h(j,N),j=d(j),j=y(j),j=B(j),j=b(j),j=x(j),j=S(j),(0,i.doUpdate)({chart:N,series:j,key:"pie",getGraphConfig:P,getStartGraphConfig:E,beforeChange:k}),(0,i.doUpdate)({chart:N,series:j,key:"pieInsideLabel",getGraphConfig:O}),(0,i.doUpdate)({chart:N,series:j,key:"pieOutsideLabelLine",getGraphConfig:te,getStartGraphConfig:ne}),(0,i.doUpdate)({chart:N,series:j,key:"pieOutsideLabel",getGraphConfig:W,getStartGraphConfig:ee})}function f(N,K){var $=K.render.area;return N.forEach(function(j){var ie=j.center;ie=ie.map(function(z,q){return typeof z=="number"?z:parseInt(z)/100*$[q]}),j.center=ie}),N}function h(N,K){var $=Math.min.apply(Math,(0,a.default)(K.render.area))/2;return N.forEach(function(j){var ie=j.radius,z=j.data;ie=v(ie,$),z.forEach(function(q){var V=q.radius;V||(V=ie),V=v(V,$),q.radius=V}),j.radius=ie}),N}function v(N,K){return N instanceof Array||(N=[0,N]),N=N.map(function($){return typeof $=="number"?$:parseInt($)/100*K}),N}function d(N,K){var $=N.filter(function(j){var ie=j.roseType;return ie});return $.forEach(function(j){var ie=j.radius,z=j.data,q=j.roseSort,V=g(j),Y=(0,a.default)(z);z=p(z),z.forEach(function(Z,J){Z.radius[1]=ie[1]-V*J}),q?z.reverse():j.data=Y,j.roseIncrement=V}),N}function p(N){return N.sort(function(K,$){var j=K.value,ie=$.value;if(j===ie)return 0;if(j>ie)return-1;if(j<ie)return 1})}function g(N){var K=N.radius,$=N.roseIncrement;if(typeof $=="number")return $;if($==="auto"){var j=N.data,ie=j.reduce(function(V,Y){var Z=Y.radius;return[].concat((0,a.default)(V),(0,a.default)(Z))},[]),z=Math.min.apply(Math,(0,a.default)(ie)),q=Math.max.apply(Math,(0,a.default)(ie));return(q-z)*.6/(j.length-1||1)}return parseInt($)/100*K[1]}function y(N){return N.forEach(function(K){var $=K.data,j=K.percentToFixed,ie=w($);$.forEach(function(q){var V=q.value;q.percent=V/ie*100,q.percentForLabel=m(V/ie*100,j)});var z=(0,A.mulAdd)($.slice(0,-1).map(function(q){var V=q.percent;return V}));$.slice(-1)[0].percent=100-z,$.slice(-1)[0].percentForLabel=m(100-z,j)}),N}function m(N){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$=N.toString(),j=$.split("."),ie=j[1]||"0",z=ie.slice(0,K);return j[1]=z,parseFloat(j.join("."))}function w(N){return(0,A.mulAdd)(N.map(function(K){var $=K.value;return $}))}function B(N){return N.forEach(function(K){var $=K.startAngle,j=K.data;j.forEach(function(ie,z){var q=C(j,z),V=(0,n.default)(q,2),Y=V[0],Z=V[1];ie.startAngle=$+Y,ie.endAngle=$+Z})}),N}function C(N,K){var $=Math.PI*2,j=N.slice(0,K+1),ie=(0,A.mulAdd)(j.map(function(V){var Y=V.percent;return Y})),z=N[K].percent,q=ie-z;return[$*q/100,$*ie/100]}function b(N){return N.forEach(function(K){var $=K.data;$.forEach(function(j){j.insideLabelPos=_(K,j)})}),N}function _(N,K){var $=N.center,j=K.startAngle,ie=K.endAngle,z=(0,n.default)(K.radius,2),q=z[0],V=z[1],Y=(q+V)/2,Z=(j+ie)/2;return s.getCircleRadianPoint.apply(void 0,(0,a.default)($).concat([Y,Z]))}function x(N){return N.forEach(function(K){var $=K.data,j=K.center;$.forEach(function(ie){var z=ie.startAngle,q=ie.endAngle,V=ie.radius,Y=(z+q)/2,Z=s.getCircleRadianPoint.apply(void 0,(0,a.default)(j).concat([V[1],Y]));ie.edgeCenterPos=Z})}),N}function S(N){return N.forEach(function(K){var $=T(K),j=T(K,!1);$=M($),j=M(j),R($,K),R(j,K,!1)}),N}function I(N){var K=N.outsideLabel.labelLineBendGap,$=L(N);return typeof K!="number"&&(K=parseInt(K)/100*$),K+$}function L(N){var K=N.data,$=K.map(function(j){var ie=(0,n.default)(j.radius,2);ie[0];var z=ie[1];return z});return Math.max.apply(Math,(0,a.default)($))}function T(N){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,$=N.data,j=N.center,ie=j[0];return $.filter(function(z){var q=z.edgeCenterPos,V=q[0];return K?V<=ie:V>ie})}function M(N){return N.sort(function(K,$){var j=(0,n.default)(K.edgeCenterPos,2);j[0];var ie=j[1],z=(0,n.default)($.edgeCenterPos,2);z[0];var q=z[1];if(ie>q)return 1;if(ie<q)return-1;if(ie===q)return 0}),N}function R(N,K){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,j=K.center,ie=K.outsideLabel,z=I(K);N.forEach(function(q){var V=q.edgeCenterPos,Y=q.startAngle,Z=q.endAngle,J=ie.labelLineEndLength,ue=(Y+Z)/2,fe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(j).concat([z,ue])),we=(0,a.default)(fe);we[0]+=J*($?-1:1),q.labelLine=[V,fe,we],q.labelLineLength=(0,A.getPolylineLength)(q.labelLine),q.align={textAlign:"left",textBaseline:"middle"},$&&(q.align.textAlign="right")})}function P(N){var K=N.data,$=N.animationCurve,j=N.animationFrame,ie=N.rLevel;return K.map(function(z,q){return{name:"pie",index:ie,animationCurve:$,animationFrame:j,shape:D(N,q),style:U(N,q)}})}function E(N){var K=N.animationDelayGap,$=N.startAnimationCurve,j=P(N);return j.forEach(function(ie,z){ie.animationCurve=$,ie.animationDelay=z*K,ie.shape.or=ie.shape.ir}),j}function k(N){N.animationDelay=0}function D(N,K){var $=N.center,j=N.data,ie=j[K],z=ie.radius,q=ie.startAngle,V=ie.endAngle;return{startAngle:q,endAngle:V,ir:z[0],or:z[1],rx:$[0],ry:$[1]}}function U(N,K){var $=N.pieStyle,j=N.data,ie=j[K],z=ie.color;return(0,A.deepMerge)({fill:z},$)}function O(N){var K=N.animationCurve,$=N.animationFrame,j=N.data,ie=N.rLevel;return j.map(function(z,q){return{name:"text",index:ie,visible:N.insideLabel.show,animationCurve:K,animationFrame:$,shape:G(N,q),style:X(N)}})}function G(N,K){var $=N.insideLabel,j=N.data,ie=$.formatter,z=j[K],q=(0,t.default)(ie),V="";return q==="string"&&(V=ie.replace("{name}",z.name),V=V.replace("{percent}",z.percentForLabel),V=V.replace("{value}",z.value)),q==="function"&&(V=ie(z)),{content:V,position:z.insideLabelPos}}function X(N,K){var $=N.insideLabel.style;return $}function te(N){var K=N.animationCurve,$=N.animationFrame,j=N.data,ie=N.rLevel;return j.map(function(z,q){return{name:"polyline",index:ie,visible:N.outsideLabel.show,animationCurve:K,animationFrame:$,shape:ye(N,q),style:re(N,q)}})}function ne(N){var K=N.data,$=te(N);return $.forEach(function(j,ie){j.style.lineDash=[0,K[ie].labelLineLength]}),$}function ye(N,K){var $=N.data,j=$[K];return{points:j.labelLine}}function re(N,K){var $=N.outsideLabel,j=N.data,ie=$.labelLineStyle,z=j[K].color;return(0,A.deepMerge)({stroke:z,lineDash:[j[K].labelLineLength,0]},ie)}function W(N){var K=N.animationCurve,$=N.animationFrame,j=N.data,ie=N.rLevel;return j.map(function(z,q){return{name:"text",index:ie,visible:N.outsideLabel.show,animationCurve:K,animationFrame:$,shape:oe(N,q),style:H(N,q)}})}function ee(N){var K=N.data,$=W(N);return $.forEach(function(j,ie){j.shape.position=K[ie].labelLine[1]}),$}function oe(N,K){var $=N.outsideLabel,j=N.data,ie=$.formatter,z=j[K],q=z.labelLine,V=z.name,Y=z.percentForLabel,Z=z.value,J=(0,t.default)(ie),ue="";return J==="string"&&(ue=ie.replace("{name}",V),ue=ue.replace("{percent}",Y),ue=ue.replace("{value}",Z)),J==="function"&&(ue=ie(j[K])),{content:ue,position:q[2]}}function H(N,K){var $=N.outsideLabel,j=N.data,ie=j[K],z=ie.color,q=ie.align,V=$.style;return(0,A.deepMerge)(u({fill:z},q),V)}return Gv}var zv={},qQ;function fCe(){if(qQ)return zv;qQ=1;var r=Vt;Object.defineProperty(zv,"__esModule",{value:!0}),zv.radarAxis=u;var e=r(on()),t=r(ba()),n=r(Sr()),a=oi(),i=ii(),o=Pr(),s=In();function A(E,k){var D=Object.keys(E);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(E);k&&(U=U.filter(function(O){return Object.getOwnPropertyDescriptor(E,O).enumerable})),D.push.apply(D,U)}return D}function l(E){for(var k=1;k<arguments.length;k++){var D=arguments[k]!=null?arguments[k]:{};k%2?A(Object(D),!0).forEach(function(U){(0,t.default)(E,U,D[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(D)):A(Object(D)).forEach(function(U){Object.defineProperty(E,U,Object.getOwnPropertyDescriptor(D,U))})}return E}function u(E){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=k.radar,U=[];D&&(U=c(D),U=f(U,E),U=h(U,E),U=v(U),U=d(U),U=p(U),U=[U]);var O=U;U.length&&!U[0].show&&(O=[]),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisSplitArea",getGraphConfig:g,beforeUpdate:w,beforeChange:B}),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisSplitLine",getGraphConfig:C,beforeUpdate:x,beforeChange:S}),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisLine",getGraphConfig:I}),(0,a.doUpdate)({chart:E,series:O,key:"radarAxisLable",getGraphConfig:M}),E.radarAxis=U[0]}function c(E){return(0,s.deepMerge)((0,o.deepClone)(i.radarAxisConfig),E)}function f(E,k){var D=k.render.area,U=E.center;return E.centerPos=U.map(function(O,G){return typeof O=="number"?O:parseInt(O)/100*D[G]}),E}function h(E,k){var D=k.render.area,U=E.splitNum,O=E.radius,G=Math.min.apply(Math,(0,n.default)(D))/2;typeof O!="number"&&(O=parseInt(O)/100*G);var X=O/U;return E.ringRadius=new Array(U).fill(0).map(function(te,ne){return X*(ne+1)}),E.radius=O,E}function v(E){var k=E.indicator,D=E.centerPos,U=E.radius,O=E.startAngle,G=Math.PI*2,X=k.length,te=G/X,ne=new Array(X).fill(0).map(function(ye,re){return te*re+O});return E.axisLineAngles=ne,E.axisLinePosition=ne.map(function(ye){return o.getCircleRadianPoint.apply(void 0,(0,n.default)(D).concat([U,ye]))}),E}function d(E){var k=E.ringRadius,D=k[0]/2;return E.areaRadius=k.map(function(U){return U-D}),E}function p(E){var k=E.axisLineAngles,D=E.centerPos,U=E.radius,O=E.axisLabel;return U+=O.labelGap,E.axisLabelPosition=k.map(function(G){return o.getCircleRadianPoint.apply(void 0,(0,n.default)(D).concat([U,G]))}),E}function g(E){var k=E.areaRadius,D=E.polygon,U=E.animationCurve,O=E.animationFrame,G=E.rLevel,X=D?"regPolygon":"ring";return k.map(function(te,ne){return{name:X,index:G,visible:E.splitArea.show,animationCurve:U,animationFrame:O,shape:y(E,ne),style:m(E,ne)}})}function y(E,k){var D=E.polygon,U=E.areaRadius,O=E.indicator,G=E.centerPos,X=O.length,te={rx:G[0],ry:G[1],r:U[k]};return D&&(te.side=X),te}function m(E,k){var D=E.splitArea,U=E.ringRadius,O=E.axisLineAngles,G=E.polygon,X=E.centerPos,te=D.color,ne=D.style;ne=l({fill:"rgba(0, 0, 0, 0)"},ne);var ye=U[0]-0;if(G){var re=o.getCircleRadianPoint.apply(void 0,(0,n.default)(X).concat([U[0],O[0]])),W=o.getCircleRadianPoint.apply(void 0,(0,n.default)(X).concat([U[0],O[1]]));ye=(0,s.getPointToLineDistance)(X,re,W)}if(ne=(0,s.deepMerge)((0,o.deepClone)(ne,!0),{lineWidth:ye}),!te.length)return ne;var ee=te.length;return(0,s.deepMerge)(ne,{stroke:te[k%ee]})}function w(E,k,D,U){var O=E[D];if(O){var G=U.chart.render,X=k.polygon,te=O[0].name,ne=X?"regPolygon":"ring",ye=ne!==te;ye&&(O.forEach(function(re){return G.delGraph(re)}),E[D]=null)}}function B(E,k){var D=k.shape.side;typeof D=="number"&&(E.shape.side=D)}function C(E){var k=E.ringRadius,D=E.polygon,U=E.animationCurve,O=E.animationFrame,G=E.rLevel,X=D?"regPolygon":"ring";return k.map(function(te,ne){return{name:X,index:G,animationCurve:U,animationFrame:O,visible:E.splitLine.show,shape:b(E,ne),style:_(E,ne)}})}function b(E,k){var D=E.ringRadius,U=E.centerPos,O=E.indicator,G=E.polygon,X={rx:U[0],ry:U[1],r:D[k]},te=O.length;return G&&(X.side=te),X}function _(E,k){var D=E.splitLine,U=D.color,O=D.style;if(O=l({fill:"rgba(0, 0, 0, 0)"},O),!U.length)return O;var G=U.length;return(0,s.deepMerge)(O,{stroke:U[k%G]})}function x(E,k,D,U){var O=E[D];if(O){var G=U.chart.render,X=k.polygon,te=O[0].name,ne=X?"regPolygon":"ring",ye=ne!==te;ye&&(O.forEach(function(re){return G.delGraph(re)}),E[D]=null)}}function S(E,k){var D=k.shape.side;typeof D=="number"&&(E.shape.side=D)}function I(E){var k=E.axisLinePosition,D=E.animationCurve,U=E.animationFrame,O=E.rLevel;return k.map(function(G,X){return{name:"polyline",index:O,visible:E.axisLine.show,animationCurve:D,animationFrame:U,shape:L(E,X),style:T(E,X)}})}function L(E,k){var D=E.centerPos,U=E.axisLinePosition,O=[D,U[k]];return{points:O}}function T(E,k){var D=E.axisLine,U=D.color,O=D.style;if(!U.length)return O;var G=U.length;return(0,s.deepMerge)(O,{stroke:U[k%G]})}function M(E){var k=E.axisLabelPosition,D=E.animationCurve,U=E.animationFrame,O=E.rLevel;return k.map(function(G,X){return{name:"text",index:O,visible:E.axisLabel.show,animationCurve:D,animationFrame:U,shape:R(E,X),style:P(E,X)}})}function R(E,k){var D=E.axisLabelPosition,U=E.indicator;return{content:U[k].name,position:D[k]}}function P(E,k){var D=E.axisLabel,U=(0,e.default)(E.centerPos,2),O=U[0],G=U[1],X=E.axisLabelPosition,te=D.color,ne=D.style,ye=(0,e.default)(X[k],2),re=ye[0],W=ye[1],ee=re>O?"left":"right",oe=W>G?"top":"bottom";if(ne=(0,s.deepMerge)({textAlign:ee,textBaseline:oe},ne),!te.length)return ne;var H=te.length;return(0,s.deepMerge)(ne,{fill:te[k%H]})}return zv}var $v={},eU;function hCe(){if(eU)return $v;eU=1;var r=Vt;Object.defineProperty($v,"__esModule",{value:!0}),$v.radar=f;var e=r(ba()),t=r(Xr()),n=r(on()),a=r(Sr()),i=oi(),o=ii(),s=Pr(),A=jf,l=In();function u(T,M){var R=Object.keys(T);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(T);M&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(T,E).enumerable})),R.push.apply(R,P)}return R}function c(T){for(var M=1;M<arguments.length;M++){var R=arguments[M]!=null?arguments[M]:{};M%2?u(Object(R),!0).forEach(function(P){(0,e.default)(T,P,R[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(R)):u(Object(R)).forEach(function(P){Object.defineProperty(T,P,Object.getOwnPropertyDescriptor(R,P))})}return T}function f(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=M.series;R||(R=[]);var P=(0,l.initNeedSeries)(R,o.radarConfig,"radar");P=h(P,T),P=v(P,T),P=d(P,T),(0,i.doUpdate)({chart:T,series:P,key:"radar",getGraphConfig:p,getStartGraphConfig:g,beforeChange:w}),(0,i.doUpdate)({chart:T,series:P,key:"radarPoint",getGraphConfig:B,getStartGraphConfig:C}),(0,i.doUpdate)({chart:T,series:P,key:"radarLabel",getGraphConfig:x})}function h(T,M){var R=M.radarAxis;if(!R)return[];var P=R.indicator,E=R.axisLineAngles,k=R.radius,D=R.centerPos;return T.forEach(function(U){var O=U.data;U.dataRadius=[],U.radarPosition=P.map(function(G,X){var te=G.max,ne=G.min,ye=O[X];typeof te!="number"&&(te=ye),typeof ne!="number"&&(ne=0),typeof ye!="number"&&(ye=ne);var re=(ye-ne)/(te-ne)*k;return U.dataRadius[X]=re,s.getCircleRadianPoint.apply(void 0,(0,a.default)(D).concat([re,E[X]]))})}),T}function v(T,M){var R=M.radarAxis;if(!R)return[];var P=R.centerPos,E=R.axisLineAngles;return T.forEach(function(k){var D=k.dataRadius,U=k.label,O=U.labelGap;k.labelPosition=D.map(function(G,X){return s.getCircleRadianPoint.apply(void 0,(0,a.default)(P).concat([G+O,E[X]]))})}),T}function d(T,M){var R=M.radarAxis;if(!R)return[];var P=(0,n.default)(R.centerPos,2),E=P[0],k=P[1];return T.forEach(function(D){var U=D.labelPosition,O=U.map(function(G){var X=(0,n.default)(G,2),te=X[0],ne=X[1],ye=te>E?"left":"right",re=ne>k?"top":"bottom";return{textAlign:ye,textBaseline:re}});D.labelAlign=O}),T}function p(T){var M=T.animationCurve,R=T.animationFrame,P=T.rLevel;return[{name:"polyline",index:P,animationCurve:M,animationFrame:R,shape:y(T),style:m(T)}]}function g(T,M){var R=M.chart.radarAxis.centerPos,P=p(T)[0],E=P.shape.points.length,k=new Array(E).fill(0).map(function(D){return(0,a.default)(R)});return P.shape.points=k,[P]}function y(T){var M=T.radarPosition;return{points:M,close:!0}}function m(T){var M=T.radarStyle,R=T.color,P=(0,A.getRgbaValue)(R);P[3]=.5;var E={stroke:R,fill:(0,A.getColorFromRgbValue)(P)};return(0,l.deepMerge)(E,M)}function w(T,M){var R=M.shape,P=T.shape.points,E=P.length,k=R.points.length;if(k>E){var D=P.slice(-1)[0],U=new Array(k-E).fill(0).map(function(O){return(0,a.default)(D)});P.push.apply(P,(0,a.default)(U))}else k<E&&P.splice(k)}function B(T){var M=T.radarPosition,R=T.animationCurve,P=T.animationFrame,E=T.rLevel;return M.map(function(k,D){return{name:"circle",index:E,animationCurve:R,animationFrame:P,visible:T.point.show,shape:b(T,D),style:_(T)}})}function C(T){var M=B(T);return M.forEach(function(R){return R.shape.r=.01}),M}function b(T,M){var R=T.radarPosition,P=T.point,E=P.radius,k=R[M];return{rx:k[0],ry:k[1],r:E}}function _(T,M){var R=T.point,P=T.color,E=R.style;return(0,l.deepMerge)({stroke:P},E)}function x(T){var M=T.labelPosition,R=T.animationCurve,P=T.animationFrame,E=T.rLevel;return M.map(function(k,D){return{name:"text",index:E,visible:T.label.show,animationCurve:R,animationFrame:P,shape:S(T,D),style:L(T,D)}})}function S(T,M){var R=T.labelPosition,P=T.label,E=T.data,k=P.offset,D=P.formatter,U=I(R[M],k),O=E[M]?E[M].toString():"0",G=(0,t.default)(D);return G==="string"&&(O=D.replace("{value}",O)),G==="function"&&(O=D(O)),{content:O,position:U}}function I(T,M){var R=(0,n.default)(T,2),P=R[0],E=R[1],k=(0,n.default)(M,2),D=k[0],U=k[1];return[P+D,E+U]}function L(T,M){var R=T.label,P=T.color,E=T.labelAlign,k=R.style,D=c({fill:P},E[M]);return(0,l.deepMerge)(D,k)}return $v}var Kv={},tU;function vCe(){if(tU)return Kv;tU=1;var r=Vt;Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.gauge=f;var e=r(ba()),t=r(Xr()),n=r(on()),a=r(Sr()),i=oi(),o=dV(),s=Pr(),A=In(),l=jf;function u(H,N){var K=Object.keys(H);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(H);N&&($=$.filter(function(j){return Object.getOwnPropertyDescriptor(H,j).enumerable})),K.push.apply(K,$)}return K}function c(H){for(var N=1;N<arguments.length;N++){var K=arguments[N]!=null?arguments[N]:{};N%2?u(Object(K),!0).forEach(function($){(0,e.default)(H,$,K[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(K)):u(Object(K)).forEach(function($){Object.defineProperty(H,$,Object.getOwnPropertyDescriptor(K,$))})}return H}function f(H){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=N.series;K||(K=[]);var $=(0,A.initNeedSeries)(K,o.gaugeConfig,"gauge");$=h($,H),$=v($,H),$=d($,H),$=p($),$=g($),$=y($),$=m($),$=w($),$=B($),$=C($),(0,i.doUpdate)({chart:H,series:$,key:"gaugeAxisTick",getGraphConfig:_}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeAxisLabel",getGraphConfig:I}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeBackgroundArc",getGraphConfig:M,getStartGraphConfig:E}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeArc",getGraphConfig:k,getStartGraphConfig:O,beforeChange:G}),(0,i.doUpdate)({chart:H,series:$,key:"gaugePointer",getGraphConfig:X,getStartGraphConfig:re}),(0,i.doUpdate)({chart:H,series:$,key:"gaugeDetails",getGraphConfig:W})}function h(H,N){var K=N.render.area;return H.forEach(function($){var j=$.center;j=j.map(function(ie,z){return typeof ie=="number"?ie:parseInt(ie)/100*K[z]}),$.center=j}),H}function v(H,N){var K=N.render.area,$=Math.min.apply(Math,(0,a.default)(K))/2;return H.forEach(function(j){var ie=j.radius;typeof ie!="number"&&(ie=parseInt(ie)/100*$),j.radius=ie}),H}function d(H,N){var K=N.render.area,$=Math.min.apply(Math,(0,a.default)(K))/2;return H.forEach(function(j){var ie=j.radius,z=j.data,q=j.arcLineWidth;z.forEach(function(V){var Y=V.radius,Z=V.lineWidth;Y||(Y=ie),typeof Y!="number"&&(Y=parseInt(Y)/100*$),V.radius=Y,Z||(Z=q),V.lineWidth=Z})}),H}function p(H,N){return H.forEach(function(K){var $=K.startAngle,j=K.endAngle,ie=K.data,z=K.min,q=K.max,V=j-$,Y=q-z;ie.forEach(function(Z){var J=Z.value,ue=Math.abs((J-z)/Y*V);Z.startAngle=$,Z.endAngle=$+ue})}),H}function g(H,N){return H.forEach(function(K){var $=K.data;$.forEach(function(j){var ie=j.color,z=j.gradient;(!z||!z.length)&&(z=ie),z instanceof Array||(z=[z]),j.gradient=z})}),H}function y(H,N){return H.forEach(function(K){var $=K.startAngle,j=K.endAngle,ie=K.splitNum,z=K.center,q=K.radius,V=K.arcLineWidth,Y=K.axisTick,Z=Y.tickLength,J=Y.style.lineWidth,ue=j-$,fe=q-V/2,we=fe-Z,xe=ue/(ie-1),_e=2*Math.PI*q*ue/(Math.PI*2),Qe=Math.ceil(J/2)/_e*ue;K.tickAngles=[],K.tickInnerRadius=[],K.tickPosition=new Array(ie).fill(0).map(function(Ae,Te){var it=$+xe*Te;return Te===0&&(it+=Qe),Te===ie-1&&(it-=Qe),K.tickAngles[Te]=it,K.tickInnerRadius[Te]=we,[s.getCircleRadianPoint.apply(void 0,(0,a.default)(z).concat([fe,it])),s.getCircleRadianPoint.apply(void 0,(0,a.default)(z).concat([we,it]))]})}),H}function m(H,N){return H.forEach(function(K){var $=K.center,j=K.tickInnerRadius,ie=K.tickAngles,z=K.axisLabel.labelGap,q=ie.map(function(Y,Z){return s.getCircleRadianPoint.apply(void 0,(0,a.default)($).concat([j[Z]-z,ie[Z]]))}),V=q.map(function(Y){var Z=(0,n.default)(Y,2),J=Z[0],ue=Z[1];return{textAlign:J>$[0]?"right":"left",textBaseline:ue>$[1]?"bottom":"top"}});K.labelPosition=q,K.labelAlign=V}),H}function w(H,N){return H.forEach(function(K){var $=K.axisLabel,j=K.min,ie=K.max,z=K.splitNum,q=$.data,V=$.formatter,Y=(ie-j)/(z-1),Z=new Array(z).fill(0).map(function(ue,fe){return parseInt(j+Y*fe)}),J=(0,t.default)(V);q=(0,A.deepMerge)(Z,q).map(function(ue,fe){var we=ue;return J==="string"&&(we=V.replace("{value}",ue)),J==="function"&&(we=V({value:ue,index:fe})),we}),$.data=q}),H}function B(H,N){return H.forEach(function(K){var $=K.data,j=K.details,ie=K.center,z=j.position,q=j.offset,V=$.map(function(Y){var Z=Y.startAngle,J=Y.endAngle,ue=Y.radius,fe=null;return z==="center"?fe=ie:z==="start"?fe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(ie).concat([ue,Z])):z==="end"&&(fe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(ie).concat([ue,J]))),b(fe,q)});K.detailsPosition=V}),H}function C(H,N){return H.forEach(function(K){var $=K.data,j=K.details,ie=j.formatter,z=(0,t.default)(ie),q=$.map(function(V){var Y=V.value;return z==="string"&&(Y=ie.replace("{value}","{nt}"),Y=Y.replace("{name}",V.name)),z==="function"&&(Y=ie(V)),Y.toString()});K.detailsContent=q}),H}function b(H,N){var K=(0,n.default)(H,2),$=K[0],j=K[1],ie=(0,n.default)(N,2),z=ie[0],q=ie[1];return[$+z,j+q]}function _(H){var N=H.tickPosition,K=H.animationCurve,$=H.animationFrame,j=H.rLevel;return N.map(function(ie,z){return{name:"polyline",index:j,visible:H.axisTick.show,animationCurve:K,animationFrame:$,shape:x(H,z),style:S(H)}})}function x(H,N){var K=H.tickPosition;return{points:K[N]}}function S(H,N){var K=H.axisTick.style;return K}function I(H){var N=H.labelPosition,K=H.animationCurve,$=H.animationFrame,j=H.rLevel;return N.map(function(ie,z){return{name:"text",index:j,visible:H.axisLabel.show,animationCurve:K,animationFrame:$,shape:L(H,z),style:T(H,z)}})}function L(H,N){var K=H.labelPosition,$=H.axisLabel.data;return{content:$[N].toString(),position:K[N]}}function T(H,N){var K=H.labelAlign,$=H.axisLabel,j=$.style;return(0,A.deepMerge)(c({},K[N]),j)}function M(H){var N=H.animationCurve,K=H.animationFrame,$=H.rLevel;return[{name:"arc",index:$,visible:H.backgroundArc.show,animationCurve:N,animationFrame:K,shape:R(H),style:P(H)}]}function R(H){var N=H.startAngle,K=H.endAngle,$=H.center,j=H.radius;return{rx:$[0],ry:$[1],r:j,startAngle:N,endAngle:K}}function P(H){var N=H.backgroundArc,K=H.arcLineWidth,$=N.style;return(0,A.deepMerge)({lineWidth:K},$)}function E(H){var N=M(H)[0],K=c({},N.shape);return K.endAngle=N.shape.startAngle,N.shape=K,[N]}function k(H){var N=H.data,K=H.animationCurve,$=H.animationFrame,j=H.rLevel;return N.map(function(ie,z){return{name:"agArc",index:j,animationCurve:K,animationFrame:$,shape:D(H,z),style:U(H,z)}})}function D(H,N){var K=H.data,$=H.center,j=H.endAngle,ie=K[N],z=ie.radius,q=ie.startAngle,V=ie.endAngle,Y=ie.localGradient;return Y&&(j=V),{rx:$[0],ry:$[1],r:z,startAngle:q,endAngle:V,gradientEndAngle:j}}function U(H,N){var K=H.data,$=H.dataItemStyle,j=K[N],ie=j.lineWidth,z=j.gradient;return z=z.map(function(q){return(0,l.getRgbaValue)(q)}),(0,A.deepMerge)({lineWidth:ie,gradient:z},$)}function O(H){var N=k(H);return N.map(function(K){var $=c({},K.shape);$.endAngle=K.shape.startAngle,K.shape=$}),N}function G(H,N){var K=H.style.gradient,$=K.length,j=N.style.gradient.length;if($>j)K.splice(j);else{var ie=K.slice(-1)[0];K.push.apply(K,(0,a.default)(new Array(j-$).fill(0).map(function(z){return(0,a.default)(ie)})))}}function X(H){var N=H.animationCurve,K=H.animationFrame,$=H.center,j=H.rLevel;return[{name:"polyline",index:j,visible:H.pointer.show,animationCurve:N,animationFrame:K,shape:te(H),style:ne(H),setGraphCenter:function(ie,z){z.style.graphCenter=$}}]}function te(H){var N=H.center;return{points:ye(N),close:!0}}function ne(H){var N=H.startAngle,K=H.endAngle,$=H.min,j=H.max,ie=H.data,z=H.pointer,q=H.center,V=z.valueIndex,Y=z.style,Z=ie[V]?ie[V].value:0,J=(Z-$)/(j-$)*(K-N)+N+Math.PI/2;return(0,A.deepMerge)({rotate:(0,A.radianToAngle)(J),scale:[1,1],graphCenter:q},Y)}function ye(H){var N=(0,n.default)(H,2),K=N[0],$=N[1],j=[K,$-40],ie=[K+5,$],z=[K,$+10],q=[K-5,$];return[j,ie,z,q]}function re(H){var N=H.startAngle,K=X(H)[0];return K.style.rotate=(0,A.radianToAngle)(N+Math.PI/2),[K]}function W(H){var N=H.detailsPosition,K=H.animationCurve,$=H.animationFrame,j=H.rLevel,ie=H.details.show;return N.map(function(z,q){return{name:"numberText",index:j,visible:ie,animationCurve:K,animationFrame:$,shape:ee(H,q),style:oe(H,q)}})}function ee(H,N){var K=H.detailsPosition,$=H.detailsContent,j=H.data,ie=H.details,z=K[N],q=$[N],V=j[N].value,Y=ie.valueToFixed;return{number:[V],content:q,position:z,toFixed:Y}}function oe(H,N){var K=H.details,$=H.data,j=K.style,ie=$[N].color;return(0,A.deepMerge)({fill:ie},j)}return Kv}var Wv={},rU;function dCe(){if(rU)return Wv;rU=1;var r=Vt;Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.legend=A;var e=r(ba()),t=r(on()),n=r(Xr()),a=oi(),i=Pr(),o=ii(),s=In();function A(E){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=k.legend;D?(D=(0,s.deepMerge)((0,i.deepClone)(o.legendConfig,!0),D),D=l(D),D=u(D,k,E),D=c(D,E),D=v(D,E),D=[D]):D=[],(0,a.doUpdate)({chart:E,series:D,key:"legendIcon",getGraphConfig:x}),(0,a.doUpdate)({chart:E,series:D,key:"legendText",getGraphConfig:L})}function l(E){var k=E.data;return E.data=k.map(function(D){var U=(0,n.default)(D);return U==="string"?{name:D}:U==="object"?D:{name:""}}),E}function u(E,k,D){var U=k.series,O=D.legendStatus,G=E.data.filter(function(X){var te=X.name,ne=U.find(function(ye){var re=ye.name;return te===re});return ne?(X.color||(X.color=ne.color),X.icon||(X.icon=ne.type),X):!1});return(!O||O.length!==E.data.length)&&(O=new Array(E.data.length).fill(!0)),G.forEach(function(X,te){return X.status=O[te]}),E.data=G,D.legendStatus=O,E}function c(E,k){var D=k.render.ctx,U=E.data,O=E.textStyle,G=E.textUnselectedStyle;return U.forEach(function(X){var te=X.status,ne=X.name;X.textWidth=f(D,ne,te?O:G)}),E}function f(E,k,D){return E.font=h(D),E.measureText(k).width}function h(E){var k=E.fontFamily,D=E.fontSize;return"".concat(D,"px ").concat(k)}function v(E,k){var D=E.orient;return D==="vertical"?B(E,k):d(E,k),E}function d(E,k){var D=E.iconHeight,U=E.itemGap,O=p(E,k),G=O.map(function(ne){return y(ne,E,k)}),X=m(E,k),te={textAlign:"left",textBaseline:"middle"};O.forEach(function(ne,ye){return ne.forEach(function(re){var W=re.iconPosition,ee=re.textPosition,oe=G[ye],H=X+ye*(U+D);re.iconPosition=w(W,[oe,H]),re.textPosition=w(ee,[oe,H]),re.align=te})})}function p(E,k){var D=E.data,U=E.iconWidth,O=k.render.area[0],G=0,X=[[]];return D.forEach(function(te,ne){var ye=g(G,ne,E),re=ye+U+5+te.textWidth;re>=O&&(G=ne,ye=g(G,ne,E),X.push([])),te.iconPosition=[ye,0],te.textPosition=[ye+U+5,0],X.slice(-1)[0].push(te)}),X}function g(E,k,D){var U=D.data,O=D.iconWidth,G=D.itemGap,X=U.slice(E,k);return(0,s.mulAdd)(X.map(function(te){var ne=te.textWidth;return ne}))+(k-E)*(G+5+O)}function y(E,k,D){var U=k.left,O=k.right,G=k.iconWidth,X=k.itemGap,te=D.render.area[0],ne=E.length,ye=(0,s.mulAdd)(E.map(function(W){var ee=W.textWidth;return ee}))+ne*(5+G)+(ne-1)*X,re=[U,O].findIndex(function(W){return W!=="auto"});return re===-1?(te-ye)/2:re===0?typeof U=="number"?U:parseInt(U)/100*te:(typeof O!="number"&&(O=parseInt(O)/100*te),te-(ye+O))}function m(E,k){var D=E.top,U=E.bottom,O=E.iconHeight,G=k.render.area[1],X=[D,U].findIndex(function(W){return W!=="auto"}),te=O/2;if(X===-1){var ne=k.gridArea,ye=ne.y,re=ne.h;return ye+re+45-te}else return X===0?typeof D=="number"?D-te:parseInt(D)/100*G-te:(typeof U!="number"&&(U=parseInt(U)/100*G),G-U-te)}function w(E,k){var D=(0,t.default)(E,2),U=D[0],O=D[1],G=(0,t.default)(k,2),X=G[0],te=G[1];return[U+X,O+te]}function B(E,k){var D=C(E,k),U=(0,t.default)(D,2),O=U[0],G=U[1],X=b(E,k);_(E,O);var te={textAlign:"left",textBaseline:"middle"};E.data.forEach(function(ne){var ye=ne.textPosition,re=ne.iconPosition;ne.textPosition=w(ye,[G,X]),ne.iconPosition=w(re,[G,X]),ne.align=te})}function C(E,k){var D=E.left,U=E.right,O=k.render.area[0],G=[D,U].findIndex(function(te){return te!=="auto"});if(G===-1)return[!0,O-10];var X=[D,U][G];return typeof X!="number"&&(X=parseInt(X)/100*O),[!!G,X]}function b(E,k){var D=E.iconHeight,U=E.itemGap,O=E.data,G=E.top,X=E.bottom,te=k.render.area[1],ne=O.length,ye=ne*D+(ne-1)*U,re=[G,X].findIndex(function(ee){return ee!=="auto"});if(re===-1)return(te-ye)/2;var W=[G,X][re];return typeof W!="number"&&(W=parseInt(W)/100*te),re===1&&(W=te-W-ye),W}function _(E,k){var D=E.data,U=E.iconWidth,O=E.iconHeight,G=E.itemGap,X=O/2;D.forEach(function(te,ne){var ye=te.textWidth,re=(O+G)*ne+X,W=k?0-U:0,ee=k?W-5-ye:U+5;te.iconPosition=[W,re],te.textPosition=[ee,re]})}function x(E,k){var D=E.data,U=E.selectAble,O=E.animationCurve,G=E.animationFrame,X=E.rLevel;return D.map(function(te,ne){return(0,e.default)({name:te.icon==="line"?"lineIcon":"rect",index:X,visible:E.show,hover:U,click:U,animationCurve:O,animationFrame:G,shape:S(E,ne),style:I(E,ne)},"click",P(E,ne,k))})}function S(E,k){var D=E.data,U=E.iconWidth,O=E.iconHeight,G=(0,t.default)(D[k].iconPosition,2),X=G[0],te=G[1],ne=O/2;return{x:X,y:te-ne,w:U,h:O}}function I(E,k){var D=E.data,U=E.iconStyle,O=E.iconUnselectedStyle,G=D[k],X=G.status,te=G.color,ne=X?U:O;return(0,s.deepMerge)({fill:te},ne)}function L(E,k){var D=E.data,U=E.selectAble,O=E.animationCurve,G=E.animationFrame,X=E.rLevel;return D.map(function(te,ne){return{name:"text",index:X,visible:E.show,hover:U,animationCurve:O,animationFrame:G,hoverRect:R(E,ne),shape:T(E,ne),style:M(E,ne),click:P(E,ne,k)}})}function T(E,k){var D=E.data[k],U=D.textPosition,O=D.name;return{content:O,position:U}}function M(E,k){var D=E.textStyle,U=E.textUnselectedStyle,O=E.data[k],G=O.status,X=O.align,te=G?D:U;return(0,s.deepMerge)((0,i.deepClone)(te,!0),X)}function R(E,k){var D=E.textStyle,U=E.textUnselectedStyle,O=E.data[k],G=O.status,X=(0,t.default)(O.textPosition,2),te=X[0],ne=X[1],ye=O.textWidth,re=G?D:U,W=re.fontSize;return[te,ne-W/2,ye,W]}function P(E,k,D){var U=E.data[k].name;return function(){var O=D.chart,G=O.legendStatus,X=O.option,te=!G[k],ne=X.series.find(function(ye){var re=ye.name;return re===U});ne.show=te,G[k]=te,D.chart.setOption(X)}}return Wv}var nU;function pCe(){return nU||(nU=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"mergeColor",{enumerable:!0,get:function(){return e.mergeColor}}),Object.defineProperty(r,"title",{enumerable:!0,get:function(){return t.title}}),Object.defineProperty(r,"grid",{enumerable:!0,get:function(){return n.grid}}),Object.defineProperty(r,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(r,"line",{enumerable:!0,get:function(){return i.line}}),Object.defineProperty(r,"bar",{enumerable:!0,get:function(){return o.bar}}),Object.defineProperty(r,"pie",{enumerable:!0,get:function(){return s.pie}}),Object.defineProperty(r,"radarAxis",{enumerable:!0,get:function(){return A.radarAxis}}),Object.defineProperty(r,"radar",{enumerable:!0,get:function(){return l.radar}}),Object.defineProperty(r,"gauge",{enumerable:!0,get:function(){return u.gauge}}),Object.defineProperty(r,"legend",{enumerable:!0,get:function(){return c.legend}});var e=iCe(),t=oCe(),n=sCe(),a=ACe(),i=lCe(),o=uCe(),s=cCe(),A=fCe(),l=hCe(),u=vCe(),c=dCe()}(MQ)),MQ}var aU;function gCe(){return aU||(aU=1,function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=e(Xr()),n=e(Zf()),a=e(ny),i=Pr(),o=pCe(),s=function A(l){if((0,n.default)(this,A),!l)return console.error("Charts Missing parameters!"),!1;var u=l.clientWidth,c=l.clientHeight,f=document.createElement("canvas");f.setAttribute("width",u),f.setAttribute("height",c),l.appendChild(f);var h={container:l,canvas:f,render:new a.default(f),option:null};Object.assign(this,h)};r.default=s,s.prototype.setOption=function(A){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!A||(0,t.default)(A)!=="object")return console.error("setOption Missing parameters!"),!1;l&&this.render.graphs.forEach(function(c){return c.animationEnd()});var u=(0,i.deepClone)(A,!0);(0,o.mergeColor)(this,u),(0,o.grid)(this,u),(0,o.axis)(this,u),(0,o.radarAxis)(this,u),(0,o.title)(this,u),(0,o.bar)(this,u),(0,o.line)(this,u),(0,o.pie)(this,u),(0,o.radar)(this,u),(0,o.gauge)(this,u),(0,o.legend)(this,u),this.option=A,this.render.launchAnimation()},s.prototype.resize=function(){var A=this.container,l=this.canvas,u=this.render,c=this.option,f=A.clientWidth,h=A.clientHeight;l.setAttribute("width",f),l.setAttribute("height",h),u.area=[f,h],this.setOption(c)}}(SQ)),SQ}(function(r){var e=Vt;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"changeDefaultConfig",{enumerable:!0,get:function(){return n.changeDefaultConfig}}),r.default=void 0;var t=e(gCe()),n=ii(),a=t.default;r.default=a})(fV);const pV=sV(fV),yCe={__name:"index",props:{option:{type:Object,default:()=>({})}},setup(r){const e=r,t=Ee(null),n=Ee(null);let a=It({});yt(n,s,i),Et(()=>e.option,()=>{a&&a.setOption(e.option,!0)},{deep:!0});function i(){o()}function o(){a=new pV(n.value),e.option&&a.setOption(e.option)}function s(){a&&a.resize()}return(A,l)=>(he(),de("div",{ref_key:"chartsContainerRef",ref:t,class:"dv-charts-container"},[ae("div",{ref_key:"chartRef",ref:n,class:"charts-canvas-container"},null,512)],512))}},iU={install(r){r.component("DvCharts",yCe)}},mCe={class:"dv-capsule-chart"},wCe={class:"label-column"},BCe={class:"capsule-container"},CCe={key:0,class:"capsule-item-value"},bCe={class:"unit-label"},xCe={key:0,class:"unit-text"},_Ce={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(r){Tf(A=>({"1b634ae3":Q(a),"63348aba":Q(n)}));const e=r,t=It({defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1,textColor:"#fff",fontSize:12,labelNum:6},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]});Et(()=>e.config,()=>{i()},{deep:!0});const n=rt(()=>`${e.config.fontSize?e.config.fontSize:t.defaultConfig.fontSize}px`),a=rt(()=>e.config.textColor?e.config.textColor:t.defaultConfig.textColor);function i(){o(),s()}function o(){t.mergedConfig=Bt(_t(t.defaultConfig),e.config||{})}function s(){const{data:A,labelNum:l}=t.mergedConfig;if(!A.length||A.length===0){t.labelData=[],t.capsuleLength=[];return}const u=A.map(({value:v})=>v),c=Math.max(...u);t.capsuleValue=u,t.capsuleLength=u.map(v=>c?v/c:0);const f=c/5,h=Array.from(new Set(Array.from({length:l}).fill(0).map((v,d)=>Math.ceil(d*f))));t.labelData=h,t.labelDataLength=Array.from(h).map(v=>c?v/c:0)}return St(()=>{i()}),(A,l)=>(he(),de("div",mCe,[Q(t).mergedConfig?(he(),de(lt,{key:0},[ae("div",wCe,[(he(!0),de(lt,null,dt(Q(t).mergedConfig.data,u=>(he(),de("div",{key:u.name},Dt(u.name),1))),128)),l[0]||(l[0]=ae("div",null," ",-1))]),ae("div",BCe,[(he(!0),de(lt,null,dt(Q(t).capsuleLength,(u,c)=>(he(),de("div",{key:c,class:"capsule-item"},[ae("div",{class:"capsule-item-column",style:qt(`width: ${u*100}%; background-color: ${Q(t).mergedConfig.colors[c%Q(t).mergedConfig.colors.length]};`)},[Q(t).mergedConfig.showValue?(he(),de("div",CCe,Dt(Q(t).capsuleValue[c]),1)):pt("",!0)],4)]))),128)),ae("div",bCe,[(he(!0),de(lt,null,dt(Q(t).labelData,(u,c)=>(he(),de("div",{key:u+c},Dt(u),1))),128))])]),Q(t).mergedConfig.unit?(he(),de("div",xCe,Dt(Q(t).mergedConfig.unit),1)):pt("",!0)],64)):pt("",!0)]))}},oU={install(r){r.component("DvCapsuleChart",_Ce)}},SCe={class:"dv-digital-flop"},gV={__name:"index",props:{config:{type:Object,default:()=>{}}},setup(r){const e=r,t=Ee(null),n=It({renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null});Et(()=>e.config,()=>{u()},{deep:!0}),St(()=>{a()});function a(){i(),o(),s()}function i(){n.renderer=new cV(t.value)}function o(){n.mergedConfig=Bt(_t(n.defaultConfig),e.config||{})}function s(){const f=A(),h=l();n.graph=n.renderer.add({name:"numberText",animationCurve:n.mergedConfig.animationCurve,animationFrame:n.mergedConfig.animationFrame,shape:f,style:h})}function A(){const{number:f,content:h,toFixed:v,textAlign:d,rowGap:p,formatter:g}=n.mergedConfig,[y,m]=n.renderer.area,w=[y/2,m/2];return d==="left"&&(w[0]=0),d==="right"&&(w[0]=y),{number:f,content:h,toFixed:v,position:w,rowGap:p,formatter:g}}function l(){const{style:f,textAlign:h}=n.mergedConfig;return Bt(f,{textAlign:h,textBaseline:"middle"})}function u(){if(n.graph.animationEnd(),o(),!n.graph)return;const{animationCurve:f,animationFrame:h}=n.mergedConfig,v=A(),d=l();c(n.graph,v),n.graph.animationCurve=f,n.graph.animationFrame=h,n.graph.animation("style",d,!0),n.graph.animation("shape",v)}function c(f,h){const v=f.shape.number.length,d=h.number.length;v!==d&&(f.shape.number=h.number)}return(f,h)=>(he(),de("div",SCe,[ae("canvas",{ref_key:"digitalFlop",ref:t},null,512)]))}},TCe={class:"dv-active-ring-chart"},ICe={class:"active-ring-info"},LCe={key:0},ECe={__name:"index",props:{config:{type:Object,default:()=>({})},isDigitalFlop:{type:Boolean,default:!0}},setup(r){Tf(g=>({"18d51787":Q(l)}));const e=r,t=Ee(null),n=It({defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],textColor:"#fff",digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,numToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}),a=rt(()=>{if(!n.mergedConfig)return 0;const{data:g,showOriginValue:y}=n.mergedConfig,m=g.map(({value:B})=>B);let w;if(y)w=m[n.activeIndex];else{const B=m.reduce((C,b)=>C+b,0);w=Number.parseFloat(m[n.activeIndex]/B*100)||0}return w}),i=rt(()=>{if(!n.mergedConfig)return a.value.toFixed(n.defaultConfig.numToFixed);const{numToFixed:g,showOriginValue:y}=n.mergedConfig;return`${y?a.value.toFixed(g):`${a.value.toFixed(g)}%`}`}),o=rt(()=>{if(!n.mergedConfig)return{};const{digitalFlopStyle:g,digitalFlopToFixed:y,showOriginValue:m,digitalFlopUnit:w}=n.mergedConfig;return{content:m?`{nt}${w}`:`{nt}${w||"%"}`,number:[a.value],style:g,toFixed:y}}),s=rt(()=>n.mergedConfig?n.mergedConfig.data[n.activeIndex].name:""),A=rt(()=>n.mergedConfig?`font-size: ${n.mergedConfig.digitalFlopStyle.fontSize}px;`:""),l=rt(()=>e.config.textColor?e.config.textColor:n.defaultConfig.textColor);Et(()=>e.config,()=>{clearTimeout(n.animationHandler),n.activeIndex=0,f(),h()},{deep:!0}),St(()=>{u()}),Qo(()=>{clearTimeout(n.animationHandler)});function u(){c(),f(),h()}function c(){n.chart=new pV(t.value)}function f(){n.mergedConfig=Bt(_t(n.defaultConfig),e.config||{})}function h(){const g=v();n.chart.setOption(g,!0),p()}function v(){const g=d();return n.mergedConfig.data.forEach(y=>{y.radius=g}),{series:[{type:"pie",...n.mergedConfig,outsideLabel:{show:!1}}],color:n.mergedConfig.color}}function d(g=!1){const{radius:y,activeRadius:m,lineWidth:w}=n.mergedConfig,B=Math.min(...n.chart.render.area)/2,C=w/2;let b=g?m:y;typeof b!="number"&&(b=Number.parseInt(b)/100*B);const _=b-C,x=b+C;return[_,x]}function p(){const g=d(),y=d(!0),m=v(),{data:w}=m.series[0];w.forEach((C,b)=>{b===n.activeIndex?C.radius=y:C.radius=g}),n.chart.setOption(m,!0);const{activeTimeGap:B}=m.series[0];n.animationHandler=setTimeout(()=>{n.activeIndex+=1,n.activeIndex>=w.length&&(n.activeIndex=0),p()},B)}return(g,y)=>(he(),de("div",TCe,[ae("div",{ref_key:"activeRingChart",ref:t,class:"active-ring-chart-container"},null,512),ae("div",ICe,[r.isDigitalFlop?(he(),de("div",LCe,[se(gV,{config:Q(o)},null,8,["config"])])):(he(),de("div",{key:1,class:"active-ring-name",style:qt(Q(A))},Dt(Q(i)),5)),ae("div",{class:"active-ring-name",style:qt(Q(A))},Dt(Q(s)),5)])]))}},sU={install(r){r.component("DvActiveRingChart",ECe)}},AU={install(r){r.component("DvDigitalFlop",gV)}},MCe=vt({__name:"index",setup(r){const e=Ee(null),t=It({allWidth:0,scale:0,datavRoot:"",ready:!1});function n(){const{width:s,height:A}=screen;t.allWidth=s,e.value&&(e.value.style.width=`${s}px`,e.value.style.height=`${A}px`)}function a(){const s=document.body.clientWidth;e.value&&(e.value.style.transform=`scale(${s/t.allWidth})`)}function i(){a()}function o(){n(),a(),t.ready=!0}return yt(e,i,o),(s,A)=>(he(),de("div",{id:"dv-full-screen-container",ref_key:"fullScreenContainer",ref:e},[Q(t).ready?Ft(s.$slots,"default",{key:0}):pt("",!0)],512))}}),lU={install(r){r.component("DvFullScreenContainer",MCe)}},DCe=["width","height"],FCe=["fill","x","y","width","height"],QCe=["values","begin"],UCe=["fill","x","y","width","height"],PCe=["values"],kCe=["values"],RCe=["values"],OCe=["values"],HCe=["fill","x","y","height"],NCe=["values"],VCe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It([200,50]),a=Ee(4),i=Ee(20),o=Ee(2.5),s=Ee(o.value/2),A=It(["#fff","#0de7c2"]),l=It({mergedColor:[],rects:[],points:[],svgScale:[1,1]});function u(){g()}function c(){g()}const{width:f,height:h}=yt(t,u,c);function v(){const[m,w]=n,B=m/(i.value+1),C=w/(a.value+1),b=Array.from({length:a.value}).fill(0).map((_,x)=>Array.from({length:i.value}).fill(0).map((S,I)=>[B*(I+1),C*(x+1)]));l.points=b.reduce((_,x)=>[..._,...x],[])}function d(){const m=l.points[i.value*2-1],w=l.points[i.value*2-3];l.rects=[m,w]}function p(){const[m,w]=n;l.svgScale=[f.value/m,h.value/w]}function g(){v(),d(),p()}function y(){l.mergedColor=Bt(_t(A),e.color||[])}return Et(()=>e.color,()=>{y()},{deep:!0}),St(()=>{y()}),(m,w)=>(he(),de("div",{ref_key:"dvDecoration1",ref:t,class:"dv-decoration-1"},[(he(),de("svg",{width:`${Q(n)[0]}px`,height:`${Q(n)[1]}px`,style:qt(`transform:scale(${Q(l).svgScale[0]}, ${Q(l).svgScale[1]});`)},[(he(!0),de(lt,null,dt(Q(l).points,B=>(he(),de(lt,{key:B},[Math.random()>.6?(he(),de("rect",{key:0,fill:Q(l).mergedColor[0],x:B[0]-Q(s),y:B[1]-Q(s),width:Q(o),height:Q(o)},[Math.random()>.6?(he(),de("animate",{key:0,attributeName:"fill",values:`${Q(l).mergedColor[0]};transparent`,dur:"1s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,QCe)):pt("",!0)],8,FCe)):pt("",!0)],64))),128)),Q(l).rects[0]?(he(),de("rect",{key:0,fill:Q(l).mergedColor[1],x:Q(l).rects[0][0]-Q(o),y:Q(l).rects[0][1]-Q(o),width:Q(o)*2,height:Q(o)*2},[ae("animate",{attributeName:"width",values:`0;${Q(o)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,PCe),ae("animate",{attributeName:"height",values:`0;${Q(o)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,kCe),ae("animate",{attributeName:"x",values:`${Q(l).rects[0][0]};${Q(l).rects[0][0]-Q(o)}`,dur:"2s",repeatCount:"indefinite"},null,8,RCe),ae("animate",{attributeName:"y",values:`${Q(l).rects[0][1]};${Q(l).rects[0][1]-Q(o)}`,dur:"2s",repeatCount:"indefinite"},null,8,OCe)],8,UCe)):pt("",!0),Q(l).rects[1]?(he(),de("rect",{key:1,fill:Q(l).mergedColor[1],x:Q(l).rects[1][0]-40,y:Q(l).rects[1][1]-Q(o),width:40,height:Q(o)*2},[w[0]||(w[0]=ae("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null,-1)),ae("animate",{attributeName:"x",values:`${Q(l).rects[1][0]};${Q(l).rects[1][0]-40};${Q(l).rects[1][0]}`,dur:"2s",repeatCount:"indefinite"},null,8,NCe)],8,HCe)):pt("",!0)],12,DCe))],512))}}),uU={install(r){r.component("DvDecoration1",VCe)}},GCe=["width","height"],zCe=["x","y","width","height","fill"],$Ce=["attributeName","to","dur"],KCe=["x","y","fill"],WCe=["attributeName","to","dur"],XCe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},setup(r){const e=r,t=Ee(null),n=It({x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]});function a(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}function i(){l()}function o(){l()}const{width:s,height:A}=yt(t,i,o);function l(){e.reverse?(n.w=1,n.h=A.value,n.x=s.value/2,n.y=0):(n.w=s.value,n.h=1,n.x=0,n.y=A.value/2)}return Et(()=>e.color,()=>{a()},{deep:!0}),Et(()=>e.reverse,()=>{l()}),St(()=>{a()}),(u,c)=>(he(),de("div",{ref_key:"decoration2",ref:t,class:"dv-decoration-2"},[(he(),de("svg",{width:`${Q(s)}px`,height:`${Q(A)}px`},[ae("rect",{x:Q(n).x,y:Q(n).y,width:Q(n).w,height:Q(n).h,fill:Q(n).mergedColor[0]},[ae("animate",{attributeName:r.reverse?"height":"width",from:"0",to:r.reverse?Q(A):Q(s),dur:`${r.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null,8,$Ce)],8,zCe),ae("rect",{x:Q(n).x,y:Q(n).y,width:"1",height:"1",fill:Q(n).mergedColor[1]},[ae("animate",{attributeName:r.reverse?"y":"x",from:"0",to:r.reverse?Q(A):Q(s),dur:`${r.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null,8,WCe)],8,KCe)],8,GCe))],512))}}),cU={install(r){r.component("DvDecoration2",XCe)}},YCe=["width","height"],ZCe=["fill","x","y"],jCe=["values","dur","begin"],Xv=7,JCe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It({svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:Xv,halfPointSideLength:Xv/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]});function a(){const[f,h]=n.svgWH,v=f/(n.rowPoints+1),d=h/(n.rowNum+1),p=Array.from({length:n.rowNum}).fill(0).map((g,y)=>Array.from({length:n.rowPoints}).fill(0).map((m,w)=>[v*(w+1),d*(y+1)]));n.points=p.reduce((g,y)=>[...g,...y],[])}function i(){o()}function o(){a(),u()}function s(){o()}const{width:A,height:l}=yt(t,s,i);function u(){const[f,h]=n.svgWH;n.svgScale=[A.value/f,l.value/h]}function c(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return Et(()=>e.color,()=>{c()},{deep:!0}),St(()=>{c()}),(f,h)=>(he(),de("div",{ref_key:"decoration3",ref:t,class:"dv-decoration-3"},[(he(),de("svg",{width:`${Q(n).svgWH[0]}px`,height:`${Q(n).svgWH[1]}px`,style:qt(`transform:scale(${Q(n).svgScale[0]},${Q(n).svgScale[1]});`)},[(he(!0),de(lt,null,dt(Q(n).points,v=>(he(),de("rect",{key:v,fill:Q(n).mergedColor[0],x:v[0]-Q(n).halfPointSideLength,y:v[1]-Q(n).halfPointSideLength,width:Xv,height:Xv},[Math.random()>.6?(he(),de("animate",{key:0,attributeName:"fill",values:`${Q(n).mergedColor.join(";")}`,dur:`${Math.random()+1}s`,begin:Math.random()*2,repeatCount:"indefinite"},null,8,jCe)):pt("",!0)],8,ZCe))),128))],12,YCe))],512))}}),fU={install(r){r.component("DvDecoration3",JCe)}},qCe=["width","height"],ebe=["stroke","points"],tbe=["stroke","points"],rbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},setup(r){const e=r,t=Ee(null),n=It({defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]});function a(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}const{width:i,height:o}=yt(t);return Et(()=>e.color,()=>{a()},{deep:!0}),St(()=>{a()}),(s,A)=>(he(),de("div",{ref_key:"decoration3",ref:t,class:"dv-decoration-4"},[ae("div",{class:nC(`container ${r.reverse?"reverse":"normal"}`),style:qt(r.reverse?`width:${Q(i)}px;height:5px;animation-duration:${r.dur}s`:`width:5px;height:${Q(o)}px;animation-duration:${r.dur}s`)},[(he(),de("svg",{width:r.reverse?Q(i):5,height:r.reverse?5:Q(o)},[ae("polyline",{stroke:Q(n).mergedColor[0],points:r.reverse?`0, 2.5 ${Q(i)}, 2.5`:`2.5, 0 2.5, ${Q(o)}`},null,8,ebe),ae("polyline",{class:"bold-line",stroke:Q(n).mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:r.reverse?`0, 2.5 ${Q(i)}, 2.5`:`2.5, 0 2.5, ${Q(o)}`},null,8,tbe)],8,qCe))],6)],512))}}),hU={install(r){r.component("DvDecoration4",rbe)}},nbe=["width","height"],abe=["stroke","points"],ibe=["from","to","dur"],obe=["stroke","points"],sbe=["from","to","dur"],Abe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:1.2}},setup(r){const e=r,t=Ee(null),n=It({line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});function a(){A()}function i(){A()}const{width:o,height:s}=yt(t,i,a);function A(){const u=[{x:0,y:s.value*.2},{x:o.value*.18,y:s.value*.2},{x:o.value*.2,y:s.value*.4},{x:o.value*.25,y:s.value*.4},{x:o.value*.27,y:s.value*.6},{x:o.value*.72,y:s.value*.6},{x:o.value*.75,y:s.value*.4},{x:o.value*.8,y:s.value*.4},{x:o.value*.82,y:s.value*.2},{x:o.value,y:s.value*.2}],c=[{x:o.value*.3,y:s.value*.8},{x:o.value*.7,y:s.value*.8}],f=hF(u),h=hF(c);n.line1Points=vF(u),n.line2Points=vF(c),n.line1Length=f,n.line2Length=h}function l(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return Et(()=>e.color,()=>{l()},{deep:!0}),St(()=>{l()}),(u,c)=>(he(),de("div",{ref_key:"decoration5",ref:t,class:"dv-decoration-5"},[(he(),de("svg",{width:Q(o),height:Q(s)},[ae("polyline",{fill:"transparent",stroke:Q(n).mergedColor[0],"stroke-width":"3",points:Q(n).line1Points},[ae("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${Q(n).line1Length/2}, 0, ${Q(n).line1Length/2}`,to:`0, 0, ${Q(n).line1Length}, 0`,dur:`${r.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null,8,ibe)],8,abe),ae("polyline",{fill:"transparent",stroke:Q(n).mergedColor[1],"stroke-width":"2",points:Q(n).line2Points},[ae("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${Q(n).line2Length/2}, 0, ${Q(n).line2Length/2}`,to:`0, 0, ${Q(n).line2Length}, 0`,dur:`${r.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null,8,sbe)],8,obe)],8,nbe))],512))}}),vU={install(r){r.component("DvDecoration5",Abe)}},lbe=["width","height"],ube=["fill","x","y","height"],cbe=["values","dur"],fbe=["values","dur"],lw=7,hbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It({svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:lw,halfRectWidth:lw/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]});Et(()=>e.color,()=>{c()},{deep:!0}),St(()=>{c()});const{width:a,height:i}=yt(t,u,o);function o(){s()}function s(){A(),l()}function A(){const[f,h]=n.svgWH,v=f/(n.rowPoints+1),d=h/(n.rowNum+1),p=Array.from({length:n.rowNum}).fill(0).map((y,m)=>Array.from({length:n.rowPoints}).fill(0).map((w,B)=>[v*(B+1),d*(m+1)]));n.points=p.reduce((y,m)=>[...y,...m],[]);const g=n.heights=Array.from({length:n.rowNum*n.rowPoints}).fill(0).map(()=>Math.random()>.8?_f(.7*h,h):_f(.2*h,.5*h));n.minHeights=Array.from({length:n.rowNum*n.rowPoints}).fill(0).map((y,m)=>g[m]*Math.random()),n.randoms=Array.from({length:n.rowNum*n.rowPoints}).fill(0).map(()=>Math.random()+1.5)}function l(){const[f,h]=n.svgWH;n.svgScale=[a.value/f,i.value/h]}function u(){s()}function c(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return(f,h)=>(he(),de("div",{ref_key:"decoration6",ref:t,class:"dv-decoration-6"},[(he(),de("svg",{width:`${Q(n).svgWH[0]}px`,height:`${Q(n).svgWH[1]}px`,style:qt(`transform:scale(${Q(n).svgScale[0]},${Q(n).svgScale[1]});`)},[(he(!0),de(lt,null,dt(Q(n).points,(v,d)=>(he(),de("rect",{key:d,fill:Q(n).mergedColor[Math.random()>.5?0:1],x:v[0]-Q(n).halfRectWidth,y:v[1]-Q(n).heights[d]/2,width:lw,height:Q(n).heights[d]},[ae("animate",{attributeName:"y",values:`${v[1]-Q(n).minHeights[d]/2};${v[1]-Q(n).heights[d]/2};${v[1]-Q(n).minHeights[d]/2}`,dur:`${Q(n).randoms[d]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,cbe),ae("animate",{attributeName:"height",values:`${Q(n).minHeights[d]};${Q(n).heights[d]};${Q(n).minHeights[d]}`,dur:`${Q(n).randoms[d]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,fbe)],8,ube))),128))],12,lbe))],512))}}),dU={install(r){r.component("DvDecoration6",hbe)}},vbe={class:"dv-decoration-7"},dbe={width:"21px",height:"20px"},pbe=["stroke"],gbe=["stroke"],ybe={width:"21px",height:"20px"},mbe=["stroke"],wbe=["stroke"],Bbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=It({defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]});Et(()=>e.color,()=>{n()},{deep:!0}),St(()=>{n()});function n(){t.mergedColor=Bt(_t(t.defaultColor),e.color||[])}return(a,i)=>(he(),de("div",vbe,[(he(),de("svg",dbe,[ae("polyline",{"stroke-width":"4",fill:"transparent",stroke:Q(t).mergedColor[0],points:"10, 0 19, 10 10, 20"},null,8,pbe),ae("polyline",{"stroke-width":"2",fill:"transparent",stroke:Q(t).mergedColor[1],points:"2, 0 11, 10 2, 20"},null,8,gbe)])),Ft(a.$slots,"default"),(he(),de("svg",ybe,[ae("polyline",{"stroke-width":"4",fill:"transparent",stroke:Q(t).mergedColor[0],points:"11, 0 2, 10 11, 20"},null,8,mbe),ae("polyline",{"stroke-width":"2",fill:"transparent",stroke:Q(t).mergedColor[1],points:"19, 0 10, 10 19, 20"},null,8,wbe)]))]))}}),pU={install(r){r.component("DvDecoration7",Bbe)}},Cbe=["width","height"],bbe=["stroke","points"],xbe=["stroke","points"],_be=["stroke","points"],Sbe=vt({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1}},setup(r){const e=r,t=Ee(null),n=It({defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});Et(()=>e.color,()=>{s()},{deep:!0}),St(()=>{s()});const{width:a,height:i}=yt(t);function o(A){return e.reverse?a.value-A:A}function s(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return(A,l)=>(he(),de("div",{ref_key:"decoration8",ref:t,class:"dv-decoration-8"},[(he(),de("svg",{width:Q(a),height:Q(i)},[ae("polyline",{stroke:Q(n).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${o(0)}, 0 ${o(30)}, ${Q(i)/2}`},null,8,bbe),ae("polyline",{stroke:Q(n).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${o(20)}, 0 ${o(50)}, ${Q(i)/2} ${o(Q(a))}, ${Q(i)/2}`},null,8,xbe),ae("polyline",{stroke:Q(n).mergedColor[1],fill:"transparent","stroke-width":"3",points:`${o(0)}, ${Q(i)-3}, ${o(200)}, ${Q(i)-3}`},null,8,_be)],8,Cbe))],512))}}),gU={install(r){r.component("DvDecoration8",Sbe)}},Tbe=["width","height"],Ibe=["id"],Lbe=["stroke"],Ebe=["dur"],Mbe=["stroke"],Dbe=["dur"],Fbe=["stroke"],Qbe=["xlink:href","stroke","fill"],Ube=["dur","begin"],Pbe=["stroke"],kbe={__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:3}},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({polygonId:`decoration-9-polygon-${t}`,svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]});Et(()=>e.color,()=>{u()},{deep:!0}),St(()=>{u()});const{width:i,height:o}=yt(n,l,s);function s(){A()}function A(){const[c,f]=a.svgWH;a.svgScale=[i.value/c,o.value/f]}function l(){A()}function u(){a.mergedColor=Bt(_t(a.defaultColor),e.color||[])}return(c,f)=>(he(),de("div",{ref_key:"decoration9",ref:n,class:"dv-decoration-9"},[(he(),de("svg",{width:`${Q(a).svgWH[0]}px`,height:`${Q(a).svgWH[1]}px`,style:qt(`transform:scale(${Q(a).svgScale[0]},${Q(a).svgScale[1]});`)},[ae("defs",null,[ae("polygon",{id:Q(a).polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null,8,Ibe)]),ae("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:Q(a).mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${r.dur}s`,repeatCount:"indefinite"},null,8,Ebe)],8,Lbe),ae("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:Q(a).mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${r.dur}s`,repeatCount:"indefinite"},null,8,Dbe)],8,Mbe),ae("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:Q(br)(Q(a).mergedColor[1]||Q(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,Fbe),(he(!0),de(lt,null,dt(new Array(20).fill(0),(h,v)=>(he(),de("use",{key:v,"xlink:href":`#${Q(a).polygonId}`,stroke:Q(a).mergedColor[1],fill:Math.random()>.4?"transparent":Q(a).mergedColor[0]},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${r.dur}s`,begin:`${v*r.dur/20}s`,repeatCount:"indefinite"},null,8,Ube)],8,Qbe))),128)),ae("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:Q(br)(Q(a).mergedColor[1]||Q(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,Pbe)],12,Tbe)),Ft(c.$slots,"default")],512))}},yU={install(r){r.component("DvDecoration9",kbe)}},Rbe=["width","height"],Obe=["stroke","points"],Hbe=["stroke","points","stroke-dasharray"],Nbe=["id","values","begin"],Vbe=["values","begin"],Gbe=["stroke","points","stroke-dasharray"],zbe=["id","values","begin"],$be=["values","begin"],Kbe=["stroke","points","stroke-dasharray"],Wbe=["id","values","begin"],Xbe=["values","begin"],Ybe=["cy","fill"],Zbe=["id","values","begin"],jbe=["cx","cy","fill"],Jbe=["id","values","begin"],qbe=["values","begin"],exe=["cx","cy","fill"],txe=["id","values","begin"],rxe=["values","begin"],nxe=["cx","cy","fill"],axe=["id","values","begin"],ixe=["values","begin"],oxe=vt({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ca(),n=Ee(null),a=It({animationId1:`d10ani1${t}`,animationId2:`d10ani2${t}`,animationId3:`d10ani3${t}`,animationId4:`d10ani4${t}`,animationId5:`d10ani5${t}`,animationId6:`d10ani6${t}`,animationId7:`d10ani7${t}`,defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}),{width:i,height:o}=yt(n);Et(()=>e.color,()=>{s()},{deep:!0}),St(()=>{s()});function s(){a.mergedColor=Bt(_t(a.defaultColor),e.color||[])}return(A,l)=>(he(),de("div",{ref_key:"decoration10",ref:n,class:"dv-decoration-10"},[(he(),de("svg",{width:Q(i),height:Q(o)},[ae("polyline",{stroke:Q(a).mergedColor[1],"stroke-width":"2",points:`0, ${Q(o)/2} ${Q(i)}, ${Q(o)/2}`},null,8,Obe),ae("polyline",{stroke:Q(a).mergedColor[0],"stroke-width":"2",points:`5, ${Q(o)/2} ${Q(i)*.2-3}, ${Q(o)/2}`,"stroke-dasharray":`0, ${Q(i)*.2}`,fill:"freeze"},[ae("animate",{id:Q(a).animationId2,attributeName:"stroke-dasharray",values:`0, ${Q(i)*.2};${Q(i)*.2}, 0;`,dur:"3s",begin:`${Q(a).animationId1}.end`,fill:"freeze"},null,8,Nbe),ae("animate",{attributeName:"stroke-dasharray",values:`${Q(i)*.2}, 0;0, ${Q(i)*.2}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,Vbe)],8,Hbe),ae("polyline",{stroke:Q(a).mergedColor[0],"stroke-width":"2",points:`${Q(i)*.2+3}, ${Q(o)/2} ${Q(i)*.8-3}, ${Q(o)/2}`,"stroke-dasharray":`0, ${Q(i)*.6}`},[ae("animate",{id:Q(a).animationId4,attributeName:"stroke-dasharray",values:`0, ${Q(i)*.6};${Q(i)*.6}, 0`,dur:"3s",begin:`${Q(a).animationId3}.end + 1s`,fill:"freeze"},null,8,zbe),ae("animate",{attributeName:"stroke-dasharray",values:`${Q(i)*.6}, 0;0, ${Q(i)*.6}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,$be)],8,Gbe),ae("polyline",{stroke:Q(a).mergedColor[0],"stroke-width":"2",points:`${Q(i)*.8+3}, ${Q(o)/2} ${Q(i)-5}, ${Q(o)/2}`,"stroke-dasharray":`0, ${Q(i)*.2}`},[ae("animate",{id:Q(a).animationId6,attributeName:"stroke-dasharray",values:`0, ${Q(i)*.2};${Q(i)*.2}, 0`,dur:"3s",begin:`${Q(a).animationId5}.end + 1s`,fill:"freeze"},null,8,Wbe),ae("animate",{attributeName:"stroke-dasharray",values:`${Q(i)*.2}, 0;0, ${Q(i)*.3}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,Xbe)],8,Kbe),ae("circle",{cx:"2",cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId1,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`0s;${Q(a).animationId7}.end`,dur:"0.3s",fill:"freeze"},null,8,Zbe)],8,Ybe),ae("circle",{cx:Q(i)*.2,cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId3,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`${Q(a).animationId2}.end`,dur:"0.3s",fill:"freeze"},null,8,Jbe),ae("animate",{attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[1]}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,qbe)],8,jbe),ae("circle",{cx:Q(i)*.8,cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId5,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`${Q(a).animationId4}.end`,dur:"0.3s",fill:"freeze"},null,8,txe),ae("animate",{attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[1]}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,rxe)],8,exe),ae("circle",{cx:Q(i)-2,cy:Q(o)/2,r:"2",fill:Q(a).mergedColor[1]},[ae("animate",{id:Q(a).animationId7,attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[0]}`,begin:`${Q(a).animationId6}.end`,dur:"0.3s",fill:"freeze"},null,8,axe),ae("animate",{attributeName:"fill",values:`${Q(a).mergedColor[1]};${Q(a).mergedColor[1]}`,dur:"0.01s",begin:`${Q(a).animationId7}.end`,fill:"freeze"},null,8,ixe)],8,nxe)],8,Rbe))],512))}}),mU={install(r){r.component("DvDecoration10",oxe)}},sxe=["width","height"],Axe=["fill","stroke"],lxe=["fill","stroke","points"],uxe=["fill","stroke","points"],cxe=["fill","stroke","points"],fxe=["fill","stroke","points"],hxe=["stroke","points"],vxe=["stroke","points"],dxe={class:"decoration-content"},pxe={__name:"index",props:{color:{type:Array,default:()=>[]}},setup(r){const e=r,t=Ee(null),n=It({defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}),{width:a,height:i}=yt(t);Et(()=>e.color,()=>{o()},{deep:!0}),St(()=>{o()});function o(){n.mergedColor=Bt(_t(n.defaultColor),e.color||[])}return(s,A)=>(he(),de("div",{ref_key:"decoration11",ref:t,class:"dv-decoration-11"},[(he(),de("svg",{width:Q(a),height:Q(i)},[ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:"20 10, 25 4, 55 4 60 10"},null,8,Axe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:`20 ${Q(i)-10}, 25 ${Q(i)-4}, 55 ${Q(i)-4} 60 ${Q(i)-10}`},null,8,lxe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:`${Q(a)-20} 10, ${Q(a)-25} 4, ${Q(a)-55} 4 ${Q(a)-60} 10`},null,8,uxe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[1]||Q(n).defaultColor[1],10),stroke:Q(n).mergedColor[1],points:`${Q(a)-20} ${Q(i)-10}, ${Q(a)-25} ${Q(i)-4}, ${Q(a)-55} ${Q(i)-4} ${Q(a)-60} ${Q(i)-10}`},null,8,cxe),ae("polygon",{fill:Q(br)(Q(n).mergedColor[0]||Q(n).defaultColor[0],20),stroke:Q(n).mergedColor[0],points:`
20 10, 5 ${Q(i)/2} 20 ${Q(i)-10}
${Q(a)-20} ${Q(i)-10} ${Q(a)-5} ${Q(i)/2} ${Q(a)-20} 10
`},null,8,fxe),ae("polyline",{fill:"transparent",stroke:Q(br)(Q(n).mergedColor[0]||Q(n).defaultColor[0],70),points:`25 18, 15 ${Q(i)/2} 25 ${Q(i)-18}`},null,8,hxe),ae("polyline",{fill:"transparent",stroke:Q(br)(Q(n).mergedColor[0]||Q(n).defaultColor[0],70),points:`${Q(a)-25} 18, ${Q(a)-15} ${Q(i)/2} ${Q(a)-25} ${Q(i)-18}`},null,8,vxe)],8,sxe)),ae("div",dxe,[Ft(s.$slots,"default")])],512))}},wU={install(r){r.component("DvDecoration11",pxe)}},gxe=["width","height"],yxe=["id"],mxe=["stroke","stroke-width","d"],wxe=["id"],Bxe=["stop-color"],Cxe=["r","cx","cy","stroke"],bxe=["cx","cy","fill"],xxe=["values","dur"],_xe=["dur"],Sxe=["cx","cy","fill"],Txe={key:0},Ixe=["points","stroke"],Lxe=["d","stroke"],Exe=["xlink:href"],Mxe=["values","dur"],Dxe={class:"decoration-content"},Fxe={__name:"index",props:{color:{type:Array,default:()=>[]},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},setup(r){const e=r,t=Ca(),n=Ee(null),{width:a,height:i}=yt(n,()=>{},p),o=It({gId:`decoration-12-g-${t}`,gradientId:`decoration-12-gradient-${t}`,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}),s=rt(()=>a.value/2),A=rt(()=>i.value/2);Et(()=>e.color,()=>{u(),f()},{deep:!0});function l(){u(),c(),f(),h(),v(),d()}function u(){o.mergedColor=Bt(_t(o.defaultColor),e.color||[])}function c(){const g=-Math.PI/2,y=o.sectorAngle/o.segment,m=a.value/4;let w=tl(s.value,A.value,m,g);o.pathD=Array.from({length:o.segment}).fill("").map((B,C)=>{const b=tl(s.value,A.value,m,g-(C+1)*y).map(x=>Number.parseFloat(x.toFixed(5))),_=`M${w.join(",")} A${m}, ${m} 0 0 0 ${b.join(",")}`;return w=b,_})}function f(){const g=100/(o.segment-1);o.pathColor=Array.from({length:o.segment}).fill(o.mergedColor[0]).map((y,m)=>br(o.mergedColor[0],100-m*g))}function h(){const g=(a.value/2-o.ringWidth/2)/o.ringNum;o.circleR=Array.from({length:o.ringNum}).fill(0).map((y,m)=>g*(m+1))}function v(){const g=Math.PI/6,y=a.value/2;o.splitLinePoints=Array.from({length:6}).fill("").map((m,w)=>{const B=g*(w+1),C=B+Math.PI,b=tl(s.value,A.value,y,B),_=tl(s.value,A.value,y,C);return`${b.join(",")} ${_.join(",")}`})}function d(){const g=Math.PI/6,y=a.value/2-1;o.arcD=Array.from({length:4}).fill("").map((m,w)=>{const B=g*(3*w+1),C=B+g,b=tl(s.value,A.value,y,B),_=tl(s.value,A.value,y,C);return`M${b.join(",")} A${s.value}, ${A.value} 0 0 1 ${_.join(",")}`})}function p(){l()}return(g,y)=>(he(),de("div",{ref_key:"decoration12",ref:n,class:"dv-decoration-12"},[(he(),de("svg",{width:Q(a),height:Q(i)},[ae("defs",null,[ae("g",{id:Q(o).gId},[(he(!0),de(lt,null,dt(Q(o).pathD,(m,w)=>(he(),de("path",{key:m,stroke:Q(o).pathColor[w],"stroke-width":Q(a)/2,fill:"transparent",d:m},null,8,mxe))),128))],8,yxe),ae("radialGradient",{id:Q(o).gradientId,cx:"50%",cy:"50%",r:"50%"},[y[0]||(y[0]=ae("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null,-1)),ae("stop",{offset:"100%","stop-color":Q(br)(Q(o).mergedColor[1]||Q(o).defaultColor[1],30),"stop-opacity":"1"},null,8,Bxe)],8,wxe)]),(he(!0),de(lt,null,dt(Q(o).circleR,m=>(he(),de("circle",{key:m,r:m,cx:Q(s),cy:Q(A),stroke:Q(o).mergedColor[1],"stroke-width":.8,fill:"transparent"},null,8,Cxe))),128)),ae("circle",{r:"1",cx:Q(s),cy:Q(A),stroke:"transparent",fill:`url(#${Q(o).gradientId})`},[ae("animate",{attributeName:"r",values:`1;${Q(a)/2}`,dur:`${r.haloDur}s`,repeatCount:"indefinite"},null,8,xxe),ae("animate",{attributeName:"opacity",values:"1;0",dur:`${r.haloDur}s`,repeatCount:"indefinite"},null,8,_xe)],8,bxe),ae("circle",{r:"2",cx:Q(s),cy:Q(A),fill:Q(o).mergedColor[1]},null,8,Sxe),Q(o).showSplitLine?(he(),de("g",Txe,[(he(!0),de(lt,null,dt(Q(o).splitLinePoints,m=>(he(),de("polyline",{key:m,points:m,stroke:Q(o).mergedColor[1],"stroke-width":.5,opacity:"50"},null,8,Ixe))),128))])):pt("",!0),(he(!0),de(lt,null,dt(Q(o).arcD,m=>(he(),de("path",{key:m,d:m,stroke:Q(o).mergedColor[1],"stroke-width":"2.3",fill:"transparent"},null,8,Lxe))),128)),ae("use",{"xlink:href":`#${Q(o).gId}`},[ae("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${Q(s)} ${Q(A)};360, ${Q(s)} ${Q(A)}`,dur:`${r.scanDur}s`,repeatCount:"indefinite"},null,8,Mxe)],8,Exe)],8,gxe)),ae("div",Dxe,[Ft(g.$slots,"default")])],512))}},BU={install(r){r.component("DvDecoration12",Fxe)}},Ln={color:{type:Array,default:()=>[]},backgroundColor:{type:String,default:"transparent"}};function En(r,e){return rt(()=>e.value.length===0?r:e.value)}const Qxe=["left-top","right-top","left-bottom","right-bottom"],Uxe=["#4fd2dd","#235fa7"],Pxe=vt({props:Ln,setup(r){const e=Ee(null),t=En(Uxe,_n(r,"color")),{width:n,height:a,initWH:i}=yt(e);return{width:n,height:a,initWH:i,mergedColor:t,borderBox1:e}},render(){const{backgroundColor:r,width:e,height:t,mergedColor:n,$slots:a}=this;return se("div",{ref:"borderBox1",class:"dv-border-box-1"},[se("svg",{class:"dv-border",width:e,height:t},[se("polygon",{fill:r,points:`10, 27 10, ${t-27} 13, ${t-24} 13, ${t-21} 24, ${t-11}
38, ${t-11} 41, ${t-8} 73, ${t-8} 75, ${t-10} 81, ${t-10}
85, ${t-6} ${e-85}, ${t-6} ${e-81}, ${t-10} ${e-75}, ${t-10}
${e-73}, ${t-8} ${e-41}, ${t-8} ${e-38}, ${t-11}
${e-10}, ${t-27} ${e-10}, 27 ${e-13}, 25 ${e-13}, 21
${e-24}, 11 ${e-38}, 11 ${e-41}, 8 ${e-73}, 8 ${e-75}, 10
${e-81}, 10 ${e-85}, 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24`},null)]),Qxe.map(i=>se("svg",{key:i,width:"150px",height:"150px",class:`${i} dv-border`},[se("polygon",{fill:n[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"},[se("animate",{attributeName:"fill",values:`${n[0]};${n[1]};${n[0]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{fill:n[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"},[se("animate",{attributeName:"fill",values:`${n[1]};${n[0]};${n[1]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{fill:n[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"},[se("animate",{attributeName:"fill",values:`${n[0]};${n[1]};transparent`,dur:"1s",begin:"0s",repeatCount:"indefinite"},null)])])),se("div",{class:"border-box-content"},[Ft(a,"default")])])}}),CU={install(r){r.component("DvBorderBox1",Pxe)}},kxe=["#fff","rgba(255, 255, 255, 0.6)"],Rxe=vt({props:Ln,setup(r){const e=Ee(null),t=En(kxe,_n(r,"color")),{width:n,height:a,initWH:i}=yt(e);return{width:n,height:a,initWH:i,mergedColor:t,borderBox2:e}},render(){const{$slots:r,backgroundColor:e,width:t,height:n,mergedColor:a}=this;return se("div",{ref:"borderBox2",class:"dv-border-box-2"},[se("svg",{class:"dv-border-svg-container",width:t,height:n},[se("polygon",{fill:e,points:`
7, 7 ${t-7}, 7 ${t-7}, ${n-7} 7, ${n-7}
`},null),se("polyline",{stroke:a[0],points:`2, 2 ${t-2} ,2 ${t-2}, ${n-2} 2, ${n-2} 2, 2`},null),se("polyline",{stroke:a[1],points:`6, 6 ${t-6}, 6 ${t-6}, ${n-6} 6, ${n-6} 6, 6`},null),se("circle",{fill:a[0],cx:"11",cy:"11",r:"1"},null),se("circle",{fill:a[0],cx:t-11,cy:"11",r:"1"},null),se("circle",{fill:a[0],cx:t-11,cy:n-11,r:"1"},null),se("circle",{fill:a[0],cx:"11",cy:n-11,r:"1"},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),bU={install(r){r.component("DvBorderBox2",Rxe)}},Oxe=["#2862b7","#2862b7"],Hxe=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Oxe,_n(r,"color"));return{width:t,height:n,mergedColor:i,initWH:a,borderBox3:e}},render(){const{$slots:r,width:e,height:t,backgroundColor:n,mergedColor:a}=this;return se("div",{ref:"borderBox3",class:"dv-border-box-3"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polygon",{fill:n,points:`
23, 23 ${e-24}, 23 ${e-24}, ${t-24} 23, ${t-24}
`},null),se("polyline",{class:"dv-bb3-line1",stroke:a[0],points:`4, 4 ${e-22} ,4 ${e-22}, ${t-22} 4, ${t-22} 4, 4`},null),se("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`10, 10 ${e-16}, 10 ${e-16}, ${t-16} 10, ${t-16} 10, 10`},null),se("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`16, 16 ${e-10}, 16 ${e-10}, ${t-10} 16, ${t-10} 16, 16`},null),se("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`22, 22 ${e-4}, 22 ${e-4}, ${t-4} 22, ${t-4} 22, 22`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),xU={install(r){r.component("DvBorderBox3",Hxe)}},Nxe={...Ln,reverse:{type:Boolean,default:!1}},Vxe=["red","rgba(0,0,255,0.8)"],Gxe=vt({props:Nxe,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Vxe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox4:e}},render(){const{$slots:r,backgroundColor:e,reverse:t,width:n,height:a,mergedColor:i}=this;return se("div",{ref:"borderBox4",class:"dv-border-box-4"},[se("svg",{class:`dv-border-svg-container ${t&&"dv-reverse"}`,width:n,height:a},[se("polygon",{fill:e,points:`
${n-15}, 22 170, 22 150, 7 40, 7 28, 21 32, 24
16, 42 16, ${a-32} 41, ${a-7} ${n-15}, ${a-7}
`},null),se("polyline",{class:"dv-bb4-line-1",stroke:i[0],points:`145, ${a-5} 40, ${a-5} 10, ${a-35}
10, 40 40, 5 150, 5 170, 20 ${n-15}, 20`},null),se("polyline",{stroke:i[1],class:"dv-bb4-line-2",points:`245, ${a-1} 36, ${a-1} 14, ${a-23}
14, ${a-100}`},null),se("polyline",{class:"dv-bb4-line-3",stroke:i[0],points:`7, ${a-40} 7, ${a-75}`},null),se("polyline",{class:"dv-bb4-line-4",stroke:i[0],points:"28, 24 13, 41 13, 64"},null),se("polyline",{class:"dv-bb4-line-5",stroke:i[0],points:"5, 45 5, 140"},null),se("polyline",{class:"dv-bb4-line-6",stroke:i[1],points:"14, 75 14, 180"},null),se("polyline",{class:"dv-bb4-line-7",stroke:i[1],points:"55, 11 147, 11 167, 26 250, 26"},null),se("polyline",{class:"dv-bb4-line-8",stroke:i[1],points:"158, 5 173, 16"},null),se("polyline",{class:"dv-bb4-line-9",stroke:i[0],points:`200, 17 ${n-10}, 17`},null),se("polyline",{class:"dv-bb4-line-10",stroke:i[1],points:`385, 17 ${n-10}, 17`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),_U={install(r){r.component("DvBorderBox4",Gxe)}},zxe={...Ln,reverse:{type:Boolean,default:!1}},$xe=["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],Kxe=vt({props:zxe,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En($xe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox5:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a,reverse:i}=this;return se("div",{ref:"borderBox5",class:"dv-border-box-5"},[se("svg",{class:`dv-border-svg-container ${i&&"dv-reverse"}`,width:e,height:t},[se("polygon",{fill:a,points:`
10, 22 ${e-22}, 22 ${e-22}, ${t-86} ${e-84}, ${t-24} 10, ${t-24}
`},null),se("polyline",{class:"dv-bb5-line-1",stroke:n[0],points:`8, 5 ${e-5}, 5 ${e-5}, ${t-100}
${e-100}, ${t-5} 8, ${t-5} 8, 5`},null),se("polyline",{class:"dv-bb5-line-2",stroke:n[1],points:`3, 5 ${e-20}, 5 ${e-20}, ${t-60}
${e-74}, ${t-5} 3, ${t-5} 3, 5`},null),se("polyline",{class:"dv-bb5-line-3",stroke:n[1],points:`50, 13 ${e-35}, 13`},null),se("polyline",{class:"dv-bb5-line-4",stroke:n[1],points:`15, 20 ${e-35}, 20`},null),se("polyline",{class:"dv-bb5-line-5",stroke:n[1],points:`15, ${t-20} ${e-110}, ${t-20}`},null),se("polyline",{class:"dv-bb5-line-6",stroke:n[1],points:`15, ${t-13} ${e-110}, ${t-13}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),SU={install(r){r.component("DvBorderBox5",Kxe)}},Wxe=["rgba(255, 255, 255, 0.35)","gray"],Xxe=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Wxe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox6:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox6",class:"dv-border-box-6"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polygon",{fill:a,points:`
9, 7 ${e-9}, 7 ${e-9}, ${t-7} 9, ${t-7}
`},null),se("circle",{fill:n[1],cx:"5",cy:"5",r:"2"},null),se("circle",{fill:n[1],cx:e-5,cy:"5",r:"2"},null),se("circle",{fill:n[1],cx:e-5,cy:t-5,r:"2"},null),se("circle",{fill:n[1],cx:"5",cy:t-5,r:"2"},null),se("polyline",{stroke:n[0],points:`10, 4 ${e-10}, 4`},null),se("polyline",{stroke:n[0],points:`10, ${t-4} ${e-10}, ${t-4}`},null),se("polyline",{stroke:n[0],points:`5, 70 5, ${t-70}`},null),se("polyline",{stroke:n[0],points:`${e-5}, 70 ${e-5}, ${t-70}`},null),se("polyline",{stroke:n[0],points:"3, 10, 3, 50"},null),se("polyline",{stroke:n[0],points:"7, 30 7, 80"},null),se("polyline",{stroke:n[0],points:`${e-3}, 10 ${e-3}, 50`},null),se("polyline",{stroke:n[0],points:`${e-7}, 30 ${e-7}, 80`},null),se("polyline",{stroke:n[0],points:`3, ${t-10} 3, ${t-50}`},null),se("polyline",{stroke:n[0],points:`7, ${t-30} 7, ${t-80}`},null),se("polyline",{stroke:n[0],points:`${e-3}, ${t-10} ${e-3}, ${t-50}`},null),se("polyline",{stroke:n[0],points:`${e-7}, ${t-30} ${e-7}, ${t-80}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),TU={install(r){r.component("DvBorderBox6",Xxe)}},Yxe=["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],Zxe=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(Yxe,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox7:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox7",class:"dv-border-box-7",style:`box-shadow: inset 0 0 40px ${n[0]}; border: 1px solid ${n[0]}; background-color: ${a}`},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:"0, 25 0, 0 25, 0"},null),se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:`${e-25}, 0 ${e}, 0 ${e}, 25`},null),se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:`${e-25}, ${t} ${e}, ${t} ${e}, ${t-25}`},null),se("polyline",{class:"dv-bb7-line-width-2",stroke:n[0],points:`0, ${t-25} 0, ${t} 25, ${t}`},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:"0, 10 0, 0 10, 0"},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:`${e-10}, 0 ${e}, 0 ${e}, 10`},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:`${e-10}, ${t} ${e}, ${t} ${e}, ${t-10}`},null),se("polyline",{class:"dv-bb7-line-width-5",stroke:n[1],points:`0, ${t-10} 0, ${t} 10, ${t}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),IU={install(r){r.component("DvBorderBox7",Zxe)}},jxe={...Ln,reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},Jxe=["#235fa7","#4fd2dd"],qxe=vt({props:jxe,setup(r){const e=Ca(),t=Ee(null),n=It({path:`border-box-8-path-${e}`,gradient:`border-box-8-gradient-${e}`,mask:`border-box-8-mask-${e}`}),{width:a,height:i,initWH:o}=yt(t),s=rt(()=>(a.value+i.value-5)*2),A=rt(()=>r.reverse?`M 2.5, 2.5 L 2.5, ${i.value-2.5} L ${a.value-2.5}, ${i.value-2.5} L ${a.value-2.5}, 2.5 L 2.5, 2.5`:`M2.5, 2.5 L${a.value-2.5}, 2.5 L${a.value-2.5}, ${i.value-2.5} L2.5, ${i.value-2.5} L2.5, 2.5`),l=En(Jxe,_n(r,"color"));return{width:a,height:i,initWH:o,state:n,mergedColor:l,pathD:A,length:s,borderBox8:t}},render(){const{$slots:r,width:e,height:t,state:n,mergedColor:a,pathD:i,length:o,backgroundColor:s,dur:A}=this;return se("div",{ref:"borderBox8",class:"dv-border-box-8"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("path",{id:n.path,d:i,fill:"transparent"},null),se("radialGradient",{id:n.gradient,cx:"50%",cy:"50%",r:"50%"},[se("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null),se("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null)]),se("mask",{id:n.mask},[se("circle",{cx:"0",cy:"0",r:"150",fill:`url(#${n.gradient})`},[CV("animateMotion",{dur:`${A}s`,path:i,rotate:"auto",repeatCount:"indefinite"})])])]),se("polygon",{fill:s,points:`5, 5 ${e-5}, 5 ${e-5} ${t-5} 5, ${t-5}`},null),se("use",{stroke:a[0],"stroke-width":"1","xlink:href":`#${n.path}`},null),se("use",{stroke:a[1],"stroke-width":"3","xlink:href":`#${n.path}`,mask:`url(#${n.mask})`},[se("animate",{attributeName:"stroke-dasharray",from:`0, ${o}`,to:`${o}, 0`,dur:`${A}s`,repeatCount:"indefinite"},null)])]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),LU={install(r){r.component("DvBorderBox8",qxe)}},e_e=["#11eefd","#0078d2"],t_e=vt({props:Ln,setup(r){const e=Ca(),t=Ee(null),{width:n,height:a,initWH:i}=yt(t),o=It({gradientId:`border-box-9-gradient-${e}`,maskId:`border-box-9-mask-${e}`}),s=En(e_e,_n(r,"color"));return{width:n,height:a,initWH:i,state:o,mergedColor:s,borderBox9:t}},render(){const{$slots:r,width:e,height:t,state:n,mergedColor:a,backgroundColor:i}=this;return se("div",{ref:"borderBox9",class:"dv-border-box-9"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("linearGradient",{id:n.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[se("animate",{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),se("animate",{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),se("stop",{offset:"0%","stop-color":a[0]},[se("animate",{attributeName:"stop-color",values:`${a[0]};${a[1]};${a[0]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)]),se("stop",{offset:"100%","stop-color":a[1]},[se("animate",{attributeName:"stop-color",values:`${a[1]};${a[0]};${a[1]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)])]),se("mask",{id:n.maskId},[se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${t*.4} 8, 3, ${e*.4+7}, 3`},null),se("polyline",{fill:"#fff",points:`8, ${t*.15} 8, 3, ${e*.1+7}, 3
${e*.1}, 8 14, 8 14, ${t*.15-7}
`},null),se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${e*.5}, 3 ${e-3}, 3, ${e-3}, ${t*.25}`},null),se("polyline",{fill:"#fff",points:`
${e*.52}, 3 ${e*.58}, 3
${e*.58-7}, 9 ${e*.52+7}, 9
`},null),se("polyline",{fill:"#fff",points:`
${e*.9}, 3 ${e-3}, 3 ${e-3}, ${t*.1}
${e-9}, ${t*.1-7} ${e-9}, 9 ${e*.9+7}, 9
`},null),se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${t*.5} 8, ${t-3} ${e*.3+7}, ${t-3}`},null),se("polyline",{fill:"#fff",points:`
8, ${t*.55} 8, ${t*.7}
2, ${t*.7-7} 2, ${t*.55+7}
`},null),se("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${e*.35}, ${t-3} ${e-3}, ${t-3} ${e-3}, ${t*.35}`},null),se("polyline",{fill:"#fff",points:`
${e*.92}, ${t-3} ${e-3}, ${t-3} ${e-3}, ${t*.8}
${e-9}, ${t*.8+7} ${e-9}, ${t-9} ${e*.92+7}, ${t-9}
`},null)])]),se("polygon",{fill:i,points:`
15, 9 ${e*.1+1}, 9 ${e*.1+4}, 6 ${e*.52+2}, 6
${e*.52+6}, 10 ${e*.58-7}, 10 ${e*.58-2}, 6
${e*.9+2}, 6 ${e*.9+6}, 10 ${e-10}, 10 ${e-10}, ${t*.1-6}
${e-6}, ${t*.1-1} ${e-6}, ${t*.8+1} ${e-10}, ${t*.8+6}
${e-10}, ${t-10} ${e*.92+7}, ${t-10} ${e*.92+2}, ${t-6}
11, ${t-6} 11, ${t*.15-2} 15, ${t*.15-7}
`},null),se("rect",{x:"0",y:"0",width:e,height:t,fill:`url(#${n.gradientId})`,mask:`url(#${n.maskId})`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),EU={install(r){r.component("DvBorderBox9",t_e)}},r_e=["left-top","right-top","left-bottom","right-bottom"],n_e=["#1d48c4","#d3e1f8"],a_e=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(n_e,_n(r,"color"));return{width:t,height:n,initWH:a,mergedColor:i,borderBox10:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox10",class:"dv-border-box-10",style:`box-shadow: inset 0 0 25px 3px ${n[0]}`},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("polygon",{fill:a,points:`
4, 0 ${e-4}, 0 ${e}, 4 ${e}, ${t-4} ${e-4}, ${t}
4, ${t} 0, ${t-4} 0, 4
`},null)]),r_e.map(i=>se("svg",{width:"150px",height:"150px",class:`${i} dv-border-svg-container`},[se("polygon",{fill:n[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"},null)])),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),MU={install(r){r.component("DvBorderBox10",a_e)}},i_e={...Ln,title:{type:String,default:""},titleWidth:{type:Number,default:250},animate:{type:Boolean,default:!0}},DU=["#8aaafb","#1f33a2"],o_e=vt({props:i_e,setup(r){const e=Ca(),t=Ee(null),{width:n,height:a,initWH:i}=yt(t),o=Ee(`border-box-11-filterId-${e}`),s=En(DU,_n(r,"color"));return{width:n,height:a,initWH:i,filterId:o,mergedColor:s,borderBox11:t}},render(){const{$slots:r,width:e,height:t,filterId:n,mergedColor:a,backgroundColor:i,title:o,titleWidth:s,animate:A}=this;return se("div",{ref:"borderBox11",class:"dv-border-box-11"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("filter",{id:n,height:"150%",width:"150%",x:"-25%",y:"-25%"},[se("feMorphology",{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"},null),se("feGaussianBlur",{in:"thicken",stdDeviation:"3",result:"blurred"},null),se("feFlood",{"flood-color":a[1],result:"glowColor"},null),se("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),se("feMerge",null,[se("feMergeNode",{in:"softGlowColored"},null),se("feMergeNode",{in:"SourceGraphic"},null)])])]),se("polygon",{fill:i,points:`
20, 32 ${e*.5-s/2}, 32 ${e*.5-s/2+20}, 53
${e*.5+s/2-20}, 53 ${e*.5+s/2}, 32
${e-20}, 32 ${e-8}, 48 ${e-8}, ${t-25} ${e-20}, ${t-8}
20, ${t-8} 8, ${t-25} 8, 50
`},null),se("polyline",{stroke:a[0],filter:`url(#${n})`,points:`
${(e-s)/2}, 30
20, 30 7, 50 7, ${50+(t-167)/2}
13, ${55+(t-167)/2} 13, ${135+(t-167)/2}
7, ${140+(t-167)/2} 7, ${t-27}
20, ${t-7} ${e-20}, ${t-7} ${e-7}, ${t-27}
${e-7}, ${140+(t-167)/2} ${e-13}, ${135+(t-167)/2}
${e-13}, ${55+(t-167)/2} ${e-7}, ${50+(t-167)/2}
${e-7}, 50 ${e-20}, 30 ${(e+s)/2}, 30
${(e+s)/2-20}, 7 ${(e-s)/2+20}, 7
${(e-s)/2}, 30 ${(e-s)/2+20}, 52
${(e+s)/2-20}, 52 ${(e+s)/2}, 30
`},null),se("polygon",{stroke:a[0],fill:"transparent",points:`
${(e+s)/2-5}, 30 ${(e+s)/2-21}, 11
${(e+s)/2-27}, 11 ${(e+s)/2-8}, 34
`},null),se("polygon",{stroke:a[0],fill:"transparent",points:`
${(e-s)/2+5}, 30 ${(e-s)/2+22}, 49
${(e-s)/2+28}, 49 ${(e-s)/2+8}, 26
`},null),se("polygon",{stroke:a[0],fill:br(a[1]||DU[1],30),filter:`url(#${n})`,points:`
${(e+s)/2-11}, 37 ${(e+s)/2-32}, 11
${(e-s)/2+23}, 11 ${(e-s)/2+11}, 23
${(e-s)/2+33}, 49 ${(e+s)/2-22}, 49
`},null),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"1",points:`
${(e-s)/2-10}, 37 ${(e-s)/2-31}, 37
${(e-s)/2-25}, 46 ${(e-s)/2-4}, 46
`},[A&&se("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.7",points:`
${(e-s)/2-40}, 37 ${(e-s)/2-61}, 37
${(e-s)/2-55}, 46 ${(e-s)/2-34}, 46
`},[A&&se("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.5",points:`
${(e-s)/2-70}, 37 ${(e-s)/2-91}, 37
${(e-s)/2-85}, 46 ${(e-s)/2-64}, 46
`},[A&&se("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"1",points:`
${(e+s)/2+30}, 37 ${(e+s)/2+9}, 37
${(e+s)/2+3}, 46 ${(e+s)/2+24}, 46
`},[A&&se("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.7",points:`
${(e+s)/2+60}, 37 ${(e+s)/2+39}, 37
${(e+s)/2+33}, 46 ${(e+s)/2+54}, 46
`},[A&&se("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("polygon",{filter:`url(#${n})`,fill:a[0],opacity:"0.5",points:`
${(e+s)/2+90}, 37 ${(e+s)/2+69}, 37
${(e+s)/2+63}, 46 ${(e+s)/2+84}, 46
`},[A&&se("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),se("text",{class:"dv-border-box-11-title",x:`${e/2}`,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"},[o]),se("polygon",{fill:a[0],filter:`url(#${n})`,points:`
7, ${53+(t-167)/2} 11, ${57+(t-167)/2}
11, ${133+(t-167)/2} 7, ${137+(t-167)/2}
`},null),se("polygon",{fill:a[0],filter:`url(#${n})`,points:`
${e-7}, ${53+(t-167)/2} ${e-11}, ${57+(t-167)/2}
${e-11}, ${133+(t-167)/2} ${e-7}, ${137+(t-167)/2}
`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),FU={install(r){r.component("DvBorderBox11",o_e)}},nc=["#2e6099","#7ce7fd"],s_e=vt({props:Ln,setup(r){const e=Ca(),t=Ee(null),{width:n,height:a,initWH:i}=yt(t),o=Ee(`borderr-box-12-filterId-${e}`),s=En(nc,_n(r,"color"));return{width:n,height:a,filterId:o,mergedColor:s,initWH:i,borderBox12:t}},render(){const{$slots:r,width:e,height:t,filterId:n,mergedColor:a,backgroundColor:i}=this;return se("div",{ref:"borderBox12",class:"dv-border-box-12"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("defs",null,[se("filter",{id:n,height:"150%",width:"150%",x:"-25%",y:"-25%"},[se("feMorphology",{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"},null),se("feGaussianBlur",{in:"thicken",stdDeviation:"2",result:"blurred"},null),se("feFlood",{"flood-color":br(a[1]||nc[1],70),result:"glowColor"},[se("animate",{attributeName:"flood-color",values:`
${br(a[1]||nc[1],70)};
${br(a[1]||nc[1],30)};
${br(a[1]||nc[1],70)};
`,dur:"3s",begin:"0s",repeatCount:"indefinite"},null)]),se("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),se("feMerge",null,[se("feMergeNode",{in:"softGlowColored"},null),se("feMergeNode",{in:"SourceGraphic"},null)])])]),e&&t&&se("path",{fill:i,"stroke-width":"2",stroke:a[0],d:`
M15 5 L ${e-15} 5 Q ${e-5} 5, ${e-5} 15
L ${e-5} ${t-15} Q ${e-5} ${t-5}, ${e-15} ${t-5}
L 15, ${t-5} Q 5 ${t-5} 5 ${t-15} L 5 15
Q 5 5 15 5
`},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:`M ${e-20} 5 L ${e-15} 5 Q ${e-5} 5 ${e-5} 15 L ${e-5} 20`},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:`
M ${e-20} ${t-5} L ${e-15} ${t-5}
Q ${e-5} ${t-5} ${e-5} ${t-15}
L ${e-5} ${t-20}
`},null),se("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${n})`,stroke:a[1],d:`
M 20 ${t-5} L 15 ${t-5}
Q 5 ${t-5} 5 ${t-15}
L 5 ${t-20}
`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),QU={install(r){r.component("DvBorderBox12",s_e)}},A_e=["#6586ec","#2cf7fe"],l_e=vt({props:Ln,setup(r){const e=Ee(null),{width:t,height:n,initWH:a}=yt(e),i=En(A_e,_n(r,"color"));return{width:t,height:n,mergedColor:i,initWH:a,borderBox13:e}},render(){const{$slots:r,width:e,height:t,mergedColor:n,backgroundColor:a}=this;return se("div",{ref:"borderBox13",class:"dv-border-box-13"},[se("svg",{class:"dv-border-svg-container",width:e,height:t},[se("path",{fill:a,stroke:n[0],d:`
M 5 20 L 5 10 L 12 3 L 60 3 L 68 10
L ${e-20} 10 L ${e-5} 25
L ${e-5} ${t-5} L 20 ${t-5}
L 5 ${t-20} L 5 20
`},null),se("path",{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:n[0],d:"M 16 9 L 61 9"},null),se("path",{fill:"transparent",stroke:n[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"},null),se("path",{fill:"transparent",stroke:n[1],d:`M ${e-5} ${t-30} L ${e-5} ${t-5} L ${e-30} ${t-5}`},null)]),se("div",{class:"border-box-content"},[Ft(r,"default")])])}}),UU={install(r){r.component("DvBorderBox13",l_e)}},u_e={install(r){var e,t,n,a,i,o,s,A,l,u,c,f,h,v,d,p,g,y,m,w,B,C,b,_,x,S,I,L,T,M,R,P,E,k,D,U,O,G,X;(e=fF.install)==null||e.call(fF,r),(t=dF.install)==null||t.call(dF,r),(n=pF.install)==null||n.call(pF,r),(a=wQ.install)==null||a.call(wQ,r),(i=BQ.install)==null||i.call(BQ,r),(o=CQ.install)==null||o.call(CQ,r),(s=bQ.install)==null||s.call(bQ,r),(A=xQ.install)==null||A.call(xQ,r),(l=_Q.install)==null||l.call(_Q,r),(u=iU.install)==null||u.call(iU,r),(c=oU.install)==null||c.call(oU,r),(f=sU.install)==null||f.call(sU,r),(h=AU.install)==null||h.call(AU,r),(v=lU.install)==null||v.call(lU,r),(d=uU.install)==null||d.call(uU,r),(p=cU.install)==null||p.call(cU,r),(g=fU.install)==null||g.call(fU,r),(y=hU.install)==null||y.call(hU,r),(m=vU.install)==null||m.call(vU,r),(w=dU.install)==null||w.call(dU,r),(B=pU.install)==null||B.call(pU,r),(C=gU.install)==null||C.call(gU,r),(b=yU.install)==null||b.call(yU,r),(_=mU.install)==null||_.call(mU,r),(x=wU.install)==null||x.call(wU,r),(S=BU.install)==null||S.call(BU,r),(I=CU.install)==null||I.call(CU,r),(L=bU.install)==null||L.call(bU,r),(T=xU.install)==null||T.call(xU,r),(M=_U.install)==null||M.call(_U,r),(R=SU.install)==null||R.call(SU,r),(P=TU.install)==null||P.call(TU,r),(E=IU.install)==null||E.call(IU,r),(k=LU.install)==null||k.call(LU,r),(D=EU.install)==null||D.call(EU,r),(U=MU.install)==null||U.call(MU,r),(O=FU.install)==null||O.call(FU,r),(G=QU.install)==null||G.call(QU,r),(X=UU.install)==null||X.call(UU,r)}},t_=TV(twe);t_.use(u_e);t_.use(LX);t_.mount("#app");