@lius1314/visual-dashboard-scaffold 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +261 -0
- package/dist/assets/.gitkeep +0 -0
- package/dist/assets/bg.jpeg +0 -0
- package/dist/css/all.min.css +9 -0
- package/dist/types/App.d.ts +3 -0
- package/dist/types/api/monitor.d.ts +18 -0
- package/dist/types/blocks/SampleBlock.d.ts +13 -0
- package/dist/types/blocks/index.d.ts +1 -0
- package/dist/types/blocks/registry.d.ts +26 -0
- package/dist/types/components/BackgroundPicker.d.ts +13 -0
- package/dist/types/components/ChartBlock.d.ts +12 -0
- package/dist/types/components/FooterSection.d.ts +11 -0
- package/dist/types/components/HeaderSection.d.ts +13 -0
- package/dist/types/components/MiddleSection.d.ts +17 -0
- package/dist/types/components/OuterContainer.d.ts +8 -0
- package/dist/types/components/SettingsPanel.d.ts +7 -0
- package/dist/types/index.d.ts +25 -0
- package/dist/types/store/configStore.d.ts +28 -0
- package/dist/types/types/index.d.ts +88 -0
- package/dist/types/utils/background.d.ts +11 -0
- package/dist/types/utils/cn.d.ts +2 -0
- package/dist/types/utils/icons.d.ts +16 -0
- package/dist/visual-dashboard-scaffold.cjs.js +57 -0
- package/dist/visual-dashboard-scaffold.cjs.js.map +1 -0
- package/dist/visual-dashboard-scaffold.css +1 -0
- package/dist/visual-dashboard-scaffold.es.js +29549 -0
- package/dist/visual-dashboard-scaffold.es.js.map +1 -0
- package/dist/webfonts/fa-brands-400.woff2 +0 -0
- package/dist/webfonts/fa-regular-400.woff2 +0 -0
- package/dist/webfonts/fa-solid-900.woff2 +0 -0
- package/dist/webfonts/fa-v4compatibility.woff2 +0 -0
- package/package.json +68 -0
- package/public/assets/.gitkeep +0 -0
- package/public/assets/bg.jpeg +0 -0
- package/public/css/all.min.css +9 -0
- package/public/webfonts/fa-brands-400.woff2 +0 -0
- package/public/webfonts/fa-regular-400.woff2 +0 -0
- package/public/webfonts/fa-solid-900.woff2 +0 -0
- package/public/webfonts/fa-v4compatibility.woff2 +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),B=require("react"),th=require("react-dom");var Ei=typeof document<"u"?document.currentScript:null;const Ue=[];for(let t=0;t<256;++t)Ue.push((t+256).toString(16).slice(1));function C1(t,e=0){return(Ue[t[e+0]]+Ue[t[e+1]]+Ue[t[e+2]]+Ue[t[e+3]]+"-"+Ue[t[e+4]]+Ue[t[e+5]]+"-"+Ue[t[e+6]]+Ue[t[e+7]]+"-"+Ue[t[e+8]]+Ue[t[e+9]]+"-"+Ue[t[e+10]]+Ue[t[e+11]]+Ue[t[e+12]]+Ue[t[e+13]]+Ue[t[e+14]]+Ue[t[e+15]]).toLowerCase()}let Ul;const D1=new Uint8Array(16);function E1(){if(!Ul){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ul=crypto.getRandomValues.bind(crypto)}return Ul(D1)}const k1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Cd={randomUUID:k1};function M1(t,e,r){t=t||{};const n=t.random??t.rng?.()??E1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,C1(n)}function rt(t,e,r){return Cd.randomUUID&&!t?Cd.randomUUID():M1(t)}const rh=typeof{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Ei&&Ei.tagName.toUpperCase()==="SCRIPT"&&Ei.src||new URL("visual-dashboard-scaffold.cjs.js",document.baseURI).href}<"u"&&!0||!1,Ds={editMode:!rh,globalBackground:"linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%)",outer:{width:1920,height:1080,background:"linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%)",autofit:{enabled:!0,designWidth:1920,designHeight:1080,resize:!0,transition:0,delay:0}},header:{height:80,background:"linear-gradient(90deg, rgba(14,165,233,0.15) 0%, rgba(99,102,241,0.15) 100%)",visible:!0,title:{text:"数据可视化大屏",fontSize:22,color:"#a78bfa",fontWeight:700,letterSpacing:6,fontFamily:'"Microsoft YaHei", sans-serif',useGradient:!0,gradientCss:"linear-gradient(90deg, #38bdf8, #818cf8, #a78bfa)"},leftPanels:[],rightPanels:[]},middle:{height:0,background:"transparent",visible:!0},footer:{height:80,background:"linear-gradient(90deg, rgba(14,165,233,0.08) 0%, rgba(99,102,241,0.08) 100%)",visible:!0,items:[{id:rt(),icon:"📊",iconType:"emoji",label:"数据总览",color:"#38bdf8"},{id:rt(),icon:"🗺️",iconType:"emoji",label:"地图监控",color:"#a78bfa"},{id:rt(),icon:"📈",iconType:"emoji",label:"趋势分析",color:"#34d399"},{id:rt(),icon:"⚙️",iconType:"emoji",label:"系统设置",color:"#fb923c"},{id:rt(),icon:"🔔",iconType:"emoji",label:"告警管理",color:"#f472b6"}],itemWidth:80,itemGap:32},chartBlocks:[{id:rt(),title:"实时数据监控",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(14,165,233,0.3) 0%, rgba(14,165,233,0.05) 100%)",contentBackground:"rgba(14,165,233,0.05)",blockBackground:"rgba(14,165,233,0.08)",layout:{i:"block-0",x:8,y:8,w:464,h:392,zIndex:0,minW:100,minH:80}},{id:rt(),title:"趋势折线图",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(99,102,241,0.3) 0%, rgba(99,102,241,0.05) 100%)",contentBackground:"rgba(99,102,241,0.05)",blockBackground:"rgba(99,102,241,0.08)",layout:{i:"block-1",x:480,y:8,w:464,h:392,zIndex:0,minW:100,minH:80}},{id:rt(),title:"饼图分布",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(52,211,153,0.3) 0%, rgba(52,211,153,0.05) 100%)",contentBackground:"rgba(52,211,153,0.05)",blockBackground:"rgba(52,211,153,0.08)",layout:{i:"block-2",x:952,y:8,w:308,h:392,zIndex:0,minW:100,minH:80}},{id:rt(),title:"地图分布",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(251,146,60,0.3) 0%, rgba(251,146,60,0.05) 100%)",contentBackground:"rgba(251,146,60,0.05)",blockBackground:"rgba(251,146,60,0.08)",layout:{i:"block-3",x:1268,y:8,w:640,h:392,zIndex:0,minW:100,minH:80}},{id:rt(),title:"柱状图对比",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(244,114,182,0.3) 0%, rgba(244,114,182,0.05) 100%)",contentBackground:"rgba(244,114,182,0.05)",blockBackground:"rgba(244,114,182,0.08)",layout:{i:"block-4",x:8,y:408,w:628,h:392,zIndex:0,minW:100,minH:80}},{id:rt(),title:"雷达图分析",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(167,139,250,0.3) 0%, rgba(167,139,250,0.05) 100%)",contentBackground:"rgba(167,139,250,0.05)",blockBackground:"rgba(167,139,250,0.08)",layout:{i:"block-5",x:644,y:408,w:628,h:392,zIndex:0,minW:100,minH:80}},{id:rt(),title:"数据表格",titleHeight:40,titleBackground:"linear-gradient(90deg, rgba(56,189,248,0.3) 0%, rgba(56,189,248,0.05) 100%)",contentBackground:"rgba(56,189,248,0.05)",blockBackground:"rgba(56,189,248,0.08)",layout:{i:"block-6",x:1280,y:408,w:628,h:392,zIndex:0,minW:100,minH:80}}],cols:24,rowHeight:60},nh="datavis-scaffold-config";function A1(){try{const t=localStorage.getItem(nh);if(t){const e=JSON.parse(t);return rh&&(e.editMode=!1),e.header.title||(e.header={...e.header,...Ds.header,background:e.header.background,height:e.header.height,visible:e.header.visible}),e.header.leftPanels||(e.header.leftPanels=[]),e.header.rightPanels||(e.header.rightPanels=[]),e}}catch{}return Ds}function R1(t){try{localStorage.setItem(nh,JSON.stringify(t))}catch{}}function Hm(){const[t,e]=B.useState(A1);B.useEffect(()=>{R1(t)},[t]);const r=B.useCallback(w=>{e(T=>({...T,editMode:w}))},[]),n=B.useCallback(w=>{e(T=>({...T,globalBackground:w}))},[]),i=B.useCallback(w=>{e(T=>({...T,outer:{...T.outer,...w}}))},[]),a=B.useCallback(w=>{e(T=>({...T,header:{...T.header,...w}}))},[]),o=B.useCallback(w=>{e(T=>({...T,header:{...T.header,title:{...T.header.title,...w}}}))},[]),s=B.useCallback(w=>{const T={id:rt(),width:200,background:"rgba(255,255,255,0.03)",title:"新面板"};e(D=>({...D,header:{...D.header,...w==="left"?{leftPanels:[...D.header.leftPanels,T]}:{rightPanels:[...D.header.rightPanels,T]}}}))},[]),l=B.useCallback((w,T)=>{e(D=>({...D,header:{...D.header,...w==="left"?{leftPanels:D.header.leftPanels.filter(E=>E.id!==T)}:{rightPanels:D.header.rightPanels.filter(E=>E.id!==T)}}}))},[]),u=B.useCallback((w,T,D)=>{e(E=>{const k=w==="left"?"leftPanels":"rightPanels";return{...E,header:{...E.header,[k]:E.header[k].map(A=>A.id===T?{...A,...D}:A)}}})},[]),c=B.useCallback(w=>{e(T=>({...T,middle:{...T.middle,...w}}))},[]),f=B.useCallback(w=>{e(T=>({...T,footer:{...T.footer,...w}}))},[]),h=B.useCallback(()=>{const w=rt(),T=[{t:"rgba(14,165,233,0.3)",c:"rgba(14,165,233,0.05)",b:"rgba(14,165,233,0.08)"},{t:"rgba(99,102,241,0.3)",c:"rgba(99,102,241,0.05)",b:"rgba(99,102,241,0.08)"},{t:"rgba(52,211,153,0.3)",c:"rgba(52,211,153,0.05)",b:"rgba(52,211,153,0.08)"},{t:"rgba(251,146,60,0.3)",c:"rgba(251,146,60,0.05)",b:"rgba(251,146,60,0.08)"}],D=T[Math.floor(Math.random()*T.length)],E={id:w,title:"新图表区块",titleHeight:40,titleBackground:`linear-gradient(90deg, ${D.t} 0%, ${D.c} 100%)`,contentBackground:D.c,blockBackground:D.b,layout:{i:w,x:0,y:0,w:464,h:392,zIndex:0,minW:100,minH:80}};e(k=>({...k,chartBlocks:[...k.chartBlocks,E]}))},[]),d=B.useCallback(w=>{e(T=>({...T,chartBlocks:T.chartBlocks.filter(D=>D.id!==w)}))},[]),v=B.useCallback((w,T)=>{e(D=>({...D,chartBlocks:D.chartBlocks.map(E=>E.id===w?{...E,...T}:E)}))},[]),g=B.useCallback(w=>{e(T=>({...T,chartBlocks:T.chartBlocks.map(D=>{const E=w.find(k=>k.i===D.layout.i||k.i===D.id);return E?{...D,layout:{...D.layout,...E}}:D})}))},[]),p=B.useCallback(w=>{e(T=>{const D=new Map(T.chartBlocks.map(k=>[k.id,k])),E=w.map((k,A)=>{const R=D.get(k);return R?{...R,layout:{...R.layout,zIndex:A}}:null}).filter(Boolean);return T.chartBlocks.forEach(k=>{w.includes(k.id)||E.push(k)}),{...T,chartBlocks:E}})},[]),m=B.useCallback(()=>{const w={id:rt(),icon:"⭐",label:"新菜单项",color:"#38bdf8"};e(T=>({...T,footer:{...T.footer,items:[...T.footer.items,w]}}))},[]),y=B.useCallback(w=>{e(T=>({...T,footer:{...T.footer,items:T.footer.items.filter(D=>D.id!==w)}}))},[]),_=B.useCallback((w,T)=>{e(D=>({...D,footer:{...D.footer,items:D.footer.items.map(E=>E.id===w?{...E,...T}:E)}}))},[]),b=B.useCallback(()=>{const w=JSON.stringify(t,null,2),T=new Blob([w],{type:"application/json"}),D=URL.createObjectURL(T),E=document.createElement("a");E.href=D,E.download="datavis-config.json",E.click(),URL.revokeObjectURL(D)},[t]),S=B.useCallback(w=>{try{const T=JSON.parse(w);rh&&(T.editMode=!1),e(T)}catch(T){console.error("Config import failed:",T)}},[]),x=B.useCallback(()=>{e(Ds),localStorage.removeItem(nh)},[]);return{config:t,setConfig:e,setEditMode:r,setGlobalBackground:n,updateOuter:i,updateHeader:a,updateHeaderTitle:o,addHeaderPanel:s,removeHeaderPanel:l,updateHeaderPanel:u,updateMiddle:c,updateFooter:f,addChartBlock:h,removeChartBlock:d,updateChartBlock:v,updateChartLayouts:g,reorderChartBlocks:p,addBottomItem:m,removeBottomItem:y,updateBottomItem:_,exportConfig:b,importConfig:S,resetConfig:x}}function tr(t){if(!t)return"transparent";const e=t.trim();return e.startsWith("url(")||e.startsWith("linear-gradient")||e.startsWith("radial-gradient")||e.startsWith("conic-gradient")||e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")||e.startsWith("data:")||e==="transparent"||e==="none"?e:e.startsWith("/")?`url(${e}) center/cover no-repeat`:e}const jm=({config:t,children:e})=>{const{outer:r}=t;return C.jsx("div",{style:{width:"100%",height:"100%",background:tr(r.background),overflow:"hidden",position:"relative",display:"flex",flexDirection:"column"},children:e})};const Wm=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();const L1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const I1=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase());const Dd=t=>{const e=I1(t);return e.charAt(0).toUpperCase()+e.slice(1)};var $l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const P1=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},O1=B.createContext({}),N1=()=>B.useContext(O1),B1=B.forwardRef(({color:t,size:e,strokeWidth:r,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>{const{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:d=""}=N1()??{},v=n??f?Number(r??c)*24/Number(e??u):r??c;return B.createElement("svg",{ref:l,...$l,width:e??u??$l.width,height:e??u??$l.height,stroke:t??h,strokeWidth:v,className:Wm("lucide",d,i),...!a&&!P1(s)&&{"aria-hidden":"true"},...s},[...o.map(([g,p])=>B.createElement(g,p)),...Array.isArray(a)?a:[a]])});const Ge=(t,e)=>{const r=B.forwardRef(({className:n,...i},a)=>B.createElement(B1,{ref:a,iconNode:e,className:Wm(`lucide-${L1(Dd(t))}`,`lucide-${t}`,n),...i}));return r.displayName=Dd(t),r};const z1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],F1=Ge("chevron-down",z1);const V1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],H1=Ge("chevron-right",V1);const j1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],W1=Ge("download",j1);const G1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],U1=Ge("eye-off",G1);const $1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Y1=Ge("eye",$1);const X1=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Gm=Ge("grip-vertical",X1);const q1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],kc=Ge("layers",q1);const Z1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],K1=Ge("maximize-2",Z1);const J1=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Q1=Ge("monitor",J1);const ex=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Um=Ge("palette",ex);const tx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Yl=Ge("panels-top-left",tx);const rx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ih=Ge("plus",rx);const nx=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],ix=Ge("rotate-ccw",nx);const ax=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ah=Ge("settings",ax);const ox=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],pl=Ge("trash-2",ox);const sx=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],lx=Ge("type",sx);const ux=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Es=Ge("upload",ux);const cx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fx=Ge("x",cx),oh=new Map;function hx(t,e){oh.set(t,e)}function ks(t){return oh.get(t)}function dx(){return Array.from(oh.keys())}const $m=({config:t,editMode:e,onUpdateTitle:r,onAddPanel:n,onRemovePanel:i,onUpdatePanel:a})=>{const[o,s]=B.useState(!1);if(!t.visible)return null;const l=typeof t.height=="number"?`${t.height}px`:t.height,u=t.title,c={fontSize:u.fontSize,fontWeight:u.fontWeight,letterSpacing:u.letterSpacing,fontFamily:u.fontFamily,margin:0,whiteSpace:"nowrap",...u.useGradient?{background:u.gradientCss,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}:{color:u.color}};return C.jsxs("div",{style:{width:"100%",height:l,flexShrink:0,background:tr(t.background),display:"flex",alignItems:"center",position:"relative",borderBottom:e?"1px dashed rgba(99,102,241,0.4)":"none",boxSizing:"border-box",overflow:"hidden"},children:[C.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"2px",background:"linear-gradient(90deg, transparent, rgba(99,102,241,0.8), rgba(14,165,233,0.8), transparent)"}}),e&&C.jsx("span",{style:{position:"absolute",top:4,left:8,fontSize:10,color:"rgba(99,102,241,0.6)",userSelect:"none",zIndex:10},children:"头部区域"}),C.jsxs("div",{style:{display:"flex",alignItems:"center",height:"100%",flexShrink:0,gap:0},children:[t.leftPanels.map(f=>C.jsx(Ed,{panel:f,side:"left",editMode:e,headerHeight:t.height,onRemove:()=>i?.("left",f.id),onUpdate:h=>a?.("left",f.id,h)},f.id)),e&&C.jsx(kd,{onClick:()=>n?.("left"),label:"+ 左"})]}),C.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",minWidth:0,gap:16,padding:"0 12px"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0},children:[C.jsx("div",{style:{width:4,height:24,background:"linear-gradient(180deg, #38bdf8, #6366f1)",borderRadius:2}}),C.jsx("div",{style:{width:4,height:16,background:"linear-gradient(180deg, #6366f1, #a78bfa)",borderRadius:2}})]}),o&&e?C.jsx("input",{autoFocus:!0,defaultValue:u.text,style:{...c,background:"rgba(255,255,255,0.1)",border:"1px solid rgba(99,102,241,0.5)",borderRadius:4,padding:"2px 8px",outline:"none",WebkitBackgroundClip:"unset",WebkitTextFillColor:"#fff",color:"#fff",minWidth:100,textAlign:"center"},onBlur:f=>{r?.({text:f.target.value}),s(!1)},onKeyDown:f=>{f.key==="Enter"&&(r?.({text:f.target.value}),s(!1)),f.key==="Escape"&&s(!1)}}):C.jsx("h1",{style:{...c,cursor:e?"text":"default",overflow:"hidden",textOverflow:"ellipsis"},onDoubleClick:()=>e&&s(!0),title:e?"双击编辑标题":u.text,children:u.text}),C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0},children:[C.jsx("div",{style:{width:4,height:16,background:"linear-gradient(180deg, #a78bfa, #6366f1)",borderRadius:2}}),C.jsx("div",{style:{width:4,height:24,background:"linear-gradient(180deg, #6366f1, #38bdf8)",borderRadius:2}})]})]}),C.jsxs("div",{style:{display:"flex",alignItems:"center",height:"100%",flexShrink:0,gap:0},children:[e&&C.jsx(kd,{onClick:()=>n?.("right"),label:"+ 右"}),t.rightPanels.map(f=>C.jsx(Ed,{panel:f,side:"right",editMode:e,headerHeight:t.height,onRemove:()=>i?.("right",f.id),onUpdate:h=>a?.("right",f.id,h)},f.id))]})]})},Ed=({panel:t,side:e,editMode:r,headerHeight:n,onRemove:i,onUpdate:a})=>{const[o,s]=B.useState(!1),[l,u]=B.useState(!1),c=B.useRef(null),f=ks(t.id),h=typeof n=="number"?n:80;return C.jsxs("div",{ref:c,style:{width:t.width,height:"100%",background:tr(t.background),position:"relative",display:"flex",flexDirection:"column",borderLeft:e==="right"?"1px solid rgba(255,255,255,0.05)":"none",borderRight:e==="left"?"1px solid rgba(255,255,255,0.05)":"none",transition:"outline 0.2s",outline:r&&o?"1px dashed rgba(99,102,241,0.5)":"none",outlineOffset:-1},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[C.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:f?C.jsx(f,{blockId:t.id,title:t.title,width:t.width,height:h}):C.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"rgba(255,255,255,0.2)",fontSize:10,gap:2,userSelect:"none"},children:[C.jsx("span",{style:{fontSize:16,opacity:.4},children:"📦"}),C.jsx("span",{children:t.title}),C.jsxs("span",{style:{fontSize:8,opacity:.5,fontFamily:"monospace"},children:["ID: ",t.id.slice(0,8)]})]})}),r&&o&&C.jsxs("div",{style:{position:"absolute",top:2,right:2,display:"flex",gap:2,zIndex:10},children:[C.jsx(Md,{title:"编辑面板",color:"rgba(99,102,241",onClick:()=>u(!l),children:C.jsx(ah,{size:10})}),C.jsx(Md,{title:"删除面板",color:"rgba(239,68,68",onClick:()=>i?.(),children:C.jsx(pl,{size:10})})]}),l&&r&&C.jsx(vx,{panel:t,onUpdate:a,onClose:()=>u(!1),anchorRef:c})]})},vx=t=>th.createPortal(C.jsx(px,{...t}),document.body),px=({panel:t,onUpdate:e,onClose:r,anchorRef:n})=>{const[i,a]=B.useState(t.title),[o,s]=B.useState(t.width),l=B.useRef(null),[u,c]=B.useState({top:0,left:0});return B.useEffect(()=>{let f;const h=()=>{if(!n.current)return;const v=document.body.getBoundingClientRect().width/document.body.offsetWidth||1,g=n.current.getBoundingClientRect(),p=220;let m=g.left/v,y=g.bottom/v+4;const _=window.innerWidth/v,b=window.innerHeight/v;m+p>_&&(m=_-p-8),m<8&&(m=8),y+200>b&&(y=g.top/v-200),c(S=>S.top===y&&S.left===m?S:{top:y,left:m}),f=requestAnimationFrame(h)};return f=requestAnimationFrame(h),()=>cancelAnimationFrame(f)},[n]),B.useEffect(()=>{const f=d=>{l.current&&!l.current.contains(d.target)&&r()},h=setTimeout(()=>document.addEventListener("mousedown",f),0);return()=>{clearTimeout(h),document.removeEventListener("mousedown",f)}},[r]),C.jsxs("div",{ref:l,style:{position:"fixed",top:u.top,left:u.left,width:220,background:"rgba(10,15,30,0.97)",border:"1px solid rgba(99,102,241,0.4)",borderRadius:6,padding:10,zIndex:99999,boxShadow:"0 8px 24px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",gap:8,fontSize:11},onClick:f=>f.stopPropagation(),children:[C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:2},children:[C.jsx("span",{style:{fontWeight:700,color:"#a78bfa",fontSize:11},children:"面板设置"}),C.jsx("button",{onClick:r,style:{background:"none",border:"none",color:"rgba(255,255,255,0.4)",cursor:"pointer",fontSize:14,lineHeight:1},children:"×"})]}),C.jsx(Xl,{label:"面板 ID",children:C.jsx("div",{style:{padding:"3px 6px",background:"rgba(255,255,255,0.04)",borderRadius:3,fontSize:9,color:"rgba(255,255,255,0.3)",fontFamily:"monospace",userSelect:"all"},children:t.id})}),C.jsx(Xl,{label:"标题",children:C.jsx("input",{value:i,onChange:f=>a(f.target.value),onBlur:()=>e?.({title:i}),style:Ad})}),C.jsx(Xl,{label:"宽度 (px)",children:C.jsx("input",{type:"number",value:o,min:60,max:600,onChange:f=>{const h=Number(f.target.value);s(h)},onBlur:()=>e?.({width:o}),style:Ad})})]})},kd=({onClick:t,label:e})=>C.jsxs("button",{onClick:t,style:{height:28,padding:"0 8px",margin:"0 4px",display:"flex",alignItems:"center",gap:2,background:"rgba(99,102,241,0.12)",border:"1px dashed rgba(99,102,241,0.4)",borderRadius:4,color:"rgba(99,102,241,0.8)",fontSize:10,cursor:"pointer",whiteSpace:"nowrap",flexShrink:0,transition:"all 0.15s"},onMouseEnter:r=>r.currentTarget.style.background="rgba(99,102,241,0.25)",onMouseLeave:r=>r.currentTarget.style.background="rgba(99,102,241,0.12)",title:"添加面板",children:[C.jsx(ih,{size:10}),e]}),Md=({onClick:t,color:e,title:r,children:n})=>C.jsx("button",{onClick:i=>{i.stopPropagation(),t()},title:r,style:{width:18,height:18,display:"flex",alignItems:"center",justifyContent:"center",background:`${e},0.2)`,border:`1px solid ${e},0.4)`,borderRadius:3,cursor:"pointer",color:`${e},0.9)`,padding:0,transition:"all 0.15s"},onMouseEnter:i=>i.currentTarget.style.background=`${e},0.35)`,onMouseLeave:i=>i.currentTarget.style.background=`${e},0.2)`,children:n}),Xl=({label:t,children:e})=>C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[C.jsx("label",{style:{fontSize:10,color:"rgba(255,255,255,0.4)"},children:t}),e]}),Ad={width:"100%",padding:"3px 6px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:3,color:"#fff",fontSize:11,outline:"none",boxSizing:"border-box"};function gx(t){if(!t)return"solid";const e=t.trim();return e.startsWith("url(")||e.startsWith("data:")||e.startsWith("/")?"image":e.includes("gradient")?"gradient":"solid"}function ql(t){const e=t.match(/linear-gradient\(\s*(\d+deg)\s*,\s*(.+?)\s+\d+%?\s*,\s*(.+?)\s+\d+%?\s*\)/);return e?{angle:e[1],c1:e[2],c2:e[3]}:{angle:"135deg",c1:"#0f172a",c2:"#1e293b"}}function Rd(t){return t.startsWith("#")&&(t.length===4||t.length===7||t.length===9)?t:"#000000"}const _r=({value:t,onChange:e})=>{const[r,n]=B.useState(()=>gx(t)),[i,a]=B.useState(()=>ql(t).angle),[o,s]=B.useState(()=>ql(t).c1),[l,u]=B.useState(()=>ql(t).c2),[c,f]=B.useState(()=>{const p=t?.trim()??"";return p.startsWith("#")?p:"#0f172a"}),h=B.useRef(null),d=[{key:"solid",icon:C.jsx(Um,{size:10}),label:"纯色"},{key:"gradient",icon:C.jsx(kc,{size:10}),label:"渐变"},{key:"image",icon:C.jsx(Es,{size:10}),label:"图片"}],v=p=>{const m=p.target.files?.[0];if(!m)return;const y=new FileReader;y.onload=()=>{const _=y.result;e(`url(${_}) center/cover no-repeat`)},y.readAsDataURL(m),p.target.value=""},g=(p,m,y)=>`linear-gradient(${p}, ${m} 0%, ${y} 100%)`;return C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[C.jsx("div",{style:{height:28,borderRadius:4,border:"1px solid rgba(99,102,241,0.3)",background:t||"transparent",backgroundSize:"cover",backgroundPosition:"center"}}),C.jsx("div",{style:{display:"flex",gap:4},children:d.map(p=>C.jsxs("button",{onClick:()=>n(p.key),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:3,padding:"3px 0",fontSize:10,borderRadius:4,border:`1px solid ${r===p.key?"rgba(99,102,241,0.6)":"rgba(255,255,255,0.1)"}`,background:r===p.key?"rgba(99,102,241,0.2)":"rgba(255,255,255,0.04)",color:r===p.key?"#a78bfa":"rgba(255,255,255,0.4)",cursor:"pointer",transition:"all 0.15s"},children:[p.icon," ",p.label]},p.key))}),r==="solid"&&C.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[C.jsx("input",{type:"color",value:c.startsWith("#")?c.slice(0,7):"#000000",onChange:p=>{f(p.target.value),e(p.target.value)},style:{width:28,height:28,border:"1px solid rgba(99,102,241,0.3)",borderRadius:4,cursor:"pointer",padding:0,background:"none"}}),C.jsx("input",{type:"text",value:t,onChange:p=>e(p.target.value),onBlur:p=>e(p.target.value),placeholder:"#hex / rgba() / transparent",style:Kn})]}),r==="gradient"&&C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:5},children:[C.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[C.jsx("label",{style:Zl,children:"角度"}),C.jsx("select",{value:i,onChange:p=>{a(p.target.value),e(g(p.target.value,o,l))},style:{...Kn,width:70,flex:"none"},children:["0deg","45deg","90deg","135deg","180deg","225deg","270deg","315deg"].map(p=>C.jsx("option",{value:p,children:p},p))})]}),C.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[C.jsx("label",{style:Zl,children:"色1"}),C.jsx("input",{type:"color",value:Rd(o),onChange:p=>{s(p.target.value),e(g(i,p.target.value,l))},style:Ld}),C.jsx("input",{type:"text",value:o,onChange:p=>{s(p.target.value),e(g(i,p.target.value,l))},style:Kn})]}),C.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[C.jsx("label",{style:Zl,children:"色2"}),C.jsx("input",{type:"color",value:Rd(l),onChange:p=>{u(p.target.value),e(g(i,o,p.target.value))},style:Ld}),C.jsx("input",{type:"text",value:l,onChange:p=>{u(p.target.value),e(g(i,o,p.target.value))},style:Kn})]}),C.jsx("input",{type:"text",value:t,onChange:p=>e(p.target.value),placeholder:"完整 CSS gradient 值",style:{...Kn,fontSize:9,color:"rgba(255,255,255,0.35)"}})]}),r==="image"&&C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:5},children:[C.jsxs("button",{onClick:()=>h.current?.click(),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"6px 0",fontSize:11,borderRadius:4,border:"1px dashed rgba(99,102,241,0.5)",background:"rgba(99,102,241,0.1)",color:"#a78bfa",cursor:"pointer",transition:"all 0.15s"},children:[C.jsx(Es,{size:12})," 上传图片"]}),C.jsx("input",{ref:h,type:"file",accept:"image/*",onChange:v,style:{display:"none"}}),C.jsx("input",{type:"text",value:t,onChange:p=>e(p.target.value),placeholder:"url() 或 /assets/xxx.png",style:{...Kn,fontSize:9,color:"rgba(255,255,255,0.35)"}})]})]})},Kn={flex:1,padding:"4px 6px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:4,color:"#fff",fontSize:10,outline:"none",boxSizing:"border-box",minWidth:0},Ld={width:22,height:22,border:"1px solid rgba(99,102,241,0.3)",borderRadius:3,cursor:"pointer",padding:0,background:"none",flexShrink:0},Zl={fontSize:9,color:"rgba(255,255,255,0.35)",width:22,flexShrink:0,textAlign:"right"},Ym=({block:t,editMode:e,onRemove:r,onUpdate:n,onDragStart:i,children:a})=>{const[o,s]=B.useState(!1),[l,u]=B.useState(!1),[c,f]=B.useState(!1),h=B.useRef(null),d=ks(t.layout.i)||ks(t.id);return C.jsxs("div",{style:{width:"100%",height:"100%",background:tr(t.blockBackground),border:e?c?"1px solid rgba(99,102,241,0.6)":"1px solid rgba(99,102,241,0.3)":"1px solid rgba(255,255,255,0.05)",borderRadius:8,overflow:"hidden",display:"flex",flexDirection:"column",boxSizing:"border-box",backdropFilter:"blur(4px)",transition:"border-color 0.2s, box-shadow 0.2s",position:"relative",boxShadow:e&&c?"0 0 20px rgba(99,102,241,0.15)":"0 4px 16px rgba(0,0,0,0.3)"},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[!e&&C.jsx(yx,{}),C.jsxs("div",{className:e?"drag-handle":"",onMouseDown:e?i:void 0,style:{height:`${t.titleHeight}px`,flexShrink:0,background:tr(t.titleBackground),display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 12px",boxSizing:"border-box",cursor:e?"move":"default",borderBottom:"1px solid rgba(255,255,255,0.06)",userSelect:"none"},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flex:1,minWidth:0},children:[e&&C.jsx(Gm,{size:14,style:{color:"rgba(255,255,255,0.25)",flexShrink:0}}),C.jsx("div",{style:{width:3,height:14,borderRadius:2,background:"linear-gradient(180deg, #38bdf8, #6366f1)",flexShrink:0}}),l?C.jsx("input",{autoFocus:!0,defaultValue:t.title,style:{flex:1,background:"rgba(255,255,255,0.1)",border:"1px solid rgba(99,102,241,0.5)",borderRadius:4,color:"#fff",fontSize:13,padding:"2px 6px",outline:"none",minWidth:0},onBlur:v=>{n?.({title:v.target.value}),u(!1)},onKeyDown:v=>{v.key==="Enter"&&(n?.({title:v.target.value}),u(!1)),v.key==="Escape"&&u(!1)}}):C.jsx("span",{style:{fontSize:13,fontWeight:600,color:"rgba(255,255,255,0.9)",letterSpacing:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:e?"text":"default",flex:1},onDoubleClick:()=>e&&u(!0),title:e?"双击编辑标题":t.title,children:t.title})]}),e&&C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexShrink:0},children:[C.jsx(Id,{ref:h,onClick:v=>{v.stopPropagation(),s(g=>!g)},color:"rgba(99,102,241",active:o,title:"区块设置",children:C.jsx(ah,{size:12})}),C.jsx(Id,{onClick:v=>{v.stopPropagation(),r?.()},color:"rgba(239,68,68",title:"删除区块",children:C.jsx(pl,{size:12})})]})]}),C.jsx("div",{style:{flex:1,background:tr(t.contentBackground),overflow:"hidden",position:"relative"},children:a??(d?C.jsx(d,{blockId:t.layout.i||t.id,title:t.title}):C.jsx(mx,{blockId:t.layout.i||t.id}))}),o&&e&&C.jsx(_x,{block:t,onUpdate:n,onClose:()=>s(!1),anchorRef:h})]})},mx=({blockId:t})=>C.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"rgba(255,255,255,0.3)",fontSize:11,gap:6,padding:16,boxSizing:"border-box",textAlign:"center"},children:[C.jsx("span",{style:{fontSize:24,opacity:.3},children:"📦"}),C.jsx("span",{children:"未绑定组件"}),C.jsxs("span",{style:{fontSize:10,opacity:.5},children:["ID: ",t]}),C.jsx("span",{style:{fontSize:9,opacity:.3,lineHeight:1.6},children:"在 src/blocks/index.ts 中注册"})]}),yx=()=>{const[t,e]=B.useState(0),r=B.useRef(0),n=B.useRef(0);return B.useEffect(()=>{const a=o=>{n.current||(n.current=o);const s=(o-n.current)%3e3;e(s/3e3*100),r.current=requestAnimationFrame(a)};return r.current=requestAnimationFrame(a),()=>cancelAnimationFrame(r.current)},[]),C.jsx("div",{style:{position:"absolute",top:`${t}%`,left:0,right:0,height:1,background:"linear-gradient(90deg, transparent, rgba(56,189,248,0.4), transparent)",zIndex:1,pointerEvents:"none"}})},Id=B.forwardRef(({onClick:t,color:e,children:r,title:n,active:i},a)=>C.jsx("button",{ref:a,onClick:t,title:n,style:{background:i?`${e},0.3)`:`${e},0.15)`,border:`1px solid ${e},${i?"0.6":"0.35"})`,borderRadius:4,cursor:"pointer",color:`${e},0.9)`,padding:"3px 6px",display:"flex",alignItems:"center",transition:"all 0.2s"},onMouseEnter:o=>o.currentTarget.style.background=`${e},0.3)`,onMouseLeave:o=>o.currentTarget.style.background=i?`${e},0.3)`:`${e},0.15)`,children:r})),_x=t=>th.createPortal(C.jsx(bx,{...t}),document.body),bx=({block:t,onUpdate:e,onClose:r,anchorRef:n})=>{const i=B.useRef(null),[a,o]=B.useState({top:0,left:0});return B.useEffect(()=>{if(!n?.current)return;let s;const l=()=>{if(!n.current)return;const c=document.body.getBoundingClientRect().width/document.body.offsetWidth||1,f=n.current.getBoundingClientRect(),h=260,d=window.innerWidth/c,v=window.innerHeight/c;let g=f.right/c-h,p=f.bottom/c+4;g+h>d&&(g=d-h-8),g<8&&(g=8),p+300>v&&(p=f.top/c-300),o(m=>m.top===p&&m.left===g?m:{top:p,left:g}),s=requestAnimationFrame(l)};return s=requestAnimationFrame(l),()=>cancelAnimationFrame(s)},[n]),B.useEffect(()=>{const s=u=>{i.current&&!i.current.contains(u.target)&&r?.()},l=setTimeout(()=>document.addEventListener("mousedown",s),0);return()=>{clearTimeout(l),document.removeEventListener("mousedown",s)}},[r]),C.jsxs("div",{ref:i,onClick:s=>s.stopPropagation(),style:{position:"fixed",top:a.top,left:a.left,width:260,maxHeight:"70vh",overflowY:"auto",background:"rgba(10,15,30,0.98)",border:"1px solid rgba(99,102,241,0.4)",borderRadius:8,padding:12,zIndex:99999,boxShadow:"0 8px 32px rgba(0,0,0,0.6)",fontSize:12,color:"rgba(255,255,255,0.8)"},children:[C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10,paddingBottom:8,borderBottom:"1px solid rgba(99,102,241,0.2)"},children:[C.jsx("span",{style:{fontWeight:700,color:"#a78bfa",fontSize:12},children:"🔧 区块设置"}),C.jsx("button",{onClick:r,style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:4,color:"rgba(255,255,255,0.5)",cursor:"pointer",fontSize:14,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1},children:"×"})]}),C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[C.jsx(Jn,{label:"区块 ID",children:C.jsx("div",{style:{padding:"4px 8px",background:"rgba(255,255,255,0.04)",borderRadius:4,fontSize:10,color:"rgba(255,255,255,0.4)",fontFamily:"monospace",userSelect:"all"},children:t.layout.i||t.id})}),C.jsx(Jn,{label:"标题文字",children:C.jsx(Pd,{defaultValue:t.title,onCommit:s=>e?.({title:s}),placeholder:"输入标题"})}),C.jsx(Jn,{label:"标题高度 (px)",children:C.jsx(Pd,{type:"number",defaultValue:String(t.titleHeight),onCommit:s=>e?.({titleHeight:Number(s)}),placeholder:"24~80"})}),C.jsx(Jn,{label:"区块背景",children:C.jsx(_r,{value:t.blockBackground,onChange:s=>e?.({blockBackground:s})})}),C.jsx(Jn,{label:"标题背景",children:C.jsx(_r,{value:t.titleBackground,onChange:s=>e?.({titleBackground:s})})}),C.jsx(Jn,{label:"内容背景",children:C.jsx(_r,{value:t.contentBackground,onChange:s=>e?.({contentBackground:s})})})]})]})},Jn=({label:t,children:e})=>C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:3},children:[C.jsx("label",{style:{fontSize:10,color:"rgba(255,255,255,0.4)",letterSpacing:.5},children:t}),e]}),Pd=({defaultValue:t,onCommit:e,placeholder:r,type:n="text"})=>{const[i,a]=B.useState(t??"");return C.jsx("input",{type:n,value:i,onChange:o=>a(o.target.value),onBlur:()=>e?.(i),onKeyDown:o=>o.key==="Enter"&&e?.(i),placeholder:r,style:{width:"100%",padding:"4px 8px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:4,color:"#fff",fontSize:11,outline:"none",boxSizing:"border-box",transition:"border-color 0.2s"},onFocus:o=>o.target.style.borderColor="rgba(99,102,241,0.7)"})},_o=6;function Kl(t,e,r,n){const i=[];let a=null,o=null,s=_o+1,l=_o+1;const u=t.x,c=t.x+t.w,f=t.x+t.w/2,h=t.y,d=t.y+t.h,v=t.y+t.h/2,g=[0,r,r/2],p=[0,n,n/2];e.forEach(k=>{g.push(k.x,k.x+k.w,k.x+k.w/2),p.push(k.y,k.y+k.h,k.y+k.h/2)});const m=[u,c,f];for(const k of g)for(const A of m){const R=Math.abs(A-k);R<s&&(s=R,a=t.x+(k-A))}const y=[h,d,v];for(const k of p)for(const A of y){const R=Math.abs(A-k);R<l&&(l=R,o=t.y+(k-A))}const _=s<=_o&&a!==null?a:t.x,b=l<=_o&&o!==null?o:t.y,S=_,x=_+t.w,w=_+t.w/2,T=b,D=b+t.h,E=b+t.h/2;for(const k of g)(Math.abs(S-k)<1||Math.abs(x-k)<1||Math.abs(w-k)<1)&&(i.some(A=>A.type==="v"&&Math.abs(A.pos-k)<1)||i.push({type:"v",pos:k}));for(const k of p)(Math.abs(T-k)<1||Math.abs(D-k)<1||Math.abs(E-k)<1)&&(i.some(A=>A.type==="h"&&Math.abs(A.pos-k)<1)||i.push({type:"h",pos:k}));return{x:_,y:b,lines:i}}const Xm=({config:t,chartBlocks:e,editMode:r,onAddBlock:n,onRemoveBlock:i,onUpdateBlock:a,onLayoutChange:o,onReorderBlocks:s})=>{const l=B.useRef(null),[,u]=B.useState(()=>{let x=0;return e.forEach(w=>{(w.layout.zIndex??0)>x&&(x=w.layout.zIndex??0)}),x}),c=B.useRef(null),[f,h]=B.useState(null),d=B.useRef(null),[v,g]=B.useState(new Set),[p,m]=B.useState([]),y=(x,w)=>x.x<w.x+w.w&&x.x+x.w>w.x&&x.y<w.y+w.h&&x.y+x.h>w.y,_=B.useCallback((x,w)=>{const T=new Set;return e.forEach(D=>{if(D.id===x)return;const E={x:D.layout.x,y:D.layout.y,w:D.layout.w,h:D.layout.h};y(w,E)&&T.add(D.id)}),g(T),T},[e]),b=B.useCallback(x=>{u(w=>{const T=w+1;return e.find(E=>E.id===x)&&o?.(e.map(E=>({...E.layout,zIndex:E.id===x?T:E.layout.zIndex??0}))),T})},[e,o]),S=B.useCallback((x,w,T)=>{if(!r)return;x.preventDefault(),x.stopPropagation(),b(w.id),c.current={blockId:w.id,startMouseX:x.clientX,startMouseY:x.clientY,startX:w.layout.x,startY:w.layout.y,type:T,startW:w.layout.w,startH:w.layout.h},h({blockId:w.id,x:w.layout.x,y:w.layout.y,w:w.layout.w,h:w.layout.h}),d.current={blockId:w.id,x:w.layout.x,y:w.layout.y,w:w.layout.w,h:w.layout.h};const D=k=>{const A=c.current;if(!A)return;const L=document.body.getBoundingClientRect().width/document.body.offsetWidth||1,N=(k.clientX-A.startMouseX)/L,O=(k.clientY-A.startMouseY)/L,F=l.current?.clientWidth??9999,P=l.current?.clientHeight??9999,G=e.filter(W=>W.id!==A.blockId).map(W=>({x:W.layout.x,y:W.layout.y,w:W.layout.w,h:W.layout.h}));if(A.type==="move"){const W=Math.min(Math.max(0,A.startX+N),F-A.startW),U=Math.min(Math.max(0,A.startY+O),P-A.startH),j=Kl({x:W,y:U,w:A.startW,h:A.startH},G,F,P),H={blockId:A.blockId,x:Math.min(Math.max(0,j.x),F-A.startW),y:Math.min(Math.max(0,j.y),P-A.startH),w:A.startW,h:A.startH};_(A.blockId,H),m(j.lines),h(H),d.current=H}else{const W=w.layout.minW??100,U=w.layout.minH??80,j=F-A.startX,H=P-A.startY,K=Math.min(Math.max(W,A.startW+N),j),fe=Math.min(Math.max(U,A.startH+O),H),Pe=Kl({x:A.startX,y:A.startY,w:K,h:fe},G,F,P);A.blockId,A.startX,A.startY,Math.min(Math.max(W,Pe.x-A.startX+K),j),Math.min(Math.max(U,Pe.y-A.startY+fe),H);const de=Kl({x:A.startX,y:A.startY,w:K,h:fe},G,F,P),Ze={blockId:A.blockId,x:A.startX,y:A.startY,w:K,h:fe};_(A.blockId,Ze),m(de.lines),h(Ze),d.current=Ze}},E=()=>{const k=c.current,A=d.current;k&&A&&o?.(e.map(R=>R.id===k.blockId?{...R.layout,x:A.x,y:A.y,w:A.w,h:A.h}:R.layout)),c.current=null,d.current=null,h(null),g(new Set),m([]),window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",E)};window.addEventListener("mousemove",D),window.addEventListener("mouseup",E)},[r,e,o,b]);return B.useEffect(()=>{const x=()=>{const w=l.current?.clientWidth,T=l.current?.clientHeight;if(!w||!T||!e.length)return;let D=!1;const E=e.map(k=>{let{x:A,y:R,w:L,h:N}=k.layout;L>w&&(L=w,D=!0),N>T&&(N=T,D=!0);const O=Math.min(Math.max(0,A),w-L),F=Math.min(Math.max(0,R),T-N);return(O!==A||F!==R)&&(D=!0),{...k.layout,x:O,y:F,w:L,h:N}});D&&o?.(E)};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[e,o]),t.visible?C.jsxs("div",{ref:l,style:{width:"100%",flex:1,background:tr(t.background),position:"relative",overflow:"hidden",boxSizing:"border-box",border:r?"1px dashed rgba(99,102,241,0.2)":"none",minHeight:0},children:[r&&C.jsx("span",{style:{position:"absolute",top:4,left:8,fontSize:10,color:"rgba(99,102,241,0.6)",userSelect:"none",zIndex:99999,pointerEvents:"none"},children:"中间区域 · 自由拖拽/缩放图表区块(可层叠)"}),e.map(x=>{const w=f?.blockId===x.id,T=v.has(x.id),D=w?f:{x:x.layout.x,y:x.layout.y,w:x.layout.w,h:x.layout.h};return C.jsxs("div",{"data-block-id":x.id,style:{position:"absolute",left:D.x,top:D.y,width:D.w,height:D.h,zIndex:x.layout.zIndex??0,transition:w?"none":"box-shadow 0.2s, outline 0.2s",boxShadow:w?v.size>0?"0 0 24px rgba(239,68,68,0.6)":"0 8px 32px rgba(0,0,0,0.5)":"none",outline:T||w&&v.size>0?"2px solid rgba(239,68,68,0.7)":"none",outlineOffset:T||w&&v.size>0?-1:0,cursor:"default"},onMouseDown:()=>r&&b(x.id),children:[C.jsx(Ym,{block:x,editMode:r,onRemove:()=>i?.(x.id),onUpdate:E=>a?.(x.id,E),onDragStart:E=>S(E,x,"move")}),r&&C.jsx("div",{onMouseDown:E=>S(E,x,"resize"),style:{position:"absolute",right:0,bottom:0,width:16,height:16,cursor:"se-resize",zIndex:10},children:C.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",style:{position:"absolute",right:2,bottom:2},children:[C.jsx("line",{x1:"14",y1:"4",x2:"4",y2:"14",stroke:"rgba(99,102,241,0.6)",strokeWidth:"1.5"}),C.jsx("line",{x1:"14",y1:"8",x2:"8",y2:"14",stroke:"rgba(99,102,241,0.6)",strokeWidth:"1.5"}),C.jsx("line",{x1:"14",y1:"12",x2:"12",y2:"14",stroke:"rgba(99,102,241,0.6)",strokeWidth:"1.5"})]})})]},x.id)}),r&&C.jsx(xx,{chartBlocks:e,onRemoveBlock:i,onReorderBlocks:s}),r&&p.map((x,w)=>C.jsx("div",{style:{position:"absolute",zIndex:99997,pointerEvents:"none",...x.type==="v"?{left:x.pos,top:0,width:1,height:"100%",borderLeft:"1px dashed rgba(251,191,36,0.8)"}:{top:x.pos,left:0,height:1,width:"100%",borderTop:"1px dashed rgba(251,191,36,0.8)"}}},`align-${w}`)),r&&C.jsxs("button",{onClick:n,style:{position:"absolute",bottom:12,right:12,display:"flex",alignItems:"center",gap:6,padding:"8px 16px",background:"rgba(99,102,241,0.2)",border:"1px solid rgba(99,102,241,0.5)",borderRadius:8,color:"rgba(99,102,241,0.9)",fontSize:13,cursor:"pointer",backdropFilter:"blur(4px)",transition:"all 0.2s",zIndex:99999},onMouseEnter:x=>x.currentTarget.style.background="rgba(99,102,241,0.35)",onMouseLeave:x=>x.currentTarget.style.background="rgba(99,102,241,0.2)",children:[C.jsx(ih,{size:16}),"新增图表区块"]})]}):null},xx=({chartBlocks:t,onRemoveBlock:e,onReorderBlocks:r})=>{const[n,i]=B.useState(!1),[a,o]=B.useState(!1),s=B.useRef(null),[l,u]=B.useState(null),[c,f]=B.useState(null),h=[...t].sort((S,x)=>(x.layout.zIndex??0)-(S.layout.zIndex??0)),d=()=>{s.current&&(clearTimeout(s.current),s.current=null),o(!0),i(!0)},v=()=>{o(!1),s.current=setTimeout(()=>i(!1),300)},g=()=>{s.current&&(clearTimeout(s.current),s.current=null)},p=()=>{s.current=setTimeout(()=>{i(!1),o(!1)},300)},m=S=>x=>{u(S),x.dataTransfer.effectAllowed="move";const w=document.createElement("div");w.style.opacity="0",document.body.appendChild(w),x.dataTransfer.setDragImage(w,0,0),setTimeout(()=>document.body.removeChild(w),0)},y=S=>x=>{x.preventDefault(),x.dataTransfer.dropEffect="move",f(S)},_=S=>x=>{if(x.preventDefault(),l===null||l===S){u(null),f(null);return}const w=[...h],[T]=w.splice(l,1);w.splice(S,0,T);const E=[...w.map(k=>k.id)].reverse();r?.(E),u(null),f(null)},b=()=>{u(null),f(null)};return C.jsxs(C.Fragment,{children:[C.jsx("div",{onMouseEnter:d,onMouseLeave:v,style:{position:"absolute",top:"50%",right:0,transform:"translateY(-50%)",width:a||n?28:6,height:64,display:"flex",alignItems:"center",justifyContent:"center",background:a||n?"rgba(99,102,241,0.3)":"rgba(99,102,241,0.1)",borderRadius:"4px 0 0 4px",cursor:"pointer",zIndex:99998,transition:"all 0.25s ease",overflow:"hidden"},children:(a||n)&&C.jsx(kc,{size:14,style:{color:"rgba(99,102,241,0.9)",flexShrink:0}})}),C.jsxs("div",{onMouseEnter:g,onMouseLeave:p,style:{position:"absolute",top:0,right:n?0:-240,width:236,height:"100%",background:"rgba(10,15,30,0.95)",borderLeft:"1px solid rgba(99,102,241,0.3)",zIndex:99998,transition:"right 0.3s cubic-bezier(0.4,0,0.2,1)",display:"flex",flexDirection:"column",backdropFilter:"blur(12px)",boxShadow:n?"-4px 0 20px rgba(0,0,0,0.4)":"none"},children:[C.jsxs("div",{style:{padding:"10px 12px",borderBottom:"1px solid rgba(99,102,241,0.2)",display:"flex",alignItems:"center",gap:6,flexShrink:0},children:[C.jsx(kc,{size:14,style:{color:"#a78bfa"}}),C.jsx("span",{style:{fontSize:12,fontWeight:700,color:"#a78bfa",letterSpacing:.5},children:"层级管理"}),C.jsxs("span",{style:{fontSize:10,color:"rgba(255,255,255,0.3)",marginLeft:"auto"},children:[t.length," 个区块"]})]}),C.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"6px 0"},children:[h.length===0&&C.jsx("div",{style:{padding:20,textAlign:"center",color:"rgba(255,255,255,0.25)",fontSize:11},children:"暂无区块"}),h.map((S,x)=>{const w=c===x&&l!==null&&l!==x,T=l===x;return C.jsxs("div",{draggable:!0,onDragStart:m(x),onDragOver:y(x),onDrop:_(x),onDragEnd:b,style:{display:"flex",alignItems:"center",gap:6,padding:"6px 10px",margin:"0 6px",borderRadius:6,background:w?"rgba(99,102,241,0.2)":T?"rgba(99,102,241,0.1)":"transparent",borderTop:w&&l!==null&&l>x?"2px solid rgba(99,102,241,0.6)":"2px solid transparent",borderBottom:w&&l!==null&&l<x?"2px solid rgba(99,102,241,0.6)":"2px solid transparent",opacity:T?.5:1,cursor:"grab",transition:"background 0.15s, border 0.15s, opacity 0.15s",userSelect:"none"},onMouseEnter:D=>{l===null&&(D.currentTarget.style.background="rgba(255,255,255,0.05)")},onMouseLeave:D=>{l===null&&(D.currentTarget.style.background="transparent")},children:[C.jsx(Gm,{size:12,style:{color:"rgba(255,255,255,0.2)",flexShrink:0,cursor:"grab"}}),C.jsx("div",{style:{width:20,height:20,borderRadius:4,background:"rgba(99,102,241,0.15)",border:"1px solid rgba(99,102,241,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:9,color:"rgba(99,102,241,0.8)",fontWeight:700,flexShrink:0},children:S.layout.zIndex??0}),C.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:11,color:"rgba(255,255,255,0.75)"},children:S.title}),C.jsx("button",{onClick:D=>{D.stopPropagation(),e?.(S.id)},title:"删除区块",style:{background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.25)",borderRadius:4,cursor:"pointer",color:"rgba(239,68,68,0.7)",padding:"2px 4px",display:"flex",alignItems:"center",flexShrink:0,transition:"all 0.15s"},onMouseEnter:D=>{D.currentTarget.style.background="rgba(239,68,68,0.25)",D.currentTarget.style.color="rgba(239,68,68,0.9)"},onMouseLeave:D=>{D.currentTarget.style.background="rgba(239,68,68,0.1)",D.currentTarget.style.color="rgba(239,68,68,0.7)"},children:C.jsx(pl,{size:10})})]},S.id)})]}),C.jsx("div",{style:{padding:"8px 12px",borderTop:"1px solid rgba(99,102,241,0.15)",fontSize:9,color:"rgba(255,255,255,0.2)",textAlign:"center",flexShrink:0},children:"拖拽调整层级顺序 · 上方 = 更高层级"})]})]})},qm=[{name:"fa-solid fa-chart-line",label:"折线图"},{name:"fa-solid fa-chart-bar",label:"柱状图"},{name:"fa-solid fa-chart-pie",label:"饼图"},{name:"fa-solid fa-chart-area",label:"面积图"},{name:"fa-solid fa-chart-column",label:"列图"},{name:"fa-solid fa-chart-simple",label:"简易图"},{name:"fa-solid fa-database",label:"数据库"},{name:"fa-solid fa-table",label:"表格"},{name:"fa-solid fa-ranking-star",label:"排行"},{name:"fa-solid fa-shield-halved",label:"安全"},{name:"fa-solid fa-bell",label:"告警"},{name:"fa-solid fa-triangle-exclamation",label:"预警"},{name:"fa-solid fa-eye",label:"监控"},{name:"fa-solid fa-video",label:"视频"},{name:"fa-solid fa-lock",label:"锁定"},{name:"fa-solid fa-server",label:"服务器"},{name:"fa-solid fa-desktop",label:"终端"},{name:"fa-solid fa-microchip",label:"芯片"},{name:"fa-solid fa-gear",label:"设置"},{name:"fa-solid fa-gears",label:"系统"},{name:"fa-solid fa-wifi",label:"WiFi"},{name:"fa-solid fa-satellite-dish",label:"卫星"},{name:"fa-solid fa-earth-asia",label:"地球"},{name:"fa-solid fa-map",label:"地图"},{name:"fa-solid fa-location-dot",label:"定位"},{name:"fa-solid fa-compass",label:"罗盘"},{name:"fa-solid fa-user",label:"用户"},{name:"fa-solid fa-users",label:"团队"},{name:"fa-solid fa-user-shield",label:"管理"},{name:"fa-solid fa-id-badge",label:"证件"},{name:"fa-solid fa-envelope",label:"邮件"},{name:"fa-solid fa-comment",label:"消息"},{name:"fa-solid fa-phone",label:"电话"},{name:"fa-solid fa-share-nodes",label:"分享"},{name:"fa-solid fa-house",label:"首页"},{name:"fa-solid fa-magnifying-glass",label:"搜索"},{name:"fa-solid fa-calendar",label:"日期"},{name:"fa-solid fa-folder",label:"文件夹"},{name:"fa-solid fa-link",label:"链接"},{name:"fa-solid fa-bolt",label:"闪电"},{name:"fa-solid fa-fire",label:"火焰"},{name:"fa-solid fa-rocket",label:"火箭"},{name:"fa-solid fa-bullseye",label:"靶心"},{name:"fa-solid fa-lightbulb",label:"灵感"},{name:"fa-solid fa-circle-check",label:"完成"},{name:"fa-solid fa-cloud",label:"云端"},{name:"fa-solid fa-download",label:"下载"},{name:"fa-solid fa-upload",label:"上传"}],Zm=["📊","📈","📉","🗺️","⚙️","🔔","🔒","🖥️","📡","🌐","💾","📋","🔍","👤","👥","⭐","🏠","📌","🔗","📁","💡","🎯","🚀","⚡"],Km=({config:t,editMode:e,onAddItem:r,onRemoveItem:n,onUpdateItem:i})=>{if(!t.visible)return null;const a=typeof t.height=="number"?`${t.height}px`:t.height,o=t.itemGap??32;return C.jsxs("div",{style:{width:"100%",height:a,flexShrink:0,background:tr(t.background),display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderTop:e?"1px dashed rgba(99,102,241,0.4)":"none",boxSizing:"border-box",gap:`${o}px`,padding:"0 24px"},children:[C.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:"2px",background:"linear-gradient(90deg, transparent, rgba(99,102,241,0.8), rgba(14,165,233,0.8), transparent)"}}),t.items.map(s=>C.jsx(Tx,{item:s,width:t.itemWidth??80,editMode:e,onRemove:()=>n?.(s.id),onUpdate:l=>i?.(s.id,l)},s.id)),e&&C.jsxs("button",{onClick:r,style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4,cursor:"pointer",background:"rgba(99,102,241,0.15)",border:"1px dashed rgba(99,102,241,0.5)",borderRadius:8,padding:"6px 12px",color:"rgba(99,102,241,0.8)",fontSize:12,transition:"all 0.2s"},onMouseEnter:s=>s.currentTarget.style.background="rgba(99,102,241,0.25)",onMouseLeave:s=>s.currentTarget.style.background="rgba(99,102,241,0.15)",children:[C.jsx(ih,{size:16}),C.jsx("span",{children:"添加"})]}),e&&C.jsx("span",{style:{position:"absolute",top:4,left:8,fontSize:10,color:"rgba(99,102,241,0.6)",userSelect:"none"},children:"底部区域"})]})},Sx=({icon:t,iconType:e="emoji",color:r="#38bdf8",size:n=24})=>{if(e==="iconfont")return C.jsx("i",{className:t,style:{fontSize:n,color:r,filter:`drop-shadow(0 0 6px ${r})`,lineHeight:1}});if(e==="image"){const i=t.startsWith("data:")||t.startsWith("url(")?t.replace(/^url\(|\)$/g,""):t;return C.jsx("img",{src:i,alt:"",style:{width:n,height:n,objectFit:"contain",filter:`drop-shadow(0 0 6px ${r})`}})}return C.jsx("span",{style:{fontSize:n,lineHeight:1,filter:`drop-shadow(0 0 6px ${r})`},children:t})},Tx=({item:t,width:e,editMode:r,onRemove:n,onUpdate:i})=>{const[a,o]=B.useState(!1),[s,l]=B.useState(!1),[u,c]=B.useState(!1),f=B.useRef(null);return C.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4,width:`${e}px`,cursor:r?"pointer":"default",position:"relative",padding:"4px",borderRadius:8,border:r&&s?"1px dashed rgba(99,102,241,0.5)":"1px solid transparent",transition:"all 0.2s"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[C.jsx("div",{ref:f,onClick:()=>r&&c(!0),title:r?"点击选择图标":"",style:{cursor:r?"pointer":"default"},children:C.jsx(Sx,{icon:t.icon,iconType:t.iconType,color:t.color})}),u&&r&&C.jsx(Cx,{anchorRef:f,currentIcon:t.icon,currentType:t.iconType??"emoji",color:t.color??"#38bdf8",onSelect:(h,d,v)=>{i?.({icon:h,iconType:d,...v?{color:v}:{}}),c(!1)},onClose:()=>c(!1)}),a?C.jsx("input",{autoFocus:!0,defaultValue:t.label,style:{width:"100%",textAlign:"center",fontSize:11,background:"rgba(255,255,255,0.1)",border:"1px solid rgba(99,102,241,0.5)",borderRadius:4,color:"#fff",outline:"none",padding:"2px 4px"},onBlur:h=>{i?.({label:h.target.value}),o(!1)},onKeyDown:h=>{h.key==="Enter"&&(i?.({label:h.target.value}),o(!1))}}):C.jsx("span",{style:{fontSize:11,color:t.color??"#38bdf8",textAlign:"center",letterSpacing:1,whiteSpace:"nowrap",textShadow:`0 0 8px ${t.color??"#38bdf8"}`},onClick:()=>r&&o(!0),title:r?"点击编辑文字":"",children:t.label}),r&&s&&C.jsx("button",{onClick:h=>{h.stopPropagation(),n?.()},style:{position:"absolute",top:-8,right:-8,width:18,height:18,borderRadius:"50%",background:"rgba(239,68,68,0.8)",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",padding:0},children:C.jsx(pl,{size:10})})]})},Cx=t=>th.createPortal(C.jsx(Ex,{...t}),document.body),Dx=["#38bdf8","#a78bfa","#34d399","#fb923c","#f472b6","#facc15","#22d3ee","#818cf8","#f87171","#4ade80","#e879f9","#2dd4bf","#60a5fa","#c084fc","#fbbf24","#ffffff","#94a3b8","#64748b"],Ex=({anchorRef:t,currentType:e,color:r,onSelect:n,onClose:i})=>{const[a,o]=B.useState(e),[s,l]=B.useState(r),u=B.useRef(null),c=B.useRef(null),[f,h]=B.useState({top:0,left:0});B.useEffect(()=>{if(!t.current)return;const p=document.body.getBoundingClientRect().width/document.body.offsetWidth||1,m=t.current.getBoundingClientRect(),y=380,_=m.top/p,b=m.bottom/p,S=(m.left+m.width/2)/p,x=window.innerWidth/p;let w=S-y/2,T=_-280;T<8&&(T=b+8),w+y>x&&(w=x-y-8),w<8&&(w=8),h({top:T,left:w})},[t]),B.useEffect(()=>{const g=m=>{u.current&&!u.current.contains(m.target)&&i()},p=setTimeout(()=>document.addEventListener("mousedown",g),0);return()=>{clearTimeout(p),document.removeEventListener("mousedown",g)}},[i]);const d=g=>{const p=g.target.files?.[0];if(!p)return;const m=new FileReader;m.onload=()=>{n(m.result,"image")},m.readAsDataURL(p),g.target.value=""},v=[{key:"emoji",label:"Emoji"},{key:"iconfont",label:"Iconfont"},{key:"image",label:"图片"}];return C.jsxs("div",{ref:u,onClick:g=>g.stopPropagation(),style:{position:"fixed",top:f.top,left:f.left,width:380,background:"rgba(10,15,30,0.98)",border:"1px solid rgba(99,102,241,0.4)",borderRadius:8,padding:10,zIndex:99999,boxShadow:"0 8px 32px rgba(0,0,0,0.6)",fontSize:12,color:"rgba(255,255,255,0.8)"},children:[C.jsx("div",{style:{display:"flex",gap:4,marginBottom:8},children:v.map(g=>C.jsx("button",{onClick:()=>o(g.key),style:{flex:1,padding:"4px 0",fontSize:11,borderRadius:4,border:`1px solid ${a===g.key?"rgba(99,102,241,0.6)":"rgba(255,255,255,0.1)"}`,background:a===g.key?"rgba(99,102,241,0.2)":"rgba(255,255,255,0.04)",color:a===g.key?"#a78bfa":"rgba(255,255,255,0.4)",cursor:"pointer",transition:"all 0.15s"},children:g.label},g.key))}),a==="emoji"&&C.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:4,maxHeight:180,overflowY:"auto"},children:Zm.map(g=>C.jsx("button",{onClick:()=>n(g,"emoji"),style:{width:30,height:30,display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:4,cursor:"pointer",transition:"all 0.1s"},onMouseEnter:p=>p.currentTarget.style.background="rgba(99,102,241,0.2)",onMouseLeave:p=>p.currentTarget.style.background="rgba(255,255,255,0.04)",children:g},g))}),a==="iconfont"&&C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[C.jsx("span",{style:{fontSize:10,color:"rgba(255,255,255,0.4)"},children:"图标颜色"}),C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[Dx.map(g=>C.jsx("button",{onClick:()=>l(g),style:{width:18,height:18,borderRadius:"50%",background:g,border:s===g?"2px solid #fff":"2px solid transparent",cursor:"pointer",padding:0,boxShadow:s===g?`0 0 6px ${g}`:"none",transition:"all 0.15s"}},g)),C.jsx("input",{type:"color",value:s,onChange:g=>l(g.target.value),style:{width:18,height:18,border:"none",borderRadius:"50%",cursor:"pointer",padding:0,background:"transparent"},title:"自定义颜色"})]})]}),C.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:4,maxHeight:160,overflowY:"auto"},children:qm.map(g=>C.jsxs("button",{onClick:()=>n(g.name,"iconfont",s),title:g.label,style:{width:40,height:40,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:4,cursor:"pointer",transition:"all 0.1s",color:s},onMouseEnter:p=>p.currentTarget.style.background="rgba(99,102,241,0.2)",onMouseLeave:p=>p.currentTarget.style.background="rgba(255,255,255,0.04)",children:[C.jsx("i",{className:g.name,style:{fontSize:18}}),C.jsx("span",{style:{fontSize:7,color:"rgba(255,255,255,0.3)",lineHeight:1},children:g.label})]},g.name))})]}),a==="image"&&C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:"8px 0"},children:[C.jsxs("button",{onClick:()=>c.current?.click(),style:{display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"12px 0",fontSize:12,borderRadius:6,border:"1px dashed rgba(99,102,241,0.5)",background:"rgba(99,102,241,0.1)",color:"#a78bfa",cursor:"pointer"},children:[C.jsx(Es,{size:14})," 上传图片作为图标"]}),C.jsx("input",{ref:c,type:"file",accept:"image/*",onChange:d,style:{display:"none"}}),C.jsx("span",{style:{fontSize:9,color:"rgba(255,255,255,0.3)",textAlign:"center"},children:"支持 PNG / SVG / JPG,建议 64x64 以内"})]})]})},Jm=({store:t})=>{const[e,r]=B.useState(!1),[n,i]=B.useState("global"),{config:a}=t,o=s=>i(l=>l===s?null:s);return C.jsxs(C.Fragment,{children:[C.jsx("button",{onClick:()=>r(s=>!s),style:{position:"fixed",top:16,right:16,zIndex:9999,width:44,height:44,borderRadius:"50%",background:e?"linear-gradient(135deg, #6366f1, #a78bfa)":"rgba(15,23,42,0.9)",border:"1px solid rgba(99,102,241,0.5)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",backdropFilter:"blur(8px)",boxShadow:"0 4px 20px rgba(99,102,241,0.3)",transition:"all 0.3s"},title:"打开配置面板",children:e?C.jsx(fx,{size:18}):C.jsx(ah,{size:18})}),C.jsxs("div",{style:{position:"fixed",top:0,right:e?0:-360,width:340,height:"100vh",background:"rgba(10,15,30,0.97)",borderLeft:"1px solid rgba(99,102,241,0.3)",zIndex:9998,overflow:"auto",transition:"right 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backdropFilter:"blur(16px)",boxShadow:e?"-8px 0 32px rgba(0,0,0,0.5)":"none",display:"flex",flexDirection:"column"},children:[C.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid rgba(99,102,241,0.2)",background:"linear-gradient(90deg, rgba(99,102,241,0.1), transparent)"},children:[C.jsx("div",{style:{fontSize:14,fontWeight:700,color:"#a78bfa",letterSpacing:2},children:"⚙ 配置面板"}),C.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,0.4)",marginTop:4},children:"DataVis Scaffold v1.0.0"})]}),C.jsxs("div",{style:{flex:1,padding:"12px 16px",display:"flex",flexDirection:"column",gap:8},children:[C.jsxs(rn,{title:"全局设置",icon:C.jsx(Q1,{size:14}),open:n==="global",onToggle:()=>o("global"),children:[C.jsx(Te,{label:"编辑模式",children:C.jsx(Qn,{value:a.editMode,onChange:s=>t.setEditMode(s),onLabel:"开启",offLabel:"关闭"})}),C.jsx(Te,{label:"全局背景",children:C.jsx(_r,{value:a.globalBackground,onChange:s=>{t.setGlobalBackground(s),t.updateOuter({background:s})}})})]}),C.jsxs(rn,{title:"外层容器",icon:C.jsx(K1,{size:14}),open:n==="outer",onToggle:()=>o("outer"),children:[C.jsx(Te,{label:"宽度 (px)",children:C.jsx(Bt,{value:Number(a.outer.width),onChange:s=>t.updateOuter({width:s}),min:1020})}),C.jsx(Te,{label:"高度 (px)",children:C.jsx(Bt,{value:Number(a.outer.height),onChange:s=>t.updateOuter({height:s}),min:640})}),C.jsx(Te,{label:"背景",children:C.jsx(_r,{value:String(a.outer.background),onChange:s=>t.updateOuter({background:s})})}),C.jsx(Te,{label:"Autofit 适配",children:C.jsx(Qn,{value:a.outer.autofit?.enabled??!1,onChange:s=>t.updateOuter({autofit:{...a.outer.autofit??{},enabled:s,designWidth:Number(a.outer.width),designHeight:Number(a.outer.height)}}),onLabel:"开启",offLabel:"关闭"})})]}),C.jsxs(rn,{title:"头部区域",icon:C.jsx(Yl,{size:14}),open:n==="header",onToggle:()=>o("header"),children:[C.jsx(Te,{label:"显示",children:C.jsx(Qn,{value:a.header.visible!==!1,onChange:s=>t.updateHeader({visible:s}),onLabel:"显示",offLabel:"隐藏"})}),C.jsx(Te,{label:"高度 (px)",children:C.jsx(Bt,{value:Number(a.header.height),onChange:s=>t.updateHeader({height:s}),min:40,max:200})}),C.jsx(Te,{label:"背景",children:C.jsx(_r,{value:String(a.header.background),onChange:s=>t.updateHeader({background:s})})})]}),C.jsxs(rn,{title:"头部标题",icon:C.jsx(lx,{size:14}),open:n==="headerTitle",onToggle:()=>o("headerTitle"),children:[C.jsx(Te,{label:"标题文字",children:C.jsx(Jl,{value:a.header.title.text,onChange:s=>t.updateHeaderTitle({text:s}),placeholder:"输入标题"})}),C.jsx(Te,{label:"字号 (px)",children:C.jsx(Bt,{value:a.header.title.fontSize,onChange:s=>t.updateHeaderTitle({fontSize:s}),min:12,max:60})}),C.jsx(Te,{label:"字重",children:C.jsx(Bt,{value:a.header.title.fontWeight,onChange:s=>t.updateHeaderTitle({fontWeight:s}),min:100,max:900})}),C.jsx(Te,{label:"字间距 (px)",children:C.jsx(Bt,{value:a.header.title.letterSpacing,onChange:s=>t.updateHeaderTitle({letterSpacing:s}),min:0,max:20})}),C.jsx(Te,{label:"字体",children:C.jsx(Jl,{value:a.header.title.fontFamily,onChange:s=>t.updateHeaderTitle({fontFamily:s}),placeholder:'如 "Microsoft YaHei", sans-serif'})}),C.jsx(Te,{label:"渐变色文字",children:C.jsx(Qn,{value:a.header.title.useGradient,onChange:s=>t.updateHeaderTitle({useGradient:s}),onLabel:"渐变",offLabel:"纯色"})}),a.header.title.useGradient?C.jsx(Te,{label:"渐变 CSS",children:C.jsx(Jl,{value:a.header.title.gradientCss,onChange:s=>t.updateHeaderTitle({gradientCss:s}),placeholder:"linear-gradient(90deg, #38bdf8, #a78bfa)"})}):C.jsx(Te,{label:"文字颜色",children:C.jsx(kx,{value:a.header.title.color,onChange:s=>t.updateHeaderTitle({color:s})})})]}),C.jsxs(rn,{title:"中间区域",icon:C.jsx(Yl,{size:14}),open:n==="middle",onToggle:()=>o("middle"),children:[C.jsx(Te,{label:"显示",children:C.jsx(Qn,{value:a.middle.visible!==!1,onChange:s=>t.updateMiddle({visible:s}),onLabel:"显示",offLabel:"隐藏"})}),C.jsx(Te,{label:"背景",children:C.jsx(_r,{value:String(a.middle.background),onChange:s=>t.updateMiddle({background:s})})}),C.jsx(Te,{label:"网格列数",children:C.jsx(Bt,{value:a.cols??24,onChange:s=>t.setConfig(l=>({...l,cols:s})),min:4,max:48})}),C.jsx(Te,{label:"行高 (px)",children:C.jsx(Bt,{value:a.rowHeight??60,onChange:s=>t.setConfig(l=>({...l,rowHeight:s})),min:20,max:200})})]}),C.jsxs(rn,{title:"底部区域",icon:C.jsx(Yl,{size:14}),open:n==="footer",onToggle:()=>o("footer"),children:[C.jsx(Te,{label:"显示",children:C.jsx(Qn,{value:a.footer.visible!==!1,onChange:s=>t.updateFooter({visible:s}),onLabel:"显示",offLabel:"隐藏"})}),C.jsx(Te,{label:"高度 (px)",children:C.jsx(Bt,{value:Number(a.footer.height),onChange:s=>t.updateFooter({height:s}),min:40,max:200})}),C.jsx(Te,{label:"背景",children:C.jsx(_r,{value:String(a.footer.background),onChange:s=>t.updateFooter({background:s})})}),C.jsx(Te,{label:"图标间距",children:C.jsx(Bt,{value:a.footer.itemGap??32,onChange:s=>t.updateFooter({itemGap:s}),min:8,max:120})}),C.jsx(Te,{label:"图标宽度",children:C.jsx(Bt,{value:a.footer.itemWidth??80,onChange:s=>t.updateFooter({itemWidth:s}),min:40,max:160})})]}),C.jsx(rn,{title:"主题预设",icon:C.jsx(Um,{size:14}),open:n==="theme",onToggle:()=>o("theme"),children:C.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Mx.map(s=>C.jsx(Ax,{theme:s,onClick:()=>{t.setGlobalBackground(s.bg),t.updateOuter({background:s.bg}),t.updateHeader({background:s.header}),t.updateFooter({background:s.footer})}},s.name))})})]}),C.jsx(Rx,{store:t}),C.jsx("div",{style:{padding:"12px 16px",borderTop:"1px solid rgba(99,102,241,0.2)",fontSize:10,color:"rgba(255,255,255,0.3)",textAlign:"center"},children:"DataVis Scaffold · 可视化大屏脚手架"})]})]})},rn=({title:t,icon:e,open:r,onToggle:n,children:i})=>C.jsxs("div",{style:{border:"1px solid rgba(99,102,241,0.2)",borderRadius:8,overflow:"hidden"},children:[C.jsxs("button",{onClick:n,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",background:r?"rgba(99,102,241,0.15)":"rgba(99,102,241,0.05)",border:"none",cursor:"pointer",color:r?"#a78bfa":"rgba(255,255,255,0.7)",fontSize:12,fontWeight:600,letterSpacing:.5,transition:"all 0.2s"},children:[C.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[e,t]}),r?C.jsx(F1,{size:14}):C.jsx(H1,{size:14})]}),r&&C.jsx("div",{style:{padding:"10px 12px",display:"flex",flexDirection:"column",gap:10,background:"rgba(0,0,0,0.2)"},children:i})]}),Te=({label:t,children:e})=>C.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[C.jsx("label",{style:{fontSize:11,color:"rgba(255,255,255,0.5)",letterSpacing:.5},children:t}),e]}),Qn=({value:t,onChange:e,onLabel:r="ON",offLabel:n="OFF"})=>C.jsxs("button",{onClick:()=>e(!t),style:{display:"flex",alignItems:"center",gap:8,padding:"5px 10px",borderRadius:6,border:`1px solid ${t?"rgba(99,102,241,0.5)":"rgba(255,255,255,0.15)"}`,background:t?"rgba(99,102,241,0.2)":"rgba(255,255,255,0.05)",color:t?"#a78bfa":"rgba(255,255,255,0.4)",fontSize:12,cursor:"pointer",transition:"all 0.2s",width:"100%",justifyContent:"flex-start"},children:[C.jsx("div",{style:{width:32,height:18,borderRadius:9,background:t?"#6366f1":"rgba(255,255,255,0.2)",position:"relative",transition:"background 0.2s",flexShrink:0},children:C.jsx("div",{style:{position:"absolute",top:2,left:t?16:2,width:14,height:14,borderRadius:"50%",background:"#fff",transition:"left 0.2s"}})}),C.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[t?C.jsx(Y1,{size:12}):C.jsx(U1,{size:12}),t?r:n]})]}),Bt=({value:t,onChange:e,min:r,max:n})=>C.jsx("input",{type:"number",defaultValue:t,min:r,max:n,onChange:i=>{const a=Number(i.target.value);isNaN(a)||e(a)},style:{width:"100%",padding:"5px 8px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:6,color:"#fff",fontSize:11,outline:"none",boxSizing:"border-box"}}),Jl=({value:t,onChange:e,placeholder:r})=>{const[n,i]=B.useState(t);return B.useEffect(()=>i(t),[t]),C.jsx("input",{type:"text",value:n,onChange:a=>i(a.target.value),onBlur:()=>e(n),onKeyDown:a=>a.key==="Enter"&&e(n),placeholder:r,style:{width:"100%",padding:"5px 8px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:6,color:"#fff",fontSize:11,outline:"none",boxSizing:"border-box"}})},kx=({value:t,onChange:e})=>C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[C.jsx("input",{type:"color",value:t.startsWith("#")?t:"#a78bfa",onChange:r=>e(r.target.value),style:{width:28,height:28,padding:0,border:"1px solid rgba(99,102,241,0.3)",borderRadius:4,background:"none",cursor:"pointer"}}),C.jsx("input",{type:"text",defaultValue:t,onBlur:r=>e(r.target.value),onKeyDown:r=>r.key==="Enter"&&e(r.target.value),style:{flex:1,padding:"5px 8px",background:"rgba(255,255,255,0.06)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:6,color:"#fff",fontSize:11,outline:"none",boxSizing:"border-box"}})]}),Mx=[{name:"深空蓝",bg:"linear-gradient(135deg, #0f172a 0%, #1e293b 100%)",header:"linear-gradient(90deg, rgba(14,165,233,0.15), rgba(99,102,241,0.15))",footer:"linear-gradient(90deg, rgba(14,165,233,0.08), rgba(99,102,241,0.08))",preview:"linear-gradient(135deg, #0f172a, #1e293b)"},{name:"极光绿",bg:"linear-gradient(135deg, #052e16 0%, #064e3b 100%)",header:"linear-gradient(90deg, rgba(52,211,153,0.2), rgba(16,185,129,0.1))",footer:"linear-gradient(90deg, rgba(52,211,153,0.1), rgba(16,185,129,0.05))",preview:"linear-gradient(135deg, #052e16, #064e3b)"},{name:"星云紫",bg:"linear-gradient(135deg, #1a0533 0%, #2d1b69 100%)",header:"linear-gradient(90deg, rgba(167,139,250,0.2), rgba(139,92,246,0.1))",footer:"linear-gradient(90deg, rgba(167,139,250,0.1), rgba(139,92,246,0.05))",preview:"linear-gradient(135deg, #1a0533, #2d1b69)"},{name:"赤焰红",bg:"linear-gradient(135deg, #1c0505 0%, #450a0a 100%)",header:"linear-gradient(90deg, rgba(239,68,68,0.2), rgba(220,38,38,0.1))",footer:"linear-gradient(90deg, rgba(239,68,68,0.1), rgba(220,38,38,0.05))",preview:"linear-gradient(135deg, #1c0505, #450a0a)"}],Ax=({theme:t,onClick:e})=>C.jsxs("button",{onClick:e,style:{padding:0,border:"1px solid rgba(255,255,255,0.1)",borderRadius:8,cursor:"pointer",overflow:"hidden",background:"none",transition:"all 0.2s"},onMouseEnter:r=>r.currentTarget.style.borderColor="rgba(99,102,241,0.6)",onMouseLeave:r=>r.currentTarget.style.borderColor="rgba(255,255,255,0.1)",children:[C.jsx("div",{style:{height:48,background:t.preview}}),C.jsx("div",{style:{padding:"4px 8px",fontSize:11,color:"rgba(255,255,255,0.7)",background:"rgba(255,255,255,0.05)",textAlign:"center"},children:t.name})]}),Rx=({store:t})=>{const e=B.useRef(null),r=i=>{const a=i.target.files?.[0];if(!a)return;const o=new FileReader;o.onload=()=>{t.importConfig(o.result)},o.readAsText(a),i.target.value=""},n={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"7px 0",fontSize:11,borderRadius:6,border:"1px solid rgba(99,102,241,0.3)",background:"rgba(99,102,241,0.1)",color:"#a78bfa",cursor:"pointer",transition:"all 0.15s"};return C.jsxs("div",{style:{padding:"10px 16px",borderTop:"1px solid rgba(99,102,241,0.15)",display:"flex",gap:6},children:[C.jsxs("button",{style:n,onClick:()=>t.exportConfig(),title:"导出配置文件",children:[C.jsx(W1,{size:12})," 导出"]}),C.jsxs("button",{style:n,onClick:()=>e.current?.click(),title:"导入配置文件",children:[C.jsx(Es,{size:12})," 导入"]}),C.jsxs("button",{style:{...n,borderColor:"rgba(239,68,68,0.3)",background:"rgba(239,68,68,0.1)",color:"#f87171"},onClick:()=>{confirm("确定重置所有配置吗?")&&t.resetConfig()},title:"重置为默认配置",children:[C.jsx(ix,{size:12})," 重置"]}),C.jsx("input",{ref:e,type:"file",accept:".json",onChange:r,style:{display:"none"}})]})};var Mc=function(t,e){return Mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Mc(t,e)};function q(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Mc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Lx=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),Ix=(function(){function t(){this.browser=new Lx,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 t})(),oe=new Ix;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(oe.wxa=!0,oe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?oe.worker=!0:!oe.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(oe.node=!0,oe.svgSupported=!0):Px(navigator.userAgent,oe);function Px(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var sh=12,Ox="sans-serif",$r=sh+"px "+Ox,Nx=20,Bx=100,zx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Fx(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-Nx)/Bx;e[n]=i}return e}var Vx=Fx(zx),Cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=Cr.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||$r),t.measureText(r);r=r||"",n=n||$r;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||sh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Vx[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},Qm=$i(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),ey=$i(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ui=Object.prototype.toString,gl=Array.prototype,Hx=gl.forEach,jx=gl.filter,lh=gl.slice,Wx=gl.map,Od=(function(){}).constructor,bo=Od?Od.prototype:null,uh="__proto__",Gx=2311;function ty(){return Gx++}function Nn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function he(t){if(t==null||typeof t!="object")return t;var e=t,r=Ui.call(t);if(r==="[object Array]"){if(!Ea(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=he(t[n])}}else if(ey[r]){if(!Ea(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!Qm[r]&&!Ea(t)&&!Li(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==uh&&(e[o]=he(t[o]))}return e}function me(t,e,r){if(!J(e)||!J(t))return r?he(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==uh){var i=t[n],a=e[n];J(a)&&J(i)&&!X(a)&&!X(i)&&!Li(a)&&!Li(i)&&!Nd(a)&&!Nd(i)&&!Ea(a)&&!Ea(i)?me(i,a,r):(r||!(n in t))&&(t[n]=he(e[n]))}return t}function z(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==uh&&(t[r]=e[r]);return t}function be(t,e,r){for(var n=Ee(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function ve(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function Ux(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function cr(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else be(t,e)}function gt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function M(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Hx)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function ie(t,e,r){if(!t)return[];if(!e)return ch(t);if(t.map&&t.map===Wx)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function $i(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function He(t,e,r){if(!t)return[];if(!e)return ch(t);if(t.filter&&t.filter===jx)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function $x(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Ee(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function Yx(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(lh.call(arguments)))}}var we=bo&&ne(bo.bind)?bo.call.bind(bo.bind):Yx;function We(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(lh.call(arguments)))}}function X(t){return Array.isArray?Array.isArray(t):Ui.call(t)==="[object Array]"}function ne(t){return typeof t=="function"}function Z(t){return typeof t=="string"}function Ms(t){return Ui.call(t)==="[object String]"}function De(t){return typeof t=="number"}function J(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Nd(t){return!!Qm[Ui.call(t)]}function ot(t){return!!ey[Ui.call(t)]}function Li(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function ml(t){return t.colorStops!=null}function Xx(t){return t.image!=null}function qx(t){return Ui.call(t)==="[object RegExp]"}function Ii(t){return t!==t}function Pi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function te(t,e){return t??e}function jr(t,e,r){return t??e??r}function ch(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return lh.apply(t,e)}function fh(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Q(t,e){if(!t)throw new Error(e)}function Jt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ry="__ec_primitive__";function Ac(t){t[ry]=!0}function Ea(t){return t[ry]}var Zx=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Ee(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),ny=typeof Map=="function";function Kx(){return ny?new Map:new Zx}var Jx=(function(){function t(e){var r=X(e);this.data=Kx();var n=this;e instanceof t?e.each(i):e&&M(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return ny?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ce(t){return new Jx(t)}function Qx(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function yl(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&z(r,e),r}function iy(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ht(t,e){return t.hasOwnProperty(e)}function dt(){}var ew=180/Math.PI;function Yi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function tw(t){return[t[0],t[1]]}function Bd(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function rw(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function nw(t){return Math.sqrt(iw(t))}function iw(t){return t[0]*t[0]+t[1]*t[1]}function Ql(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function aw(t,e){var r=nw(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Rc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ow=Rc;function sw(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ki=sw;function Nt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function bi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function xi(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ei=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),lw=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ei(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new ei(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ei(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ei(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ei(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ei(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),fr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),uw=Math.log(2);function Lc(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/uw);return t[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(f+=(d%2?-1:1)*t[r][h]*Lc(t,e-1,c,u,i|v,a),d++)}return a[o]=f,f}function zd(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Lc(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Lc(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var As="___zrEVENTSAVED",eu=[];function cw(t,e,r,n,i){return Ic(eu,e,n,i,!0)&&Ic(t,r,eu[0],eu[1])}function fw(t,e){t&&r(t),e&&r(e);function r(n){var i=n[As];i&&(i.clearMarkers&&i.clearMarkers(),delete n[As])}}function Ic(t,e,r,n,i){if(e.getBoundingClientRect&&oe.domSupported&&!ay(e)){var a=e[As]||(e[As]={}),o=hw(e,a),s=dw(o,a,i);if(s)return s(t,r,n),!0}return!1}function hw(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){M(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function dw(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?zd(s,o):zd(o,s))}function ay(t){return t.nodeName.toUpperCase()==="CANVAS"}var vw=/([&<>"'])/g,pw={"&":"&","<":"<",">":">",'"':""","'":"'"};function ut(t){return t==null?"":(t+"").replace(vw,function(e,r){return pw[r]})}var gw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tu=[],mw=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function Pc(t,e,r,n){return r=r||{},n?Fd(t,e,r):mw&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Fd(t,e,r),r}function Fd(t,e,r){if(oe.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(ay(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ic(tu,t,n,i)){r.zrX=tu[0],r.zrY=tu[1];return}}r.zrX=r.zrY=0}function hh(t){return t||window.event}function kt(t,e,r){if(e=hh(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Pc(t,o,e,r)}else{Pc(t,e,e,r);var a=yw(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&gw.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function yw(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function _w(t,e,r,n){t.addEventListener(e,r,n)}function bw(t,e,r,n){t.removeEventListener(e,r,n)}var oy=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xw=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Pc(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in ru)if(ru.hasOwnProperty(r)){var n=ru[r](this._track,e);if(n)return n}},t})();function Vd(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function ww(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ru={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Vd(n)/Vd(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=ww(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Sr(){return[1,0,0,1,0,0]}function dh(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function sy(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ka(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Oc(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function vh(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(r),f=Math.cos(r);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=a*f+l*c,t[3]=-a*c+f*l,t[4]=f*(o-n[0])+c*(u-n[1])+n[0],t[5]=f*(u-n[1])-c*(o-n[0])+n[1],t}function Sw(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function ao(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var xe=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Rn=Math.min,wi=Math.max,Nc=Math.abs,Hd=["x","y"],Tw=["width","height"],nn=new xe,an=new xe,on=new xe,sn=new xe,_t=ly(),_a=_t.minTv,Bc=_t.maxTv,Ma=[0,0],se=(function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Rn(e.x,this.x),n=Rn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wi(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=wi(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=Sr();return Oc(a,a,[-r.x,-r.y]),Sw(a,a,[n,i]),Oc(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&xe.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(Cw,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(Dw,r.x,r.y,r.width,r.height));var s=!!n;_t.reset(i,s);var l=_t.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,h=e.y+e.height-l,d=r.x+l,v=r.x+r.width-l,g=r.y+l,p=r.y+r.height-l;if(u>c||f>h||d>v||g>p)return!1;var m=!(c<d||v<u||h<g||p<f);return(s||a)&&(Ma[0]=1/0,Ma[1]=0,jd(u,c,d,v,0,s,a,o),jd(f,h,g,p,1,s,a,o),s&&xe.copy(n,m?_t.useDir?_t.dirMinTv:_a:Bc)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}nn.x=on.x=r.x,nn.y=sn.y=r.y,an.x=sn.x=r.x+r.width,an.y=on.y=r.y+r.height,nn.transform(n),sn.transform(n),an.transform(n),on.transform(n),e.x=Rn(nn.x,an.x,on.x,sn.x),e.y=Rn(nn.y,an.y,on.y,sn.y);var l=wi(nn.x,an.x,on.x,sn.x),u=wi(nn.y,an.y,on.y,sn.y);e.width=l-e.x,e.height=u-e.y},t})(),Cw=new se(0,0,0,0),Dw=new se(0,0,0,0);function jd(t,e,r,n,i,a,o,s){var l=Nc(e-r),u=Nc(n-t),c=Rn(l,u),f=Hd[i],h=Hd[1-i],d=Tw[i];e<r||n<t?l<u?(a&&(Bc[f]=-l),s&&(o[f]=e,o[d]=0)):(a&&(Bc[f]=u),s&&(o[f]=t,o[d]=0)):(o&&(o[f]=wi(t,r),o[d]=Rn(e,n)-o[f]),a&&(c<Ma[0]||_t.useDir)&&(Ma[0]=Rn(c,Ma[0]),(l<u||!_t.bidirectional)&&(_a[f]=l,_a[h]=0,_t.useDir&&_t.calcDirMTV()),(l>=u||!_t.bidirectional)&&(_a[f]=-u,_a[h]=0,_t.useDir&&_t.calcDirMTV())))}function ly(){var t=0,e=new xe,r=new xe,n={minTv:new xe,maxTv:new xe,useDir:!1,dirMinTv:new xe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=wi(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),c=l*a.y+u*a.x;if(i(c)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/c,r.y=s*l/c,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Nc(a)<1e-10}return n}var uy="silent";function Ew(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:kw}}function kw(){oy(this.event)}var Mw=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(fr),Qi=(function(){function t(e,r){this.x=e,this.y=r}return t})(),Aw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nu=new se(0,0,0,0),cy=(function(t){q(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Qi(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Mw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new lw(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(Aw,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=fy(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Qi(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Qi(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Ew(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Qi(r,n);if(Wd(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new se(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(nu.copy(h.getBoundingRect()),h.transform&&nu.applyTransform(h.transform),nu.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=d)for(var m=0;m<g;m+=v){var y=r+p*Math.cos(m),_=n+p*Math.sin(m);if(Wd(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new xw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Qi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(fr);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){cy.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=fy(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||ow(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function Rw(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?uy:!0}return!1}function Wd(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=Rw(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==uy)){e.target=o;break}}}function fy(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var hy=32,ea=7;function Lw(t){for(var e=0;t>=hy;)e|=t&1,t>>=1;return t+e}function Gd(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;Iw(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function Iw(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Ud(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function iu(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[r+c])>0?o=c+1:l=c}return l}function au(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[r+c])<0?l=c:o=c+1}return l}function Pw(t,e){var r=ea,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var v=n[d],g=i[d],p=n[d+1],m=i[d+1];i[d]=g+m,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var y=au(t[p],t,v,g,0,e);v+=y,g-=y,g!==0&&(m=iu(t[v+g-1],t,p,m,m-1,e),m!==0&&(g<=m?f(v,g,p,m):h(v,g,p,m)))}function f(d,v,g,p){var m=0;for(m=0;m<v;m++)o[m]=t[d+m];var y=0,_=g,b=d;if(t[b++]=t[_++],--p===0){for(m=0;m<v;m++)t[b+m]=o[y+m];return}if(v===1){for(m=0;m<p;m++)t[b+m]=t[_+m];t[b+p]=o[y];return}for(var S=r,x,w,T;;){x=0,w=0,T=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],w++,x=0,--p===0){T=!0;break}}else if(t[b++]=o[y++],x++,w=0,--v===1){T=!0;break}while((x|w)<S);if(T)break;do{if(x=au(t[_],o,y,v,0,e),x!==0){for(m=0;m<x;m++)t[b+m]=o[y+m];if(b+=x,y+=x,v-=x,v<=1){T=!0;break}}if(t[b++]=t[_++],--p===0){T=!0;break}if(w=iu(o[y],t,_,p,0,e),w!==0){for(m=0;m<w;m++)t[b+m]=t[_+m];if(b+=w,_+=w,p-=w,p===0){T=!0;break}}if(t[b++]=o[y++],--v===1){T=!0;break}S--}while(x>=ea||w>=ea);if(T)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<p;m++)t[b+m]=t[_+m];t[b+p]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[b+m]=o[y+m]}}function h(d,v,g,p){var m=0;for(m=0;m<p;m++)o[m]=t[g+m];var y=d+v-1,_=p-1,b=g+p-1,S=0,x=0;if(t[b--]=t[y--],--v===0){for(S=b-(p-1),m=0;m<p;m++)t[S+m]=o[m];return}if(p===1){for(b-=v,y-=v,x=b+1,S=y+1,m=v-1;m>=0;m--)t[x+m]=t[S+m];t[b]=o[_];return}for(var w=r;;){var T=0,D=0,E=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],T++,D=0,--v===0){E=!0;break}}else if(t[b--]=o[_--],D++,T=0,--p===1){E=!0;break}while((T|D)<w);if(E)break;do{if(T=v-au(o[_],t,d,v,v-1,e),T!==0){for(b-=T,y-=T,v-=T,x=b+1,S=y+1,m=T-1;m>=0;m--)t[x+m]=t[S+m];if(v===0){E=!0;break}}if(t[b--]=o[_--],--p===1){E=!0;break}if(D=p-iu(t[y],o,0,p,p-1,e),D!==0){for(b-=D,_-=D,p-=D,x=b+1,S=_+1,m=0;m<D;m++)t[x+m]=o[S+m];if(p<=1){E=!0;break}}if(t[b--]=t[y--],--v===0){E=!0;break}w--}while(T>=ea||D>=ea);if(E)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),p===1){for(b-=v,y-=v,x=b+1,S=y+1,m=v-1;m>=0;m--)t[x+m]=t[S+m];t[b]=o[_]}else{if(p===0)throw new Error;for(S=b-(p-1),m=0;m<p;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function cs(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<hy){a=Gd(t,r,n,e),Ud(t,r,n,r+a,e);return}var o=Pw(t,e),s=Lw(i);do{if(a=Gd(t,r,n,e),a<s){var l=i;l>s&&(l=s),Ud(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var xt=1,ba=2,_i=4,$d=!1;function ou(){$d||($d=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Yd(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ow=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yd}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,cs(n,Yd)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),h=0;h<f.length;h++){var d=f[h];e.__dirty&&(d.__dirty|=xt),this._updateAndAddDisplayable(d,s,n)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(ou(),v.z=0),isNaN(v.z2)&&(ou(),v.z2=0),isNaN(v.zlevel)&&(ou(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ve(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Rs;Rs=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Aa={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Aa.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Aa.bounceIn(t*2)*.5:Aa.bounceOut(t*2-1)*.5+.5}},xo=Math.pow,Wr=Math.sqrt,Ls=1e-8,dy=1e-4,Xd=Wr(3),wo=1/3,Kt=Yi(),Rt=Yi(),Mi=Yi();function Vr(t){return t>-Ls&&t<Ls}function vy(t){return t>Ls||t<-Ls}function Ye(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function qd(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Is(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Vr(c)&&Vr(f))if(Vr(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var g=f*f-4*c*h;if(Vr(g)){var p=f/c,v=-s/o+p,m=-p/2;v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m)}else if(g>0){var y=Wr(g),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-xo(-_,wo):_=xo(_,wo),b<0?b=-xo(-b,wo):b=xo(b,wo);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var S=(2*c*s-3*o*f)/(2*Wr(c*c*c)),x=Math.acos(S)/3,w=Wr(c),T=Math.cos(x),v=(-s-2*w*T)/(3*o),m=(-s+w*(T+Xd*Math.sin(x)))/(3*o),D=(-s+w*(T-Xd*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m),D>=0&&D<=1&&(a[d++]=D)}}return d}function py(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Vr(o)){if(vy(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Vr(c))i[0]=-a/(2*o);else if(c>0){var f=Wr(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Ps(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function Nw(t,e,r,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,v,g,p,m;Kt[0]=l,Kt[1]=u;for(var y=0;y<1;y+=.05)Rt[0]=Ye(t,r,i,o,y),Rt[1]=Ye(e,n,a,s,y),p=ki(Kt,Rt),p<d&&(f=y,d=p);d=1/0;for(var _=0;_<32&&!(h<dy);_++)v=f-h,g=f+h,Rt[0]=Ye(t,r,i,o,v),Rt[1]=Ye(e,n,a,s,v),p=ki(Rt,Kt),v>=0&&p<d?(f=v,d=p):(Mi[0]=Ye(t,r,i,o,g),Mi[1]=Ye(e,n,a,s,g),m=ki(Mi,Kt),g<=1&&m<d?(f=g,d=m):h*=.5);return Wr(d)}function Bw(t,e,r,n,i,a,o,s,l){for(var u=t,c=e,f=0,h=1/l,d=1;d<=l;d++){var v=d*h,g=Ye(t,r,i,o,v),p=Ye(e,n,a,s,v),m=g-u,y=p-c;f+=Math.sqrt(m*m+y*y),u=g,c=p}return f}function ct(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Zd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function zw(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Vr(a)){if(vy(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Vr(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Wr(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function gy(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Os(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Fw(t,e,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Kt[0]=o,Kt[1]=s;for(var h=0;h<1;h+=.05){Rt[0]=ct(t,r,i,h),Rt[1]=ct(e,n,a,h);var d=ki(Kt,Rt);d<f&&(u=h,f=d)}f=1/0;for(var v=0;v<32&&!(c<dy);v++){var g=u-c,p=u+c;Rt[0]=ct(t,r,i,g),Rt[1]=ct(e,n,a,g);var d=ki(Rt,Kt);if(g>=0&&d<f)u=g,f=d;else{Mi[0]=ct(t,r,i,p),Mi[1]=ct(e,n,a,p);var m=ki(Mi,Kt);p<=1&&m<f?(u=p,f=m):c*=.5}}return Wr(f)}function Vw(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,d=ct(t,r,i,h),v=ct(e,n,a,h),g=d-s,p=v-l;u+=Math.sqrt(g*g+p*p),s=d,l=v}return u}var Hw=/cubic-bezier\(([0-9,\.e ]+)\)/;function my(t){var e=t&&Hw.exec(t);if(e){var r=e[1].split(","),n=+Jt(r[0]),i=+Jt(r[1]),a=+Jt(r[2]),o=+Jt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Is(0,n,a,1,l,s)&&Ye(0,i,o,1,s[0])}}}var jw=(function(){function t(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||dt,this.ondestroy=e.ondestroy||dt,this.onrestart=e.onrestart||dt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ne(e)?e:Aa[e]||my(e)},t})(),yy=(function(){function t(e){this.value=e}return t})(),Ww=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new yy(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),Oi=(function(){function t(e){this._list=new Ww,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new yy(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Kd={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 Gr(t){return t=Math.round(t),t<0?0:t>255?255:t}function zc(t){return t<0?0:t>1?1:t}function su(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Gr(parseFloat(e)/100*255):Gr(parseInt(e,10))}function Bn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?zc(parseFloat(e)/100):zc(parseFloat(e))}function lu(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function So(t,e,r){return t+(e-t)*r}function Et(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Fc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var _y=new Oi(20),To=null;function ti(t,e){To&&Fc(To,e),To=_y.put(t,To||e.slice())}function rr(t,e){if(t){e=e||[];var r=_y.get(t);if(r)return Fc(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Kd)return Fc(e,Kd[n]),ti(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Et(e,0,0,0,1);return}return Et(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ti(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Et(e,0,0,0,1);return}return Et(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ti(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Et(e,+u[0],+u[1],+u[2],1):Et(e,0,0,0,1);c=Bn(u.pop());case"rgb":if(u.length>=3)return Et(e,su(u[0]),su(u[1]),su(u[2]),u.length===3?c:Bn(u[3])),ti(t,e),e;Et(e,0,0,0,1);return;case"hsla":if(u.length!==4){Et(e,0,0,0,1);return}return u[3]=Bn(u[3]),Vc(u,e),ti(t,e),e;case"hsl":if(u.length!==3){Et(e,0,0,0,1);return}return Vc(u,e),ti(t,e),e;default:return}}Et(e,0,0,0,1)}}function Vc(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Bn(t[1]),i=Bn(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Et(e,Gr(lu(o,a,r+1/3)*255),Gr(lu(o,a,r)*255),Gr(lu(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Gw(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function Jd(t,e){var r=rr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return oo(r,r.length===4?"rgba":"rgb")}}function Uw(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=rr(e[i]),s=rr(e[a]),l=n-i,u=oo([Gr(So(o[0],s[0],l)),Gr(So(o[1],s[1],l)),Gr(So(o[2],s[2],l)),zc(So(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Hc(t,e,r,n){var i=rr(t);if(t)return i=Gw(i),r!=null&&(i[1]=Bn(ne(r)?r(i[1]):r)),n!=null&&(i[2]=Bn(ne(n)?n(i[2]):n)),oo(Vc(i),"rgba")}function oo(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Ns(t,e){var r=rr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Qd=new Oi(100);function ev(t){if(Z(t)){var e=Qd.get(t);return e||(e=Jd(t,-.1),Qd.put(t,e)),e}else if(ml(t)){var r=z({},t);return r.colorStops=ie(t.colorStops,function(n){return{offset:n.offset,color:Jd(n.color,-.1)}}),r}return t}function $w(t){return t.type==="linear"}function Yw(t){return t.type==="radial"}(function(){return oe.hasGlobalWindow&&ne(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&Nn("Base64 isn't natively supported in the current environment."),null}})();var jc=Array.prototype.slice;function yr(t,e,r){return(e-t)*r+t}function uu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=yr(e[a],r[a],n);return t}function Xw(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=yr(e[o][s],r[o][s],n)}return t}function Co(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function tv(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function qw(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Zw(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:jc.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function fs(t){if(gt(t)){var e=t.length;if(gt(t[0])){for(var r=[],n=0;n<e;n++)r.push(jc.call(t[n]));return r}return jc.call(t)}return t}function hs(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function Kw(t){return gt(t&&t[0])?2:1}var Do=0,ds=1,by=2,xa=3,Wc=4,Gc=5,rv=6;function nv(t){return t===Wc||t===Gc}function Eo(t){return t===ds||t===by}var ta=[0,0,0,0],Jw=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=rv,l=r;if(gt(r)){var u=Kw(r);s=u,(u===1&&!De(r[0])||u===2&&!De(r[0][0]))&&(o=!0)}else if(De(r)&&!Ii(r))s=Do;else if(Z(r))if(!isNaN(+r))s=Do;else{var c=rr(r);c&&(l=c,s=xa)}else if(ml(r)){var f=z({},l);f.colorStops=ie(r.colorStops,function(d){return{offset:d.offset,color:rr(d.color)}}),$w(r)?s=Wc:Yw(r)&&(s=Gc),l=f}a===0?this.valType=s:(s!==this.valType||s===rv)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ne(n)?n:Aa[n]||my(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Eo(i),u=nv(i),c=0;c<a;c++){var f=n[c],h=f.value,d=o.value;f.percent=f.time/e,s||(l&&c!==a-1?Zw(h,d,i):u&&qw(h.colorStops,d.colorStops))}if(!s&&i!==Gc&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===Do?n[c].additiveValue=n[c].value-v:i===xa?n[c].additiveValue=Co([],n[c].value,v,-1):Eo(i)&&(n[c].additiveValue=i===ds?Co([],n[c].value,v,-1):tv([],n[c].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===xa,c,f=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var g=h(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=h(c-1,s-2)}v=o[c+1],d=o[c]}if(d&&v){this._lastFr=c,this._lastFrP=r;var p=v.percent-d.percent,m=p===0?1:h((r-d.percent)/p,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?ta:e[l];if((Eo(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?d.rawValue:v.rawValue;else if(Eo(a))a===ds?uu(y,d[i],v[i],m):Xw(y,d[i],v[i],m);else if(nv(a)){var _=d[i],b=v[i],S=a===Wc;e[l]={type:S?"linear":"radial",x:yr(_.x,b.x,m),y:yr(_.y,b.y,m),colorStops:ie(_.colorStops,function(w,T){var D=b.colorStops[T];return{offset:yr(w.offset,D.offset,m),color:hs(uu([],w.color,D.color,m))}}),global:b.global},S?(e[l].x2=yr(_.x2,b.x2,m),e[l].y2=yr(_.y2,b.y2,m)):e[l].r=yr(_.r,b.r,m)}else if(u)uu(y,d[i],v[i],m),n||(e[l]=hs(y));else{var x=yr(d[i],v[i],m);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Do?e[n]=e[n]+i:r===xa?(rr(e[n],ta),Co(ta,ta,i,1),e[n]=hs(ta)):r===ds?Co(e[n],e[n],i,1):r===by&&tv(e[n],e[n],i,1)},t})(),ph=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Nn("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ee(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Jw(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===xa&&u&&(u=hs(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,fs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,fs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new jw({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,p=0;p<v.length;p++)if(v[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,d);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ie(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=fs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Ee(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function Si(){return new Date().getTime()}var Qw=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Si()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Rs(n),!r._paused&&r.update())}Rs(n)},e.prototype.start=function(){this._running||(this._time=Si(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Si(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Si()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new ph(r,n.loop);return this.addAnimator(i),i},e})(fr),eS=300,cu=oe.domSupported,fu=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ie(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),iv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},av=!1;function Uc(t){var e=t.pointerType;return e==="pen"||e==="touch"}function tS(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function hu(t){t&&(t.zrByTouch=!0)}function rS(t,e){return kt(t.dom,new nS(t,e),!0)}function xy(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var nS=(function(){function t(e,r){this.stopPropagation=dt,this.stopImmediatePropagation=dt,this.preventDefault=dt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Ft={mousedown:function(t){t=kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=kt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=kt(this.dom,t);var e=t.toElement||t.relatedTarget;xy(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){av=!0,t=kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){av||(t=kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=kt(this.dom,t),hu(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ft.mousemove.call(this,t),Ft.mousedown.call(this,t)},touchmove:function(t){t=kt(this.dom,t),hu(t),this.handler.processGesture(t,"change"),Ft.mousemove.call(this,t)},touchend:function(t){t=kt(this.dom,t),hu(t),this.handler.processGesture(t,"end"),Ft.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<eS&&Ft.click.call(this,t)},pointerdown:function(t){Ft.mousedown.call(this,t)},pointermove:function(t){Uc(t)||Ft.mousemove.call(this,t)},pointerup:function(t){Ft.mouseup.call(this,t)},pointerout:function(t){Uc(t)||Ft.mouseout.call(this,t)}};M(["click","dblclick","contextmenu"],function(t){Ft[t]=function(e){e=kt(this.dom,e),this.trigger(t,e)}});var $c={pointermove:function(t){Uc(t)||$c.mousemove.call(this,t)},pointerup:function(t){$c.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iS(t,e){var r=e.domHandlers;oe.pointerEventsSupported?M(fu.pointer,function(n){vs(e,n,function(i){r[n].call(t,i)})}):(oe.touchEventsSupported&&M(fu.touch,function(n){vs(e,n,function(i){r[n].call(t,i),tS(e)})}),M(fu.mouse,function(n){vs(e,n,function(i){i=hh(i),e.touching||r[n].call(t,i)})}))}function aS(t,e){oe.pointerEventsSupported?M(iv.pointer,r):oe.touchEventsSupported||M(iv.mouse,r);function r(n){function i(a){a=hh(a),xy(t,a.target)||(a=rS(t,a),e.domHandlers[n].call(t,a))}vs(e,n,i,{capture:!0})}}function vs(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,_w(t.domTarget,e,r,n)}function du(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&bw(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var ov=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),oS=(function(t){q(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new ov(r,Ft),cu&&(i._globalHandlerScope=new ov(document,$c)),iS(i,i._localHandlerScope),i}return e.prototype.dispose=function(){du(this._localHandlerScope),cu&&du(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,cu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?aS(this,n):du(n)}},e})(fr),wy=1;oe.hasGlobalWindow&&(wy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bs=wy,Yc=.4,Xc="#333",qc="#ccc",sS="#eee",sv=dh,lv=5e-5;function ln(t){return t>lv||t<-lv}var un=[],ri=[],vu=Sr(),pu=Math.abs,gh=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return ln(this.rotation)||ln(this.x)||ln(this.y)||ln(this.scaleX-1)||ln(this.scaleY-1)||ln(this.skewX)||ln(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(sv(n),this.invTransform=null);return}n=n||Sr(),r?this.getLocalTransform(n):sv(n),e&&(r?ka(n,e,n):sy(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(un);var n=un[0]<0?-1:1,i=un[1]<0?-1:1,a=((un[0]-n)*r+n)/un[0]||0,o=((un[1]-i)*r+i)/un[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Sr(),ao(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Sr(),ka(ri,e.invTransform,r),r=ri);var n=this.originX,i=this.originY;(n||i)&&(vu[4]=n,vu[5]=i,ka(ri,r,vu),ri[4]-=n,ri[5]-=i,r=ri),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Nt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Nt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&pu(e[0]-1)>1e-10&&pu(e[3]-1)>1e-10?Math.sqrt(pu(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Zc(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-h*g*o,r[5]=-g*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&vh(r,r,u),r[4]+=n+c,r[5]+=i+f,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),Va=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Zc(t,e){for(var r=0;r<Va.length;r++){var n=Va[r];t[n]=e[n]}}function nr(t){ko||(ko=new Oi(100)),t=t||$r;var e=ko.get(t);return e||(e={font:t,strWidthCache:new Oi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Cr.measureText("国",t).width,asciiCharWidth:Cr.measureText("a",t).width},ko.put(t,e)),e}var ko;function lS(t){if(!(gu>=uv)){t=t||$r;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Cr.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?gu=uv:i>2&&gu++,e}}var gu=0,uv=5;function Sy(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=lS(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function ir(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=Cr.measureText(e,t.font).width,r.put(e,n)),n}function cv(t,e,r,n){var i=ir(nr(e),t),a=_l(e),o=Ni(0,i,r),s=zn(0,a,n),l=new se(o,s,i,a);return l}function Ty(t,e,r,n){var i=((t||"")+"").split(`
|
|
2
|
+
`),a=i.length;if(a===1)return cv(i[0],e,r,n);for(var o=new se(0,0,0,0),s=0;s<i.length;s++){var l=cv(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Ni(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function zn(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function _l(t){return nr(t).stWideCharWidth}function Gn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Cy(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Gn(n[0],r.width),u+=Gn(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var mu="__zr_normal__",yu=Va.concat(["ignore"]),uS=$i(Va,function(t,e){return t[e]=!0,t},{ignore:!1}),ni={},cS=new se(0,0,0,0),Mo=[],bl=(function(){function t(e){this.id=ty(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var c=n.position!=null,f=n.autoOverflowArea,h=void 0;if((f||c)&&(h=cS,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(ni,n,h):Cy(ni,n,h),a.x=ni.x,a.y=ni.y,o=ni.align,s=ni.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var v=void 0,g=void 0;d==="center"?(v=h.width*.5,g=h.height*.5):(v=Gn(d[0],h.width),g=Gn(d[1],h.height)),u=!0,a.originX=-a.x+v+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=m.overflowRect=m.overflowRect||new se(0,0,0,0);a.getLocalTransform(Mo),ao(Mo,Mo),se.copy(y,h),y.applyTransform(Mo)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,S=void 0,x=void 0;_&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),x=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),x=!0)),b=b||"#000",(b!==m.fill||S!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=b,m.stroke=S,m.autoStroke=x,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=xt,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qc:Xc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&rr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,oo(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},z(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(J(e))for(var n=e,i=Ee(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==mu)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,yu)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(mu,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===mu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ve(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Nn("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,r,n,c),h&&h.useState(e,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xt),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],h=!!(f&&f.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,p=this._textGuide;g&&g.useStates(e,r,h),p&&p.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ve(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=ve(i,e),o=ve(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];z(r,a),a.textConfig&&(n=n||{},z(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=z({},i?this.textConfig:n.textConfig),z(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<yu.length;c++){var f=yu[c],h=a&&uS[f];r&&r[f]!=null?h?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(h?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new gh,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=xt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){Nn('Property "'+e+'" is not existed in element '+this.id);return}var a=new ph(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ve(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){_u(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){_u(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=_u(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.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=xt;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(h){c[s]=h}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),t})();cr(bl,fr);cr(bl,gh);function _u(t,e,r,n,i){r=r||{};var a=[];Dy(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var h=0;h<a.length;h++){var d=a[h];c&&d.done(c),f&&d.aborted(f),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function bu(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function fS(t){return gt(t[0])}function hS(t,e,r){if(gt(e[r]))if(gt(t[r])||(t[r]=[]),ot(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),bu(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(fS(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?bu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else bu(a,i,o);a.length=i.length}else t[r]=e[r]}function dS(t,e){return t===e||gt(t)&>(e)&&vS(t,e)}function vS(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Dy(t,e,r,n,i,a,o,s){for(var l=Ee(n),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,d=!J(a),v=t.animators,g=[],p=0;p<l.length;p++){var m=l[p],y=n[m];if(y!=null&&r[m]!=null&&(d||a[m]))if(J(y)&&!gt(y)&&!ml(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}Dy(t,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!f&&_)for(var b=0;b<v.length;b++){var S=v[b];if(S.targetName===e){var x=S.stopTracks(g);if(x){var w=ve(v,S);v.splice(w,1)}}}if(i.force||(g=He(g,function(k){return!dS(n[k],r[k])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,D=void 0,E=void 0;if(s){D={},h&&(T={});for(var b=0;b<_;b++){var m=g[b];D[m]=r[m],h?T[m]=n[m]:r[m]=n[m]}}else if(h){E={};for(var b=0;b<_;b++){var m=g[b];E[m]=fs(r[m]),hS(r,n,m)}}var S=new ph(r,!1,!1,f?He(v,function(A){return A.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),h&&T&&S.whenWithKeys(0,T,g),E&&S.whenWithKeys(0,E,g),S.whenWithKeys(u??500,s?D:n,g).delay(c||0),t.addAnimator(S,e),o.push(S)}}var qe=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=ve(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ve(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new se(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(se.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(bl);qe.prototype.type="group";var wa={},Ey={};function pS(t){delete Ey[t]}function gS(t){if(!t)return!1;if(typeof t=="string")return Ns(t,1)<Yc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Ns(e[i].color,1);return r/=n,r<Yc}return!1}var mS=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Ow,o=n.renderer||"canvas";if(wa[o]||(o=Ee(wa)[0]),process.env.NODE_ENV!=="production"&&!wa[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new wa[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!oe.node&&!oe.worker&&!l?new oS(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?oe.touchEventsSupported:!!c,h=44,d;f&&(d=te(n.pointerSize,h)),this.handler=new cy(a,s,u,s.root,d),this.animation=new Qw({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=gS(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Si();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Si();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof qe&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,pS(this.id))},t})();function fv(t,e){var r=new mS(ty(),t,e);return Ey[r.id]=r,r}function yS(t,e){wa[t]=e}var hv=1e-4,ky=20;function _S(t){return t.replace(/^\s+|\s+$/g,"")}var Ha=Math.min,wt=Math.max,Qt=Math.abs;function dv(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var it=bS;function bS(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Kc(t,e,r)}function Kc(t,e,r){return Z(t)?_S(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function Xe(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),ky),t=(+t).toFixed(e),r?t:+t}function xr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return Jc(t)}function Jc(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function xS(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Qt(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function wS(t,e){var r=Math.max(xr(t),xr(e)),n=t+e;return r>ky?n:Xe(n,r)}function My(t){var e=Math.PI*2;return(t%e+e)%e}function zs(t){return t>-hv&&t<hv}var SS=/^(?:(\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 Xi(t){if(t instanceof Date)return t;if(Z(t)){var e=SS.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(t==null)return new Date(NaN);return new Date(Math.round(t))}function TS(t){return Math.pow(10,xl(t))}function xl(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Ay(t,e){var r=xl(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Fs(t){var e=parseFloat(t);return e==t&&(e!==0||!Z(t)||t.indexOf("x")<=0)?e:NaN}function Ry(t){return!isNaN(Fs(t))}function Ly(){return Math.round(Math.random()*9)}function Iy(t,e){return e===0?t:Iy(e,t%e)}function vv(t,e){return t==null?e:e==null?t:t*e/Iy(t,e)}var CS="[ECharts] ",pv={},DS=typeof console<"u"&&console.warn&&console.log;function wl(t,e,r){if(DS){if(r){if(pv[e])return;pv[e]=!0}console[t](CS+e)}}function Py(t,e){wl("log",t,e)}function bt(t,e){wl("warn",t,e)}function ye(t,e){wl("error",t,e)}function Dr(t){process.env.NODE_ENV!=="production"&&wl("warn","DEPRECATED: "+t,!0)}function je(t,e,r){process.env.NODE_ENV!=="production"&&Dr((r?"["+r+"]":"")+(t+" is deprecated; use "+e+" instead."))}function Vs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Ii(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":ne(i)?"function () { ... }":qx(i)?i+"":null};r=ie(t,function(i){if(Z(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function ft(t){throw new Error(t)}function gv(t,e,r){return(e-t)*r+t}var Oy="series\0",ES="\0_ec_\0";function at(t){return t instanceof Array?t:t==null?[]:[t]}function mv(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var yv=["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 so(t){return J(t)&&!X(t)&&!(t instanceof Date)?t.value:t}function kS(t){return J(t)&&!(t instanceof Array)}function MS(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ce();M(e,function(l,u){if(!J(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!bv(l.id)&&_v(l.id),l.name!=null&&!bv(l.name)&&_v(l.name))});var s=AS(t,o,r);return(n||i)&&RS(s,t,o,e),n&&LS(s,e),n||i?IS(s,e,i):a&&PS(s,e),OS(s),s}function AS(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||Bi(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function RS(t,e,r,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=Ra(i.id),s=r.get(o);if(s!=null){var l=t[s];Q(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function LS(t,e){M(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!Bi(r)&&!Bi(a)&&Ny("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function IS(t,e,r){M(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Bi(i.existing)||i.existing&&n.id!=null&&!Ny("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function PS(t,e){M(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function OS(t){var e=ce();M(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),M(t,function(r){var n=r.newOption;Q(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(J(a)){if(o.name=a.name!=null?Ra(a.name):i?i.name:Oy+n,i)o.id=Ra(i.id);else if(a.id!=null)o.id=Ra(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Ny(t,e,r){var n=ar(e[t],null),i=ar(r[t],null);return n!=null&&i!=null&&n===i}function Ra(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return ar(t,"")}function ar(t,e){return t==null?e:Z(t)?t:De(t)||Ms(t)?t+"":e}function _v(t){process.env.NODE_ENV!=="production"&&bt("`"+t+"` is invalid id or name. Must be a string or number.")}function bv(t){return Ms(t)||Ry(t)}function mh(t){var e=t.name;return!!(e&&e.indexOf(Oy))}function Bi(t){return t&&t.id!=null&&Ra(t.id).indexOf(ES)===0}function NS(t,e,r){M(t,function(n){var i=n.newOption;J(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=BS(e,i,n.existing,r))})}function BS(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Un(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return X(e.dataIndex)?ie(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return X(e.name)?ie(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Re(){var t="__ec_inner_"+zS++;return function(e){return e[t]||(e[t]={})}}var zS=Ly();function xu(t,e,r){var n=yh(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=lo(t,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function yh(t,e){var r;if(Z(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=ce(),a={},o=!1;return M(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&ve(e.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Pt={useDefault:!0,enableAll:!1,enableNone:!1};function lo(t,e,r,n){n=n||Pt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&ye('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&ye('`"all"` is not a valid value on index option.'),i=-1)),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function By(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function FS(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function VS(t){return t==="auto"?oe.domSupported?"html":"richText":t||"html"}function HS(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(De(n)){var o=gv(r||0,n,i);return Xe(o,a?Math.max(xr(r||0),xr(n)):e)}else{if(Z(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=t.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,v=u[f],o=gv(d,v,i);s[f]=Xe(o,a?Math.max(xr(d),xr(v)):e)}}return s}}var jS=".",cn="___EC__COMPONENT__CONTAINER___",zy="___EC__EXTENDED_CLASS___";function er(t){var e={main:"",sub:""};if(t){var r=t.split(jS);e.main=r[0]||"",e.sub=r[1]||""}return e}function WS(t){Q(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function GS(t){return!!(t&&t[zy])}function _h(t,e){t.$constructor=t,t.extend=function(r){process.env.NODE_ENV!=="production"&&M(e,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return US(n)?i=(function(a){q(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Ux(i,this)),z(i.prototype,r),i[zy]=!0,i.extend=this.extend,i.superCall=XS,i.superApply=qS,i.superClass=n,i}}function US(t){return ne(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Fy(t,e){t.extend=e.extend}var $S=Math.round(Math.random()*10);function YS(t){var e=["__\0is_clz",$S++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&Q(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function XS(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function qS(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Sl(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){WS(i),n.prototype.type=i;var a=er(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==cn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[cn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=er(n),a=[],o=e[i.main];return o&&o[cn]?M(o,function(s,l){l!==cn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=er(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return M(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=er(n),a=e[i.main];return a&&a[cn]};function r(n){var i=e[n.main];return(!i||!i[cn])&&(i=e[n.main]={},i[cn]=!0),i}}function ja(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&ve(i,l)>=0||a&&ve(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var ZS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],KS=ja(ZS),JS=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return KS(this,e,r)},t})(),Qc=new Oi(50);function QS(t){if(typeof t=="string"){var e=Qc.get(t);return e&&e.image}else return t}function Vy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Qc.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Tl(e)&&a.pending.push(o)):(e=Cr.loadImage(t,xv,xv),e.__zrImageSrc=t,Qc.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function xv(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Tl(t){return t&&t.width&&t.height}var wu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eT(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
|
+
`);a=Hy(r,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)jy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
4
|
+
`),t.isTruncated=s}function Hy(t,e,r,n){n=n||{};var i=z({},n);r=te(r,"..."),i.maxIterations=te(n.maxIterations,2);var a=i.minChar=te(n.minChar,0),o=i.fontMeasureInfo=nr(e),s=o.asciiCharWidth;i.placeholder=te(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var c=ir(o,r);return c>l&&(r="",c=0),l=t-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function jy(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=ir(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?tT(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=ir(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function tT(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=Sy(r,t.charCodeAt(i));return i}function rT(t,e,r,n){var i=bh(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=a==="truncate",f=_l(u),h=te(e.lineHeight,f),d=e.lineOverflow==="truncate",v=!1,g=e.width;g==null&&r!=null&&(g=r-s);var p=e.height;p==null&&n!=null&&(p=n-l);var m;g!=null&&(a==="break"||a==="breakAll")?m=i?Wy(i,e.font,g,a==="breakAll",0).lines:[]:m=i?i.split(`
|
|
5
|
+
`):[];var y=m.length*h;if(p==null&&(p=y),y>p&&d){var _=Math.floor(p/h);v=v||m.length>_,m=m.slice(0,_),y=m.length*h}if(i&&c&&g!=null)for(var b=Hy(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},x=0;x<m.length;x++)jy(S,m[x],b),m[x]=S.textLine,v=v||S.isTruncated;for(var w=p,T=0,D=nr(u),x=0;x<m.length;x++)T=Math.max(ir(D,m[x]),T);g==null&&(g=T);var E=g;return w+=l,E+=s,{lines:m,height:p,outerWidth:E,outerHeight:w,lineHeight:h,calculatedLineHeight:f,contentWidth:T,contentHeight:y,width:g,isTruncated:v}}var nT=(function(){function t(){}return t})(),wv=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),iT=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function aT(t,e,r,n,i){var a=new iT,o=bh(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&r!=null&&(c=r-l);var f=e.height;f==null&&n!=null&&(f=n-u);for(var h=e.overflow,d=(h==="break"||h==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:h==="breakAll"}:null,v=wu.lastIndex=0,g;(g=wu.exec(o))!=null;){var p=g.index;p>v&&Su(a,o.substring(v,p),e,d),Su(a,g[2],e,d,g[1]),v=wu.lastIndex}v<o.length&&Su(a,o.substring(v,o.length),e,d);var m=[],y=0,_=0,b=h==="truncate",S=e.lineOverflow==="truncate",x={};function w(Pe,de,Ze){Pe.width=de,Pe.lineHeight=Ze,y+=Ze,_=Math.max(_,de)}e:for(var T=0;T<a.lines.length;T++){for(var D=a.lines[T],E=0,k=0,A=0;A<D.tokens.length;A++){var R=D.tokens[A],L=R.styleName&&e.rich[R.styleName]||{},N=R.textPadding=L.padding,O=N?N[1]+N[3]:0,F=R.font=L.font||e.font;R.contentHeight=_l(F);var P=te(L.height,R.contentHeight);if(R.innerHeight=P,N&&(P+=N[0]+N[2]),R.height=P,R.lineHeight=jr(L.lineHeight,e.lineHeight,P),R.align=L&&L.align||i,R.verticalAlign=L&&L.verticalAlign||"middle",S&&f!=null&&y+R.lineHeight>f){var G=a.lines.length;A>0?(D.tokens=D.tokens.slice(0,A),w(D,k,E),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<G;break e}var W=L.width,U=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")R.percentWidth=W,m.push(R),R.contentWidth=ir(nr(F),R.text);else{if(U){var j=L.backgroundColor,H=j&&j.image;H&&(H=QS(H),Tl(H)&&(R.width=Math.max(R.width,H.width*P/H.height)))}var K=b&&c!=null?c-k:null;K!=null&&K<R.width?!U||K<O?(R.text="",R.width=R.contentWidth=0):(eT(x,R.text,K-O,F,e.ellipsis,{minChar:e.truncateMinChar}),R.text=x.text,a.isTruncated=a.isTruncated||x.isTruncated,R.width=R.contentWidth=ir(nr(F),R.text)):R.contentWidth=ir(nr(F),R.text)}R.width+=O,k+=R.width,L&&(E=Math.max(E,R.lineHeight))}w(D,k,E)}a.outerWidth=a.width=te(c,_),a.outerHeight=a.height=te(f,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var T=0;T<m.length;T++){var R=m[T],fe=R.percentWidth;R.width=parseInt(fe,10)/100*a.width}return a}function Su(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,c,f;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Gn(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(c=e.split(`
|
|
6
|
+
`),u=!0),n.accumWidth=v}else{var g=Wy(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+d,f=g.linesWidths,c=g.lines}}c||(c=e.split(`
|
|
7
|
+
`));for(var p=nr(l),m=0;m<c.length;m++){var y=c[m],_=new nT;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=f?f[m]:ir(p,y),!m&&!u){var b=(s[s.length-1]||(s[0]=new wv)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new wv([_]))}}function oT(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var sT=$i(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function lT(t){return oT(t)?!!sT[t]:!0}function Wy(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=nr(e),h=0;h<t.length;h++){var d=t.charAt(h);if(d===`
|
|
8
|
+
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=Sy(f,d.charCodeAt(0)),g=n?!1:!lT(d);if(a.length?c+v>r:i+c+v>r){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=v)):g?(a.push(l),o.push(u),l=d,u=v):(a.push(d),o.push(v));continue}c+=v,g?(l+=d,u+=v):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function Sv(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;se.set(Tv,Ni(r,o,i),zn(n,s,a),o,s),se.intersect(e,Tv,null,Cv);var l=Cv.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ni(l.x,l.width,i,!0),t.baseY=zn(l.y,l.height,a,!0)}}var Tv=new se(0,0,0,0),Cv={outIntersectRect:{},clamp:!0};function bh(t){return t!=null?t+="":t=""}function uT(t){var e=bh(t.text),r=t.font,n=ir(nr(r),e),i=_l(r);return ef(t,n,i,null)}function ef(t,e,r,n){var i=new se(Ni(t.x||0,e,t.textAlign),zn(t.y||0,r,t.textBaseline),e,r),a=n??(Gy(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Gy(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var tf="__zr_style_"+Math.round(Math.random()*10),Fn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Cl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fn[tf]=!0;var Dv=["z","z2","invisible"],cT=["invisible"],uo=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ee(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fT(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new se(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:z(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ba,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ba)},e.prototype.styleUpdated=function(){this.__dirty&=~ba},e.prototype.createStyle=function(r){return yl(Fn,r)},e.prototype.useStyle=function(r){r[tf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[tf]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Dv)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Ee(c),h=0;h<f.length;h++){var d=f[h];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var v=Ee(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?cT:Dv,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return z(r,n),r},e.prototype.getAnimationStyleProps=function(){return Cl},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=xt|ba})(),e})(bl),Tu=new se(0,0,0,0),Cu=new se(0,0,0,0);function fT(t,e,r){return Tu.copy(t.getBoundingRect()),t.transform&&Tu.applyTransform(t.transform),Cu.width=e,Cu.height=r,!Tu.intersect(Cu)}var Lt=Math.min,It=Math.max,Du=Math.sin,Eu=Math.cos,fn=Math.PI*2,Ao=Yi(),Ro=Yi(),Lo=Yi();function Ev(t,e,r,n,i,a){i[0]=Lt(t,r),i[1]=Lt(e,n),a[0]=It(t,r),a[1]=It(e,n)}var kv=[],Mv=[];function hT(t,e,r,n,i,a,o,s,l,u){var c=py,f=Ye,h=c(t,r,i,o,kv);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=f(t,r,i,o,kv[d]);l[0]=Lt(v,l[0]),u[0]=It(v,u[0])}h=c(e,n,a,s,Mv);for(var d=0;d<h;d++){var g=f(e,n,a,s,Mv[d]);l[1]=Lt(g,l[1]),u[1]=It(g,u[1])}l[0]=Lt(t,l[0]),u[0]=It(t,u[0]),l[0]=Lt(o,l[0]),u[0]=It(o,u[0]),l[1]=Lt(e,l[1]),u[1]=It(e,u[1]),l[1]=Lt(s,l[1]),u[1]=It(s,u[1])}function dT(t,e,r,n,i,a,o,s){var l=gy,u=ct,c=It(Lt(l(t,r,i),1),0),f=It(Lt(l(e,n,a),1),0),h=u(t,r,i,c),d=u(e,n,a,f);o[0]=Lt(t,i,h),o[1]=Lt(e,a,d),s[0]=It(t,i,h),s[1]=It(e,a,d)}function vT(t,e,r,n,i,a,o,s,l){var u=bi,c=xi,f=Math.abs(i-a);if(f%fn<1e-4&&f>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Ao[0]=Eu(i)*r+t,Ao[1]=Du(i)*n+e,Ro[0]=Eu(a)*r+t,Ro[1]=Du(a)*n+e,u(s,Ao,Ro),c(l,Ao,Ro),i=i%fn,i<0&&(i=i+fn),a=a%fn,a<0&&(a=a+fn),i>a&&!o?a+=fn:i<a&&o&&(i+=fn),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(Lo[0]=Eu(d)*r+t,Lo[1]=Du(d)*n+e,u(s,Lo,s),c(l,Lo,l))}var pe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hn=[],dn=[],$t=[],kr=[],Yt=[],Xt=[],ku=Math.min,Mu=Math.max,vn=Math.cos,pn=Math.sin,dr=Math.abs,rf=Math.PI,zr=rf*2,Au=typeof Float32Array<"u",ra=[];function Ru(t){var e=Math.round(t/rf*1e8)/1e8;return e%2*rf}function pT(t,e){var r=Ru(t[0]);r<0&&(r+=zr);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=zr?i=r+zr:e&&r-i>=zr?i=r-zr:!e&&r>i?i=r+(zr-Ru(r-i)):e&&r<i&&(i=r-(zr-Ru(i-r))),t[0]=r,t[1]=i}var $n=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=dr(n/Bs/e)||0,this._uy=dr(n/Bs/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(pe.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=dr(e-this._xi),i=dr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(pe.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(pe.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(pe.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),ra[0]=i,ra[1]=a,pT(ra,o),i=ra[0],a=ra[1];var s=a-i;return this.addData(pe.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=vn(a)*n+e,this._yi=pn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(pe.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(pe.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Au&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Au&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Au&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){$t[0]=$t[1]=Yt[0]=Yt[1]=Number.MAX_VALUE,kr[0]=kr[1]=Xt[0]=Xt[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case pe.M:r=i=e[o++],n=a=e[o++],Yt[0]=i,Yt[1]=a,Xt[0]=i,Xt[1]=a;break;case pe.L:Ev(r,n,e[o],e[o+1],Yt,Xt),r=e[o++],n=e[o++];break;case pe.C:hT(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Yt,Xt),r=e[o++],n=e[o++];break;case pe.Q:dT(r,n,e[o++],e[o++],e[o],e[o+1],Yt,Xt),r=e[o++],n=e[o++];break;case pe.A:var u=e[o++],c=e[o++],f=e[o++],h=e[o++],d=e[o++],v=e[o++]+d;o+=1;var g=!e[o++];l&&(i=vn(d)*f+u,a=pn(d)*h+c),vT(u,c,f,h,d,v,g,Yt,Xt),r=vn(v)*f+u,n=pn(v)*h+c;break;case pe.R:i=r=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];Ev(i,a,i+p,a+m,Yt,Xt);break;case pe.Z:r=i,n=a;break}bi($t,$t,Yt),xi(kr,kr,Xt)}return o===0&&($t[0]=$t[1]=kr[0]=kr[1]=0),new se($t[0],$t[1],kr[0]-$t[0],kr[1]-$t[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<r;){var d=e[h++],v=h===1;v&&(a=e[h],o=e[h+1],s=a,l=o);var g=-1;switch(d){case pe.M:a=s=e[h++],o=l=e[h++];break;case pe.L:{var p=e[h++],m=e[h++],y=p-a,_=m-o;(dr(y)>n||dr(_)>i||h===r-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case pe.C:{var b=e[h++],S=e[h++],p=e[h++],m=e[h++],x=e[h++],w=e[h++];g=Bw(a,o,b,S,p,m,x,w,10),a=x,o=w;break}case pe.Q:{var b=e[h++],S=e[h++],p=e[h++],m=e[h++];g=Vw(a,o,b,S,p,m,10),a=p,o=m;break}case pe.A:var T=e[h++],D=e[h++],E=e[h++],k=e[h++],A=e[h++],R=e[h++],L=R+A;h+=1,v&&(s=vn(A)*E+T,l=pn(A)*k+D),g=Mu(E,k)*ku(zr,Math.abs(R)),a=vn(L)*E+T,o=pn(L)*k+D;break;case pe.R:{s=a=e[h++],l=o=e[h++];var N=e[h++],O=e[h++];g=N*2+O*2;break}case pe.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,d=r<1,v,g,p=0,m=0,y,_=0,b,S;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,y=r*g,!y)))e:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],c=n[x+1],s=u,l=c),w!==pe.L&&_>0&&(e.lineTo(b,S),_=0),w){case pe.M:s=u=n[x++],l=c=n[x++],e.moveTo(u,c);break;case pe.L:{f=n[x++],h=n[x++];var D=dr(f-u),E=dr(h-c);if(D>i||E>a){if(d){var k=v[m++];if(p+k>y){var A=(y-p)/k;e.lineTo(u*(1-A)+f*A,c*(1-A)+h*A);break e}p+=k}e.lineTo(f,h),u=f,c=h,_=0}else{var R=D*D+E*E;R>_&&(b=f,S=h,_=R)}break}case pe.C:{var L=n[x++],N=n[x++],O=n[x++],F=n[x++],P=n[x++],G=n[x++];if(d){var k=v[m++];if(p+k>y){var A=(y-p)/k;Ps(u,L,O,P,A,hn),Ps(c,N,F,G,A,dn),e.bezierCurveTo(hn[1],dn[1],hn[2],dn[2],hn[3],dn[3]);break e}p+=k}e.bezierCurveTo(L,N,O,F,P,G),u=P,c=G;break}case pe.Q:{var L=n[x++],N=n[x++],O=n[x++],F=n[x++];if(d){var k=v[m++];if(p+k>y){var A=(y-p)/k;Os(u,L,O,A,hn),Os(c,N,F,A,dn),e.quadraticCurveTo(hn[1],dn[1],hn[2],dn[2]);break e}p+=k}e.quadraticCurveTo(L,N,O,F),u=O,c=F;break}case pe.A:var W=n[x++],U=n[x++],j=n[x++],H=n[x++],K=n[x++],fe=n[x++],Pe=n[x++],de=!n[x++],Ze=j>H?j:H,ze=dr(j-H)>.001,Me=K+fe,ae=!1;if(d){var k=v[m++];p+k>y&&(Me=K+fe*(y-p)/k,ae=!0),p+=k}if(ze&&e.ellipse?e.ellipse(W,U,j,H,Pe,K,Me,de):e.arc(W,U,Ze,K,Me,de),ae)break e;T&&(s=vn(K)*j+W,l=pn(K)*H+U),u=vn(Me)*j+W,c=pn(Me)*H+U;break;case pe.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var le=n[x++],tn=n[x++];if(d){var k=v[m++];if(p+k>y){var tt=y-p;e.moveTo(f,h),e.lineTo(f+ku(tt,le),h),tt-=le,tt>0&&e.lineTo(f+le,h+ku(tt,tn)),tt-=tn,tt>0&&e.lineTo(f+Mu(le-tt,0),h+tn),tt-=le,tt>0&&e.lineTo(f,h+Mu(tn-tt,0));break e}p+=k}e.rect(f,h,le,tn);break;case pe.Z:if(d){var k=v[m++];if(p+k>y){var A=(y-p)/k;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}p+=k}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=pe,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ii(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function gT(t,e,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>a+f&&c>s+f||c<e-f&&c<n-f&&c<a-f&&c<s-f||u>t+f&&u>r+f&&u>i+f&&u>o+f||u<t-f&&u<r-f&&u<i-f&&u<o-f)return!1;var h=Nw(t,e,r,n,i,a,o,s,u,c);return h<=f/2}function mT(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var c=Fw(t,e,r,n,i,a,s,l);return c<=u/2}var Av=Math.PI*2;function Io(t){return t%=Av,t<0&&(t+=Av),t}var na=Math.PI*2;function yT(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%na<1e-4)return!0;if(a){var f=n;n=Io(i),i=Io(f)}else n=Io(n),i=Io(i);n>i&&(i+=na);var h=Math.atan2(l,s);return h<0&&(h+=na),h>=n&&h<=i||h+na>=n&&h+na<=i}function gn(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var Mr=$n.CMD,mn=Math.PI*2,_T=1e-4;function bT(t,e){return Math.abs(t-e)<_T}var nt=[-1,-1,-1],At=[-1,-1];function xT(){var t=At[0];At[0]=At[1],At[1]=t}function wT(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var c=Is(e,n,a,s,u,nt);if(c===0)return 0;for(var f=0,h=-1,d=void 0,v=void 0,g=0;g<c;g++){var p=nt[g],m=p===0||p===1?.5:1,y=Ye(t,r,i,o,p);y<l||(h<0&&(h=py(e,n,a,s,At),At[1]<At[0]&&h>1&&xT(),d=Ye(e,n,a,s,At[0]),h>1&&(v=Ye(e,n,a,s,At[1]))),h===2?p<At[0]?f+=d<e?m:-m:p<At[1]?f+=v<d?m:-m:f+=s<v?m:-m:p<At[0]?f+=d<e?m:-m:f+=s<d?m:-m)}return f}function ST(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=zw(e,n,a,s,nt);if(l===0)return 0;var u=gy(e,n,a);if(u>=0&&u<=1){for(var c=0,f=ct(e,n,a,u),h=0;h<l;h++){var d=nt[h]===0||nt[h]===1?.5:1,v=ct(t,r,i,nt[h]);v<o||(nt[h]<u?c+=f<e?d:-d:c+=a<f?d:-d)}return c}else{var d=nt[0]===0||nt[0]===1?.5:1,v=ct(t,r,i,nt[0]);return v<o?0:a<e?d:-d}}function TT(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);nt[0]=-l,nt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=mn-1e-4){n=0,i=mn;var c=a?1:-1;return o>=nt[0]+t&&o<=nt[1]+t?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=mn,i+=mn);for(var h=0,d=0;d<2;d++){var v=nt[d];if(v+t>o){var g=Math.atan2(s,v),c=a?1:-1;g<0&&(g=mn+g),(g>=n&&g<=i||g+mn>=n&&g+mn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),h+=c)}}return h}function Uy(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,h,d,v=0;v<o;){var g=a[v++],p=v===1;switch(g===Mr.M&&v>1&&(r||(s+=gn(l,u,c,f,n,i))),p&&(l=a[v],u=a[v+1],c=l,f=u),g){case Mr.M:c=a[v++],f=a[v++],l=c,u=f;break;case Mr.L:if(r){if(ii(l,u,a[v],a[v+1],e,n,i))return!0}else s+=gn(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Mr.C:if(r){if(gT(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=wT(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Mr.Q:if(r){if(mT(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=ST(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Mr.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],S=a[v++],x=a[v++];v+=1;var w=!!(1-a[v++]);h=Math.cos(S)*_+m,d=Math.sin(S)*b+y,p?(c=h,f=d):s+=gn(l,u,h,d,n,i);var T=(n-m)*b/_+m;if(r){if(yT(m,y,b,S,S+x,w,e,T,i))return!0}else s+=TT(m,y,b,S,S+x,w,T,i);l=Math.cos(S+x)*_+m,u=Math.sin(S+x)*b+y;break;case Mr.R:c=l=a[v++],f=u=a[v++];var D=a[v++],E=a[v++];if(h=c+D,d=f+E,r){if(ii(c,f,h,f,e,n,i)||ii(h,f,h,d,e,n,i)||ii(h,d,c,d,e,n,i)||ii(c,d,c,f,e,n,i))return!0}else s+=gn(h,f,h,d,n,i),s+=gn(c,d,c,f,n,i);break;case Mr.Z:if(r){if(ii(l,u,c,f,e,n,i))return!0}else s+=gn(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!bT(u,f)&&(s+=gn(l,u,c,f,n,i)||0),s!==0}function CT(t,e,r){return Uy(t,0,!1,e,r)}function DT(t,e,r,n){return Uy(t,e,!0,r,n)}var $y=be({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fn),ET={style:be({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cl.style)},Lu=Va.concat(["invisible","culling","z","z2","zlevel","parent"]),Se=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Lu.length;++s)i[Lu[s]]=this[Lu[s]];i.__dirty|=xt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Ee(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(this.shape,s):t.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 r=this.style.fill;if(r!=="none"){if(Z(r)){var n=Ns(r,0);return n>.5?Xc:n>.2?sS:qc}else if(r)return qc}return Xc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Z(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ns(r,0)<Yc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~_i},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new $n(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&_i)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),DT(s,l/u,r,n)))return!0}if(this.hasFill())return CT(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=_i,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:z(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&_i)},e.prototype.createStyle=function(r){return yl($y,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=z({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var c={},f=Ee(u),h=0;h<f.length;h++){var d=f[h];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return ET},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){q(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return he(r.style)},o.prototype.getDefaultShape=function(){return he(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=xt|ba|_i})(),e})(uo),kT=be({strokeFirst:!0,font:$r,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$y),Hs=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Gy(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return yl(kT,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=uT(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(uo);Hs.prototype.type="tspan";var MT=be({x:0,y:0},Fn),AT={style:be({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cl.style)};function RT(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Qr=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return yl(MT,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=RT(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return AT},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new se(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(uo);Qr.prototype.type="image";function LT(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+c,n+a),c!==0&&t.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ti=Math.round;function Yy(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ti(n*2)===Ti(i*2)&&(t.x1=t.x2=Ln(n,s,!0)),Ti(a*2)===Ti(o*2)&&(t.y1=t.y2=Ln(a,s,!0))),t}}function Xy(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Ln(n,s,!0),t.y=Ln(i,s,!0),t.width=Math.max(Ln(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Ln(i+o,s,!1)-t.y,o===0?0:1)),t}}function Ln(t,e,r){if(!e)return t;var n=Ti(t*2);return(n+Ti(e))%2===0?n/2:(n+(r?1:-1))/2}var IT=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),PT={},Be=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new IT},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Xy(PT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?LT(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Se);Be.prototype.type="rect";var Rv={fill:"#000"},Lv=2,qt={},OT={style:be({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},Cl.style)},mt=(function(t){q(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Rv,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,VT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);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 r=new se(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Rv},e.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return z(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Ee(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},z(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return OT},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||$r,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Sv(qt,a.overflowRect,o,s,l,u),o=qt.baseX,s=qt.baseY;var c=Fv(r),f=rT(c,r,qt.outerWidth,qt.outerHeight),h=Iu(r),d=!!r.backgroundColor,v=f.outerHeight,g=f.outerWidth,p=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var y=o,_=zn(s,f.contentHeight,u);if(h||i){var b=Ni(o,g,l),S=zn(s,v,u);h&&this._renderBackground(r,r,b,S,g,v)}_+=m/2,i&&(y=zv(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var x=0,w=!1,T=!1,D=Bv("fill"in r?r.fill:(T=!0,a.fill)),E=Nv("stroke"in r?r.stroke:!d&&(!a.autoStroke||T)?(x=Lv,w=!0,a.stroke):null),k=r.textShadowBlur>0,A=0;A<p.length;A++){var R=this._getOrCreateChild(Hs),L=R.createStyle();R.useStyle(L),L.text=p[A],L.x=y,L.y=_,L.textAlign=l,L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,k&&(L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0),L.stroke=E,L.fill=D,E&&(L.lineWidth=r.lineWidth||x,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=n,Pv(L,r),_+=m,R.setBoundingRect(ef(L,f.contentWidth,f.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Sv(qt,n.overflowRect,o,s,i,a),o=qt.baseX,s=qt.baseY;var l=Fv(r),u=aT(l,r,qt.outerWidth,qt.outerHeight,i),c=u.width,f=u.outerWidth,h=u.outerHeight,d=r.padding;this.isTruncated=!!u.isTruncated;var v=Ni(o,f,i),g=zn(s,h,a),p=v,m=g;d&&(p+=d[3],m+=d[0]);var y=p+c;Iu(r)&&this._renderBackground(r,r,v,g,f,h);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var S=u.lines[b],x=S.tokens,w=x.length,T=S.lineHeight,D=S.width,E=0,k=p,A=y,R=w-1,L=void 0;E<w&&(L=x[E],!L.align||L.align==="left");)this._placeToken(L,r,T,m,k,"left",_),D-=L.width,k+=L.width,E++;for(;R>=0&&(L=x[R],L.align==="right");)this._placeToken(L,r,T,m,A,"right",_),D-=L.width,A-=L.width,R--;for(k+=(c-(k-p)-(y-A)-D)/2;E<=R;)L=x[E],this._placeToken(L,r,T,m,k+L.width/2,"center",_),k+=L.width,E++;m+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&Iu(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=zv(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(Hs),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=!1,S=Bv("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=Nv("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!m.autoStroke||y)?(_=Lv,b=!0,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=f,w&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||$r,p.opacity=jr(u.opacity,n.opacity,1),Pv(p,u),x&&(p.lineWidth=jr(u.lineWidth,n.lineWidth,_),p.lineDash=te(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=x),S&&(p.fill=S),g.setBoundingRect(ef(p,r.contentWidth,r.contentHeight,b?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,d=r.borderRadius,v=this,g,p;if(h||r.lineHeight||u&&c){g=this._getOrCreateChild(Be),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=d,g.dirtyShape()}if(h){var y=g.style;y.fill=l||null,y.fillOpacity=te(r.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Qr),p.onload=function(){v.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=g.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=te(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=jr(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return FT(r)&&(n=[r.fontStyle,r.fontWeight,zT(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Jt(n)||r.textFont||r.font},e})(uo),NT={left:!0,right:1,center:1},BT={top:1,bottom:1,middle:1},Iv=["fontStyle","fontWeight","fontSize","fontFamily"];function zT(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?sh+"px":t+"px"}function Pv(t,e){for(var r=0;r<Iv.length;r++){var n=Iv[r],i=e[n];i!=null&&(t[n]=i)}}function FT(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function VT(t){return Ov(t),M(t.rich,Ov),t}function Ov(t){if(t){t.font=mt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||NT[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||BT[r]?r:"top";var n=t.padding;n&&(t.padding=fh(t.padding))}}function Nv(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Bv(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function zv(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Fv(t){var e=t.text;return e!=null&&(e+=""),e}function Iu(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var _e=Re(),HT=function(t,e,r,n){if(n){var i=_e(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=_e(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Vv=1,Hv={},qy=Re(),xh=Re(),wh=0,Dl=1,El=2,lr=["emphasis","blur","select"],jv=["normal","emphasis","blur","select"],jT=10,WT=9,Vn="highlight",ps="downplay",js="select",nf="unselect",Ws="toggleSelect",Sh="selectchanged";function ai(t){return t!=null&&t!=="none"}function kl(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Zy(t){kl(t,"emphasis",El)}function Ky(t){t.hoverState===El&&kl(t,"normal",wh)}function Th(t){kl(t,"blur",Dl)}function Jy(t){t.hoverState===Dl&&kl(t,"normal",wh)}function GT(t){t.selected=!0}function UT(t){t.selected=!1}function Wv(t,e,r){e(t,r)}function Er(t,e,r){Wv(t,e,r),t.isGroup&&t.traverse(function(n){Wv(n,e,r)})}function Gv(t,e){switch(e){case"emphasis":t.hoverState=El;break;case"normal":t.hoverState=wh;break;case"blur":t.hoverState=Dl;break;case"select":t.selected=!0}}function $T(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function YT(t,e,r,n){var i=r&&ve(r,"select")>=0,a=!1;if(t instanceof Se){var o=qy(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ai(s)||ai(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!ai(u.fill)&&ai(s)?(a=!0,n=z({},n),u=z({},u),u.fill=ev(s)):!ai(u.stroke)&&ai(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=ev(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??jT)}return n}function XT(t,e,r){if(r&&r.z2==null){r=z({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??WT)}return r}function qT(t,e,r){var n=ve(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:$T(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=z({},r),o=z({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Pu(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return YT(this,t,e,r);if(t==="blur")return qT(this,t,r);if(t==="select")return XT(this,t,r)}return r}function ZT(t){t.stateProxy=Pu;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Pu),r&&(r.stateProxy=Pu)}function Uv(t,e){!r0(t,e)&&!t.__highByOuter&&Er(t,Zy)}function $v(t,e){!r0(t,e)&&!t.__highByOuter&&Er(t,Ky)}function Gs(t,e){t.__highByOuter|=1<<(e||0),Er(t,Zy)}function Us(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Er(t,Ky)}function KT(t){Er(t,Th)}function Qy(t){Er(t,Jy)}function e0(t){Er(t,GT)}function t0(t){Er(t,UT)}function r0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function n0(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=xh(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Jy(u)}),s&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function af(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&Qy(h)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!h||e==="series"&&c)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(p){p.__highByOuter&&c&&e==="self"||Th(p)}),gt(e))a(u.getData(),e);else if(J(e))for(var v=Ee(e),g=0;g<v.length;g++)a(u.getData(v[g]),e[v[g]]);l.push(u),xh(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function of(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){xh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Th(a)})}}}function JT(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&ye("Unknown dataType "+e.dataType);return}var a=Un(i,e);a=(X(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=_e(o);af(n,u.focus,u.blurScope,r)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&af(n,c,f,r)}}function Ch(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!zi(s[u])&&ye("param should be highDownDispatcher"),_e(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function QT(t,e,r){process.env.NODE_ENV!=="production"&&!zi(t)&&ye("param should be highDownDispatcher");var n=_e(t),i=Ch(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&of(n.componentMainType,n.componentIndex,r),M(a,function(s){return Uv(s,e)})):(af(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&of(n.componentMainType,n.componentIndex,r),Uv(t,e))}function eC(t,e,r){process.env.NODE_ENV!=="production"&&!zi(t)&&ye("param should be highDownDispatcher"),n0(r);var n=_e(t),i=Ch(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?M(i,function(a){return $v(a,e)}):$v(t,e)}function tC(t,e,r){if(uf(e)){var n=e.dataType,i=t.getData(n),a=Un(i,e);X(a)||(a=[a]),t[e.type===Ws?"toggleSelect":e.type===js?"select":"unselect"](a,n)}}function Yv(t){var e=t.getAllData();M(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?e0(a):t0(a)})})}function rC(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();M(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function sf(t,e,r){i0(t,!0),Er(t,ZT),iC(t,e,r)}function nC(t){i0(t,!1)}function lf(t,e,r,n){n?nC(t):sf(t,e,r)}function iC(t,e,r){var n=_e(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Xv=["emphasis","blur","select"],aC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qv(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Xv.length;i++){var a=Xv[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[aC[r]]()}}function i0(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function zi(t){return!!(t&&t.__highDownDispatcher)}function oC(t){var e=Hv[t];return e==null&&Vv<=32&&(e=Hv[t]=Vv++),e}function uf(t){var e=t.type;return e===js||e===nf||e===Ws}function Zv(t){var e=t.type;return e===Vn||e===ps}function sC(t){var e=qy(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var oi=$n.CMD,lC=[[],[],[]],Kv=Math.sqrt,uC=Math.atan2;function cC(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,c=oi.M,f=oi.C,h=oi.L,d=oi.R,v=oi.A,g=oi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case h:a=1;break;case f:a=3;break;case g:a=2;break;case v:var p=e[4],m=e[5],y=Kv(e[0]*e[0]+e[1]*e[1]),_=Kv(e[2]*e[2]+e[3]*e[3]),b=uC(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],Nt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Nt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=lC[l];S[0]=r[o++],S[1]=r[o++],Nt(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Ou=Math.sqrt,Po=Math.sin,Oo=Math.cos,ia=Math.PI;function Jv(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function cf(t,e){return(t[0]*e[0]+t[1]*e[1])/(Jv(t)*Jv(e))}function Qv(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(cf(t,e))}function ep(t,e,r,n,i,a,o,s,l,u,c){var f=l*(ia/180),h=Oo(f)*(t-r)/2+Po(f)*(e-n)/2,d=-1*Po(f)*(t-r)/2+Oo(f)*(e-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=Ou(v),s*=Ou(v));var g=(i===a?-1:1)*Ou((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,p=g*o*d/s,m=g*-s*h/o,y=(t+r)/2+Oo(f)*p-Po(f)*m,_=(e+n)/2+Po(f)*p+Oo(f)*m,b=Qv([1,0],[(h-p)/o,(d-m)/s]),S=[(h-p)/o,(d-m)/s],x=[(-1*h-p)/o,(-1*d-m)/s],w=Qv(S,x);if(cf(S,x)<=-1&&(w=ia),cf(S,x)>=1&&(w=0),w<0){var T=Math.round(w/ia*1e6)/1e6;w=ia*2+T%2*ia}c.addData(u,y,_,o,s,b,w,f,a)}var fC=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dC(t){var e=new $n;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=$n.CMD,l=t.match(fC);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,d=c.match(hC)||[],v=d.length,g=0;g<v;g++)d[g]=parseFloat(d[g]);for(var p=0;p<v;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,T=r,D=n,E=void 0,k=void 0;switch(f){case"l":r+=d[p++],n+=d[p++],h=s.L,e.addData(h,r,n);break;case"L":r=d[p++],n=d[p++],h=s.L,e.addData(h,r,n);break;case"m":r+=d[p++],n+=d[p++],h=s.M,e.addData(h,r,n),i=r,a=n,f="l";break;case"M":r=d[p++],n=d[p++],h=s.M,e.addData(h,r,n),i=r,a=n,f="L";break;case"h":r+=d[p++],h=s.L,e.addData(h,r,n);break;case"H":r=d[p++],h=s.L,e.addData(h,r,n);break;case"v":n+=d[p++],h=s.L,e.addData(h,r,n);break;case"V":n=d[p++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,d[p++],d[p++],d[p++],d[p++],d[p++],d[p++]),r=d[p-2],n=d[p-1];break;case"c":h=s.C,e.addData(h,d[p++]+r,d[p++]+n,d[p++]+r,d[p++]+n,d[p++]+r,d[p++]+n),r+=d[p-2],n+=d[p-1];break;case"S":m=r,y=n,E=e.len(),k=e.data,o===s.C&&(m+=r-k[E-4],y+=n-k[E-3]),h=s.C,T=d[p++],D=d[p++],r=d[p++],n=d[p++],e.addData(h,m,y,T,D,r,n);break;case"s":m=r,y=n,E=e.len(),k=e.data,o===s.C&&(m+=r-k[E-4],y+=n-k[E-3]),h=s.C,T=r+d[p++],D=n+d[p++],r+=d[p++],n+=d[p++],e.addData(h,m,y,T,D,r,n);break;case"Q":T=d[p++],D=d[p++],r=d[p++],n=d[p++],h=s.Q,e.addData(h,T,D,r,n);break;case"q":T=d[p++]+r,D=d[p++]+n,r+=d[p++],n+=d[p++],h=s.Q,e.addData(h,T,D,r,n);break;case"T":m=r,y=n,E=e.len(),k=e.data,o===s.Q&&(m+=r-k[E-4],y+=n-k[E-3]),r=d[p++],n=d[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"t":m=r,y=n,E=e.len(),k=e.data,o===s.Q&&(m+=r-k[E-4],y+=n-k[E-3]),r+=d[p++],n+=d[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"A":_=d[p++],b=d[p++],S=d[p++],x=d[p++],w=d[p++],T=r,D=n,r=d[p++],n=d[p++],h=s.A,ep(T,D,r,n,x,w,_,b,S,h,e);break;case"a":_=d[p++],b=d[p++],S=d[p++],x=d[p++],w=d[p++],T=r,D=n,r+=d[p++],n+=d[p++],h=s.A,ep(T,D,r,n,x,w,_,b,S,h,e);break}}(f==="z"||f==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var a0=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Se);function o0(t){return t.setData!=null}function s0(t,e){var r=dC(t),n=z({},e);return n.buildPath=function(i){var a=o0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){cC(r,i),this.dirtyShape()},n}function vC(t,e){return new a0(s0(t,e))}function pC(t,e){var r=s0(t,e),n=(function(i){q(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(a0);return n}function gC(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Se(e);return o.createPathProxy(),o.buildPath=function(s){if(o0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var mC=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Ml=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new mC},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Se);Ml.prototype.type="circle";var yC=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Dh=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new yC},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},e})(Se);Dh.prototype.type="ellipse";var l0=Math.PI,Nu=l0*2,yn=Math.sin,si=Math.cos,_C=Math.acos,Ke=Math.atan2,tp=Math.abs,La=Math.sqrt,Sa=Math.max,Zt=Math.min,zt=1e-4;function bC(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,h=f*l-c*u;if(!(h*h<zt))return h=(c*(e-a)-f*(t-i))/h,[t+h*l,e+h*u]}function No(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/La(s*s+l*l),c=u*l,f=-u*s,h=t+c,d=e+f,v=r+c,g=n+f,p=(h+v)/2,m=(d+g)/2,y=v-h,_=g-d,b=y*y+_*_,S=i-a,x=h*g-v*d,w=(_<0?-1:1)*La(Sa(0,S*S*b-x*x)),T=(x*_-y*w)/b,D=(-x*y-_*w)/b,E=(x*_+y*w)/b,k=(-x*y+_*w)/b,A=T-p,R=D-m,L=E-p,N=k-m;return A*A+R*R>L*L+N*N&&(T=E,D=k),{cx:T,cy:D,x0:-c,y0:-f,x1:T*(i/S-1),y1:D*(i/S-1)}}function xC(t){var e;if(X(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function wC(t,e){var r,n=Sa(e.r,0),i=Sa(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,d=tp(u-l),v=d>Nu&&d%Nu;if(v>zt&&(d=v),!(n>zt))t.moveTo(c,f);else if(d>Nu-zt)t.moveTo(c+n*si(l),f+n*yn(l)),t.arc(c,f,n,l,u,!h),i>zt&&(t.moveTo(c+i*si(u),f+i*yn(u)),t.arc(c,f,i,u,l,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0,w=void 0,T=void 0,D=void 0,E=void 0,k=void 0,A=void 0,R=void 0,L=void 0,N=n*si(l),O=n*yn(l),F=i*si(u),P=i*yn(u),G=d>zt;if(G){var W=e.cornerRadius;W&&(r=xC(W),g=r[0],p=r[1],m=r[2],y=r[3]);var U=tp(n-i)/2;if(_=Zt(U,m),b=Zt(U,y),S=Zt(U,g),x=Zt(U,p),D=w=Sa(_,b),E=T=Sa(S,x),(w>zt||T>zt)&&(k=n*si(u),A=n*yn(u),R=i*si(l),L=i*yn(l),d<l0)){var j=bC(N,O,R,L,k,A,F,P);if(j){var H=N-j[0],K=O-j[1],fe=k-j[0],Pe=A-j[1],de=1/yn(_C((H*fe+K*Pe)/(La(H*H+K*K)*La(fe*fe+Pe*Pe)))/2),Ze=La(j[0]*j[0]+j[1]*j[1]);D=Zt(w,(n-Ze)/(de+1)),E=Zt(T,(i-Ze)/(de-1))}}}if(!G)t.moveTo(c+N,f+O);else if(D>zt){var ze=Zt(m,D),Me=Zt(y,D),ae=No(R,L,N,O,n,ze,h),le=No(k,A,F,P,n,Me,h);t.moveTo(c+ae.cx+ae.x0,f+ae.cy+ae.y0),D<w&&ze===Me?t.arc(c+ae.cx,f+ae.cy,D,Ke(ae.y0,ae.x0),Ke(le.y0,le.x0),!h):(ze>0&&t.arc(c+ae.cx,f+ae.cy,ze,Ke(ae.y0,ae.x0),Ke(ae.y1,ae.x1),!h),t.arc(c,f,n,Ke(ae.cy+ae.y1,ae.cx+ae.x1),Ke(le.cy+le.y1,le.cx+le.x1),!h),Me>0&&t.arc(c+le.cx,f+le.cy,Me,Ke(le.y1,le.x1),Ke(le.y0,le.x0),!h))}else t.moveTo(c+N,f+O),t.arc(c,f,n,l,u,!h);if(!(i>zt)||!G)t.lineTo(c+F,f+P);else if(E>zt){var ze=Zt(g,E),Me=Zt(p,E),ae=No(F,P,k,A,i,-Me,h),le=No(N,O,R,L,i,-ze,h);t.lineTo(c+ae.cx+ae.x0,f+ae.cy+ae.y0),E<T&&ze===Me?t.arc(c+ae.cx,f+ae.cy,E,Ke(ae.y0,ae.x0),Ke(le.y0,le.x0),!h):(Me>0&&t.arc(c+ae.cx,f+ae.cy,Me,Ke(ae.y0,ae.x0),Ke(ae.y1,ae.x1),!h),t.arc(c,f,i,Ke(ae.cy+ae.y1,ae.cx+ae.x1),Ke(le.cy+le.y1,le.cx+le.x1),h),ze>0&&t.arc(c+le.cx,f+le.cy,ze,Ke(le.y1,le.x1),Ke(le.y0,le.x0),!h))}else t.lineTo(c+F,f+P),t.arc(c,f,i,u,l,h)}t.closePath()}}}var SC=(function(){function t(){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 t})(),Al=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new SC},e.prototype.buildPath=function(r,n){wC(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Se);Al.prototype.type="sector";var TC=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Eh=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new TC},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Se);Eh.prototype.type="ring";function CC(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++)bi(c,c,t[h]),xi(f,f,t[h]);bi(c,c,n[0]),xi(f,f,n[1])}for(var h=0,d=t.length;h<d;h++){var v=t[h];if(r)l=t[h?h-1:d-1],u=t[(h+1)%d];else if(h===0||h===d-1){i.push(tw(t[h]));continue}else l=t[h-1],u=t[h+1];rw(a,u,l),Ql(a,a,e);var g=Rc(v,l),p=Rc(v,u),m=g+p;m!==0&&(g/=m,p/=m),Ql(o,a,-g),Ql(s,a,p);var y=Bd([],v,o),_=Bd([],v,s);n&&(xi(y,y,c),bi(y,y,f),xi(_,_,c),bi(_,_,f)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function u0(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=CC(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var DC=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),kh=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DC},e.prototype.buildPath=function(r,n){u0(r,n,!0)},e})(Se);kh.prototype.type="polygon";var EC=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Mh=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new EC},e.prototype.buildPath=function(r,n){u0(r,n,!1)},e})(Se);Mh.prototype.type="polyline";var kC={},MC=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Yr=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MC},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Yy(kC,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Se);Yr.prototype.type="line";var st=[],AC=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function rp(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?qd:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?qd:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Zd:ct)(t.x1,t.cpx1,t.x2,e),(r?Zd:ct)(t.y1,t.cpy1,t.y2,e)]}var Ah=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new AC},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),c==null||f==null?(h<1&&(Os(i,l,o,h,st),l=st[1],o=st[2],Os(a,u,s,h,st),u=st[1],s=st[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Ps(i,l,c,o,h,st),l=st[1],c=st[2],o=st[3],Ps(a,u,f,s,h,st),u=st[1],f=st[2],s=st[3]),r.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(r){return rp(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=rp(this.shape,r,!0);return aw(n,n)},e})(Se);Ah.prototype.type="bezier-curve";var RC=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Rl=(function(t){q(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RC},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},e})(Se);Rl.prototype.type="arc";var LC=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Se.prototype.getBoundingRect.call(this)},e})(Se),c0=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Rh=(function(t){q(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(c0),IC=(function(t){q(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(c0),Bu=Math.min,PC=Math.max,Bo=Math.abs,_n=[0,0],bn=[0,0],Ve=ly(),zo=Ve.minTv,Fo=Ve.maxTv,f0=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new xe;for(var n=0;n<2;n++)this._axes[n]=new xe;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);xe.sub(i[0],n[1],n[0]),xe.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&xe.set(r,0,0),Ve.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Ve.negativeSize&&xe.copy(r,i?Ve.useDir?Ve.dirMinTv:zo:Fo),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,_n),e._getProjMinMaxOnAxis(o,r._corners,bn),Ve.negativeSize||_n[1]<bn[0]||_n[0]>bn[1]){if(a=!1,Ve.negativeSize||n)return a;var l=Bo(bn[0]-_n[1]),u=Bo(_n[0]-bn[1]);Bu(l,u)>Fo.len()&&(l<u?xe.scale(Fo,s,-l*i):xe.scale(Fo,s,u*i))}else if(!n){var l=Bo(bn[0]-_n[1]),u=Bo(_n[0]-bn[1]);(Ve.useDir||Bu(l,u)<zo.len())&&((l<u||!Ve.bidirectional)&&(xe.scale(zo,s,l*i),Ve.useDir&&Ve.calcDirMTV()),(l>=u||!Ve.bidirectional)&&(xe.scale(zo,s,-u*i),Ve.useDir&&Ve.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[e];s=Bu(c,s),l=PC(c,l)}n[0]=s+Ve.touchThreshold,n[1]=l-Ve.touchThreshold,Ve.negativeSize=n[1]<n[0]},t})(),OC=[],NC=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new se(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(OC)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(uo),BC=Re();function zC(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=te(n.duration,200),c=te(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),ne(f)&&(f=f(r,i)),ne(u)&&(u=u(r));var h={duration:u||0,delay:f,easing:c};return h}else return null}function Lh(t,e,r,n,i,a,o){var s=!1,l;ne(i)?(o=a,a=i,i=null):J(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=zC(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Xr(t,e,r,n,i,a){Lh("update",t,e,r,n,i,a)}function co(t,e,r,n,i,a){Lh("enter",t,e,r,n,i,a)}function Ia(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function $s(t,e,r,n,i,a){Ia(t)||Lh("leave",t,e,r,n,i,a)}function np(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),$s(t,{style:{opacity:0}},e,r,n)}function FC(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||np(i,e,r,n)}):np(t,e,r,n)}function VC(t){BC(t).oldStyle=t.style}var ff={},Mn=["x","y"],Wa=["width","height"];function HC(t){return Se.extend(t)}var jC=pC;function WC(t,e){return jC(t,e)}function Wt(t,e){ff[t]=e}function GC(t){if(ff.hasOwnProperty(t))return ff[t]}function Ih(t,e,r,n){var i=vC(t,e);return r&&(n==="center"&&(r=d0(r,i.getBoundingRect())),v0(i,r)),i}function h0(t,e,r){var n=new Qr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(d0(e,a))}}});return n}function d0(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var UC=gC;function v0(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ga(t,e){return Yy(t,t,{lineWidth:e}),t}function $C(t,e){return Xy(t,t,e),t}var YC=Ln;function XC(t,e){for(var r=dh([]);t&&t!==e;)ka(r,t.getLocalTransform(),r),t=t.parent;return r}function Ph(t,e,r){return e&&!gt(e)&&(e=gh.getLocalTransform(e)),r&&(e=ao([],e)),Nt([],t,e)}function qC(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Qt(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Qt(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Ph(a,e,r),Qt(a[0])>Qt(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ip(t){return!t.isGroup}function ZC(t){return t.shape!=null}function p0(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){ip(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ZC(o)&&(s.shape=he(o.shape)),s}var a=n(t);e.traverse(function(o){if(ip(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Xr(o,l,r,_e(o).dataIndex)}}})}function KC(t,e){return ie(t,function(r){var n=r[0];n=wt(n,e.x),n=Ha(n,e.x+e.width);var i=r[1];return i=wt(i,e.y),i=Ha(i,e.y+e.height),[n,i]})}function JC(t,e){var r=wt(t.x,e.x),n=Ha(t.x+t.width,e.x+e.width),i=wt(t.y,e.y),a=Ha(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Oh(t,e,r){var n=z({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),be(i,r),new Qr(n)):Ih(t.replace("path://",""),n,r,"center")}function QC(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(g0(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function g0(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,h=zu(c,f,l,u);if(e2(h))return!1;var d=t-i,v=e-a,g=zu(d,v,l,u)/h;if(g<0||g>1)return!1;var p=zu(d,v,c,f)/h;return!(p<0||p>1)}function zu(t,e,r,n){return t*n-r*e}function e2(t){return t<=1e-6&&t>=-1e-6}function Ys(t,e,r,n,i){return e==null||(De(e)?Ce[0]=Ce[1]=Ce[2]=Ce[3]=e:(process.env.NODE_ENV!=="production"&&Q(e.length===4),Ce[0]=e[0],Ce[1]=e[1],Ce[2]=e[2],Ce[3]=e[3]),n&&(Ce[0]=wt(0,Ce[0]),Ce[1]=wt(0,Ce[1]),Ce[2]=wt(0,Ce[2]),Ce[3]=wt(0,Ce[3])),r&&(Ce[0]=-Ce[0],Ce[1]=-Ce[1],Ce[2]=-Ce[2],Ce[3]=-Ce[3]),ap(t,Ce,"x","width",3,1,i&&i[0]||0),ap(t,Ce,"y","height",0,2,i&&i[1]||0)),t}var Ce=[0,0,0,0];function ap(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=wt(0,Ha(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Qt(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function Ll(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Z(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&M(Ee(l),function(c){Ht(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=_e(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:be({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function hf(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Nh(t,e){if(t)if(X(t))for(var r=0;r<t.length;r++)hf(t[r],e);else hf(t,e)}function Bh(t){return!t||Qt(t[1])<Vo&&Qt(t[2])<Vo||Qt(t[0])<Vo&&Qt(t[3])<Vo}var Vo=1e-5;function Ua(t,e){return t?se.copy(t,e):e.clone()}function zh(t,e){return e?sy(t||Sr(),e):void 0}function m0(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function t2(t){var e=-1/0,r=1/0;hf(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function y0(t,e,r){_0(t,e,r,-1/0)}function _0(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=wt(_0(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=wt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Wt("circle",Ml);Wt("ellipse",Dh);Wt("sector",Al);Wt("ring",Eh);Wt("polygon",kh);Wt("polyline",Mh);Wt("rect",Be);Wt("line",Yr);Wt("bezierCurve",Ah);Wt("arc",Rl);const r2=Object.freeze(Object.defineProperty({__proto__:null,Arc:Rl,BezierCurve:Ah,BoundingRect:se,Circle:Ml,CompoundPath:LC,Ellipse:Dh,Group:qe,Image:Qr,IncrementalDisplayable:NC,Line:Yr,LinearGradient:Rh,OrientedBoundingRect:f0,Path:Se,Point:xe,Polygon:kh,Polyline:Mh,RadialGradient:IC,Rect:Be,Ring:Eh,Sector:Al,Text:mt,WH:Wa,XY:Mn,applyTransform:Ph,calcZ2Range:t2,clipPointsByRect:KC,clipRectByRect:JC,createIcon:Oh,ensureCopyRect:Ua,ensureCopyTransform:zh,expandOrShrinkRect:Ys,extendPath:WC,extendShape:HC,getShapeClass:GC,getTransform:XC,groupTransition:p0,initProps:co,isBoundingRectAxisAligned:Bh,isElementRemoved:Ia,lineLineIntersect:g0,linePolygonIntersect:QC,makeImage:h0,makePath:Ih,mergePath:UC,registerShape:Wt,removeElement:$s,removeElementWithFadeOut:FC,resizePath:v0,retrieveZInfo:m0,setTooltipConfig:Ll,subPixelOptimize:YC,subPixelOptimizeLine:Ga,subPixelOptimizeRect:$C,transformDirection:qC,traverseElements:Nh,traverseUpdateZ:y0,updateProps:Xr},Symbol.toStringTag,{value:"Module"}));var Il={};function n2(t,e){for(var r=0;r<lr.length;r++){var n=lr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function op(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ne(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<lr.length;u++){var c=lr[u],f=e[c];l[c]=te(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Fh(t,e,r,n){r=r||Il;for(var i=t instanceof mt,a=!1,o=0;o<jv.length;o++){var s=e[jv[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new mt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=op(r,e),c=e.normal,f=!!c.getShallow("show"),h=Fi(c,n&&n.normal,r,!1,!i);h.text=u.normal,i||t.setTextConfig(sp(c,r,!1));for(var o=0;o<lr.length;o++){var d=lr[o],s=e[d];if(s){var v=l.ensureState(d),g=!!te(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=Fi(s,n&&n[d],r,!0,!i),v.style.text=u[d],!i){var p=t.ensureState(d);p.textConfig=sp(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),r.enableTextSetter&&(b0(l).setLabelText=function(m){var y=op(r,e,m);n2(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Vh(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<lr.length;n++){var i=lr[n];r[i]=t.getModel([i,e])}return r}function Fi(t,e,r,n,i){var a={};return i2(a,t,r,n,i),e&&z(a,e),a}function sp(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=te(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function i2(t,e,r,n,i){r=r||Il;var a=e.ecModel,o=a&&a.option.textStyle,s=a2(e),l;if(s){l={};var u="richInheritPlainLabel",c=te(e.get(u),a?a.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var h=e.getModel(["rich",f]);fp(l[f]={},h,o,e,c,r,n,i,!1,!0)}}l&&(t.rich=l);var d=e.get("overflow");d&&(t.overflow=d);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var g=t,p=e.get("minMargin");if(p!=null)p=De(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=Ci.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=fh(m),g.__marginType=Ci.textMargin)}fp(t,e,o,null,null,r,n,i,!0,!1)}function a2(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Il).rich;if(r){e=e||{};for(var n=Ee(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var lp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],up=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function fp(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Il;var c=a&&a.inheritColor,f=e.getShallow("color"),h=e.getShallow("textBorderColor"),d=te(e.getShallow("opacity"),r.opacity);(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&je("color: 'auto'","color: 'inherit'"),c?f=c:f=null),(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&je("color: 'auto'","color: 'inherit'"),c?h=c:h=null),s||(f=f||r.color,h=h||r.textBorderColor),f!=null&&(t.fill=f),h!=null&&(t.stroke=h);var v=te(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var g=te(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var p=te(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&d==null&&!u&&(d=a&&a.defaultOpacity),d!=null&&(t.opacity=d),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<lp.length;m++){var y=lp[m],_=i!==!1&&n?jr(e.getShallow(y),n.getShallow(y),r[y]):te(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<up.length;m++){var y=up[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var m=0;m<cp.length;m++){var y=cp[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&c&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&je("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=c),(t.borderColor==="auto"||t.borderColor==="inherit")&&c&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&je("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=c)}}function o2(t,e){var r=e&&e.getModel("textStyle");return Jt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var b0=Re(),Ci={minMargin:1,textMargin:2},s2=["textStyle","color"],Fu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Vu=new mt,l2=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(s2):null)},t.prototype.getFont=function(){return o2({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Fu.length;n++)r[Fu[n]]=this.getShallow(Fu[n]);return Vu.useStyle(r),Vu.update(),Vu.getBoundingRect()},t})(),x0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],u2=ja(x0),c2=(function(){function t(){}return t.prototype.getLineStyle=function(e){return u2(this,e)},t})(),w0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],f2=ja(w0),h2=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return f2(this,e,r)},t})(),ke=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){me(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(he(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();_h(ke);YS(ke);cr(ke,c2);cr(ke,h2);cr(ke,JS);cr(ke,l2);var d2=Math.round(Math.random()*10);function Pl(t){return[t||"",d2++].join("_")}function v2(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=er(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=er(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function p2(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,h={};for(M(a,function(y){h[y]=!0});f.length;){var d=f.pop(),v=c[d],g=!!h[d];g&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),M(v.successor,g?m:p)}M(h,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Vs("Circular dependency may exists: ",h,a,o)),new Error(y)});function p(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){h[y]=!0,p(y)}};function r(a){var o={},s=[];return M(a,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),M(f,function(h){ve(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);ve(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return M(a,function(l){ve(o,l)>=0&&s.push(l)}),s}}function g2(t,e){return me(me({},t,!0),e,!0)}const m2={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:". "}}}},y2={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 Xs="ZH",Hh="EN",Ai=Hh,gs={},jh={},S0=oe.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ai).toUpperCase();return t.indexOf(Xs)>-1?Xs:Ai})():Ai;function T0(t,e){t=t.toUpperCase(),jh[t]=new ke(e),gs[t]=e}function _2(t){if(Z(t)){var e=gs[t.toUpperCase()]||{};return t===Xs||t===Hh?he(e):me(he(e),he(gs[Ai]),!1)}else return me(he(t),he(gs[Ai]),!1)}function b2(t){return jh[t]}function x2(){return jh[Ai]}T0(Hh,m2);T0(Xs,y2);var w2=null;function qs(){return w2}var Wh=1e3,Gh=Wh*60,Pa=Gh*60,Ot=Pa*24,hp=Ot*365,S2={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})/},ms={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},T2="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ho="{yyyy}-{MM}-{dd}",dp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ho,hour:Ho+" "+ms.hour,minute:Ho+" "+ms.minute,second:Ho+" "+ms.second,millisecond:T2},Hn=["year","month","day","hour","minute","second","millisecond"],C2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function D2(t){return!Z(t)&&!ne(t)?E2(t):t}function E2(t){t=t||{};var e={},r=!0;return M(Hn,function(n){r&&(r=t[n]==null)}),M(Hn,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=Hn[s],u=J(a)&&!X(a)?a[l]:a,c=void 0;X(u)?(c=u.slice(),o=c[0]||""):Z(u)?(o=u,c=[o]):(o==null?o=ms[n]:S2[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),e[n][l]=c}}),e}function Ar(t,e){return t+="","0000".substr(0,e-t.length)+t}function Oa(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function k2(t){return t===Oa(t)}function M2(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ol(t,e,r,n){var i=Xi(t),a=i[C0(r)](),o=i[Uh(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[$h(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Yh(r)](),f=(c-1)%12+1,h=i[Xh(r)](),d=i[qh(r)](),v=i[Zh(r)](),g=c>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof ke?n:b2(n||S0)||x2(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ar(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ar(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ar(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ar(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ar(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ar(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ar(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Ar(v,3)).replace(/{S}/g,v+"")}function A2(t,e,r,n,i){var a=null;if(Z(r))a=r;else if(ne(r)){var o={time:t.time,level:t.time.level},s=qs();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=Zs(t.value,i);a=r[c][c][0]}}return Ol(new Date(t.value),a,i,n)}function Zs(t,e){var r=Xi(t),n=r[Uh(e)]()+1,i=r[$h(e)](),a=r[Yh(e)](),o=r[Xh(e)](),s=r[qh(e)](),l=r[Zh(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function df(t,e,r){switch(e){case"year":t[D0(r)](0);case"month":t[E0(r)](1);case"day":t[k0(r)](0);case"hour":t[M0(r)](0);case"minute":t[A0(r)](0);case"second":t[R0(r)](0)}return t}function C0(t){return t?"getUTCFullYear":"getFullYear"}function Uh(t){return t?"getUTCMonth":"getMonth"}function $h(t){return t?"getUTCDate":"getDate"}function Yh(t){return t?"getUTCHours":"getHours"}function Xh(t){return t?"getUTCMinutes":"getMinutes"}function qh(t){return t?"getUTCSeconds":"getSeconds"}function Zh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function R2(t){return t?"setUTCFullYear":"setFullYear"}function D0(t){return t?"setUTCMonth":"setMonth"}function E0(t){return t?"setUTCDate":"setDate"}function k0(t){return t?"setUTCHours":"setHours"}function M0(t){return t?"setUTCMinutes":"setMinutes"}function A0(t){return t?"setUTCSeconds":"setSeconds"}function R0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function L0(t){if(!Ry(t))return Z(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function I0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Nl=fh;function vf(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Jt(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Xi(t):t;if(isNaN(+l)){if(s)return"-"}else return Ol(l,n,r)}if(e==="ordinal")return Ms(t)?i(t):De(t)&&a(t)?t+"":"-";var u=Fs(t);return a(u)?L0(u):Ms(t)?i(t):typeof t=="boolean"?t+"":"-"}var vp=["a","b","c","d","e","f","g"],Hu=function(t,e){return"{"+t+(e??"")+"}"};function P0(t,e,r){X(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=vp[a];t=t.replace(Hu(o),Hu(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Hu(vp[l],s),r?ut(u):u)}return t}function L2(t,e){var r=Z(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ut(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ut(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Yn(t,e){return e=e||"transparent",Z(t)?t:J(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var ys={},ju={},Kh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(ys,!0),this._normalMasterList=n(ju,!1);function n(i,a){var o=[];return M(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[]),process.env.NODE_ENV!=="production"&&a&&M(u,function(c){return Q(!c.update)})}),o}},t.prototype.update=function(e,r){M(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){ys[e]=r;return}ju[e]=r},t.get=function(e){return ju[e]||ys[e]},t})();function I2(t){return!!ys[t]}var pp={coord:1,coord2:2},P2=ce();function O2(t){var e=t.getShallow("coord",!0),r=pp.coord;if(e==null){var n=P2.get(t.type);n&&n.getCoord2&&(r=pp.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var br={none:0,dataCoordSys:1,boxCoordSys:2};function N2(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=br.none;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=br.dataCoordSys,o||(process.env.NODE_ENV!=="production"&&i&&e&&ye('coordinateSystemUsage "data" is not supported in non-series components.'),a=br.none)):n==="box"&&(a=br.boxCoordSys,!o&&!I2(r)&&(process.env.NODE_ENV!=="production"&&i&&e&&ye('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+t.type+'" yet.')),a=br.none))}return{coordSysType:r,kind:a}}function B2(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound;process.env.NODE_ENV!=="production"&&Q(!!r);var o=N2(e,!0),s=o.kind,l=o.coordSysType;if(i&&s!==br.dataCoordSys&&(s=br.dataCoordSys,l=r),s===br.none||l!==r)return!1;var u=n(r,e);return u?(s===br.dataCoordSys?(process.env.NODE_ENV!=="production"&&Q(e.mainType==="series"),e.coordinateSystem=u):e.boxCoordinateSystem=u,!0):(process.env.NODE_ENV!=="production"&&(a||ye(r+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."))),!1)}var _s=M,z2=["left","right","top","bottom","width","height"],jo=[["width","left","right"],["height","top","bottom"]];function Jh(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),d,v;if(t==="horizontal"){var g=c.width+(h?-h.x+c.x:0);d=a+g,d>n||l.newline?(a=0,d=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(h?-h.y+c.y:0);v=o+p,v>i||l.newline?(a+=s+r,o=0,v=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=d+r:o=v+r)})}var Na=Jh;We(Jh,"vertical");We(Jh,"horizontal");function F2(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function $a(t,e,r){r=Nl(r||0);var n=e.width,i=e.height,a=it(t.left,n),o=it(t.top,i),s=it(t.right,n),l=it(t.bottom,i),u=it(t.width,n),c=it(t.height,i),f=r[2]+r[0],h=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new se((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,c);return v.margin=r,v}var Wu={rect:1};function O0(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=O2(t),u=l.coord,c=l.from;if(o.dataToLayout){a=Wu.rect,s=c;var f=o.dataToLayout(u);n=f.contentRect||f.rect}else process.env.NODE_ENV!=="production"&&ye(t.type+"["+t.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=Wu.rect),a===Wu.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Ya(t){var e=t.layoutMode||t.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function qr(t,e,r){var n=r&&r.ignoreSize;!X(n)&&(n=[n,n]);var i=o(jo[0],0),a=o(jo[1],1);l(jo[0],t,i),l(jo[1],t,a);function o(u,c){var f={},h=0,d={},v=0,g=2;if(_s(u,function(y){d[y]=t[y]}),_s(u,function(y){Ht(e,y)&&(f[y]=d[y]=e[y]),s(f,y)&&h++,s(d,y)&&v++}),n[c])return s(e,u[1])?d[u[2]]=null:s(e,u[2])&&(d[u[1]]=null),d;if(v===g||!h)return d;if(h>=g)return f;for(var p=0;p<u.length;p++){var m=u[p];if(!Ht(f,m)&&Ht(t,m)){f[m]=t[m];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){_s(u,function(h){c[h]=f[h]})}}function fo(t){return V2({},t)}function V2(t,e){return e&&t&&_s(z2,function(r){Ht(e,r)&&(t[r]=e[r])}),t}var H2=Re(),ge=(function(t){q(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Pl("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ya(this),a=i?fo(r):{},o=n.getTheme();me(r,o.get(this.mainType)),me(r,this.getDefaultOption()),i&&qr(r,a,i)},e.prototype.mergeOption=function(r,n){me(this.option,r,!0);var i=Ya(this);i&&qr(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!GS(r))return r.defaultOption;var n=H2(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=me(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lo(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return F2(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(ke);Fy(ge,ke);Sl(ge);v2(ge);p2(ge,j2);function j2(t){var e=[];return M(ge.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ie(e,function(r){return er(r).main}),t!=="dataset"&&ve(e,"dataset")<=0&&e.unshift("dataset"),e}var ee={color:{},darkColor:{},size:{}},Ae=ee.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)"};z(Ae,{primary:Ae.neutral80,secondary:Ae.neutral70,tertiary:Ae.neutral60,quaternary:Ae.neutral50,disabled:Ae.neutral20,border:Ae.neutral30,borderTint:Ae.neutral20,borderShade:Ae.neutral40,background:Ae.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ae.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ae.neutral70,axisLineTint:Ae.neutral40,axisTick:Ae.neutral70,axisTickMinor:Ae.neutral60,axisLabel:Ae.neutral70,axisSplitLine:Ae.neutral15,axisMinorSplitLine:Ae.neutral05});for(var xn in Ae)if(Ae.hasOwnProperty(xn)){var gp=Ae[xn];xn==="theme"?ee.darkColor.theme=Ae.theme.slice():xn==="highlight"?ee.darkColor.highlight="rgba(255,231,130,0.4)":xn.indexOf("accent")===0?ee.darkColor[xn]=Hc(gp,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ee.darkColor[xn]=Hc(gp,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}ee.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var N0="";typeof navigator<"u"&&(N0=navigator.platform||"");var li="rgba(0, 0, 0, 0.2)",B0=ee.color.theme[0],W2=Hc(B0,null,null,.9);const G2={darkMode:"auto",colorBy:"series",color:ee.color.theme,gradientColor:[W2,B0],aria:{decal:{decals:[{color:li,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:li,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:li,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:li,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:li,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:li,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:N0.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 pf=ce(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),St="original",et="arrayRows",Gt="objectRows",hr="keyedColumns",Tr="typedArray",z0="unknown",or="column",qn="row",yt={Must:1,Might:2,Not:3},F0=Re();function U2(t){F0(t).datasetMap=ce()}function $2(t,e,r){var n={},i=V0(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=F0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),M(t,function(g,p){var m=J(g)?g:t[p]={name:g};m.type==="ordinal"&&c==null&&(c=p,f=v(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(t,function(g,p){var m=g.name,y=v(g);if(c==null){var _=h.valueWayDim;d(n[m],_,y),d(o,_,y),h.valueWayDim+=y}else if(c===p)d(n[m],0,y),d(a,0,y);else{var _=h.categoryWayDim;d(n[m],_,y),d(o,_,y),h.categoryWayDim+=y}});function d(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function v(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function V0(t){var e=t.get("data",!0);if(!e)return lo(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Pt).models[0]}function Y2(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:lo(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Pt).models}function H0(t,e){return X2(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function X2(t,e,r,n,i,a){var o,s=5;if(ot(t))return yt.Not;var l,u;if(n){var c=n[a];J(c)?(l=c.name,u=c.type):Z(c)&&(l=c)}if(u!=null)return u==="ordinal"?yt.Must:yt.Not;if(e===et){var f=t;if(r===qn){for(var h=f[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<f.length&&d<s;d++){var v=f[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(e===Gt){var g=t;if(!l)return yt.Not;for(var d=0;d<g.length&&d<s;d++){var p=g[d];if(p&&(o=b(p[l]))!=null)return o}}else if(e===hr){var m=t;if(!l)return yt.Not;var h=m[l];if(!h||ot(h))return yt.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(e===St)for(var y=t,d=0;d<y.length&&d<s;d++){var p=y[d],_=so(p);if(!X(_))return yt.Not;if((o=b(_[a]))!=null)return o}function b(S){var x=Z(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?yt.Might:yt.Not;if(x&&S!=="-")return yt.Must}return yt.Not}var q2=ce();function Z2(t,e,r){var n=q2.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)Q(Bi(i[a]));return r.concat(i)}var mp=Re();Re();var Qh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=at(this.get("color",!0)),a=this.get("colorLayer",!0);return J2(this,mp,i,a,e,r,n)},t.prototype.clearColorPalette=function(){Q2(this,mp)},t})();function K2(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function J2(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:K2(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Q2(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Wo,aa,yp,Gu="\0_ec_inner",_p=1,eD={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},tD={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Ks={};function rD(t){M(t,function(e,r){if(!ge.hasClass(r)){var n=eD[r];n&&!Ks[n]&&(ye("Component "+r+` is used but not imported.
|
|
9
|
+
import { `+n+` } from 'echarts/components';
|
|
10
|
+
echarts.use([`+n+"]);"),Ks[n]=!0)}})}var ed=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ke(a),this._locale=new ke(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(Q(r!=null,"option is null/undefined"),Q(r[Gu]!==_p,"please use chart.getOption()"));var a=wp(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,wp(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&rD(o),!this.option||r==="recreate"?yp(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ce(),u=n&&n.replaceMergeMainTypeMap;U2(this),M(r,function(f,h){f!=null&&(ge.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?he(f):me(i[h],f,!0))}),u&&u.each(function(f,h){ge.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ge.topologicalTravel(s,ge.getAllClassMainTypes(),c,this);function c(f){var h=Z2(this,f,at(r[f])),d=a.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=MS(d,h,v);NS(g,f,ge),i[f]=null,a.set(f,null),o.set(f,0);var p=[],m=[],y=0,_,b;M(g,function(S,x){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var D=f==="series",E=ge.getClass(f,S.keyInfo.subType,!D);if(!E){if(process.env.NODE_ENV!=="production"){var k=S.keyInfo.subType,A=tD[k];Ks[k]||(Ks[k]=!0,ye(A?"Series "+k+` is used but not imported.
|
|
11
|
+
import { `+A+` } from 'echarts/charts';
|
|
12
|
+
echarts.use([`+A+"]);":"Unknown series "+k))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(b||(bt("Currently only one tooltip component is allowed."),b=!0));return}_=!0}if(w&&w.constructor===E)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var R=z({componentIndex:x},S.keyInfo);w=new E(T,this,this,R),z(w,R),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),m.push(w),y++):(p.push(void 0),m.push(void 0))},this),i[f]=p,a.set(f,m),o.set(f,y),f==="series"&&Wo(this)}this._seriesIndices||Wo(this)},e.prototype.getOption=function(){var r=he(this.option);return M(r,function(n,i){if(ge.hasClass(i)){for(var a=at(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Bi(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Gu],r},e.prototype.setTheme=function(r){this._theme=new ke(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],M(at(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=bp("id",a,s):o!=null?l=bp("name",o,s):l=He(s,function(u){return!!u}),xp(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):He(this._componentsMap.get(i),function(u){return!!u});return l(xp(o,r));function s(u){var c=i+"Index",f=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[f],name:u[h]}:null}function l(u){return r.filter?He(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ne(r)){var o=n,s=r;a.each(function(f,h){for(var d=0;f&&d<f.length;d++){var v=f[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=Z(r)?a.get(r):J(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=ar(r,null);return He(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return He(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return He(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){aa(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){aa(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return M(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return aa(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){aa(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ce(i)},e.prototype.restoreData=function(r){Wo(this);var n=this._componentsMap,i=[];n.each(function(a,o){ge.hasClass(o)&&i.push(o)}),ge.topologicalTravel(i,ge.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!nD(o,r))&&o.restoreData()})})},e.internalField=(function(){Wo=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ce(n)},aa=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},yp=function(r,n){r.option={},r.option[Gu]=_p,r._componentsMap=ce({series:[]}),r._componentsCount=ce();var i=n.aria;J(i)&&i.enabled==null&&(i.enabled=!0),iD(n,r._theme.option),me(n,G2,!1),r._mergeOption(n,null)}})(),e})(ke);function nD(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function iD(t,e){var r=t.color&&!t.colorLayer;M(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ge.hasClass(i)||(typeof n=="object"?t[i]=t[i]?me(t[i],n,!1):he(n):t[i]==null&&(t[i]=n))})}function bp(t,e,r){if(X(e)){var n=ce();return M(e,function(a){if(a!=null){var o=ar(a,null);o!=null&&n.set(a,!0)}}),He(r,function(a){return a&&n.get(a[t])})}else{var i=ar(e,null);return He(r,function(a){return a&&i!=null&&a[t]===i})}}function xp(t,e){return e.hasOwnProperty("subType")?He(t,function(r){return r&&r.subType===e.subType}):t}function wp(t){var e=ce();return t&&M(at(t.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&Q(ge.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}cr(ed,Qh);var aD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],j0=(function(){function t(e){M(aD,function(r){this[r]=we(e[r],e)},this)}return t})(),oD=/^(min|max)?(.+)$/,sD=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(M(at(e.series),function(o){o&&o.data&&ot(o.data)&&Ac(o.data)}),M(at(e.dataset),function(o){o&&o.source&&ot(o.source)&&Ac(o.source)})),e=he(e);var i=this._optionBackup,a=lD(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],he(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=he(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)uD(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!fD(o,this._currentMediaIndices)&&(s=ie(o,function(c){return he(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},t})();function lD(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(t.options=t.media=null),a=t),c&&(X(u)?M(u,function(d){process.env.NODE_ENV!=="production"&&d&&!d.option&&J(d.query)&&J(d.query.option)&&ye("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),d&&d.option&&(d.query?n.push(d):i||(i=d))}):process.env.NODE_ENV!=="production"&&ye("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(a),M(l,function(d){return h(d)}),M(n,function(d){return h(d.option)});function h(d){M(e,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function uD(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return M(t,function(a,o){var s=o.match(oD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();cD(n[u],a,l)||(i=!1)}}),i}function cD(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function fD(t,e){return t.join(",")===e.join(",")}var Tt=M,Xa=J,Sp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Uu(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Sp.length;r<n;r++){var i=Sp[r],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&je("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?me(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&je("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?me(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Je(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&Dr("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r?(t[e].normal=t[e].emphasis=null,be(t[e],n)):t[e]=n),i&&(process.env.NODE_ENV!=="production"&&Dr(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Ta(t){Je(t,"itemStyle"),Je(t,"lineStyle"),Je(t,"areaStyle"),Je(t,"label"),Je(t,"labelLine"),Je(t,"upperLabel"),Je(t,"edgeLabel")}function Le(t,e){var r=Xa(t)&&t[e],n=Xa(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Dr("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=yv.length;i<a;i++){var o=yv[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function Mt(t){t&&(Ta(t),Le(t,"label"),t.emphasis&&Le(t.emphasis,"label"))}function hD(t){if(Xa(t)){Uu(t),Ta(t),Le(t,"label"),Le(t,"upperLabel"),Le(t,"edgeLabel"),t.emphasis&&(Le(t.emphasis,"label"),Le(t.emphasis,"upperLabel"),Le(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Uu(e),Mt(e));var r=t.markLine;r&&(Uu(r),Mt(r));var n=t.markArea;n&&Mt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!ot(a))for(var o=0;o<a.length;o++)Mt(a[o]);M(t.categories,function(u){Ta(u)})}if(i&&!ot(i))for(var o=0;o<i.length;o++)Mt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Mt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)X(l[o])?(Mt(l[o][0]),Mt(l[o][1])):Mt(l[o]);t.type==="gauge"?(Le(t,"axisLabel"),Le(t,"title"),Le(t,"detail")):t.type==="treemap"?(Je(t.breadcrumb,"itemStyle"),M(t.levels,function(u){Ta(u)})):t.type==="tree"&&Ta(t.leaves)}}function vr(t){return X(t)?t:t?[t]:[]}function Tp(t){return(X(t)?t[0]:t)||{}}function dD(t,e){Tt(vr(t.series),function(n){Xa(n)&&hD(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Tt(r,function(n){Tt(vr(t[n]),function(i){i&&(Le(i,"axisLabel"),Le(i.axisPointer,"label"))})}),Tt(vr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Le(i,"axisLabel"),Le(i&&i.axisPointer,"label")}),Tt(vr(t.calendar),function(n){Je(n,"itemStyle"),Le(n,"dayLabel"),Le(n,"monthLabel"),Le(n,"yearLabel")}),Tt(vr(t.radar),function(n){Le(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Dr("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Dr("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Tt(n.indicator,function(i){i.text&&je("text","name","radar.indicator")})}),Tt(vr(t.geo),function(n){Xa(n)&&(Mt(n),Tt(vr(n.regions),function(i){Mt(i)}))}),Tt(vr(t.timeline),function(n){Mt(n),Je(n,"label"),Je(n,"itemStyle"),Je(n,"controlStyle",!0);var i=n.data;X(i)&&M(i,function(a){J(a)&&(Je(a,"label"),Je(a,"itemStyle"))})}),Tt(vr(t.toolbox),function(n){Je(n,"iconStyle"),Tt(n.feature,function(i){Je(i,"iconStyle")})}),Le(Tp(t.axisPointer),"label"),Le(Tp(t.tooltip).axisPointer,"label")}function vD(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function pD(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Cp(t){t&&M(gD,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var gD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],mD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],$u=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function oa(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<$u.length;r++){var n=$u[r][1],i=$u[r][0];e[n]!=null&&(e[i]=e[n],process.env.NODE_ENV!=="production"&&je(n,i))}}function Dp(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&je("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function Ep(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&je("downplay","blur","sunburst"))}function yD(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&je("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function W0(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&W0(t[r].children,e)}function G0(t,e){dD(t,e),t.series=at(t.series),M(t.series,function(r){if(J(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&je("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&je("clockWise","clockwise")),Dp(r.label);var i=r.data;if(i&&!ot(i))for(var a=0;a<i.length;a++)Dp(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&je("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=vD(r,"pointer.color");o!=null&&pD(r,"itemStyle.color",o)}else if(n==="bar"){oa(r),oa(r.backgroundStyle),oa(r.emphasis);var i=r.data;if(i&&!ot(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(oa(i[a]),oa(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&je("highlightPolicy","emphasis.focus","sunburst"))),Ep(r),W0(r.data,Ep)}else n==="graph"||n==="sankey"?yD(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&je("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Dr("`mapLocation` is not used anymore."),be(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&je("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Cp(r)}}),t.dataRange&&(t.visualMap=t.dataRange),M(mD,function(r){var n=t[r];n&&(X(n)||(n=[n]),M(n,function(i){Cp(i)}))})}function _D(t){var e=ce();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),M(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),bD(r)}})}function bD(t){M(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var h=o.get(e.stackedDimension,f);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(f):d=o.get(e.stackedByDimension,f);for(var g=NaN,p=r-1;p>=0;p--){var m=t[p];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=wS(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var Bl=(function(){function t(e){this.data=e.data||(e.sourceFormat===hr?{}:[]),this.sourceFormat=e.sourceFormat||z0,this.seriesLayoutBy=e.seriesLayoutBy||or,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&H0(this,n)===yt.Must&&(i.type="ordinal")}}return t})();function td(t){return t instanceof Bl}function gf(t,e,r){r=r||$0(t);var n=e.seriesLayoutBy,i=wD(t,r,n,e.sourceHeader,e.dimensions),a=new Bl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:he(e)});return a}function U0(t){return new Bl({data:t,sourceFormat:ot(t)?Tr:St})}function xD(t){return new Bl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:he(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function $0(t){var e=z0;if(ot(t))e=Tr;else if(X(t)){t.length===0&&(e=et);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(X(i)||ot(i)){e=et;break}else if(J(i)){e=Gt;break}}}}else if(J(t)){for(var a in t)if(Ht(t,a)&>(t[a])){e=hr;break}}return e}function wD(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:kp(i),startIndex:o,dimensionsDetectedCount:a};if(e===et){var s=t;n==="auto"||n==null?Mp(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},r,s,10):o=De(n)?n:n?1:0,!i&&o===1&&(i=[],Mp(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===qn?s.length:s[0]?s[0].length:null}else if(e===Gt)i||(i=SD(t));else if(e===hr)i||(i=[],M(t,function(u,c){i.push(c)}));else if(e===St){var l=so(t[0]);a=X(l)&&l.length||1}else e===Tr&&process.env.NODE_ENV!=="production"&&Q(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:kp(i),dimensionsDetectedCount:a}}function SD(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Ee(r)}function kp(t){if(t){var e=ce();return ie(t,function(r,n){r=J(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Mp(t,e,r,n){if(e===qn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Y0(t){var e=t.sourceFormat;return e===Gt||e===hr}var wn,Sn,Tn,Cn,Ap,Rp,X0=(function(){function t(e,r){var n=td(e)?e:U0(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===Tr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}if(process.env.NODE_ENV!=="production"){var s=TD[Js(a,o)];s&&s(i,n.dimensionsDefine)}Rp(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Rp=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,d=Ap[Js(u,c)];if(process.env.NODE_ENV!=="production"&&Q(d,"Invalide sourceFormat: "+u),z(o,d),u===Tr)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=q0(u,c);o.getItem=we(v,null,s,f,h);var g=Z0(u,c);o.count=we(g,null,s,f,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],p=s-o,m=l[h],y=0;y<p;y++){var _=c[y*f+h];m[o+y]=_,_<v&&(v=_),_>g&&(g=_)}d[0]=v,d[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Ap=(e={},e[et+"_"+or]={pure:!0,appendData:a},e[et+"_"+qn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Gt]={pure:!0,appendData:a},e[hr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[St]={appendData:a},e[Tr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&Q(ot(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),Go=function(t){X(t)||ye("series.data or dataset.source must be an array.")},TD=(wn={},wn[et+"_"+or]=Go,wn[et+"_"+qn]=Go,wn[Gt]=Go,wn[hr]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&ye("dimension name must not be null/undefined.")}},wn[St]=Go,wn),Lp=function(t,e,r,n){return t[n]},CD=(Sn={},Sn[et+"_"+or]=function(t,e,r,n){return t[n+e]},Sn[et+"_"+qn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Sn[Gt]=Lp,Sn[hr]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},Sn[St]=Lp,Sn);function q0(t,e){var r=CD[Js(t,e)];return process.env.NODE_ENV!=="production"&&Q(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var Ip=function(t,e,r){return t.length},DD=(Tn={},Tn[et+"_"+or]=function(t,e,r){return Math.max(0,t.length-e)},Tn[et+"_"+qn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Tn[Gt]=Ip,Tn[hr]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Tn[St]=Ip,Tn);function Z0(t,e){var r=DD[Js(t,e)];return process.env.NODE_ENV!=="production"&&Q(r,'Do not support count on "'+t+'", "'+e+'".'),r}var Yu=function(t,e,r){return t[e]},ED=(Cn={},Cn[et]=Yu,Cn[Gt]=function(t,e,r){return t[r]},Cn[hr]=Yu,Cn[St]=function(t,e,r){var n=so(t);return n instanceof Array?n[e]:n},Cn[Tr]=Yu,Cn);function K0(t){var e=ED[t];return process.env.NODE_ENV!=="production"&&Q(e,'Do not support get value on "'+t+'".'),e}function Js(t,e){return t===et?t+"_"+e:t}function Vi(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return K0(a)(n,o,s)}else{var l=n;return a===St&&(l=so(n)),l}}}}var kD=/\{@(.+?)\}/g,MD=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",d=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&X(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ne(a))return l.status=r,l.dimensionIndex=i,a(l);if(Z(a)){var c=P0(a,l);return c.replace(kD,function(f,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&ye("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var g=Vi(s,e,v);if(o&&X(o.interpolatedValue)){var p=s.getDimensionIndex(v);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return Vi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Pp(t){var e,r;return J(t)?t.type?r=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Vs(t)):e=t,{text:e,frag:r}}function Ba(t){return new AD(t)}var AD=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?(process.env.NODE_ENV!=="production"&&Q(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&Q(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d<v)){var g=this._progress;if(X(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],d,v,l,u);else this._doProgress(g,d,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&Q(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Op.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Op.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),X(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&Q(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),Op=(function(){var t,e,r,n,i,a={reset:function(l,u,c,f){e=l,t=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function bs(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!De(t)&&t!=null&&t!=="-"&&(t=+Xi(t)),t==null||t===""?NaN:Number(t))}ce({number:function(t){return parseFloat(t)},time:function(t){return+Xi(t)},trim:function(t){return Z(t)?Jt(t):t}});var RD=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=De(e)?e:Fs(e),i=De(r)?r:Fs(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Z(e),l=Z(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),LD=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return bs(e,r)},t})();function ID(t,e){var r=new LD,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==or&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),ft(o));var s=[],l={},u=t.dimensionsDefine;if(u)M(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Ht(l,m)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+m+'" duplicated.'),ft(_)),l[m]=y}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=q0(i,or);e.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,a,s,g)},r.getRawData=we(PD,null,t)),r.cloneRawData=we(OD,null,t);var h=Z0(i,or);r.count=we(h,null,n,a,s);var d=K0(i);r.retrieveValue=function(g,p){var m=f(n,a,s,g);return v(m,p)};var v=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return d(g,p,m.name)}};return r.getDimensionInfo=we(ND,null,s,l),r.cloneAllDimensionInfo=we(BD,null,s),r}function PD(t){var e=t.sourceFormat;if(!rd(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+e),ft(r)}return t.data}function OD(t){var e=t.sourceFormat,r=t.data;if(!rd(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),ft(n)}if(e===et){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Gt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(z({},r[a]));return i}}function ND(t,e,r){if(r!=null){if(De(r)||!isNaN(r)&&!Ht(e,r))return t[r];if(Ht(e,r))return e[r]}}function BD(t){return he(t)}var J0=ce();function zD(t){t=he(t);var e=t.type,r="";e||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),ft(r));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),ft(r));var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,J0.set(e,t)}function FD(t,e,r){var n=at(t),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),ft(a));for(var o=0,s=i;o<s;o++){var l=n[o];e=VD(l,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function VD(t,e,r,n){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),ft(i)),J(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),ft(i));var a=t.type,o=J0.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),ft(i));var s=ie(e,function(c){return ID(c,o)}),l=at(o.transform({upstream:s[0],upstreamList:s,config:he(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=ie(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",Vs(c.data),"- transform result dimensions:",Vs(c.dimensions)].join(`
|
|
13
|
+
`)}).join(`
|
|
14
|
+
`);Py(u)}return ie(l,function(c,f){var h="";J(c)||(process.env.NODE_ENV!=="production"&&(h="A transform should not return some empty results."),ft(h)),c.data||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be not be null or undefined"),ft(h));var d=$0(c.data);rd(d)||(process.env.NODE_ENV!=="production"&&(h="Transform result data should be array rows or object rows."),ft(h));var v,g=e[0];if(g&&f===0&&!c.dimensions){var p=g.startIndex;p&&(c.data=g.data.slice(0,p).concat(c.data)),v={seriesLayoutBy:or,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:or,sourceHeader:0,dimensions:c.dimensions};return gf(c.data,v,null)})}function rd(t){return t===et||t===Gt}var zl="undefined",HD=typeof Uint32Array===zl?Array:Uint32Array,jD=typeof Uint16Array===zl?Array:Uint16Array,Q0=typeof Int32Array===zl?Array:Int32Array,Np=typeof Float64Array===zl?Array:Float64Array,e_={float:Np,int:Q0,ordinal:Array,number:Array,time:Np},Xu;function ui(t){return t>65535?HD:jD}function ci(){return[1/0,-1/0]}function WD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Bp(t,e,r,n,i){var a=e_[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var mf=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ce()}return t.prototype.initData=function(e,r,n){process.env.NODE_ENV!=="production"&&Q(ne(e.getItem)&&ne(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Xu[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=Y0(i);this._dimensions=ie(r,function(s){return process.env.NODE_ENV!=="production"&&o&&Q(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new e_[r||"float"](this._rawCount),this._rawExtent[a]=ci(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=ci());for(var l=a[e],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&Q(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var c=i[u];Bp(n,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var c=i[v],g=Xu.arrayRows.call(this,e[d]||f,c.property,d,v);n[v][h]=g;var p=o[v];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ie(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=ci()),Bp(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var h=[],d=e;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var g=a[v],p=this._dimValueGetter(h,u[v],d,v);g[d]=p;var m=l[v];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=ui(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ui(n._rawCount),o=new a(i),s=[],l=e.length,u=0,c=e[0],f=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var g=f[c][v];d=r(g,h)}else{for(var p=0;p<l;p++)s[p]=f[e[p]][v];s[p]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Ee(e),a=i.length;if(!a)return this;var o=r.count(),s=ui(r._rawCount),l=new s(o),u=0,c=i[0],f=e[c][0],h=e[c][1],d=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var p=d[i[0]],m=0;m<n;m++){var y=p[m];(y>=f&&y<=h||isNaN(y))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var p=d[i[0]],_=d[i[1]],b=e[i[1]][0],S=e[i[1]][1],m=0;m<n;m++){var y=p[m],x=_[m];(y>=f&&y<=h||isNaN(y))&&(x>=b&&x<=S||isNaN(x))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var w=r.getRawIndex(m),y=d[i[0]][w];(y>=f&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var T=!0,w=r.getRawIndex(m),D=0;D<a;D++){var E=i[D],y=d[E][w];(y<e[E][0]||y>e[E][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<r.length;c++)u[r[c]]=ci();for(var f=0;f<s;f++){for(var h=e.getRawIndex(f),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var g=r[c],p=v[c],m=u[g],y=i[g];y&&(y[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,d=new(ui(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),p=Math.min(v+l*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=p-g;var x=v,w=Math.min(v+l,o),T=v-1,D=a[u];c=-1,h=x;for(var E=-1,k=0,_=x;_<w;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){k++,E<0&&(E=b);continue}f=Math.abs((T-m)*(S-D)-(T-_)*(y-D)),f>c&&(c=f,h=b)}k>0&&k<w-x&&(d[s++]=Math.min(E,h),h=Math.max(E,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(ui(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var f=c,h=o[this.getRawIndex(f)],d=c,v=o[this.getRawIndex(d)],g=a;c+a>s&&(g=s-c);for(var p=0;p<g;p++){var m=this.getRawIndex(c+p),y=o[m];y<h&&(h=y,f=c+p),y>v&&(v=y,d=c+p)}var _=this.getRawIndex(f),b=this.getRawIndex(d);f<d?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],c=this.count(),f=a._rawExtent[e]=ci(),h=new(ui(this._rawCount))(Math.ceil(c/l)),d=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(v+g);s[g]=u[p]}var m=n(s),y=this.getRawIndex(Math.min(v+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[d++]=y}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=ci();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&$i(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?WD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=he(this._extent),e._rawExtent=he(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return bs(r[a],this._dimensions[a])}Xu={arrayRows:e,objectRows:function(r,n,i,a){return bs(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return bs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),GD=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(sa(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=ot(s)?Tr:St,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=te(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=te(f.sourceHeader,h.sourceHeader),g=te(f.dimensions,h.dimensions),p=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||g;i=p?[gf(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:g},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[gf(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&Q(i&&a),this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&Q(i!=null||n!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),zp(a))}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+i),zp(f)),s.push(c),l.push(u._getVersionSign())}),n?o=FD(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[xD(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&Q(sa(this._sourceHost),"Can only call getDataStore on series source manager.");var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];sa(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new mf,s.initData(new X0(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(sa(e)){var r=V0(e);return r?[r.getSourceManager()]:[]}else return ie(Y2(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(sa(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function sa(t){return t.mainType==="series"}function zp(t){throw new Error(t)}var UD="line-height:1";function t_(t){var e=t.lineHeight;return e==null?UD:"line-height:"+ut(e+"")+"px"}function r_(t,e){var r=t.color||ee.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||ee.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ut(n+"")+"px;color:"+ut(r)+";font-weight:"+ut(i+""),valueStyle:"font-size:"+ut(o+"")+"px;color:"+ut(a)+";font-weight:"+ut(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var $D=[0,10,20,30],YD=["",`
|
|
15
|
+
`,`
|
|
16
|
+
|
|
17
|
+
`,`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
`];function qa(t,e){return e.type=t,e}function yf(t){return t.type==="section"}function n_(t){return yf(t)?XD:qD}function i_(t){if(yf(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return M(t.blocks,function(i){var a=i_(i);a>=e&&(e=a+ +(n&&(!a||yf(i)&&!i.noHeader)))}),e}return 0}function XD(t,e,r,n){var i=e.noHeader,a=ZD(i_(e)),o=[],s=e.blocks||[];Q(!s||X(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ht(u,l)){var c=new RD(u[l],null);s.sort(function(g,p){return c.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(g,p){var m=e.valueFormatter,y=n_(g)(m?z(z({},t),{valueFormatter:m}):t,g,p>0?a.html:0,n);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(a.richText):_f(n,o.join(""),i?r:a.html);if(i)return f;var h=vf(e.header,"ordinal",t.useUTC),d=r_(n,t.renderMode).nameStyle,v=t_(n);return t.renderMode==="richText"?a_(t,h,d)+a.richText+f:_f(n,'<div style="'+d+";"+v+';">'+ut(h)+"</div>"+f,r)}function qD(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(b){return b=X(b)?b:[b],ie(b,function(S,x){return vf(S,X(d)?d[x]:d,u)})};if(!(a&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ee.color.secondary,i),h=a?"":vf(l,"ordinal",u),d=e.valueType,v=o?[]:c(e.value,e.dataIndex),g=!s||!a,p=!s&&a,m=r_(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":a_(t,h,y))+(o?"":QD(t,v,g,p,_)):_f(n,(s?"":f)+(a?"":KD(h,!s,y))+(o?"":JD(v,g,p,_)),r)}}function Fp(t,e,r,n,i,a){if(t){var o=n_(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function ZD(t){return{html:$D[t],richText:YD[t]}}function _f(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=t_(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function KD(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ut(t)+"</span>"}function JD(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=X(t)?t:[t],'<span style="'+a+";"+n+'">'+ie(t,function(o){return ut(o)}).join(" ")+"</span>"}function a_(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function QD(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,a)}function eE(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Yn(n)}function o_(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var qu=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ly()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=L2({color:r,type:e,renderMode:n,markerId:i});return Z(a)?a:(process.env.NODE_ENV!=="production"&&Q(i),this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};X(r)?M(r,function(a){return z(n,a)}):z(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function tE(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=X(s),u=eE(e,r),c,f,h,d;if(o>1||l&&!o){var v=rE(s,e,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);d=c=Vi(i,r,a[0]),f=g.type}else d=c=l?s[0]:s;var p=mh(e),m=p&&e.name||"",y=i.getName(r),_=n?m:y;return qa("section",{header:m,noHeader:n||!p,sortParam:d,blocks:[qa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Jt(_),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function rE(t,e,r,n,i){var a=e.getData(),o=$i(t,function(f,h,d){var v=a.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(f){c(Vi(a,r,f),f)}):M(t,c);function c(f,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(qa("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Rr=Re();function Uo(t,e){return t.getName(e)||t.getId(e)}var nE="__universalTransitionEnabled",Zr=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ba({count:aE,reset:oE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Rr(this).sourceManager=new GD(this);a.prepareSource();var o=this.getInitialData(r,i);Hp(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&Q(o,"getInitialData returned invalid data."),Rr(this).dataBeforeProcessed=o,Vp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ya(this),a=i?fo(r):{},o=this.subType;ge.hasClass(o)&&(o+="Series"),me(r,n.getTheme().get(this.subType)),me(r,this.getDefaultOption()),mv(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&qr(r,a,i)},e.prototype.mergeOption=function(r,n){r=me(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ya(this);i&&qr(this.option,r,i);var a=Rr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Hp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Rr(this).dataBeforeProcessed=o,Vp(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ot(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&mv(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=bf(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Rr(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=bf(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Rr(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ce(r)},e.prototype.getSourceManager=function(){return Rr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Rr(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var c=[],f=1/0,h=-1,d=0;return o.each(n,function(v,g){var p=l.dataToCoord(v),m=u-p,y=Math.abs(m);y<=a&&((y<f||y===f&&m>=0&&h<0)&&(f=y,h=m,d=0),m===h&&(c[d++]=g))}),c.length=d,c},e.prototype.formatTooltip=function(r,n,i){return tE({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(oe.node&&!(r&&r.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(r,n,i){var a=this.ecModel,o=Qh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Uo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Ee(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Uo(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[nE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],h=Uo(r,f);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var d=n[l-1],h=Uo(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ge.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ge);cr(Zr,MD);cr(Zr,Qh);Fy(Zr,ge);function Vp(t){var e=t.name;mh(t)||(t.name=iE(t)||e)}function iE(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function aE(t){return t.model.getRawData().count()}function oE(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),sE}function sE(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Hp(t,e){M(Qx(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,We(lE,e))})}function lE(t,e){var r=bf(t);return r&&r.setOutputEnd((e||this).count()),e}function bf(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var ur=(function(){function t(){this.group=new qe,this.uid=Pl("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();_h(ur);Sl(ur);function s_(){var t=Re();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var l_=Re(),uE=s_(),sr=(function(){function t(){this.group=new qe,this.uid=Pl("viewChart"),this.renderTask=Ba({plan:cE,reset:fE}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&ye("Unknown dataType "+i.dataType);return}Wp(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&ye("Unknown dataType "+i.dataType);return}Wp(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Nh(this.group,e)},t.markUpdateMethod=function(e,r){l_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function jp(t,e,r){t&&zi(t)&&(e==="emphasis"?Gs:Us)(t,r)}function Wp(t,e,r){var n=Un(t,e),i=e&&e.highlightKey!=null?oC(e.highlightKey):null;n!=null?M(at(n),function(a){jp(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){jp(a,r,i)})}_h(sr,["dispose"]);Sl(sr);function cE(t){return uE(t.model)}function fE(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&l_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),hE[l]}var hE={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Qs="\0__throttleOriginMethod",Gp="\0__throttleRate",Up="\0__throttleType";function u_(t,e,r){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var g=c||e,p=c||r;c=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function c_(t,e,r,n){var i=t[e];if(i){var a=i[Qs]||i,o=i[Up],s=i[Gp];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=u_(a,r,n==="debounce"),i[Qs]=a,i[Up]=n,i[Gp]=r}return i}}function xf(t,e){var r=t[e];r&&r[Qs]&&(r.clear&&r.clear(),t[e]=r[Qs])}var $p=Re(),Yp={itemStyle:ja(w0,!0),lineStyle:ja(x0,!0)},dE={lineStyle:"stroke",itemStyle:"fill"};function f_(t,e){var r=t.visualStyleMapper||Yp[e];return r||(console.warn("Unknown style type '"+e+"'."),Yp.itemStyle)}function h_(t,e){var r=t.visualDrawType||dE[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var vE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=f_(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=h_(t,n),u=o[l],c=ne(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ne(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ne(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var g=t.getDataParams(v),p=z({},o);p[l]=c(g),d.setItemVisual(v,"style",p)}}}},la=new ke,pE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=f_(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){la.option=l[n];var u=i(la),c=o.ensureUniqueItemVisual(s,"style");z(c,u),la.option.decal&&(o.setItemVisual(s,"decal",la.option.decal),la.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},gE={performRawSeries:!0,overallReset:function(t){var e=ce();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),$p(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=$p(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=h_(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},$o=Math.PI;function mE(t,e){e=e||{},be(e,{text:"loading",textColor:ee.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ee.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new qe,n=new Be({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new mt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Be({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Rl({shape:{startAngle:-$o/2,endAngle:-$o/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:$o*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:$o*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var d_=(function(){function t(e,r,n,i){this._stageTaskMap=ce(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ce();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),Q(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;M(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(p){s(i,p)&&(p.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);v.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else f&&f.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ce(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,d=s.set(h,o&&o.get(h)||Ba({plan:wE,reset:SE,count:CE}));d.context={model:f,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,d)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ba({reset:yE});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ce(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,d="";process.env.NODE_ENV!=="production"&&(d='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Q(!e.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,M(n.getSeries(),v));function v(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(h=!0,Ba({reset:_E,onDirty:xE})));m.context={model:g,overallProgress:f},m.agent=o,m.__block=f,a._pipe(g,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ne(e)&&(e={overallReset:e,seriesType:DE(e)}),e.uid=Pl("stageHandler"),r&&(e.visualType=r),e},t})();function yE(t){t.overallReset(t.ecModel,t.api,t.payload)}function _E(t){return t.overallProgress&&bE}function bE(){this.agent.dirty(),this.getDownstream().dirty()}function xE(){this.agent&&this.agent.dirty()}function wE(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function SE(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=at(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ie(e,function(r,n){return v_(n)}):TE}var TE=v_(0);function v_(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function CE(t){return t.data.count()}function DE(t){el=null;try{t(Za,p_)}catch{}return el}var Za={},p_={},el;g_(Za,ed);g_(p_,j0);Za.eachSeriesByType=Za.eachRawSeriesByType=function(t){el=t};Za.eachComponent=function(t){t.mainType==="series"&&t.subType&&(el=t.subType)};function g_(t,e){for(var r in e.prototype)t[r]=dt}var V=ee.darkColor,EE=V.background,ua=function(){return{axisLine:{lineStyle:{color:V.axisLine}},splitLine:{lineStyle:{color:V.axisSplitLine}},splitArea:{areaStyle:{color:[V.backgroundTint,V.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:V.axisMinorSplitLine}},axisLabel:{color:V.axisLabel},axisName:{}}},Xp={label:{color:V.secondary},itemStyle:{borderColor:V.borderTint},dividerLineStyle:{color:V.border}},m_={darkMode:!0,color:V.theme,backgroundColor:EE,axisPointer:{lineStyle:{color:V.border},crossStyle:{color:V.borderShade},label:{color:V.tertiary}},legend:{textStyle:{color:V.secondary},pageTextStyle:{color:V.tertiary}},textStyle:{color:V.secondary},title:{textStyle:{color:V.primary},subtextStyle:{color:V.quaternary}},toolbox:{iconStyle:{borderColor:V.accent50}},tooltip:{backgroundColor:V.neutral20,defaultBorderColor:V.border,textStyle:{color:V.tertiary}},dataZoom:{borderColor:V.accent10,textStyle:{color:V.tertiary},brushStyle:{color:V.backgroundTint},handleStyle:{color:V.neutral00,borderColor:V.accent20},moveHandleStyle:{color:V.accent40},emphasis:{handleStyle:{borderColor:V.accent50}},dataBackground:{lineStyle:{color:V.accent30},areaStyle:{color:V.accent20}},selectedDataBackground:{lineStyle:{color:V.accent50},areaStyle:{color:V.accent30}}},visualMap:{textStyle:{color:V.secondary},handleStyle:{borderColor:V.neutral30}},timeline:{lineStyle:{color:V.accent10},label:{color:V.tertiary},controlStyle:{color:V.accent30,borderColor:V.accent30}},calendar:{itemStyle:{color:V.neutral00,borderColor:V.neutral20},dayLabel:{color:V.tertiary},monthLabel:{color:V.secondary},yearLabel:{color:V.secondary}},matrix:{x:Xp,y:Xp,backgroundColor:{borderColor:V.axisLine},body:{itemStyle:{borderColor:V.borderTint}}},timeAxis:ua(),logAxis:ua(),valueAxis:ua(),categoryAxis:ua(),line:{symbol:"circle"},graph:{color:V.theme},gauge:{title:{color:V.secondary},axisLine:{lineStyle:{color:[[1,V.neutral05]]}},axisLabel:{color:V.axisLabel},detail:{color:V.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:V.background}},radar:(function(){var t=ua();return t.axisName={color:V.axisLabel},t.axisLine.lineStyle.color=V.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:V.neutral20,textStyle:{color:V.secondary}},emphasis:{itemStyle:{color:V.neutral30}}}},sunburst:{itemStyle:{borderColor:V.background}},map:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},label:{color:V.tertiary},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}}},geo:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{color:V.highlight}}}};m_.categoryAxis.splitLine.show=!1;var kE=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Z(e)){var a=er(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(f,h,d,v){return f[d]==null||h[v||d]===f[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),wf=["symbol","symbolSize","symbolRotate","symbolOffset"],qp=wf.concat(["symbolKeepAspect"]),ME={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<wf.length;o++){var s=wf[o],l=t.get(s);ne(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(z({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Ee(i);function c(f,h){for(var d=t.getRawValue(h),v=t.getDataParams(h),g=0;g<u.length;g++){var p=u[g];f.setItemVisual(h,p,i[p](d,v))}}return{dataEach:a?c:null}}},AE={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<qp.length;s++){var l=qp[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function RE(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function LE(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function fi(t,e,r,n,i){var a=t+e;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Dr("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=Un(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:X(h)?f.getName(h[0]):f.getName(h),selected:Z(l)?l:z({},l)})}}))}function IE(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(fi("map","selectchanged",e,i,n),fi("pie","selectchanged",e,i,n)):n.fromAction==="select"?(fi("map","selected",e,i,n),fi("pie","selected",e,i,n)):n.fromAction==="unselect"&&(fi("map","unselected",e,i,n),fi("pie","unselected",e,i,n))})}function Ca(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var PE=Math.round(Math.random()*9),OE=typeof Object.defineProperty=="function",NE=(function(){function t(){this._id="__ec_inner_"+PE++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return OE?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),BE=Se.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),zE=Se.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),FE=Se.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+c-f*d,l+s+h*d,r,n-v,r,n),t.bezierCurveTo(r,n-v,r-c+f*d,l+s+h*d,r-c,l+s),t.closePath()}}),VE=Se.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),HE={line:Yr,rect:Be,roundRect:Be,square:Be,circle:Ml,diamond:zE,pin:FE,arrow:VE,triangle:BE},jE={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Sf={};M(HE,function(t,e){Sf[e]=new t});var WE=Se.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Cy(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Sf[n];i||(n="rect",i=Sf[n]),jE[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function GE(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ee.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Hi(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=h0(t.slice(8),new se(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Ih(t.slice(7),{},new se(e,r,n,i),o?"center":"cover"):l=new WE({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=GE,a&&l.setColor(a),l}function UE(t){return X(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function y_(t,e){if(t!=null)return X(t)||(t=[t,t]),[it(t[0],e[0])||0,it(te(t[1],t[0]),e[1])||0]}function In(t){return isFinite(t)}function $E(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=In(n)?n:0,i=In(i)?i:1,a=In(a)?a:0,o=In(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function YE(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=In(o)?o:.5,s=In(s)?s:.5,l=l>=0&&In(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Tf(t,e,r){for(var n=e.type==="radial"?YE(t,e,r):$E(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function XE(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Yo(t){return parseInt(t,10)}function Xo(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Yo(s[n])||Yo(t.style[n]))-(Yo(s[a])||0)-(Yo(s[o])||0)|0}function qE(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:De(t)?[t]:X(t)?t:null}function __(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&qE(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=ie(r,function(a){return a/i}),n/=i)}return[r,n]}var ZE=new $n(!0);function tl(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Zp(t){return typeof t=="string"&&t!=="none"}function rl(t){var e=t.fill;return e!=null&&e!=="none"}function Kp(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Jp(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Cf(t,e,r){var n=Vy(e.image,e.__image,r);if(Tl(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*ew),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function KE(t,e,r,n){var i,a=tl(r),o=rl(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||ZE,f=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,g=a&&!!d.colorStops,p=o&&!!h.image,m=a&&!!d.image,y=void 0,_=void 0,b=void 0,S=void 0,x=void 0;(v||g)&&(x=e.getBoundingRect()),v&&(y=f?Tf(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(_=f?Tf(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(b=f||!e.__canvasFillPattern?Cf(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(S=f||!e.__canvasStrokePattern?Cf(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),v?t.fillStyle=y:p&&(b?t.fillStyle=b:o=!1),g?t.strokeStyle=_:m&&(S?t.strokeStyle=S:a=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,D;t.setLineDash&&r.lineDash&&(i=__(e),T=i[0],D=i[1]);var E=!0;(u||f&_i)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=D),n||(r.strokeFirst?(a&&Jp(t,r),o&&Kp(t,r)):(o&&Kp(t,r),a&&Jp(t,r))),T&&t.setLineDash([])}function JE(t,e,r){var n=e.__image=Vy(r.image,e.__image,e,e.onload);if(!(!n||!Tl(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;t.drawImage(n,u,c,f,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function QE(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||$r,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=__(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(tl(r)&&t.strokeText(i,r.x,r.y),rl(r)&&t.fillText(i,r.x,r.y)):(rl(r)&&t.fillText(i,r.x,r.y),tl(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var Qp=["shadowBlur","shadowOffsetX","shadowOffsetY"],eg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function b_(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){ht(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Fn.opacity:o}(n||e.blend!==r.blend)&&(a||(ht(t,i),a=!0),t.globalCompositeOperation=e.blend||Fn.blend);for(var s=0;s<Qp.length;s++){var l=Qp[s];(n||e[l]!==r[l])&&(a||(ht(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(ht(t,i),a=!0),t.shadowColor=e.shadowColor||Fn.shadowColor),a}function tg(t,e,r,n,i){var a=Ka(e,i.inHover),o=n?null:r&&Ka(r,i.inHover)||{};if(a===o)return!1;var s=b_(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ht(t,i),s=!0),Zp(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ht(t,i),s=!0),Zp(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ht(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(ht(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<eg.length;c++){var f=eg[c],h=f[0];(n||a[h]!==o[h])&&(s||(ht(t,i),s=!0),t[h]=a[h]||f[1])}return s}function ek(t,e,r,n,i){return b_(t,Ka(e,i.inHover),r&&Ka(r,i.inHover),n,i)}function x_(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function tk(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),x_(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function rk(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var rg=1,ng=2,ig=3,ag=4;function nk(t){var e=rl(t),r=tl(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function ht(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Ka(t,e){return e&&t.__hoverStyle||t.style}function w_(t,e){Pn(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Pn(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~xt,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||XE(a,o))&&(o&&o.length&&(ht(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ht(t,r),t.save(),tk(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=e instanceof Se&&e.autoBatch&&nk(e.style);s||rk(i,u.transform)?(ht(t,r),x_(t,e)):c||ht(t,r);var f=Ka(e,r.inHover);e instanceof Se?(r.lastDrawType!==rg&&(l=!0,r.lastDrawType=rg),tg(t,e,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),KE(t,e,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):e instanceof Hs?(r.lastDrawType!==ig&&(l=!0,r.lastDrawType=ig),tg(t,e,u,l,r),QE(t,e,f)):e instanceof Qr?(r.lastDrawType!==ng&&(l=!0,r.lastDrawType=ng),ek(t,e,u,l,r),JE(t,e,f)):e.getTemporalDisplayables&&(r.lastDrawType!==ag&&(l=!0,r.lastDrawType=ag),ik(t,e,r)),c&&n&&ht(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ik(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Pn(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Pn(t,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Zu=new NE,og=new Oi(100),sg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Df(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Zu.delete(t);var a=Zu.get(t);if(a)return a;var o=be(t,{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 l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Zu.set(t,s),t.dirty=!1,s;function l(u){for(var c=[r],f=!0,h=0;h<sg.length;++h){var d=o[sg[h]];if(d!=null&&!X(d)&&!Z(d)&&!De(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var v;if(f){v=c.join(",")+(i?"-svg":"");var g=og.get(v);g&&(i?u.svgElement=g:u.image=g)}var p=T_(o.dashArrayX),m=ak(o.dashArrayY),y=S_(o.symbol),_=ok(p),b=C_(m),S=!i&&Cr.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=D(),T;S&&(S.width=w.width*r,S.height=w.height*r,T=S.getContext("2d")),E(),f&&og.put(v,S||x),u.image=S,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function D(){for(var k=1,A=0,R=_.length;A<R;++A)k=vv(k,_[A]);for(var L=1,A=0,R=y.length;A<R;++A)L=vv(L,y[A].length);k*=L;var N=b*_.length*y.length;if(process.env.NODE_ENV!=="production"){var O=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};k>o.maxTileWidth&&O("maxTileWidth"),N>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var k=0,A=0;A<m.length;++A)k+=m[A];if(k<=0)return;for(var R=-b,L=0,N=0,O=0;R<w.height;){if(L%2===0){for(var F=N/2%y.length,P=0,G=0,W=0;P<w.width*2;){for(var U=0,A=0;A<p[O].length;++A)U+=p[O][A];if(U<=0)break;if(G%2===0){var j=(1-o.symbolSize)*.5,H=P+p[O][G]*j,K=R+m[L]*j,fe=p[O][G]*o.symbolSize,Pe=m[L]*o.symbolSize,de=W/2%y[F].length;Ze(H,K,fe,Pe,y[F][de])}P+=p[O][G],++W,++G,G===p[O].length&&(G=0)}++O,O===p.length&&(O=0)}R+=m[L],++N,++L,L===m.length&&(L=0)}function Ze(ze,Me,ae,le,tn){var tt=i?1:r,Sd=Hi(tn,ze*tt,Me*tt,ae*tt,le*tt,o.color,o.symbolKeepAspect);if(i){var Td=n.painter.renderOneToVNode(Sd);Td&&x.children.push(Td)}else w_(T,Sd)}}}}function S_(t){if(!t||t.length===0)return[["rect"]];if(Z(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Z(t[r])){e=!1;break}if(e)return S_([t]);for(var n=[],r=0;r<t.length;++r)Z(t[r])?n.push([t[r]]):n.push(t[r]);return n}function T_(t){if(!t||t.length===0)return[[0,0]];if(De(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!De(t[n])){r=!1;break}if(r)return T_([t]);for(var i=[],n=0;n<t.length;++n)if(De(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=ie(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function ak(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(De(t)){var e=Math.ceil(t);return[e,e]}var r=ie(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function ok(t){return ie(t,function(e){return C_(e)})}function C_(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function sk(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Df(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Df(i,e)}}})}var Vt=new fr,nl={};function lk(t,e){process.env.NODE_ENV!=="production"&&nl[t]&&ye("Already has an implementation of "+t+"."),nl[t]=e}function uk(t){return process.env.NODE_ENV!=="production"&&(nl[t]||ye("Implementation of "+t+" doesn't exists.")),nl[t]}var ck=1,fk=800,hk=900,dk=1e3,vk=2e3,pk=5e3,D_=1e3,gk=1100,nd=2e3,E_=3e3,mk=4e3,Fl=4500,yk=4600,_k=5e3,bk=6e3,k_=7e3,xk={PROCESSOR:{FILTER:dk,SERIES_FILTER:fk,STATISTIC:pk},VISUAL:{LAYOUT:D_,PROGRESSIVE_LAYOUT:gk,GLOBAL:nd,CHART:E_,POST_CHART_LAYOUT:yk,COMPONENT:mk,BRUSH:_k,CHART_ITEM:Fl,ARIA:bk,DECAL:k_}},Oe="__flagInMainProcess",qo="__mainProcessVersion",Fe="__pendingUpdate",Ku="__needsUpdateStatus",lg=/^[a-zA-Z0-9_]+$/,Ju="__connectUpdateStatus",ug=0,wk=1,Sk=2;function M_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){lt(this.id);return}return R_(this,t,e)}}function A_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return R_(this,t,e)}}function R_(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),fr.prototype[e].apply(t,r)}var L_=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(fr),I_=L_.prototype;I_.on=A_("on");I_.off=A_("off");var Dn,Qu,Zo,pr,Ko,ec,tc,hi,di,cg,fg,rc,hg,Jo,dg,P_,Ct,vg,vi,O_=(function(t){q(e,t);function e(r,n,i){var a=t.call(this,new kE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;if(a[qo]=1,process.env.NODE_ENV!=="production"){var u=oe.hasGlobalWindow?window:global;u&&(o=te(u.__ECHARTS__DEFAULT__RENDERER__,o),s=te(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=te(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr;var c=a._zr=fv(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:te(i.useDirtyRect,l),useCoarsePointer:te(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=u_(we(c.flush,c),17),a._updateTheme(n),a._locale=_2(i.locale||S0),a._coordSysMgr=new Kh;var f=a._api=dg(a);function h(d,v){return d.__prio-v.__prio}return cs(ol,h),cs(kf,h),a._scheduler=new d_(a,f,kf,ol),a._messageCenter=new L_,a._initEvents(),a.resize=we(a.resize,a),c.animation.on("frame",a._onframe,a),cg(c,a),fg(c,a),Ac(a),a}return e.prototype._onframe=function(){if(!this._disposed){vg(this);var r=this._scheduler;if(this[Fe]){var n=this[Fe].silent;this[Oe]=!0,vi(this);try{Dn(this),pr.update.call(this,null,this[Fe].updateParams)}catch(l){throw this[Oe]=!1,this[Fe]=null,l}this._zr.flush(),this[Oe]=!1,this[Fe]=null,hi.call(this,n),di.call(this,n)}else if(r.unfinished){var i=ck,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ec(this,a),r.performVisualTasks(a),Jo(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.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(r,n,i){if(this[Oe]){process.env.NODE_ENV!=="production"&&ye("`setOption` should not be called during main process.");return}if(this._disposed){lt(this.id);return}var a,o,s;if(J(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Oe]=!0,vi(this),!this._model||n){var l=new sD(this._api),u=this._theme,c=this._model=new ed;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Mf);var f={seriesTransition:s,optionChanged:!0};if(i)this[Fe]={silent:a,updateParams:f},this[Oe]=!1,this.getZr().wakeUp();else{try{Dn(this),pr.update.call(this,null,f)}catch(h){throw this[Fe]=null,this[Oe]=!1,h}this._ssr||this._zr.flush(),this[Fe]=null,this[Oe]=!1,hi.call(this,a),di.call(this,a)}},e.prototype.setTheme=function(r,n){if(this[Oe]){process.env.NODE_ENV!=="production"&&ye("`setTheme` should not be called during main process.");return}if(this._disposed){lt(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Fe]&&(a==null&&(a=this[Fe].silent),o=this[Fe].updateParams,this[Fe]=null),this[Oe]=!0,vi(this);try{this._updateTheme(r),i.setTheme(this._theme),Dn(this),pr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Oe]=!1,s}this[Oe]=!1,hi.call(this,a),di.call(this,a)}},e.prototype._updateTheme=function(r){Z(r)&&(r=N_[r]),r&&(r=he(r),r&&G0(r,!0),this._theme=r)},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||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&je("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){lt(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;M(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){lt(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(pg[i]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();M(za,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(he(r)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:S,left:x.left,top:x.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,g=f-u,p=Cr.createCanvas(),m=fv(p,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:g}),n){var y="";return M(h,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Be({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),M(h,function(_){var b=new Qr({style:{x:_.left*d-l,y:_.top*d-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Ko(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Ko(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Ko(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){lt(this.id);return}var i=this._model,a,o=xu(i,r);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?a=a||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&bt(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&bt(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=xu(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||bt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?RE(s,l,n):LE(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;M(Tk,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&Ca(l,function(g){var p=_e(g);if(p&&p.dataIndex!=null){var m=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=m&&m.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=z({},p.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var d=f&&h!=null&&s.getComponent(f,h),v=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!c&&!(d&&v)&&bt("model or view can not be found by params"),u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:d,view:v},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;M(Ef,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),IE(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){lt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){lt(this.id);return}this._disposed=!0;var r=this.getDom();r&&By(this.getDom(),ad,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete za[n.id]},e.prototype.resize=function(r){if(this[Oe]){process.env.NODE_ENV!=="production"&&ye("`resize` should not be called during main process.");return}if(this._disposed){lt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Fe]&&(a==null&&(a=this[Fe].silent),i=!0,this[Fe]=null),this[Oe]=!0,vi(this);try{i&&Dn(this),pr.update.call(this,{type:"resize",animation:z({duration:0},r&&r.animation)})}catch(o){throw this[Oe]=!1,o}this[Oe]=!1,hi.call(this,a),di.call(this,a)}},e.prototype.showLoading=function(r,n){if(this._disposed){lt(this.id);return}if(J(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Af[r]){process.env.NODE_ENV!=="production"&&bt("Loading effects "+r+" not exists.");return}var i=Af[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){lt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=z({},r);return n.type=al[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){lt(this.id);return}if(J(n)||(n={silent:!!n}),!!il[r.type]&&this._model){if(this[Oe]){this._pendingActions.push(r);return}var i=n.silent;tc.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&oe.browser.weChat&&this._throttledZrFlush(),hi.call(this,i),di.call(this,i)}},e.prototype.updateLabelLayout=function(){Vt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){lt(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&Q(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Dn=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Qu(f,!0),Qu(f,!1),h.plan()},Qu=function(f,h){for(var d=f._model,v=f._scheduler,g=h?f._componentsViews:f._chartsViews,p=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<g.length;_++)g[_].__alive=!1;h?d.eachComponent(function(x,w){x!=="series"&&b(w)}):d.eachSeries(b);function b(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,D=!w&&p[T];if(!D){var E=er(x.type),k=h?ur.getClass(E.main,E.sub):sr.getClass(E.sub);process.env.NODE_ENV!=="production"&&Q(k,E.sub+" does not exist."),D=new k,D.init(d,y),p[T]=D,g.push(D),m.add(D.group)}x.__viewId=D.__id=T,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&v.prepareView(D,x,d,y)}for(var _=0;_<g.length;){var S=g[_];S.__alive?_++:(!h&&S.renderTask.dispose(),m.remove(S.group),S.dispose(d,y),g.splice(_,1),p[S.__id]===S&&delete p[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Zo=function(f,h,d,v,g){var p=f._model;if(p.setUpdatePayload(d),!v){M([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[v+"Id"]=d[v+"Id"],m[v+"Index"]=d[v+"Index"],m[v+"Name"]=d[v+"Name"];var y={mainType:v,query:m};g&&(y.subType=g);var _=d.excludeSeriesId,b;_!=null&&(b=ce(),M(at(_),function(x){var w=ar(x,null);w!=null&&b.set(w,!0)})),p&&p.eachComponent(y,function(x){var w=b&&b.get(x.id)!=null;if(!w)if(Zv(d))if(x instanceof Zr)d.type===Vn&&!d.notBlur&&!x.get(["emphasis","disabled"])&&JT(x,d,f._api);else{var T=Ch(x.mainType,x.componentIndex,d.name,f._api),D=T.focusSelf,E=T.dispatchers;d.type===Vn&&D&&!d.notBlur&&of(x.mainType,x.componentIndex,f._api),E&&M(E,function(k){d.type===Vn?Gs(k):Us(k)})}else uf(d)&&x instanceof Zr&&(tC(x,d,f._api),Yv(x),Ct(f))},f),p&&p.eachComponent(y,function(x){var w=b&&b.get(x.id)!=null;w||S(f[v==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function S(x){x&&x.__alive&&x[h]&&x[h](x.__model,p,f._api,d)}},pr={prepareAndUpdate:function(f){Dn(this),pr.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,h){var d=this._model,v=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(f),m.restoreData(d,f),m.performSeriesTasks(d),p.create(d,v),m.performDataProcessorTasks(d,f),ec(this,d),p.update(d,v),n(d),m.performVisualTasks(d,f);var y=d.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=d.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),rc(this,d,v,f,h),Vt.trigger("afterupdate",d,v)}},updateTransform:function(f){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(f);var g=[];d.eachComponent(function(m,y){if(m!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,d,v,f);b&&b.update&&g.push(_)}else g.push(_)}});var p=ce();d.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,d,v,f);_&&_.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:p}),Jo(this,d,v,f,{},p),Vt.trigger("afterupdate",d,v)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),sr.markUpdateMethod(f,"updateView"),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),rc(this,h,this._api,f,{}),Vt.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(v){v.getData().clearAllVisual()}),sr.markUpdateMethod(f,"updateVisual"),n(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,g){if(v!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,d,h._api,f)}}),d.eachSeries(function(v){var g=h._chartsMap[v.__viewId];g.updateVisual(v,d,h._api,f)}),Vt.trigger("afterupdate",d,this._api))},updateLayout:function(f){pr.update.call(this,f)}};function r(f,h,d,v,g){if(f._disposed){lt(f.id);return}for(var p=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=xu(p,d),b=0;b<m.length;b++){var S=m[b];if(S[h]&&(y=S[h](p,_,v,g))!=null)return y}process.env.NODE_ENV!=="production"&&bt("No coordinate system that supports "+h+" found by the given finder.")}Ko=r,ec=function(f,h){var d=f._chartsMap,v=f._scheduler;h.eachSeries(function(g){v.updateStreamModes(g,d[g.__viewId])})},tc=function(f,h){var d=this,v=this.getModel(),g=f.type,p=f.escapeConnect,m=il[g],y=(m.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&er(y[0]);this[Oe]=!0,vi(this);var S=[f],x=!1;f.batch&&(x=!0,S=ie(f.batch,function(O){return O=be(z({},O),f),O.batch=null,O}));var w=[],T,D=[],E=m.nonRefinedEventType,k=uf(f),A=Zv(f);if(A&&n0(this._api),M(S,function(O){var F=m.action(O,v,d._api);if(m.refineEvent?D.push(F):T=F,T=T||z({},O),T.type=E,w.push(T),A){var P=yh(f),G=P.queryOptionMap,W=P.mainTypeSpecified,U=W?G.keys()[0]:"series";Zo(d,_,O,U),Ct(d)}else k?(Zo(d,_,O,"series"),Ct(d)):b&&Zo(d,_,O,b.main,b.sub)}),_!=="none"&&!A&&!k&&!b)try{this[Fe]?(Dn(this),pr.update.call(this,f),this[Fe]=null):pr[_].call(this,f)}catch(O){throw this[Oe]=!1,O}if(x?T={type:E,escapeConnect:p,batch:w}:T=w[0],this[Oe]=!1,!h){var R=void 0;if(m.refineEvent){var L=m.refineEvent(D,f,v,this._api).eventContent;Q(J(L)),R=be({type:m.refinedEventType},L),R.fromAction=f.type,R.fromActionPayload=f,R.escapeConnect=!0}var N=this._messageCenter;N.trigger(T.type,T),R&&N.trigger(R.type,R)}},hi=function(f){for(var h=this._pendingActions;h.length;){var d=h.shift();tc.call(this,d,f)}},di=function(f){!f&&this.trigger("updated")},cg=function(f,h){f.on("rendered",function(d){h.trigger("rendered",d),f.animation.isFinished()&&!h[Fe]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},fg=function(f,h){f.on("mouseover",function(d){var v=d.target,g=Ca(v,zi);g&&(QT(g,d,h._api),Ct(h))}).on("mouseout",function(d){var v=d.target,g=Ca(v,zi);g&&(eC(g,d,h._api),Ct(h))}).on("click",function(d){var v=d.target,g=Ca(v,function(y){return _e(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=_e(g);h._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function i(f){var h=[],d=[],v=!1;if(f.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,x=_.getZLevelKey();v=v||!!x,(y==="series"?d:h).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:x})}),v){var g=h.concat(d),p,m;cs(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),M(g,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;p!=null&&(b=Math.max(p,b)),S?(b===p&&S!==m&&b++,m=S):m&&(b===p&&b++,m=""),p=b,_.setZLevel(b)})}}rc=function(f,h,d,v,g){i(h),hg(f,h,d,v,g),M(f._chartsViews,function(p){p.__alive=!1}),Jo(f,h,d,v,g),M(f._chartsViews,function(p){p.__alive||p.remove(h,d)})},hg=function(f,h,d,v,g,p){M(p||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,d,v),l(y,m),c(y,m)})},Jo=function(f,h,d,v,g,p){var m=f._scheduler;g=z(g||{},{updatedSeries:h.getSeries()}),Vt.trigger("series:beforeupdate",h,d,g);var y=!1;h.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,v),u(_,b),p&&p.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),Yv(_)}),m.unfinished=y||m.unfinished,Vt.trigger("series:layoutlabels",h,d,g),Vt.trigger("series:transition",h,d,g),h.eachSeries(function(_){var b=f._chartsMap[_.__viewId];l(_,b),c(_,b)}),o(f,h),Vt.trigger("series:afterupdate",h,d,g)},Ct=function(f){f[Ku]=!0,f.getZr().wakeUp()},vi=function(f){f[qo]=(f[qo]+1)%1e3},vg=function(f){f[Ku]&&(f.getZr().storage.traverse(function(h){Ia(h)||a(h)}),f[Ku]=!1)};function a(f){for(var h=[],d=f.currentStates,v=0;v<d.length;v++){var g=d[v];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}f.selected&&f.states.select&&h.push("select"),f.hoverState===El&&f.states.emphasis?h.push("emphasis"):f.hoverState===Dl&&f.states.blur&&h.push("blur"),f.useStates(h)}function o(f,h){var d=f._zr,v=d.storage,g=0;v.traverse(function(p){p.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!oe.node&&!oe.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=f._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(f,h){var d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function l(f,h){if(!f.preventAutoZ){var d=m0(f);h.eachRendered(function(v){return y0(v,d.z,d.zlevel),!0})}}function u(f,h){h.eachRendered(function(d){if(!Ia(d)){var v=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,h){var d=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=d.get("duration"),p=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ia(m))return;if(m instanceof Se&&sC(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}dg=function(f){return new((function(h){q(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},d.prototype.enterEmphasis=function(v,g){Gs(v,g),Ct(f)},d.prototype.leaveEmphasis=function(v,g){Us(v,g),Ct(f)},d.prototype.enterBlur=function(v){KT(v),Ct(f)},d.prototype.leaveBlur=function(v){Qy(v),Ct(f)},d.prototype.enterSelect=function(v){e0(v),Ct(f)},d.prototype.leaveSelect=function(v){t0(v),Ct(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d.prototype.getMainProcessVersion=function(){return f[qo]},d})(j0))(f)},P_=function(f){function h(d,v){for(var g=0;g<d.length;g++){var p=d[g];p[Ju]=v}}M(al,function(d,v){f._messageCenter.on(v,function(g){if(pg[f.group]&&f[Ju]!==ug){if(g&&g.escapeConnect)return;var p=f.makeActionFromEvent(g),m=[];M(za,function(y){y!==f&&y.group===f.group&&m.push(y)}),h(m,ug),M(m,function(y){y[Ju]!==wk&&y.dispatchAction(p)}),h(m,Sk)}})})}})(),e})(fr),id=O_.prototype;id.on=M_("on");id.off=M_("off");id.one=function(t,e,r){var n=this;Dr("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var Tk=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function lt(t){process.env.NODE_ENV!=="production"&&bt("Instance "+t+" has been disposed")}var il={},al={},Ef={},kf=[],Mf=[],ol=[],N_={},Af={},za={},pg={},Ck=+new Date-0,ad="_echarts_instance_";function Dk(t,e,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var i=Ek(t);if(i)return process.env.NODE_ENV!=="production"&&bt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Li(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!r||r.width==null)||!t.clientHeight&&(!r||r.height==null))&&bt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new O_(t,e,r);return a.id="ec_"+Ck++,za[a.id]=a,n&&By(t,ad,a.id),P_(a),Vt.trigger("afterinit",a),a}function Ek(t){return za[FS(t,ad)]}function B_(t,e){N_[t]=e}function z_(t){ve(Mf,t)<0&&Mf.push(t)}function F_(t,e){sd(kf,t,e,vk)}function kk(t){od("afterinit",t)}function Mk(t){od("afterupdate",t)}function od(t,e){Vt.on(t,e)}function qi(t,e,r){var n,i,a,o,s;ne(e)&&(r=e,e=""),J(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(c){return c.toLowerCase()}i=l(i||n);var u=a?l(n):i;il[n]||(Q(lg.test(n)&&lg.test(i)),a&&Q(i!==n),il[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Ef[i]=1,a&&s&&(Ef[u]=1),process.env.NODE_ENV!=="production"&&al[u]&&ye(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),al[u]=n)}function Ak(t,e){Kh.register(t,e)}function Rk(t,e){sd(ol,t,e,D_,"layout")}function Zn(t,e){sd(ol,t,e,E_,"visual")}var gg=[];function sd(t,e,r,n,i){if((ne(e)||J(e))&&(r=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");M(t,function(o){Q(o.__raw!==r)})}if(!(ve(gg,r)>=0)){gg.push(r);var a=d_.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function V_(t,e){Af[t]=e}function Lk(t,e,r){var n=uk("registerMap");n&&n(t,e,r)}var Ik=zD;Zn(nd,vE);Zn(Fl,pE);Zn(Fl,gE);Zn(nd,ME);Zn(Fl,AE);Zn(k_,sk);z_(G0);F_(hk,_D);V_("default",mE);qi({type:Vn,event:Vn,update:Vn},dt);qi({type:ps,event:ps,update:ps},dt);qi({type:js,event:Sh,update:js,action:dt,refineEvent:ld,publishNonRefinedEvent:!0});qi({type:nf,event:Sh,update:nf,action:dt,refineEvent:ld,publishNonRefinedEvent:!0});qi({type:Ws,event:Sh,update:Ws,action:dt,refineEvent:ld,publishNonRefinedEvent:!0});function ld(t,e,r,n){return{eventContent:{selected:rC(r),isFromClick:e.isFromClick||!1}}}B_("default",{});B_("dark",m_);function ca(t){return t==null?0:t.length||1}function mg(t){return t}var Pk=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||mg,this._newKeyGetter=i||mg,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=ca(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=ca(u),h=ca(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=ca(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=ca(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),Ok=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function Nk(t,e){var r={},n=r.encode={},i=ce(),a=[],o=[],s={};M(t.dimensions,function(h){var d=t.getDimensionInfo(h),v=d.coordDim;if(v){process.env.NODE_ENV!=="production"&&Q(pf.get(v)==null);var g=d.coordDimIndex;nc(n,v)[g]=h,d.isExtraCoord||(i.set(v,1),zk(d.type)&&(a[0]=h),nc(s,v)[g]=t.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}pf.each(function(p,m){var y=nc(n,m),_=d.otherDims[m];_!=null&&_!==!1&&(y[_]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ie(l,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new Ok(s,e),r}function nc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Bk(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function zk(t){return!(t==="ordinal"||t==="time")}var xs=(function(){function t(e){this.otherDims={},e!=null&&z(this,e)}return t})(),Fk=Re(),Vk={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},H_=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=G_(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return te(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Y0(this.source),n=!U_(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Vk[u]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function j_(t){return t instanceof H_}function W_(t){for(var e=ce(),r=0;r<(t||[]).length;r++){var n=t[r],i=J(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function G_(t){var e=Fk(t);return e.dimNameMap||(e.dimNameMap=W_(t.dimensionsDefine))}function U_(t){return t>30}var fa=J,Lr=ie,Hk=typeof Int32Array>"u"?Array:Int32Array,jk="e\0\0",yg=-1,Wk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gk=["_approximateExtent"],_g,Qo,ha,pi,ic,da,ac,Uk=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;j_(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],h=Z(f)?new xs({name:f}):f instanceof xs?f:new xs(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]);var g=c;De(h.storeDimIndex)&&(g=h.storeDimIndex),v.itemName===0&&(this._nameDimIdx=g),v.itemId===0&&(this._idDimIdx=g),process.env.NODE_ENV!=="production"&&Q(i||h.storeDimIndex>=0),i&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ce();M(o,function(m){p.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(De(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof mf&&(a=e),!a){var o=this.dimensions,s=td(e)||gt(e)?new X0(e,o.length):e;a=new mf;var l=Lr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Nk(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&ac(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Tr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===St;if(l&&!i.pure)for(var u=[],c=e;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&kS(f)&&(this.hasItemOption=!0),f){var h=f.name;a[c]==null&&h!=null&&(a[c]=ar(h,null));var d=f.id;o[c]==null&&d!=null&&(o[c]=ar(d,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)ac(this,c);_g(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){fa(e)?z(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=ha(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Qo(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return X(e)?i.getValues(Lr(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[r];return i==null||isNaN(i)?yg:i},t.prototype.each=function(e,r,n){ne(e)&&(n=r,r=e,e=[]);var i=n||this,a=Lr(pi(e),this._getStoreDimIndex,this);this._store.each(a,i?we(r,i):r)},t.prototype.filterSelf=function(e,r,n){ne(e)&&(n=r,r=e,e=[]);var i=n||this,a=Lr(pi(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?we(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Ee(e);return M(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ne(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Lr(pi(e),this._getStoreDimIndex,this),s=da(this);return s._store=this._store.map(o,a?we(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&M(pi(e),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Lr(pi(e),this._getStoreDimIndex,this);this._store.modify(s,o?we(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=da(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=da(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=da(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new ke(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new Pk(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Qo(e,n)},function(n){return Qo(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},fa(e)?z(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),X(a)?a=a.slice():fa(a)&&(a=z({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,fa(r)?z(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){fa(e)?z(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?z(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;HT(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){M(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Lr(this.dimensions,this._getDimInfo,this),this.hostModel)),ic(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ne(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ch(arguments)))})},t.internalField=(function(){_g=function(e){var r=e._invertedIndicesMap;M(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new Hk(o.categories.length);for(var l=0;l<n.length;l++)n[l]=yg;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ha=function(e,r,n){return ar(e._getCategory(r,n),null)},Qo=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=ha(e,e._idDimIdx,r)),n==null&&(n=jk+r),n},pi=function(e){return X(e)||(e=e!=null?[e]:[]),e},da=function(e){var r=new t(e._schema?e._schema:Lr(e.dimensions,e._getDimInfo,e),e.hostModel);return ic(r,e),r},ic=function(e,r){M(Wk.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,M(Gk,function(n){e[n]=he(r[n])}),e._calculationInfo=z({},r._calculationInfo)},ac=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=ha(e,a,r)),l==null&&o!=null&&(i[r]=l=ha(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}})(),t})();function $k(t,e){td(t)||(t=U0(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ce(),a=[],o=Xk(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&U_(o),l=n===t.dimensionsDefine,u=l?G_(t):W_(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=ce(c),h=new Q0(o),d=0;d<h.length;d++)h[d]=-1;function v(D){var E=h[D];if(E<0){var k=n[D],A=J(k)?k:{name:k},R=new xs,L=A.name;L!=null&&u.get(L)!=null&&(R.name=R.displayName=L),A.type!=null&&(R.type=A.type),A.displayName!=null&&(R.displayName=A.displayName);var N=a.length;return h[D]=N,R.storeDimIndex=D,a.push(R),R}return a[E]}if(!s)for(var d=0;d<o;d++)v(d);f.each(function(D,E){var k=at(D).slice();if(k.length===1&&!Z(k[0])&&k[0]<0){f.set(E,!1);return}var A=f.set(E,[]);M(k,function(R,L){var N=Z(R)?u.get(R):R;N!=null&&N<o&&(A[L]=N,p(v(N),E,L))})});var g=0;M(r,function(D){var E,k,A,R;if(Z(D))E=D,R={};else{R=D,E=R.name;var L=R.ordinalMeta;R.ordinalMeta=null,R=z({},R),R.ordinalMeta=L,k=R.dimsDef,A=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var N=f.get(E);if(N!==!1){if(N=at(N),!N.length)for(var O=0;O<(k&&k.length||1);O++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&N.push(g++)}M(N,function(F,P){var G=v(F);if(l&&R.type!=null&&(G.type=R.type),p(be(G,R),E,P),G.name==null&&k){var W=k[P];!J(W)&&(W={name:W}),G.name=G.displayName=W.name,G.defaultTooltip=W.defaultTooltip}A&&be(G.otherDims,A)})}});function p(D,E,k){pf.get(E)!=null?D.otherDims[E]=k:(D.coordDim=E,D.coordDimIndex=k,i.set(E,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)M(a,function(D){S(D)}),a.sort(function(D,E){return D.storeDimIndex-E.storeDimIndex});else for(var x=0;x<o;x++){var w=v(x),T=w.coordDim;T==null&&(w.coordDim=qk(b,i,_),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(H0(t,x)===yt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Yk(a),new H_({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Yk(t){for(var e=ce(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function Xk(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return M(e,function(a){var o;J(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function qk(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Zk=(function(){function t(e){this.coordSysDims=[],this.axisMap=ce(),this.categoryAxisMap=ce(),this.coordSysName=e}return t})();function Kk(t){var e=t.get("coordinateSystem"),r=new Zk(e),n=Jk[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var Jk={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Pt).models[0],a=t.getReferringComponents("yAxis",Pt).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Pi(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Pi(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),gi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),gi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Pt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",i),gi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),gi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),gi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),gi(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Pt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function gi(t){return t.get("type")==="category"}function Qk(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;eM(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,h;if(M(a,function(y,_){Z(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,v=c.type,g=0;M(a,function(y){y.coordDim===d&&g++});var p={name:f,coordDim:d,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function eM(t){return!j_(t.schema)}function Ja(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function tM(t,e){return Ja(t,e)?t.getCalculationInfo("stackResultDimension"):e}function rM(t,e){var r=t.get("coordinateSystem"),n=Kh.get(r),i;return e&&e.coordSysDims&&(i=ie(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=Bk(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nM(t,e,r){var n,i;return r&&M(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function iM(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===St;var o=Kk(e),s=rM(e,o),l=r.useEncodeDefaulter,u=ne(l)?l:l?We($2,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=$k(i,c),h=nM(f.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(f),v=Qk(e,{schema:f,store:d}),g=new Uk(f,e);g.setCalculationInfo(v);var p=h!=null&&aM(i)?function(m,y,_,b){return b===h?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(a?i:d,null,p),g}function aM(t){if(t.sourceFormat===St){var e=oM(t.data||[]);return!X(so(e))}}function oM(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function sM(t){var e=Math.pow(10,xl(Math.abs(t))),r=Math.abs(t/e);return r===0||r===1||r===2||r===3||r===5}function Rf(t){return t.type==="interval"||t.type==="log"}function lM(t,e,r,n,i){var a={},o=a.interval=Ay(e/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Qa(o),l=a.niceTickExtent=[Xe(Math.ceil(t[0]/o)*o,s),Xe(Math.floor(t[1]/o)*o,s)];return uM(l,t),a}function oc(t){var e=Math.pow(10,xl(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xe(r*e)}function Qa(t){return xr(t)+2}function bg(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function uM(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),bg(t,0,e),bg(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function ud(t,e){return t>=e[0]&&t<=e[1]}var cM=(function(){function t(){this.normalize=xg,this.scale=wg}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=we(e.normalize,e),this.scale=we(e.scale,e)):(this.normalize=xg,this.scale=wg)},t})();function xg(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function wg(t,e){return t*(e[1]-e[0])+e[0]}function Lf(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var en=(function(){function t(e){this._calculator=new cM,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Sl(en);var fM=0,If=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++fM,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&ie(n,hM);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Z(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ce(this.categories))},t})();function hM(t){return J(t)&&t.value!=null?t.value:t+""}var $_=(function(t){q(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new If({})),X(i)&&(i=new If({categories:ie(i,function(a){return J(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Z(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return ud(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(en);en.registerClass($_);var Ir=Xe,ji=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return ud(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Qa(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=qs(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:Ir(a[0]-n,o)}):l.push({value:i[0]}));for(var c=function(v,g){return Math.round((g-v)/n)},f=a[0];f<=a[1];){if(l.push({value:f}),f=Ir(f+n,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(f,c);h>=0&&(f=Ir(f+h*n,o))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var d=l.length?l[l.length-1].value:a[1];return i[1]>d&&(r.expandToNicedExtent?l.push({value:Ir(d+n,o)}):l.push({value:i[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,c=[],f=s.value-l.value,h=f/r,d=Qa(h);u<r-1;){var v=Ir(l.value+(u+1)*h,d);v>a[0]&&v<a[1]&&c.push(v),u++}var g=qs();g&&g.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(c)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=xr(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ir(r.value,i,!0);return L0(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=lM(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=Ir(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=Ir(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(en);en.registerClass(ji);var Y_=typeof Float32Array<"u",dM=Y_?Float32Array:Array;function Di(t){return X(t)?Y_?new Float32Array(t):t:new dM(t)}var vM="__ec_stack_";function pM(t){return t.get("stack")||vM+t.seriesIndex}function X_(t){return t.dim+t.index}function gM(t,e){var r=[];return e.eachSeriesByType(t,function(n){xM(n)&&r.push(n)}),r}function mM(t){var e={};M(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,p=v.count();g<p;++g){var m=v.get(d,g);e[h]?e[h].push(m):e[h]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function yM(t){var e=mM(t),r=[];return M(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=it(n.get("barWidth"),s),g=it(n.get("barMaxWidth"),s),p=it(n.get("barMinWidth")||(wM(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,defaultBarGap:_,axisKey:X_(a),stackId:pM(n)})}),_M(r)}function _M(t){var e={};M(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return M(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ee(a).length;s=Math.max(35-l*4,15)+"%"}var u=it(s,o),c=it(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),M(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,h--}else{var b=d;y&&y<b&&(b=Math.min(y,f)),_&&_>b&&(b=_),b!==d&&(m.width=b,f-=b+c*b,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,g;M(a,function(m,y){m.width||(m.width=d),g=m,v+=m.width*(1+c)}),g&&(v-=g.width*c);var p=-v/2;M(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+c)})}),r}function bM(t,e,r){if(t&&e){var n=t[X_(e)];return n}}function xM(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function wM(t){return t.pipelineContext&&t.pipelineContext.large}var SM=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},q_=(function(t){q(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Ol(r.value,dp[M2(Oa(this._minLevelUnit))]||dp.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return A2(r,n,i,o,a)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=Zs(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=RM(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=Zs(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var c=Hn.length-1,f=0;return M(a,function(h){c=Math.min(c,ve(Hn,h.time.upperTimeUnit)),f=Math.max(f,h.time.level)}),a},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Ot,n[1]+=Ot),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ot}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=es.length,s=Math.min(SM(es,this._approxInterval,0,o),o-1);this._interval=es[s][1],this._intervalPrecision=Qa(this._interval),this._minLevelUnit=es[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return De(r)?r:+Xi(r)},e.prototype.contain=function(r){return ud(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(ji),es=[["second",Wh],["minute",Gh],["hour",Pa],["quarter-day",Pa*6],["half-day",Pa*12],["day",Ot*1.2],["half-week",Ot*3.5],["week",Ot*7],["month",Ot*31],["quarter",Ot*95],["half-year",hp/2],["year",hp]];function TM(t,e,r,n){return df(new Date(e),t,n).getTime()===df(new Date(r),t,n).getTime()}function CM(t,e){return t/=Ot,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function DM(t){var e=30*Ot;return t/=e,t>6?6:t>3?3:t>2?2:1}function EM(t){return t/=Pa,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Sg(t,e){return t/=e?Gh:Wh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function kM(t){return Ay(t)}function MM(t,e,r){var n=Math.max(0,ve(Hn,e)-1);return df(new Date(t),Hn[n],r).getTime()}function AM(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function RM(t,e,r,n,i,a){var o=1e4,s=C2,l=0;function u(R,L,N,O,F,P,G){for(var W=AM(F,R),U=L,j=new Date(U);U<N&&U<=n[1];){if(G.push({value:U}),l++>o){process.env.NODE_ENV!=="production"&&bt("Exceed safe limit in time scale.");break}if(j[F](j[O]()+R),U=j.getTime(),a){var H=a.calcNiceTickMultiple(U,W);H>0&&(j[F](j[O]()+H*R),U=j.getTime())}}G.push({value:U,notAdd:!0})}function c(R,L,N){var O=[],F=!L.length;if(!TM(Oa(R),n[0],n[1],r)){F&&(L=[{value:MM(n[0],R,r)},{value:n[1]}]);for(var P=0;P<L.length-1;P++){var G=L[P].value,W=L[P+1].value;if(G!==W){var U=void 0,j=void 0,H=void 0,K=!1;switch(R){case"year":U=Math.max(1,Math.round(e/Ot/365)),j=C0(r),H=R2(r);break;case"half-year":case"quarter":case"month":U=DM(e),j=Uh(r),H=D0(r);break;case"week":case"half-week":case"day":U=CM(e),j=$h(r),H=E0(r),K=!0;break;case"half-day":case"quarter-day":case"hour":U=EM(e),j=Yh(r),H=k0(r);break;case"minute":U=Sg(e,!0),j=Xh(r),H=M0(r);break;case"second":U=Sg(e,!1),j=qh(r),H=A0(r);break;case"millisecond":U=kM(e),j=Zh(r),H=R0(r);break}W>=n[0]&&G<=n[1]&&u(U,G,W,j,H,K,O),R==="year"&&N.length>1&&P===0&&N.unshift({value:N[0].value-U})}}for(var P=0;P<O.length;P++)N.push(O[P])}}for(var f=[],h=[],d=0,v=0,g=0;g<s.length;++g){var p=Oa(s[g]);if(k2(s[g])){c(s[g],f[f.length-1]||[],h);var m=s[g+1]?Oa(s[g+1]):null;if(p!==m){if(h.length){v=d,h.sort(function(R,L){return R.value-L.value});for(var y=[],_=0;_<h.length;++_){var b=h[_].value;(_===0||h[_-1].value!==b)&&(y.push(h[_]),b>=n[0]&&b<=n[1]&&d++)}var S=i/e;if(d>S*1.5&&v>S/1.5||(f.push(y),d>S||t===s[g]))break}h=[]}}}for(var x=He(ie(f,function(R){return He(R,function(L){return L.value>=n[0]&&L.value<=n[1]&&!L.notAdd})}),function(R){return R.length>0}),w=[],T=x.length-1,g=0;g<x.length;++g)for(var D=x[g],E=0;E<D.length;++E){var k=Zs(D[E].value,r);w.push({value:D[E].value,time:{level:T-g,upperTimeUnit:k,lowerTimeUnit:k}})}w.sort(function(R,L){return R.value-L.value});for(var A=[],g=0;g<w.length;++g)(g===0||w[g].value!==w[g-1].value)&&A.push(w[g]);return A}en.registerClass(q_);var Pf=Xe,LM=Math.floor,IM=Math.ceil,ts=Math.pow,rs=Math.log,Z_=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new ji,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),ie(a,function(s){var l=s.value,u=null,c=ts(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var f;return u!=null&&(c=sc(c,u)),{value:c,break:f}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=Lf(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=ts(r,n[0]),n[1]=ts(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=sc(n[0],i[0])),this._fixMax&&(n[1]=sc(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=Lf(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=TS(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Pf(IM(n[0]/a)*a),Pf(LM(n[1]/a)*a)];this._interval=a,this._intervalPrecision=Qa(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=rs(r)/rs(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=rs(r)/rs(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),ts(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(ji);function sc(t,e){return Pf(t,xr(e))}en.registerClass(Z_);var PM=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ne(o)?this._modelMinNum=ns(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=ns(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ne(s)?this._modelMaxNum=ns(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=ns(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=X(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Gn(u[0],1),Gn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Ii(s)||Ii(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,r){process.env.NODE_ENV!=="production"&&Q(!this.frozen),this[NM[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=OM[e];process.env.NODE_ENV!=="production"&&Q(!this.frozen&&this[n]==null),this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),OM={min:"_determinedMin",max:"_determinedMax"},NM={min:"_dataMin",max:"_dataMax"};function BM(t,e,r){var n=t.rawExtentInfo;return n||(n=new PM(t,e,r),t.rawExtentInfo=n,n)}function ns(t,e){return e==null?null:Ii(e)?NaN:t.parse(e)}function K_(t,e){var r=t.type,n=BM(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=gM("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=yM(s),c=zM(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function zM(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=bM(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;M(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;M(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/a,h=c/f-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function Tg(t,e){var r=e,n=K_(t,r),i=n.extent,a=r.get("splitNumber");t instanceof Z_&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(Q_(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function FM(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new $_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new q_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(en.getClass(e)||ji)}}function VM(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function ho(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=D2(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(Z(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ne(e)){if(t.type==="category")return function(i,a){return e(sl(t,i),i.value-t.scale.getExtent()[0],null)};var n=qs();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(sl(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function sl(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function cd(t){var e=t.get("interval");return e??"auto"}function J_(t){return t.type==="category"&&cd(t.getLabelModel())===0}function HM(t,e){var r={};return M(t.mapDimensionsAll(e),function(n){r[tM(t,n)]=!0}),Ee(r)}function Wi(t){return t==="middle"||t==="center"}function eo(t){return t.getShallow("show")}function Q_(t){var e=t.get("breaks",!0);if(e!=null){process.env.NODE_ENV!=="production"&&ye('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var jM=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),Cg=[],WM={registerPreprocessor:z_,registerProcessor:F_,registerPostInit:kk,registerPostUpdate:Mk,registerUpdateLifecycle:od,registerAction:qi,registerCoordinateSystem:Ak,registerLayout:Rk,registerVisual:Zn,registerTransform:Ik,registerLoading:V_,registerMap:Lk,registerImpl:lk,PRIORITY:xk,ComponentModel:ge,ComponentView:ur,SeriesModel:Zr,ChartView:sr,registerComponentModel:function(t){ge.registerClass(t)},registerComponentView:function(t){ur.registerClass(t)},registerSeriesModel:function(t){Zr.registerClass(t)},registerChartView:function(t){sr.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ge.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){yS(t,e)}};function Kr(t){if(X(t)){M(t,function(e){Kr(e)});return}ve(Cg,t)>=0||(Cg.push(t),ne(t)&&(t={install:t}),t.install(WM))}var GM=Re(),Fa=Re(),jt={estimate:1,determine:2};function ll(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function eb(t,e){var r=ie(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function UM(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=ho(t),i=t.scale.getExtent(),a=eb(t,r),o=He(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:ie(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?YM(t,e):qM(t)}function $M(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=eb(t,n);return{ticks:He(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?XM(t,e):{ticks:ie(t.scale.getTicks(r),function(o){return o.value})}}function YM(t,e){var r=t.getLabelModel(),n=tb(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function tb(t,e,r){var n=KM(t),i=cd(e),a=r.kind===jt.estimate;if(!a){var o=nb(n,i);if(o)return o}var s,l;ne(i)?s=ob(t,i):(l=i==="auto"?JM(t,r):i,s=ab(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Of(n,i,u),!0}):Of(n,i,u),u}function XM(t,e){var r=ZM(t),n=cd(e),i=nb(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ne(n))a=ob(t,n,!0);else if(n==="auto"){var s=tb(t,t.getLabelModel(),ll(jt.determine));o=s.labelCategoryInterval,a=ie(s.labels,function(l){return l.tickValue})}else o=n,a=ab(t,o,!0);return Of(r,n,{ticks:a,tickCategoryInterval:o})}function qM(t){var e=t.scale.getTicks(),r=ho(t);return{labels:ie(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var ZM=rb("axisTick"),KM=rb("axisLabel");function rb(t){return function(r){return Fa(r)[t]||(Fa(r)[t]={list:[]})}}function nb(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Of(t,e,r){return t.list.push({key:e,value:r}),r}function JM(t,e){if(e.kind===jt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Fa(t).autoInterval=r,!0}),r}var n=Fa(t).autoInterval;return n??(Fa(t).autoInterval=t.calculateCategoryInterval(e))}function QM(t,e){var r=e.kind,n=tA(t),i=ho(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],h=t.dataToCoord(f+1)-t.dataToCoord(f),d=Math.abs(h*Math.cos(a)),v=Math.abs(h*Math.sin(a)),g=0,p=0;f<=s[1];f+=u){var m=0,y=0,_=Ty(i({value:f}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,g=Math.max(g,m,7),p=Math.max(p,y,7)}var b=g/d,S=p/v;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var x=Math.max(0,Math.floor(Math.min(b,S)));if(r===jt.estimate)return e.out.noPxChangeTryDetermine.push(we(eA,null,t,x,l)),x;var w=ib(t,x,l);return w??x}function eA(t,e,r){return ib(t,e,r)==null}function ib(t,e,r){var n=GM(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function tA(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function ab(t,e,r){var n=ho(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=J_(t),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);d&&v-l!==a[1]&&g(a[1]);function g(p){var m={value:p};s.push(r?p:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:p,time:void 0,break:void 0})}return s}function ob(t,e,r){var n=t.scale,i=ho(t),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var Dg=[0,1],rA=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return xS(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Eg(n,i.count())),dv(e,Dg,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Eg(n,i.count()));var a=dv(e,n,Dg,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=$M(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=ie(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return nA(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ie(n,function(a){return ie(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||ll(jt.determine),UM(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||ll(jt.determine),QM(this,e)},t})();function Eg(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function nA(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;M(e,function(d){d.coord-=u/2,d.onBand=!0});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:c[1]+1,onBand:!0},e.push(o)}var f=a[0]>a[1];h(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&h(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),h(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&h(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function h(d,v){return d=Xe(d),v=Xe(v),f?d>v:d<v}}var kg=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],iA=1,ul=2,sb=iA|ul;function cl(t,e,r){r=r||sb,e?t.dirty|=r:t.dirty&=~r}function lb(t,e){return e=e||sb,t.dirty==null||!!(t.dirty&e)}function Jr(t){if(t)return lb(t)&&aA(t,t.label,t),t}function aA(t,e,r){var n=e.getComputedTransform();t.transform=zh(t.transform,n);var i=t.localRect=Ua(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,c=a.__marginType;c==null&&u&&(o=u,c=Ci.textMargin);for(var f=0;f<4;f++)lc[f]=c===Ci.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Ci.textMargin&&Ys(i,lc,!1,!1);var h=t.rect=Ua(t.rect,i);return n&&h.applyTransform(n),c===Ci.minMargin&&Ys(h,lc,!1,!1),t.axisAligned=Bh(n),(t.label=t.label||{}).ignore=e.ignore,cl(t,!1),cl(t,!0,ul),t}var lc=[0,0,0,0];function oA(t,e,r){return t.transform=zh(t.transform,r),t.localRect=Ua(t.localRect,e),t.rect=Ua(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Bh(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function sA(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Mg(t,e){for(var r=0;r<kg.length;r++){var n=kg[r];t[n]==null&&(t[n]=e[n])}return Jr(t)}function Ag(t){var e=t.obb;return(!e||lb(t,ul))&&(t.obb=e=e||new f0,e.fromBoundingRect(t.localRect,t.transform),cl(t,!1,ul)),e}function lA(t){var e=[];t.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function r(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Jr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(fd(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function fd(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:Ag(t).intersect(Ag(e),r,n)}var uA=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return iM(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new qe,i=Hi("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Hi(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=ee.color.neutral00,u.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})(Zr);function ub(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Vi(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Vi(t,e,r[o]));return a.join(" ")}}function cA(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!X(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var hd=(function(t){q(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=Hi(r,-1,-1,2,2,null,s);l.attr({z2:te(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=fA,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Gs(this.childAt(0))},e.prototype.downplay=function(){Us(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),c=o!==this._symbolType,f=a&&a.disableAnimation;if(c){var h=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,h)}else{var d=this.childAt(0);d.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?d.attr(v):Xr(d,v,s,n),VC(d)}if(this._updateCommon(r,n,l,i,a),c){var d=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,co(d,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,d,v,g,p,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,d=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),d=_.get("blurScope"),v=_.get("disabled"),g=Vh(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=y_(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var x=r.getItemVisual(n,"style"),w=x.fill;if(s instanceof Qr){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(z({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),E=this._z2;D!=null?E==null&&(this._z2=s.z2,s.z2+=D):E!=null&&(s.z2=E,this._z2=null);var k=o&&o.useNameLabel;Fh(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:A,inheritColor:w,defaultOpacity:x.opacity});function A(N){return k?r.getName(N):ub(r,N)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),lf(this,h,d,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=_e(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&$s(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();$s(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return UE(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(qe);function fA(t,e){this.parent.drift(t,e)}function uc(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Rg(t){return t!=null&&!J(t)&&(t={isIgnore:t}),t||{}}function Lg(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Vh(e),cursorStyle:e.get("cursor")}}var hA=(function(){function t(e){this.group=new qe,this._SymbolCtor=e||hd}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Rg(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Lg(e),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return e.getItemLayout(f)};a||n.removeAll(),e.diff(a).add(function(f){var h=c(f);if(uc(e,h,f,r)){var d=new o(e,f,l,u);d.setPosition(h),e.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=a.getItemGraphicEl(h),v=c(f);if(!uc(e,v,f,r)){n.remove(d);return}var g=e.getItemVisual(f,"symbol")||"circle",p=d&&d.getSymbolType&&d.getSymbolType();if(!d||p&&p!==g)n.remove(d),d=new o(e,f,l,u),d.setPosition(v);else{d.updateData(e,f,l,u);var m={x:v[0],y:v[1]};s?d.attr(m):Xr(d,m,i)}n.add(d),e.setItemGraphicEl(f,d)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Lg(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Rg(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(uc(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Nh(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function cb(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=dA(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ie(t.dimensions,function(v){return e.mapDimension(v)}),h=!1,d=e.getCalculationInfo("stackResultDimension");return Ja(e,f[0])&&(h=!0,f[0]=d),Ja(e,f[1])&&(h=!0,f[1]=d),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function dA(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:De(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function fb(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function vA(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function pA(t,e,r,n,i,a,o,s){for(var l=vA(t,e),u=[],c=[],f=[],h=[],d=[],v=[],g=[],p=cb(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],S=!0,x=void 0,w=void 0;switch(b.cmd){case"=":x=b.idx*2,w=b.idx1*2;var T=m[x],D=m[x+1],E=y[w],k=y[w+1];(isNaN(T)||isNaN(D))&&(T=E,D=k),u.push(T,D),c.push(E,k),f.push(r[x],r[x+1]),h.push(n[w],n[w+1]),g.push(e.getRawIndex(b.idx1));break;case"+":var A=b.idx,R=p.dataDimsForPoint,L=i.dataToPoint([e.get(R[0],A),e.get(R[1],A)]);w=A*2,u.push(L[0],L[1]),c.push(y[w],y[w+1]);var N=fb(p,i,e,A);f.push(N[0],N[1]),h.push(n[w],n[w+1]),g.push(e.getRawIndex(A));break;case"-":S=!1}S&&(d.push(b),v.push(v.length))}v.sort(function(fe,Pe){return g[fe]-g[Pe]});for(var O=u.length,F=Di(O),P=Di(O),G=Di(O),W=Di(O),U=[],_=0;_<v.length;_++){var j=v[_],H=_*2,K=j*2;F[H]=u[K],F[H+1]=u[K+1],P[H]=c[K],P[H+1]=c[K+1],G[H]=f[K],G[H+1]=f[K+1],W[H]=h[K],W[H+1]=h[K+1],U[_]=d[j]}return{current:F,next:P,stackedOnCurrent:G,stackedOnNext:W,status:U}}var Pr=Math.min,Or=Math.max;function jn(t,e){return isNaN(t)||isNaN(e)}function Nf(t,e,r,n,i,a,o,s,l){for(var u,c,f,h,d,v,g=r,p=0;p<n;p++){var m=e[g*2],y=e[g*2+1];if(g>=i||g<0)break;if(jn(m,y)){if(l){g+=a;continue}break}if(g===r)t[a>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,b=y-c;if(_*_+b*b<.5){g+=a;continue}if(o>0){for(var S=g+a,x=e[S*2],w=e[S*2+1];x===m&&w===y&&p<n;)p++,S+=a,g+=a,x=e[S*2],w=e[S*2+1],m=e[g*2],y=e[g*2+1],_=m-u,b=y-c;var T=p+1;if(l)for(;jn(x,w)&&T<n;)T++,S+=a,x=e[S*2],w=e[S*2+1];var D=.5,E=0,k=0,A=void 0,R=void 0;if(T>=n||jn(x,w))d=m,v=y;else{E=x-u,k=w-c;var L=m-u,N=x-m,O=y-c,F=w-y,P=void 0,G=void 0;if(s==="x"){P=Math.abs(L),G=Math.abs(N);var W=E>0?1:-1;d=m-W*P*o,v=y,A=m+W*G*o,R=y}else if(s==="y"){P=Math.abs(O),G=Math.abs(F);var U=k>0?1:-1;d=m,v=y-U*P*o,A=m,R=y+U*G*o}else P=Math.sqrt(L*L+O*O),G=Math.sqrt(N*N+F*F),D=G/(G+P),d=m-E*o*(1-D),v=y-k*o*(1-D),A=m+E*o*D,R=y+k*o*D,A=Pr(A,Or(x,m)),R=Pr(R,Or(w,y)),A=Or(A,Pr(x,m)),R=Or(R,Pr(w,y)),E=A-m,k=R-y,d=m-E*P/G,v=y-k*P/G,d=Pr(d,Or(u,m)),v=Pr(v,Or(c,y)),d=Or(d,Pr(u,m)),v=Or(v,Pr(c,y)),E=m-d,k=y-v,A=m+E*G/P,R=y+k*G/P}t.bezierCurveTo(f,h,d,v,m,y),f=A,h=R}else t.lineTo(m,y)}u=m,c=y,g+=a}return p}var hb=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),gA=(function(t){q(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:ee.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new hb},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&jn(i[o*2-2],i[o*2-1]);o--);for(;a<o&&jn(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Nf(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=$n.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var h=a[f++],d=void 0,v=void 0,g=void 0,p=void 0,m=void 0,y=void 0,_=void 0;switch(h){case o.M:s=a[f++],l=a[f++];break;case o.L:if(d=a[f++],v=a[f++],_=u?(r-s)/(d-s):(r-l)/(v-l),_<=1&&_>=0){var b=u?(v-l)*_+l:(d-s)*_+s;return u?[r,b]:[b,r]}s=d,l=v;break;case o.C:d=a[f++],v=a[f++],g=a[f++],p=a[f++],m=a[f++],y=a[f++];var S=u?Is(s,d,g,m,r,c):Is(l,v,p,y,r,c);if(S>0)for(var x=0;x<S;x++){var w=c[x];if(w<=1&&w>=0){var b=u?Ye(l,v,p,y,w):Ye(s,d,g,m,w);return u?[r,b]:[b,r]}}s=m,l=y;break}}},e})(Se),mA=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(hb),yA=(function(t){q(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new mA},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&jn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&jn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Nf(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Nf(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(Se);function _A(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Be({shape:{x:o,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),d=h.isHorizontal(),v=h.inverse;d?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=ne(i)?function(p){i(p,f)}:null;co(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function bA(t,e,r){var n=t.getArea(),i=Xe(n.r0,1),a=Xe(n.r,1),o=new Al({shape:{cx:Xe(t.cx,1),cy:Xe(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,co(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function xA(t,e){return t.type===e}function Ig(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Pg(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[e,r],[n,i]]}function Og(t,e){var r=Pg(t),n=r[0],i=r[1],a=Pg(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Ng(t){return De(t)?t:t?.5:0}function wA(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=Di(n*2),a=0;a<n;a++){var o=fb(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Nr(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(i){for(l=0;l<t.length;l+=2){var d=e||t;!isNaN(d[l])&&!isNaN(d[l+1])&&h.push(t[l],t[l+1])}t=h}for(l=0;l<t.length-2;l+=2)switch(f[0]=t[l+2],f[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var v=(c[o]+f[o])/2,g=[];u[o]=g[o]=v,u[1-o]=c[1-o],g[1-o]=f[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function SA(t,e){var r=[],n=t.length,i,a;function o(c,f,h){var d=c.coord,v=(h-d)/(f.coord-d),g=Uw(v,[c.color,f.color]);return{coord:h,color:g}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function TA(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=ie(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=SA(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=h[0].coord-v,p=h[d-1].coord+v,m=p-g;if(m<.001)return"transparent";M(h,function(_){_.offset=(_.coord-g)/m}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var y=new Rh(0,0,0,0,h,!0);return y[i]=g,y[i+"2"]=p,y}}function CA(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&DA(a,e))){var o=e.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function DA(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(hd.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function EA(t,e){return isNaN(t)||isNaN(e)}function kA(t){for(var e=t.length/2;e>0&&EA(t[e*2-2],t[e*2-1]);e--);return e-1}function Bg(t,e){return[t[e*2],t[e*2+1]]}function MA(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function db(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<lr.length;e++)if(t.get([lr[e],"endLabel","show"]))return!0;return!1}function cc(t,e,r,n){if(xA(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=db(n)?function(d,v){t._endLabelOnDuring(d,v,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=_A(e,r,n,function(){var d=t._endLabel;d&&r&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),bA(e,r,n)}function AA(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var RA=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new qe,n=new hA;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=we(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),c=s.getLayout("points")||[],f=a.type==="polar",h=this._coordSys,d=this._symbolDraw,v=this._polyline,g=this._polygon,p=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=cb(a,s,_),S=y&&wA(a,s,b),x=r.get("showSymbol"),w=r.get("connectNulls"),T=x&&!f&&CA(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(fe,Pe){fe.__temp&&(o.remove(fe),D.setItemGraphicEl(Pe,null))}),x||d.remove(),o.add(p);var E=f?!1:r.get("step"),k;a&&a.getArea&&r.get("clip",!0)&&(k=a.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var A=TA(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&h.type===a.type&&E===this._step))x&&d.updateData(s,{isIgnore:T,clipShape:k,disableAnimation:!0,getSymbolPoint:function(fe){return[c[fe*2],c[fe*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,k),E&&(S&&(S=Nr(S,c,a,E,w)),c=Nr(c,null,a,E,w)),v=this._newPolyline(c),y?g=this._newPolygon(c,S):g&&(p.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,Yn(A)),p.setClipPath(cc(this,a,!0,r));else{y&&!g?g=this._newPolygon(c,S):g&&!y&&(p.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,Yn(A));var R=p.getClipPath();if(R){var L=cc(this,a,!1,r);co(R,{shape:L.shape},r)}else p.setClipPath(cc(this,a,!0,r));x&&d.updateData(s,{isIgnore:T,clipShape:k,disableAnimation:!0,getSymbolPoint:function(fe){return[c[fe*2],c[fe*2+1]]}}),(!Ig(this._stackedOnPoints,S)||!Ig(this._points,c))&&(m?this._doUpdateAnimation(s,S,a,i,E,_,w):(E&&(S&&(S=Nr(S,c,a,E,w)),c=Nr(c,null,a,E,w)),v.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:S})))}var N=r.getModel("emphasis"),O=N.get("focus"),F=N.get("blurScope"),P=N.get("disabled");if(v.useStyle(be(l.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),qv(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=v.getState("emphasis").style;G.lineWidth=+v.style.lineWidth+1}_e(v).seriesIndex=r.seriesIndex,lf(v,O,F,P);var W=Ng(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:W,smoothMonotone:U,connectNulls:w}),g){var j=s.getCalculationInfo("stackedOnSeries"),H=0;g.useStyle(be(u.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),j&&(H=Ng(j.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:H,smoothMonotone:U,connectNulls:w}),qv(g,r,"areaStyle"),_e(g).seriesIndex=r.seriesIndex,lf(g,O,F,P)}var K=this._changePolyState;s.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=K)}),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=c,this._step=E,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){_e(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Un(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,d=r.get("z")||0;u=new hd(o,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else sr.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Un(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else sr.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Gv(this._polyline,r),n&&Gv(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new gA({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yA({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ne(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=ne(f)?f(null):f;r.eachItemGraphicEl(function(d,v){var g=d;if(g){var p=[d.x,d.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,S=n.pointToCoord(p);a?(m=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(m=b.r0,y=b.r,_=S[0])}else{var x=i;a?(m=x.x,y=x.x+x.width,_=d.x):(m=x.y+x.height,y=x.y,_=d.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var T=ne(f)?f(v):c*w+h,D=g.getSymbolPath(),E=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(db(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new mt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=kA(l);c>=0&&(Fh(s,Vh(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?cA(o,d):ub(o,f)},enableTextSetter:!0},AA(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,d=h.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=n.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?g:0)*(y?-1:1),x=(m?0:-g)*(y?-1:1),w=m?"x":"y",T=MA(f,b,w),D=T.range,E=D[1]-D[0],k=void 0;if(E>=1){if(E>1&&!d){var A=Bg(f,D[0]);u.attr({x:A[0]+S,y:A[1]+x}),o&&(k=h.getRawValue(D[0]))}else{var A=c.getPointOn(b,w);A&&u.attr({x:A[0]+S,y:A[1]+x});var R=h.getRawValue(D[0]),L=h.getRawValue(D[1]);o&&(k=HS(i,v,R,L,T.t))}a.lastFrameIndex=D[0]}else{var N=r===1||a.lastFrameIndex>0?D[0]:0,A=Bg(f,N);o&&(k=h.getRawValue(N)),u.attr({x:A[0]+S,y:A[1]+x})}if(o){var O=b0(u);typeof O.setLabelText=="function"&&O.setLabelText(k)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=pA(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,g=h.next,p=h.stackedOnNext;if(o&&(v=Nr(h.stackedOnCurrent,h.current,i,o,l),d=Nr(h.current,null,i,o,l),p=Nr(h.stackedOnNext,h.next,i,o,l),g=Nr(h.next,null,i,o,l)),Og(d,g)>3e3||c&&Og(v,p)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=h.current,u.shape.points=d;var m={shape:{points:g}};h.current!==d&&(m.shape.__points=h.next),u.stopAnimation(),Xr(u,m,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Xr(c,{shape:{stackedOnPoints:p}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S==="="){var x=r.getItemGraphicEl(_[b].idx1);x&&y.push({el:x,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,T=0;T<y.length;T++){var D=y[T].el,E=y[T].ptIdx*2;D.x=w[E],D.y=w[E+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(sr);function LA(t,e){return{seriesType:t,plan:s_(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=ie(i.dimensions,function(f){return n.mapDimension(f)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Ja(n,a[0])&&(a[0]=s),Ja(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return o&&{progress:function(f,h){for(var d=f.end-f.start,v=Di(d*o),g=[],p=[],m=f.start,y=0;m<f.end;m++){var _=void 0;if(o===1){var b=l.get(u,m);_=i.dataToPoint(b,null,p)}else g[0]=l.get(u,m),g[1]=l.get(c,m),_=i.dataToPoint(g,null,p);v[y++]=_[0],v[y++]=_[1]}h.setLayout("points",v)}}}}}}var IA={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},PA=function(t){return Math.round(t.length/2)};function OA(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Z(a)?v=IA[a]:ne(a)&&(v=a),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/d,v,PA))}}}}}function NA(t){t.registerChartView(RA),t.registerSeriesModel(uA),t.registerLayout(LA("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,OA("line"))}var vb={left:0,right:0,top:0,bottom:0},fl=["25%","25%"],BA=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=fo(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&qr(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&qr(this.option.outerBounds,r.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:vb,outerBoundsContain:"all",outerBoundsClampWidth:fl[0],outerBoundsClampHeight:fl[1],backgroundColor:ee.color.transparent,borderWidth:1,borderColor:ee.color.neutral30},e})(ge),Bf=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e})(ge);cr(Bf,jM);var pb={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:ee.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:ee.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ee.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ee.color.backgroundTint,ee.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ee.color.neutral00,borderColor:ee.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},zA=me({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},pb),dd=me({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ee.color.axisMinorSplitLine,width:1}}},pb),FA=me({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},dd),VA=be({logBase:10},dd);const HA={category:zA,value:dd,time:FA,log:VA};var jA={value:1,category:1,time:1,log:1},WA=null;function GA(){return WA}function zg(t,e,r,n){M(jA,function(i,a){var o=me(me({},HA[a],!0),n,!0),s=(function(l){q(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Ya(this),d=h?fo(c):{},v=f.getTheme();me(c,v.get(a+"Axis")),me(c,this.getDefaultOption()),c.type=Fg(c),h&&qr(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=If.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Fg)}function Fg(t){return t.type||(t.data?"category":"value")}var UA=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ie(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),He(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),zf=["x","y"];function Vg(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var $A=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=zf,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Vg(r)||!Vg(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,d=o[1]-a[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=ao([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new se(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Nt(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return Nt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new se(a,o,s,l)},e})(UA),YA=(function(t){q(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(rA),XA="expandAxisBreak",Hr=Math.PI,qA=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],ZA=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],to=Re(),gb=Re(),mb=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function KA(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=vd(t.axisName)&&Wi(t.nameLocation);M(n,function(v){var g=Jr(v);if(!(!g||g.label.ignore)){o.push(g);var p=a.transGroup;l&&(p.transform?ao(va,p.transform):dh(va),g.transform&&ka(va,va,g.transform),se.copy(is,g.localRect),is.applyTransform(va),s?s.union(is):se.copy(s=new se(0,0,0,0),is))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(o.sort(function(v,g){return Math.abs(v.label[u]-c)-Math.abs(g.label[u]-c)}),l&&s){var f=i.getExtent(),h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1])-h;s.union(new se(h,0,d,1))}a.stOccupiedRect=s,a.labelInfoList=o}var va=Sr(),is=new se(0,0,0,0),yb=function(t,e,r,n,i,a){if(Wi(t.nameLocation)){var o=a.stOccupiedRect;o&&_b(oA({},o,a.transGroup.transform),n,i)}else bb(a.labelInfoList,a.dirVec,n,i)};function _b(t,e,r){var n=new xe;fd(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&sA(e,n)}function bb(t,e,r,n){for(var i=xe.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||_b(s,r,n)}}var Ur=(function(){function t(e,r,n,i){this.group=new qe,this._axisModel=e,this._api=r,this._local={},this._shared=i||new mb(yb),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var r=this._shared.ensureRecord(this._axisModel).ready;Q(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=te(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=te(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:te(e.nameDirection,1),tickDirection:te(e.tickDirection,1),labelDirection:te(e.labelDirection,1),labelOffset:te(e.labelOffset,0),silent:te(e.silent,!0),axisName:i,nameLocation:jr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:vd(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(Q(o.position!=null),Q(o.rotation!=null)),this._cfg=o;var s=new qe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new xe(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(JA,function(i){e[i]&&QA[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=My(r-e),a,o;return zs(i)?(o=n>0?"top":"bottom",a="center"):zs(i-Hr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Hr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),JA=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],QA={axisLine:function(t,e,r,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=r.ensureRecord(n).ready;Q(!s.axisLine),s.axisLine=!0}var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),c=a.transform,f=[u[0],0],h=[u[1],0],d=f[0]>h[0];c&&(Nt(f,f,c),Nt(h,h,c));var v=z({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())GA().buildAxisBreakLine(n,i,a,g);else{var p=new Yr(z({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},g));Ga(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var m=n.get(["axisLine","symbol"]);if(m!=null){var y=n.get(["axisLine","symbolSize"]);Z(m)&&(m=[m,m]),(Z(y)||De(y))&&(y=[y,y]);var _=y_(n.get(["axisLine","symbolOffset"])||0,y),b=y[0],S=y[1];M([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(x,w){if(m[w]!=="none"&&m[w]!=null){var T=Hi(m[w],-b/2,-S/2,b,S,v.stroke,!0),D=x.r+x.offset,E=d?h:f;T.attr({rotation:x.rotate,x:E[0]+D*Math.cos(t.rotation),y:E[1]-D*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;Q(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0}var u=jg(e,i,s);u&&Hg(t,e,r,n,i,a,o,jt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;l.axisTickLabelDetermine=!0}var u=jg(e,i,s);u&&Hg(t,e,r,n,i,a,o,jt.determine);var c=nR(t,i,a,n);rR(t,e.labelLayoutList,c),iR(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var u=l.ready;Q(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0}e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var c=t.axisName;if(vd(c)){var f=t.nameLocation,h=t.nameDirection,d=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,g=n.axis.getExtent(),p=n.axis.inverse?-1:1,m=new xe(0,0),y=new xe(0,0);f==="start"?(m.x=g[0]-p*v,y.x=-p):f==="end"?(m.x=g[1]+p*v,y.x=p):(m.x=(g[0]+g[1])/2,m.y=t.labelOffset+h*v,y.y=h);var _=Sr();y.transform(vh(_,_,t.rotation));var b=n.get("nameRotate");b!=null&&(b=b*Hr/180);var S,x;Wi(f)?S=Ur.innerTextLayout(t.rotation,b??t.rotation,h):(S=eR(t.rotation,f,b||0,g),x=t.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var w=d.getFont(),T=n.get("nameTruncate",!0)||{},D=T.ellipsis,E=Pi(t.raw.nameTruncateMaxWidth,T.maxWidth,x),k=s.nameMarginLevel||0,A=new mt({x:m.x,y:m.y,rotation:S.rotation,silent:Ur.isLabelSilent(n),style:Fi(d,{text:c,font:w,overflow:"truncate",width:E,ellipsis:D,fill:d.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:d.get("align")||S.textAlign,verticalAlign:d.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Ll({el:A,componentModel:n,itemName:c}),A.__fullText=c,A.anid="name",n.get("triggerEvent")){var R=Ur.makeAxisEventDataBase(n);R.targetType="axisName",R.name=c,_e(A).eventData=R}a.add(A),A.updateTransform(),e.nameEl=A;var L=l.nameLayout=Jr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Wi(f)?qA[k]:ZA[k]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),t.shouldNameMoveOverlap&&L){var N=r.ensureRecord(n);process.env.NODE_ENV!=="production"&&Q(N.labelInfoList),r.resolveAxisNameOverlap(t,r,n,L,y,N)}}}};function Hg(t,e,r,n,i,a,o,s){wb(e)||aR(t,e,i,s,n,o);var l=e.labelLayoutList;oR(t,n,l,a),t.rotation;var u=t.optionHideOverlap;tR(n,l,u),u&&lA(He(l,function(c){return c&&!c.label.ignore})),KA(t,r,n,l)}function eR(t,e,r,n){var i=My(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return zs(i-Hr/2)?(o=l?"bottom":"top",a="center"):zs(i-Hr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Hr*1.5&&i>Hr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function tR(t,e,r){if(J_(t.axis))return;function n(s,l,u){var c=Jr(e[l]),f=Jr(e[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){Da(c.label);return}if(f.suggestIgnore){Da(f.label);return}var h=.1;if(!r){var d=[0,0,0,0];c=Mg({marginForce:d},c),f=Mg({marginForce:d},f)}fd(c,f,null,{touchThreshold:h})&&Da(s?f.label:c.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function rR(t,e,r){t.showMinorTicks||M(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=gb(a),s=to(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Da(a);return}}})}function Da(t){t&&(t.ignore=!0)}function xb(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Nt(o,o,e),Nt(s,s,e));var c=new Yr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ga(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c);var f=gb(c);f.onBand=!!t[l].onBand,f.tickValue=t[l].tickValue}return a}function nR(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),c=xb(u,r.transform,l,be(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}function iR(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=be(l.getLineStyle(),be(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var h=xb(s[f],r.transform,u,c,"minorticks_"+f),d=0;d<h.length;d++)e.add(h[d])}}function jg(t,e,r){if(wb(t)){var n=t.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&Q(t.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Ff(t,null,null,null))}return!0}function aR(t,e,r,n,i,a){var o=i.axis,s=Pi(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new qe;r.add(l);var u=ll(n);if(!s||o.scale.isBlank()){Ff(e,[],l,u);return}var c=i.getModel("axisLabel"),f=o.getViewLabels(u),h=(Pi(t.raw.labelRotate,c.get("rotate"))||0)*Hr/180,d=Ur.innerTextLayout(t.rotation,h,t.labelDirection),v=i.getCategories&&i.getCategories(!0),g=[],p=i.get("triggerEvent"),m=1/0,y=-1/0;M(f,function(b,S){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,T=b.formattedLabel,D=b.rawLabel,E=c;if(v&&v[w]){var k=v[w];J(k)&&k.textStyle&&(E=new ke(k.textStyle,c,i.ecModel))}var A=E.getTextColor()||i.get(["axisLine","lineStyle","color"]),R=E.getShallow("align",!0)||d.textAlign,L=te(E.getShallow("alignMinLabel",!0),R),N=te(E.getShallow("alignMaxLabel",!0),R),O=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||d.textVerticalAlign,F=te(E.getShallow("verticalAlignMinLabel",!0),O),P=te(E.getShallow("verticalAlignMaxLabel",!0),O),G=10+(((x=b.time)===null||x===void 0?void 0:x.level)||0);m=Math.min(m,G),y=Math.max(y,G);var W=new mt({x:0,y:0,rotation:0,silent:Ur.isLabelSilent(i),z2:G,style:Fi(E,{text:T,align:S===0?L:S===f.length-1?N:R,verticalAlign:S===0?F:S===f.length-1?P:O,fill:ne(A)?A(o.type==="category"?D:o.type==="value"?w+"":w,S):A})});W.anid="label_"+w;var U=to(W);if(U.break=b.break,U.tickValue=w,U.layoutRotation=d.rotation,Ll({el:W,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return W.isTruncated},value:D,tickIndex:S}}),p){var j=Ur.makeAxisEventDataBase(i);j.targetType="axisLabel",j.value=D,j.tickIndex=S,b.break&&(j.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(j.dataIndex=w),_e(W).eventData=j,b.break&&lR(i,a,W,b.break)}g.push(W),l.add(W)});var _=ie(g,function(b){return{label:b,priority:to(b).break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});Ff(e,_,l,u)}function wb(t){return!!t.labelLayoutList}function Ff(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function oR(t,e,r,n){var i=e.get(["axisLabel","margin"]);M(r,function(a,o){var s=Jr(a);if(s){var l=s.label,u=to(l);s.suggestIgnore=l.ignore,l.ignore=!1,Zc(gr,sR),gr.x=e.axis.dataToCoord(u.tickValue),gr.y=t.labelOffset+t.labelDirection*i,gr.rotation=u.layoutRotation,n.add(gr),gr.updateTransform(),n.remove(gr),gr.decomposeTransform(),Zc(l,gr),l.markRedraw(),cl(s,!0),Jr(s)}})}var gr=new Be,sR=new Be;function vd(t){return!!t}function lR(t,e,r,n){r.on("click",function(i){var a={type:XA,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function hl(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,h=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(a){var d=a.toGlobalCoord(a.dataToCoord(0));h[c.onZero]=Math.max(Math.min(d,h[1]),h[0])}i.position=[l==="y"?h[c[s]]:u[0],l==="x"?h[c[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=v[o],i.labelOffset=a?h[c[o]]-h[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Pi(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function uR(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Wg(t){var e={xAxisModel:null,yAxisModel:null};return M(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Pt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+jr(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[n]=a}),e}function cR(t,e,r,n,i,a){for(var o=hl(t,r),s=!1,l=!1,u=0;u<e.length;u++)Rf(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Ur(r,n,o,i)}function fR(t,e,r){var n=hl(e,r);if(process.env.NODE_ENV!=="production"){var i=t.__getRawCfg();M(Ee(n),function(a){a!=="position"&&a!=="labelOffset"&&Q(n[a]===i[a])})}t.updateCfg(n)}function hR(t,e,r){var n,i=ji.prototype,a=i.getTicks.call(r),o=i.getTicks.call(r,{expandToNicedExtent:!0}),s=a.length-1,l=i.getInterval.call(r),u=K_(t,e),c=u.extent,f=u.fixMin,h=u.fixMax;t.type==="log"&&(c=Lf(t.base,c,!0)),t.setBreaksFromOption(Q_(e)),t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:s,fixMin:f,fixMax:h});var d=i.getExtent.call(t);f&&(c[0]=d[0]),h&&(c[1]=d[1]);var v=i.getInterval.call(t),g=c[0],p=c[1];if(f&&h)v=(p-g)/s;else if(f)for(p=c[0]+v*s;p<c[1]&&isFinite(p)&&isFinite(c[1]);)v=oc(v),p=c[0]+v*s;else if(h)for(g=c[1]-v*s;g>c[0]&&isFinite(g)&&isFinite(c[0]);)v=oc(v),g=c[1]-v*s;else{var m=t.getTicks().length-1;m>s&&(v=oc(v));var y=v*s;p=Math.ceil(c[1]/v)*v,g=Xe(p-y),g<0&&c[0]>=0?(g=0,p=Xe(y)):p>0&&c[1]<=0&&(p=0,g=-Xe(y))}var _=(a[0].value-o[0].value)/l,b=(a[s].value-o[s].value)/l;if(i.setExtent.call(t,g+v*_,p+v*b),i.setInterval.call(t,v),(_||b)&&i.setNiceExtent.call(t,g+v,p-v),process.env.NODE_ENV!=="production"){var S=i.getTicks.call(t);S[1]&&(!sM(v)||Jc(S[1].value)>Jc(v))&&bt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+(" and alignTicks: true. ("+((n=e.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+e.componentIndex+")"),!0)}}var Gg=[[3,1],[0,2]],dR=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zf,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Ee(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],v=d.model,g=d.scale;Rf(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(Tg(g,v),Rf(g)&&(s=d))}c.length&&(s||(s=c.pop(),Tg(s.scale,s.model)),M(c,function(p){hR(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){Ug(n,"y",o,a)}),M(n.y,function(o){Ug(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=O0(e,r),a=this._rect=$a(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Sb(o,a),!n){var u=pR(a,s,o,l,r),c=void 0;if(l)process.env.NODE_ENV!=="production"&&Py("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),c=Xg(a.clone(),"axisLabel",null,a,o,u,i);else{var f=gR(e,a,i),h=f.outerBoundsRect,d=f.parsedOuterBoundsContain,v=f.outerBoundsClamp;h&&(c=Xg(h,d,v,a,o,u,i))}Tb(a,o,jt.determine,null,c,i)}M(this._coordsList,function(g){g.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}J(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Pt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Pt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ve(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(c,f){M(s.y,function(h,d){var v="x"+f+"y"+d,g=new $A(v);g.master=i,g.model=e,i._coordsMap[v]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(h)})});function u(c){return function(f,h){if(fc(f,e)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var v=new YA(c,FM(f),[0,0],f.get("type"),d),g=v.type==="category";v.onBand=g&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=h,a._axesList.push(v),s[c][h]=v,l[c]++}}}},t.prototype._updateScale=function(e,r){M(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(uR(i)){var a=Wg(i),o=a.xAxisModel,s=a.yAxisModel;if(!fc(o,r)||!fc(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){M(HM(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return M(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);ve(r,a)<0&&r.push(a),ve(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){B2({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=Wg(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!u)throw new Error('Grid "'+jr(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==l.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=zf,t})();function fc(t,e){return t.getCoordSysModel()===e}function Ug(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)$g(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&$g(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function $g(t){return t&&t.type!=="category"&&t.type!=="time"&&VM(t)}function vR(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function Sb(t,e){M(t.x,function(r){return Yg(r,e.x,e.width)}),M(t.y,function(r){return Yg(r,e.y,e.height)})}function Yg(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),vR(t,e)}function Xg(t,e,r,n,i,a,o){process.env.NODE_ENV!=="production"&&Q(e==="all"||e==="axisLabel"),Tb(n,i,jt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(n,0,NaN),c(n,1,NaN);var l=$x(s,function(h){return h>0})==null;return Ys(n,s,!0,!0,r),Sb(i,n),l;function u(h){M(i[Mn[h]],function(d){if(eo(d.model)){var v=a.ensureRecord(d.model),g=v.labelInfoList;if(g)for(var p=0;p<g.length;p++){var m=g[p],y=d.scale.normalize(to(m.label).tickValue);y=h===1?1-y:y,c(m.rect,h,y),c(m.rect,1-h,NaN)}var _=v.nameLayout;if(_){var y=Wi(v.nameLocation)?.5:NaN;c(_.rect,h,y),c(_.rect,1-h,NaN)}}})}function c(h,d,v){var g=t[Mn[d]]-h[Mn[d]],p=h[Wa[d]]+h[Mn[d]]-(t[Wa[d]]+t[Mn[d]]);g=f(g,1-v),p=f(p,v);var m=Gg[d][0],y=Gg[d][1];s[m]=wt(s[m],g),s[y]=wt(s[y],p)}function f(h,d){return h>0&&!Ii(d)&&d>1e-4&&(h/=d),h}}function pR(t,e,r,n,i){var a=new mb(mR);return M(r,function(o){return M(o,function(s){if(eo(s.model)){var l=!n;s.axisBuilder=cR(t,e,s.model,i,a,l)}})}),a}function Tb(t,e,r,n,i,a){var o=r===jt.determine;M(e,function(u){return M(u,function(c){eo(c.model)&&(fR(c.axisBuilder,t,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Mn[1-u]]=t[Wa[u]]<=a.refContainer[Wa[u]]*.5?0:1-u===1?2:1}M(e,function(u,c){return M(u,function(f){eo(f.model)&&((n==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function gR(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():i==null||i==="auto"?n=$a(t.get("outerBounds",!0)||vb,r.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&ye("Invalid grid["+t.componentIndex+"].outerBoundsMode.");var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":ve(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&ye("Invalid grid["+t.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[Kc(te(t.get("outerBoundsClampWidth",!0),fl[0]),e.width),Kc(te(t.get("outerBoundsClampHeight",!0),fl[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var mR=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";yb(t,e,r,n,i,a),Wi(t.nameLocation)||M(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&bb(s.labelInfoList,s.dirVec,n,i)})};function yR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _R(r,t,e),r.seriesInvolved&&xR(r,t),r}function _R(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ro(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(M(s.getAxes(),We(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||d)&&M(v.baseAxes,We(g,d?"cross":!0,h)),d&&M(v.otherAxes,We(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!Vf(_))){m==null&&(m=_.get("triggerTooltip")),_=p?bR(y,f,i,e,p,m):_;var S=_.get("snap"),x=_.get("triggerEmphasis"),w=ro(y.model),T=m||S||y.type==="category",D=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:S,useHandle:Vf(_),seriesModels:[],linkGroup:null};u[w]=D,t.seriesInvolved=t.seriesInvolved||T;var E=wR(a,y);if(E!=null){var k=o[E]||(o[E]={axesInfo:{}});k.axesInfo[w]=D,k.mapper=a[E].mapper,D.linkGroup=k}}}})}function bR(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(h){l[h]=he(o.get(h))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&be(u,f.textStyle)}}return t.model.getModel("axisPointer",new ke(l,r,n))}function xR(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||M(t.coordSysAxesInfo[ro(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function wR(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(hc(a[n+"AxisId"],r.id)||hc(a[n+"AxisIndex"],r.componentIndex)||hc(a[n+"AxisName"],r.name))return i}}function hc(t,e){return t==="all"||X(t)&&ve(t,e)>=0||t===e}function SR(t){var e=pd(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Vf(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function pd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ro(t)]}function TR(t){var e=pd(t);return e&&e.axisPointerModel}function Vf(t){return!!t.get(["handle","show"])}function ro(t){return t.type+"||"+t.id}var dc={},Cb=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&SR(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=TR(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&dc[r])throw new Error("axisPointer "+r+" exists");dc[r]=n},e.getAxisPointerClass=function(r){return r&&dc[r]},e.type="axis",e})(ur),Hf=Re();function CR(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=Hf(t).splitAreaColors,h=ce(),d=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){d=(g+(c-1)*v)%c;break}}var p=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=X(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,S=void 0,x=void 0;i.isHorizontal()?(_=p,b=l.y,S=y-_,x=l.height,p=_+S):(_=l.x,b=p,S=l.width,x=y-b,p=b+x);var w=u[v-1].tickValue;w!=null&&h.set(w,d),e.add(new Be({anid:w!=null?"area_"+w:null,shape:{x:_,y:b,width:S,height:x},style:be({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}Hf(t).splitAreaColors=h}}}function DR(t){Hf(t).splitAreaColors=null}var ER=["splitArea","splitLine","minorSplitLine","breakArea"],Db=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!eo(r)){this._axisGroup.add(r.axis.axisBuilder.group),M(ER,function(l){r.get([l,"show"])&&kR[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||p0(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){DR(this)},e.type="cartesianAxis",e})(Cb),kR={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=X(l)?l:[l];for(var f=n.coordinateSystem.getRect(),h=a.isHorizontal(),d=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],p=[],m=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!c)){var b=v[y].tickValue;h?(g[0]=_,g[1]=f.y,p[0]=_,p[1]=f.y+f.height):(g[0]=f.x,g[1]=_,p[0]=f.x+f.width,p[1]=_);var S=d++%l.length,x=new Yr({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:p[0],y2:p[1]},style:be({stroke:l[S]},m),silent:!0});Ga(x.shape,m.lineWidth),e.add(x)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var f=[],h=[],d=s.getLineStyle(),v=0;v<c.length;v++)for(var g=0;g<c[v].length;g++){var p=a.toGlobalCoord(c[v][g].coord);u?(f[0]=p,f[1]=l.y,h[0]=p,h[1]=l.y+l.height):(f[0]=l.x,f[1]=p,h[0]=l.x+l.width,h[1]=p);var m=new Yr({anid:"minor_line_"+c[v][g].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:d,silent:!0});Ga(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){CR(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},Eb=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(Db),MR=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Eb.type,r}return e.type="yAxis",e})(Db),AR=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Be({shape:r.coordinateSystem.getRect(),style:be({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(ur),qg={offset:0};function RR(t){t.registerComponentView(AR),t.registerComponentModel(BA),t.registerCoordinateSystem("cartesian2d",dR),zg(t,"x",Bf,qg),zg(t,"y",Bf,qg),t.registerComponentView(Eb),t.registerComponentView(MR),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var An=Re(),Zg=he,vc=we,LR=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new qe,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=We(Kg,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}Qg(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=pd(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=An(e).pointerEl=new r2[a.type](Zg(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=An(e).labelEl=new mt(Zg(r.label));e.add(a),Jg(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=An(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=An(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Jg(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Oh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){oy(u.event)},onmousedown:vc(this._onHandleDragMove,this,0,0),drift:vc(this._onHandleDragMove,this),ondragend:vc(this._onHandleDragEnd,this)}),n.add(i)),Qg(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");X(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,c_(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Kg(this._axisPointerModel,!r&&this._moveAnimation,this._handle,pc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(pc(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(pc(i)),An(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xf(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function Kg(t,e,r,n){kb(An(r).lastProp,n)||(An(r).lastProp=n,e?Xr(r,n,t):(r.stopAnimation(),r.attr(n)))}function kb(t,e){if(J(t)&&J(e)){var r=!0;return M(e,function(n,i){r=r&&kb(t[i],n)}),!!r}else return t===e}function Jg(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pc(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Qg(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function IR(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function PR(t,e,r,n,i){var a=r.get("value"),o=Mb(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Nl(s.get("padding")||0),u=s.getFont(),c=Ty(o,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=d),g==="middle"&&(f[1]-=d/2),OR(f,h,d,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:Fi(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function OR(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Mb(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:sl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Z(o)?a=o.replace("{value}",a):ne(o)&&(a=o(s))}return a}function Ab(t,e,r){var n=Sr();return vh(n,n,r.rotation),Oc(n,n,r.position),Ph([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function NR(t,e,r,n,i,a){var o=Ur.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),PR(e,n,i,a,{position:Ab(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function BR(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function zR(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var FR=(function(t){q(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=em(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=IR(a),d=VR[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=hl(l.getRect(),i);NR(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=hl(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Ab(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=em(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[c]}},e})(LR);function em(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var VR={line:function(t,e,r){var n=BR([e,r[0]],[e,r[1]],tm(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:zR([e-n/2,r[0]],[n,i],tm(t))}}};function tm(t){return t.dim==="x"?0:1}var HR=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}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:ee.color.border,width:1,type:"dashed"},shadowStyle:{color:ee.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ee.color.neutral00,padding:[5,7,5,7],backgroundColor:ee.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:ee.color.accent40,throttle:40}},e})(ge),wr=Re(),jR=M;function Rb(t,e,r){if(!oe.node){var n=e.getZr();wr(n).records||(wr(n).records={}),WR(n,e);var i=wr(n).records[t]||(wr(n).records[t]={});i.handler=r}}function WR(t,e){if(wr(t).initialized)return;wr(t).initialized=!0,r("click",We(rm,"click")),r("mousemove",We(rm,"mousemove")),r("globalout",UR);function r(n,i){t.on(n,function(a){var o=$R(e);jR(wr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),GR(o.pendings,e)})}}function GR(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function UR(t,e,r){t.handler("leave",null,r)}function rm(t,e,r,n){e.handler(t,r,n)}function $R(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function jf(t,e){if(!oe.node){var r=e.getZr(),n=(wr(r).records||{})[t];n&&(wr(r).records[t]=null)}}var YR=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Rb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){jf("axisPointer",n)},e.prototype.dispose=function(r,n){jf("axisPointer",n)},e.type="axisPointer",e})(ur);function Lb(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Un(a,t);if(o==null||o<0||X(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,d=f==="x"||f==="radius"?1:0,v=a.mapDimension(h),g=[];g[d]=a.get(v,o),g[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(ie(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var nm=Re();function XR(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||we(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ws(i)&&(i=Lb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=ws(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ws(i),h={},d={},v={list:[],map:{}},g={showPointer:We(ZR,d),showTooltip:We(KR,v)};M(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);M(s.coordSysAxesInfo[y],function(b,S){var x=b.axis,w=tL(u,b);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&im(b,T,g,!1,h)}})});var p={};return M(c,function(m,y){var _=m.linkGroup;_&&!d[y]&&M(_.axesInfo,function(b,S){var x=d[S];if(b!==m&&x){var w=x.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,am(b),am(m)))),p[m.key]=w}})}),M(p,function(m,y){im(c[y],m,g,!0,h)}),JR(d,c,h),QR(v,i,t,o),eL(c,o,r),h}}function im(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=qR(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function qR(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,t,r);h=d.dataIndices,f=d.nestestValue}else{if(h=l.indicesOfNearest(n,c[0],t,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var v=t-f,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,i=f,a.length=0),M(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function ZR(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function KR(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=ro(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function JR(t,e,r){var n=r.axesInfo=[];M(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function QR(t,e,r,n){if(ws(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function eL(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=nm(n)[i]||{},o=nm(n)[i]={};M(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&M(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];M(a,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function tL(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function am(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function ws(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Ib(t){Cb.registerAxisPointerClass("CartesianAxisPointer",FR),t.registerComponentModel(HR),t.registerComponentView(YR),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!X(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=yR(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XR)}function rL(t){Kr(RR),Kr(Ib)}function nL(t,e){var r=Nl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Be({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var iL=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}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:ee.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ee.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ee.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ee.color.tertiary,fontSize:14}},e})(ge);function Pb(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Ob(t){if(oe.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var Nb=Ob(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aL=Ob(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Bb(t,e){if(!t)return e;e=I0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function oL(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var sL=Bb(aL,"transition"),gd=Bb(Nb,"transform"),lL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function uL(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function cL(t,e,r){if(!Z(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Yn(e);var a=uL(r),o=Math.max(Math.round(i)*1.5,6),s="",l=gd+":",u;ve(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function fL(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(oe.transformSupported?""+gd+i:",left"+i+",top"+i)),sL+":"+a}function om(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!oe.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=oe.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+gd+":"+o+";":[["top",0],["left",0],[Nb,o]]}function hL(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=te(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),M(["decoration","align"],function(u){var c=t.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function dL(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),f=t.getModel("textStyle"),h=o_(t,"html"),d=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+d),e&&a>0&&i.push(fL(a,r,n)),o&&i.push("background-color:"+o),M(["width","color","radius"],function(v){var g="border-"+v,p=I0(g),m=t.get(p);m!=null&&i.push(g+":"+m+(v==="color"?"":"px"))}),i.push(hL(f)),h!=null&&i.push("padding:"+Nl(h).join("px ")+"px"),i.join(";")+";"}function sm(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&cw(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var vL=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(Z(a)?document.querySelector(a):Li(a)?a:ne(a)&&a(e.getDom()));sm(this._styleCoord,i,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(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();kt(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=oL(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=lL+dL(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+om(a[0],a[1],!0)+("border-color:"+Yn(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(a)&&n.get("trigger")==="item"&&!Pb(n)&&(s=cL(n,i,a)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l<e.length;l++)Li(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(sm(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=om(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",oe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(we(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;fw(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),pL=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),um(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;J(e)&&ft(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new mt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:o_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=lm(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;um(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Fr(a.borderWidth||0),s=lm(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(we(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Fr(t){return Math.max(0,t)}function lm(t){var e=Fr(t.shadowBlur||0),r=Fr(t.shadowOffsetX||0),n=Fr(t.shadowOffsetY||0);return{left:Fr(e-r),right:Fr(e+r),top:Fr(e-n),bottom:Fr(e+n)}}function um(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var gL=new Be({shape:{x:-1,y:-1,width:2,height:2}}),mL=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(oe.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=VS(i.get("renderMode"));this._tooltipContent=a==="richText"?new pL(n):new vL(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(oe.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?c_(this,"_updatePosition",50,"fixRate"):xf(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Rb("itemTooltip",this._api,we(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||oe.node||!i.getDom())){var o=cm(a,i);this._ticket="";var s=a.dataByCoordSys,l=xL(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=gL;c.x=a.x,c.y=a.y,c.update(),_e(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=Lb(a,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(cm(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=pa([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=_e(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ca(i,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(_e(c).dataIndex!=null?l=c:_e(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=we(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=pa([n.tooltipOption],a),l=this._renderMode,u=[],c=qa("section",{blocks:[],noHeader:!0}),f=[],h=new qu;M(r,function(y){M(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var x=Mb(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=qa("section",{header:x,noHeader:!Jt(x),sortBlocks:!0,blocks:[]});c.blocks.push(w),M(_.seriesDataIndices,function(T){var D=i.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,k=D.getDataParams(E);if(!(k.dataIndex<0)){k.axisDim=_.axisDim,k.axisIndex=_.axisIndex,k.axisType=_.axisType,k.axisId=_.axisId,k.axisValue=sl(b.axis,{value:S}),k.axisValueLabel=x,k.marker=h.makeTooltipMarker("item",Yn(k.color),l);var A=Pp(D.formatTooltip(E,!0,null)),R=A.frag;if(R){var L=pa([D],a).get("valueFormatter");w.blocks.push(L?z({valueFormatter:L},R):R)}A.text&&f.push(A.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,v=s.get("order"),g=Fp(c,h,l,v,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var p=l==="richText"?`
|
|
21
|
+
|
|
22
|
+
`:"<br/>",m=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=_e(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,g=pa([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,f),y=new qu;m.marker=y.makeTooltipMarker("item",Yn(m.color),d);var _=Pp(u.formatTooltip(c,!1,f)),b=g.get("order"),S=g.get("valueFormatter"),x=_.frag,w=x?Fp(S?z({valueFormatter:S},x):x,y,d,b,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,w,m,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=_e(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=he(l),l.content=ut(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=pa(f,this._tooltipModel,d?{position:d}:null),g=v.get("content"),p=Math.random()+"",m=new qu;this._showOrMove(v,function(){var y=he(v.get("formatterParams")||{});this._showTooltipContent(v,g,y,p,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=v.color;if(h)if(Z(h)){var p=r.ecModel.get("useUTC"),m=X(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,y&&(d=Ol(m.axisValue,d,p)),d=P0(d,i,!0)}else if(ne(h)){var _=we(function(b,S){b===this._ticket&&(f.setContent(S,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,_)}else d=h;f.setContent(d,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||X(n))return{color:a||o};if(!X(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ne(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),X(n))i=it(n[0],u),a=it(n[1],c);else if(J(n)){var g=n;g.width=f[0],g.height=f[1];var p=$a(g,{width:u,height:c});i=p.x,a=p.y,h=null,d=null}else if(Z(n)&&l){var m=bL(n,v,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=yL(i,a,o,u,c,h?null:20,d?null:20);i=m[0],a=m[1]}if(h&&(i-=fm(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=fm(d)?f[1]/2:d==="bottom"?f[1]:0),Pb(r)){var m=_L(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(h,d){var v=f[d]||{},g=h.seriesDataIndices||[],p=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&g.length===p.length,o&&M(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){oe.node||!n.getDom()||(xf(this,"_updatePosition"),this._tooltipContent.dispose(),jf("itemTooltip",n))},e.type="tooltip",e})(ur);function pa(t,e,r){var n=e.ecModel,i;r?(i=new ke(r,n,n),i=new ke(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof ke&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(i=new ke(o,i,n)))}return i}function cm(t,e){return t.dispatchAction||we(e.dispatchAction,e)}function yL(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function _L(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function bL(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function fm(t){return t==="center"||t==="middle"}function xL(t,e,r){var n=yh(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=lo(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=_e(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function wL(t){Kr(Ib),t.registerComponentModel(iL),t.registerComponentView(mL),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},dt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},dt)}var SL=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Wf=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),X(n)&&M(n,function(a,o){Z(a)&&(a={type:a}),n[o]=me(a,SL(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&mh(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ce(),s=ie(a,function(l){return(Z(l)||De(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ke(l,this,this.ecModel))},this);this._data=He(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;M(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;M(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;M(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ve(this._availableNames,r)>=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:ee.size.m,align:"auto",backgroundColor:ee.color.transparent,borderColor:ee.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ee.color.disabled,inactiveBorderColor:ee.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:ee.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ee.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ee.color.tertiary,borderWidth:1,borderColor:ee.color.border},emphasis:{selectorLabel:{show:!0,color:ee.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ge),mi=We,Gf=M,as=qe,zb=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new as),this.group.add(this._selectorGroup=new as),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=O0(r,i).refContainer,f=r.getBoxLayoutParams(),h=r.get("padding"),d=$a(f,c,h),v=this.layoutInner(r,o,d,a,l,u),g=$a(be({width:v.width,height:v.height},f),c,h);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nL(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ce(),f=n.get("selectedMode"),h=n.get("triggerEvent"),d=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&d.push(v.id)}),Gf(n.getData(),function(v,g){var p=this,m=v.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
23
|
+
`)){var y=new as;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!c.get(m)){if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),w=b.getVisual("style"),T=this._createItem(_,m,g,v,n,r,S,w,x,f,a);T.on("click",mi(hm,m,null,a,d)).on("mouseover",mi(Uf,_.name,null,a,d)).on("mouseout",mi($f,_.name,null,a,d)),i.ssr&&T.eachChild(function(D){var E=_e(D);E.seriesIndex=_.seriesIndex,E.dataIndex=g,E.ssrType="legend"}),h&&T.eachChild(function(D){p.packEventData(D,n,_,g,m)}),c.set(m,!0)}else i.eachRawSeries(function(D){var E=this;if(!c.get(m)&&D.legendVisualProvider){var k=D.legendVisualProvider;if(!k.containName(m))return;var A=k.indexOfName(m),R=k.getItemVisual(A,"style"),L=k.getItemVisual(A,"legendIcon"),N=rr(R.fill);N&&N[3]===0&&(N[3]=.2,R=z(z({},R),{fill:oo(N,"rgba")}));var O=this._createItem(D,m,g,v,n,r,{},R,L,f,a);O.on("click",mi(hm,null,m,a,d)).on("mouseover",mi(Uf,null,m,a,d)).on("mouseout",mi($f,null,m,a,d)),i.ssr&&O.eachChild(function(F){var P=_e(F);P.seriesIndex=D.seriesIndex,P.dataIndex=g,P.ssrType="legend"}),h&&O.eachChild(function(F){E.packEventData(F,n,D,g,m)}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};_e(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Gf(r,function(u){var c=u.type,f=new mt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);Fh(f,{normal:h,emphasis:d},{defaultText:u.title}),sf(f)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=TL(c,a,l,u,d,p,h),S=new as,x=a.getModel("textStyle");if(ne(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(CL({itemWidth:v,itemHeight:g,icon:c,iconRotate:w,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?v+5:-5,D=s,E=o.get("formatter"),k=n;Z(E)&&E?k=E.replace("{name}",n??""):ne(E)&&(k=E(n));var A=p?x.getTextColor():a.get("inactiveColor");S.add(new mt({style:Fi(x,{text:k,x:T,y:g/2,fill:A,align:D,verticalAlign:"middle"},{inheritColor:A})}));var R=new Be({shape:S.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&Ll({el:R,componentModel:o,itemName:n,itemTooltipOption:L.option}),S.add(R),S.eachChild(function(N){N.silent=!0}),R.silent=!f,this.getContentGroup().add(S),sf(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Na(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Na("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?d[g]+=c[p]+v:f[g]+=h[p]+v,d[1-g]+=c[m]/2-h[m]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=c[p]+v+h[p],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+d[1-g]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(ur);function TL(t,e,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),Gf(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Df(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function CL(t){var e=t.icon||"roundRect",r=Hi(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=ee.color.neutral00,r.style.lineWidth=2),r}function hm(t,e,r,n){$f(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Uf(t,e,r,n)}function Fb(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Uf(t,e,r,n){Fb(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function $f(t,e,r,n){Fb(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function DL(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function ga(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),dm(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){M(i,function(l,u){s[l?"select":"unSelect"](u)}),dm(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function dm(t,e){var r=e||{};return M(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
24
|
+
`||i==="")){var a=t.isSelected(i);Ht(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function EL(t){t.registerAction("legendToggleSelect","legendselectchanged",We(ga,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",We(ga,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",We(ga,"inverseSelect")),t.registerAction("legendSelect","legendselected",We(ga,"select")),t.registerAction("legendUnSelect","legendunselected",We(ga,"unSelect"))}function Vb(t){t.registerComponentModel(Wf),t.registerComponentView(zb),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,DL),t.registerSubTypeDefaulter("legend",function(){return"plain"}),EL(t)}var kL=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=fo(r);t.prototype.init.call(this,r,n,i),vm(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),vm(this,this.option,r)},e.type="legend.scroll",e.defaultOption=g2(Wf.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:ee.color.accent50,pageIconInactiveColor:ee.color.accent10,pageIconSize:15,pageTextStyle:{color:ee.color.tertiary},animationDurationUpdate:800}),e})(Wf);function vm(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,qr(e,r,{type:"box",ignoreSize:!!i})}var pm=qe,gc=["width","height"],mc=["x","y"],ML=(function(t){q(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pm)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),h=X(f)?f:[f,f];v("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new mt({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,p){var m=g+"DataIndex",y=Oh(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:we(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=g,c.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=gc[u],f=mc[u],h=gc[1-u],d=mc[1-u];o&&Na("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=he(i);o&&(m[c]=i[c]-g[c]-v);var y=this._layoutContentAndController(r,a,m,u,c,h,d,f);if(o){if(s==="end")p[u]+=y[c]+v;else{var _=g[c]+v;p[u]-=_,y[f]-=_}y[c]+=g[c]+v,p[1-u]+=y[d]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[d]=Math.min(y[d],g[d]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Na(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Na("horizontal",h,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),v=h.getBoundingRect(),g=this._showController=d[o]>i[o],p=[-d.x,-d.y];n||(p[a]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=te(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=d[s]/2-v[s]/2,c.setPosition(p),f.setPosition(m),h.setPosition(y);var S={x:0,y:0};if(S[o]=g?i[o]:d[o],S[s]=Math.max(d[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),f.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-_,0),x[s]=S[s],f.setClipPath(new Be({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&Xr(c,{x:w.contentPosition[0],y:w.contentPosition[1]},g?r:null),this._updatePageInfoView(r,w),S},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=gc[o],l=mc[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=b(f);v.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=h;++p)_=b(c[p]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(c[p]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function S(x,w){return x.e>=w&&x.s<=w+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(zb);function AL(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function RL(t){Kr(Vb),t.registerComponentModel(kL),t.registerComponentView(ML),AL(t)}function LL(t){Kr(Vb),Kr(RL)}function gm(t,e,r){var n=Cr.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var yc=(function(t){q(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Bs,typeof r=="string"?o=gm(r,n,i):J(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(iy(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}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 r=this.dpr;this.domBack=gm("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new se(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new se(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(y)){var D=new se(0,0,0,0);D.copy(T),D.union(y),o[w]=D,b=!0;break}else if(l){u.copy(y),u.union(T);var E=y.width*y.height,k=T.width*T.height,A=u.width*u.height,R=A-E-k;R<S&&(S=R,x=w)}}if(l&&(o[x].union(y),b=!0),!b){var _=new se(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=r[f];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&xt||!d)?h.getPrevPaintRect():null;v&&c(v);var g=d&&(h.__dirty&xt||!h.__isRendered)?h.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=n[f],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&c(v)}}var p;do{p=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(p=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var d=this.domBack;function v(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(ml(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||Tf(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else Xx(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Cf(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(d,g,p,m,y),o.restore())}!i||u?v(0,0,s,l):i.length&&M(i,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},e})(fr),mm=1e5,En=314159,os=.01,IL=.001;function PL(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function OL(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var NL=(function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=z({},n||{}),this.dpr=n.devicePixelRatio||Bs,this._singleCanvas=a,this.root=e;var o=e.style;o&&(iy(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=e,f=c.width,h=c.height;n.width!=null&&(f=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var d=new yc(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[En]=d,d.zlevel=En,s.push(En),this._domRoot=e}else{this._width=Xo(e,0,n),this._height=Xo(e,1,n);var u=this._domRoot=OL(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(mm)),a||(a=n.ctx,a.save()),Pn(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(mm)},t.prototype.paintOne=function(e,r){w_(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Rs(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(En).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,h=function(g){var p=a[g],m=p.ctx,y=o&&p.createRepaintRects(e,r,d._width,d._height),_=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,S=b&&Date.now(),x=p.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,x,y);else if(_===p.__startIndex){var w=e[_];(!w.incremental||!w.notClear||n)&&p.clear(!1,x,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,D=function(R){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var N=e[T];if(N.__inHover&&(f=!0),i._doPaintEl(N,p,o,R,L,T===p.__endIndex-1),b){var O=Date.now()-S;if(O>15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var E=d.dpr,k=0;k<y.length;++k){var A=y[k];m.save(),m.beginPath(),m.rect(A.x*E,A.y*E,A.width*E,A.height*E),m.clip(),D(A),m.restore()}else m.save(),D(),m.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(c=!1)},d=this,v=0;v<a.length;v++)h(v);return oe.wxa&&M(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Pn(s,e,a,o),e.setPrevPaintRect(l))}else Pn(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=En);var n=this._layers[e];return n||(n=new yc("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?me(n,this._layerConfig[e],!0):this._layerConfig[e-os]&&me(n,this._layerConfig[e-os],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Nn("ZLevel "+e+" has been used already");return}if(!PL(r)){process.env.NODE_ENV!=="production"&&Nn("Layer of zlevel "+e+" is not valid");return}if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+IL,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?os:0),this._needsManuallyCompositing),c.__builtin__||Nn("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&xt&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?me(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+os){var o=this._layers[a];me(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(ve(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=Xo(a,0,i),r=Xo(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(En).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[En].dom;var r=new yc("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Pn(n,c,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function BL(t){t.registerPainter("canvas",NL)}function Hb(t,e){return function(){return t.apply(e,arguments)}}const{toString:zL}=Object.prototype,{getPrototypeOf:md}=Object,{iterator:Vl,toStringTag:jb}=Symbol,Hl=(t=>e=>{const r=zL.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=t=>(t=t.toLowerCase(),e=>Hl(e)===t),jl=t=>e=>typeof e===t,{isArray:Zi}=Array,Gi=jl("undefined");function vo(t){return t!==null&&!Gi(t)&&t.constructor!==null&&!Gi(t.constructor)&&vt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wb=Ut("ArrayBuffer");function FL(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wb(t.buffer),e}const VL=jl("string"),vt=jl("function"),Gb=jl("number"),po=t=>t!==null&&typeof t=="object",HL=t=>t===!0||t===!1,Ss=t=>{if(Hl(t)!=="object")return!1;const e=md(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(jb in t)&&!(Vl in t)},jL=t=>{if(!po(t)||vo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},WL=Ut("Date"),GL=Ut("File"),UL=t=>!!(t&&typeof t.uri<"u"),$L=t=>t&&typeof t.getParts<"u",YL=Ut("Blob"),XL=Ut("FileList"),qL=t=>po(t)&&vt(t.pipe);function ZL(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ym=ZL(),_m=typeof ym.FormData<"u"?ym.FormData:void 0,KL=t=>{let e;return t&&(_m&&t instanceof _m||vt(t.append)&&((e=Hl(t))==="formdata"||e==="object"&&vt(t.toString)&&t.toString()==="[object FormData]"))},JL=Ut("URLSearchParams"),[QL,eI,tI,rI]=["ReadableStream","Request","Response","Headers"].map(Ut),nI=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function go(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Zi(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(vo(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(n=0;n<o;n++)s=a[n],e.call(null,t[s],s,t)}}function Ub(t,e){if(vo(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$b=t=>!Gi(t)&&t!==On;function Yf(){const{caseless:t,skipUndefined:e}=$b(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=t&&Ub(r,a)||a;Ss(r[o])&&Ss(i)?r[o]=Yf(r[o],i):Ss(i)?r[o]=Yf({},i):Zi(i)?r[o]=i.slice():(!e||!Gi(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&go(arguments[i],n);return r}const iI=(t,e,r,{allOwnKeys:n}={})=>(go(e,(i,a)=>{r&&vt(i)?Object.defineProperty(t,a,{value:Hb(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),aI=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oI=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},sI=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&md(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},lI=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},uI=t=>{if(!t)return null;if(Zi(t))return t;let e=t.length;if(!Gb(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},cI=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&md(Uint8Array)),fI=(t,e)=>{const n=(t&&t[Vl]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},hI=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},dI=Ut("HTMLFormElement"),vI=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),bm=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),pI=Ut("RegExp"),Yb=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};go(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},gI=t=>{Yb(t,(e,r)=>{if(vt(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(vt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mI=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Zi(t)?n(t):n(String(t).split(e)),r},yI=()=>{},_I=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function bI(t){return!!(t&&vt(t.append)&&t[jb]==="FormData"&&t[Vl])}const xI=t=>{const e=new Array(10),r=(n,i)=>{if(po(n)){if(e.indexOf(n)>=0)return;if(vo(n))return n;if(!("toJSON"in n)){e[i]=n;const a=Zi(n)?[]:{};return go(n,(o,s)=>{const l=r(o,i+1);!Gi(l)&&(a[s]=l)}),e[i]=void 0,a}}return n};return r(t,0)},wI=Ut("AsyncFunction"),SI=t=>t&&(po(t)||vt(t))&&vt(t.then)&&vt(t.catch),Xb=((t,e)=>t?setImmediate:e?((r,n)=>(On.addEventListener("message",({source:i,data:a})=>{i===On&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),On.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",vt(On.postMessage)),TI=typeof queueMicrotask<"u"?queueMicrotask.bind(On):typeof process<"u"&&process.nextTick||Xb,CI=t=>t!=null&&vt(t[Vl]),I={isArray:Zi,isArrayBuffer:Wb,isBuffer:vo,isFormData:KL,isArrayBufferView:FL,isString:VL,isNumber:Gb,isBoolean:HL,isObject:po,isPlainObject:Ss,isEmptyObject:jL,isReadableStream:QL,isRequest:eI,isResponse:tI,isHeaders:rI,isUndefined:Gi,isDate:WL,isFile:GL,isReactNativeBlob:UL,isReactNative:$L,isBlob:YL,isRegExp:pI,isFunction:vt,isStream:qL,isURLSearchParams:JL,isTypedArray:cI,isFileList:XL,forEach:go,merge:Yf,extend:iI,trim:nI,stripBOM:aI,inherits:oI,toFlatObject:sI,kindOf:Hl,kindOfTest:Ut,endsWith:lI,toArray:uI,forEachEntry:fI,matchAll:hI,isHTMLForm:dI,hasOwnProperty:bm,hasOwnProp:bm,reduceDescriptors:Yb,freezeMethods:gI,toObjectSet:mI,toCamelCase:vI,noop:yI,toFiniteNumber:_I,findKey:Ub,global:On,isContextDefined:$b,isSpecCompliantForm:bI,toJSONObject:xI,isAsyncFn:wI,isThenable:SI,setImmediate:Xb,asap:TI,isIterable:CI};let re=class qb extends Error{static from(e,r,n,i,a,o){const s=new qb(e.message,r||e.code,n,i,a);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,r,n,i,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){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:I.toJSONObject(this.config),code:this.code,status:this.status}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";const DI=null;function Xf(t){return I.isPlainObject(t)||I.isArray(t)}function Zb(t){return I.endsWith(t,"[]")?t.slice(0,-2):t}function _c(t,e,r){return t?t.concat(e).map(function(i,a){return i=Zb(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function EI(t){return I.isArray(t)&&!t.some(Xf)}const kI=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Wl(t,e,r){if(!I.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!I.isUndefined(p[g])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(I.isDate(v))return v.toISOString();if(I.isBoolean(v))return v.toString();if(!l&&I.isBlob(v))throw new re("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(v)||I.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,p){let m=v;if(I.isReactNative(e)&&I.isReactNativeBlob(v))return e.append(_c(p,g,a),u(v)),!1;if(v&&!p&&typeof v=="object"){if(I.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(I.isArray(v)&&EI(v)||(I.isFileList(v)||I.endsWith(g,"[]"))&&(m=I.toArray(v)))return g=Zb(g),m.forEach(function(_,b){!(I.isUndefined(_)||_===null)&&e.append(o===!0?_c([g],b,a):o===null?g:g+"[]",u(_))}),!1}return Xf(v)?!0:(e.append(_c(p,g,a),u(v)),!1)}const f=[],h=Object.assign(kI,{defaultVisitor:c,convertValue:u,isVisitable:Xf});function d(v,g){if(!I.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),I.forEach(v,function(m,y){(!(I.isUndefined(m)||m===null)&&i.call(e,m,I.isString(y)?y.trim():y,g,h))===!0&&d(m,g?g.concat(y):[y])}),f.pop()}}if(!I.isObject(t))throw new TypeError("data must be an object");return d(t),e}function xm(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function yd(t,e){this._pairs=[],t&&Wl(t,this,e)}const Kb=yd.prototype;Kb.append=function(e,r){this._pairs.push([e,r])};Kb.toString=function(e){const r=e?function(n){return e.call(this,n,xm)}:xm;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function MI(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jb(t,e,r){if(!e)return t;const n=r&&r.encode||MI,i=I.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(e,i):o=I.isURLSearchParams(e)?e.toString():new yd(e,i).toString(n),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class wm{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,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){I.forEach(this.handlers,function(n){n!==null&&e(n)})}}const _d={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},AI=typeof URLSearchParams<"u"?URLSearchParams:yd,RI=typeof FormData<"u"?FormData:null,LI=typeof Blob<"u"?Blob:null,II={isBrowser:!0,classes:{URLSearchParams:AI,FormData:RI,Blob:LI},protocols:["http","https","file","blob","url","data"]},bd=typeof window<"u"&&typeof document<"u",qf=typeof navigator=="object"&&navigator||void 0,PI=bd&&(!qf||["ReactNative","NativeScript","NS"].indexOf(qf.product)<0),OI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",NI=bd&&window.location.href||"http://localhost",BI=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bd,hasStandardBrowserEnv:PI,hasStandardBrowserWebWorkerEnv:OI,navigator:qf,origin:NI},Symbol.toStringTag,{value:"Module"})),Qe={...BI,...II};function zI(t,e){return Wl(t,new Qe.classes.URLSearchParams,{visitor:function(r,n,i,a){return Qe.isNode&&I.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function FI(t){return I.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function VI(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function Qb(t){function e(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&I.isArray(i)?i.length:o,l?(I.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!I.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&I.isArray(i[o])&&(i[o]=VI(i[o])),!s)}if(I.isFormData(t)&&I.isFunction(t.entries)){const r={};return I.forEachEntry(t,(n,i)=>{e(FI(n),i,r,0)}),r}return null}function HI(t,e,r){if(I.isString(t))try{return(e||JSON.parse)(t),I.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const mo={transitional:_d,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=I.isObject(e);if(a&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return i?JSON.stringify(Qb(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e)||I.isReadableStream(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return zI(e,this.formSerializer).toString();if((s=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Wl(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),HI(e)):e}],transformResponse:[function(e){const r=this.transitional||mo.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(I.isResponse(e)||I.isReadableStream(e))return e;if(e&&I.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?re.from(s,re.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:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],t=>{mo.headers[t]={}});const jI=I.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"]),WI=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
25
|
+
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&jI[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Sm=Symbol("internals"),GI=t=>!/[\r\n]/.test(t);function e1(t,e){if(!(t===!1||t==null)){if(I.isArray(t)){t.forEach(r=>e1(r,e));return}if(!GI(String(t)))throw new Error(`Invalid character in header content ["${e}"]`)}}function ma(t){return t&&String(t).trim().toLowerCase()}function UI(t){let e=t.length;for(;e>0;){const r=t.charCodeAt(e-1);if(r!==10&&r!==13)break;e-=1}return e===t.length?t:t.slice(0,e)}function Ts(t){return t===!1||t==null?t:I.isArray(t)?t.map(Ts):UI(String(t))}function $I(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const YI=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bc(t,e,r,n,i){if(I.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!I.isString(e)){if(I.isString(n))return e.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(e)}}function XI(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function qI(t,e){const r=I.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let pt=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const c=ma(l);if(!c)throw new Error("header name must be a non-empty string");const f=I.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(e1(s,l),i[f||l]=Ts(s))}const o=(s,l)=>I.forEach(s,(u,c)=>a(u,c,l));if(I.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(I.isString(e)&&(e=e.trim())&&!YI(e))o(WI(e),r);else if(I.isObject(e)&&I.isIterable(e)){let s={},l,u;for(const c of e){if(!I.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?I.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(s,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=ma(e),e){const n=I.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return $I(i);if(I.isFunction(r))return r.call(this,i,n);if(I.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ma(e),e){const n=I.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||bc(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=ma(o),o){const s=I.findKey(n,o);s&&(!r||bc(n,n[s],s,r))&&(delete n[s],i=!0)}}return I.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||bc(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return I.forEach(this,(i,a)=>{const o=I.findKey(n,a);if(o){r[o]=Ts(i),delete r[a];return}const s=e?XI(a):String(a).trim();s!==a&&delete r[a],r[s]=Ts(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return I.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&I.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
26
|
+
`)}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,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Sm]=this[Sm]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=ma(o);n[s]||(qI(i,o),n[s]=!0)}return I.isArray(e)?e.forEach(a):a(e),this}};pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(pt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});I.freezeMethods(pt);function xc(t,e){const r=this||mo,n=e||r,i=pt.from(n.headers);let a=n.data;return I.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function t1(t){return!!(t&&t.__CANCEL__)}let yo=class extends re{constructor(e,r,n){super(e??"canceled",re.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function r1(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new re("Request failed with status code "+r.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ZI(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function KI(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,h=0;for(;f!==i;)h+=r[f++],f=f%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const d=c&&u-c;return d?Math.round(h*1e3/d):void 0}}function JI(t,e){let r=0,n=1e3/e,i,a;const o=(u,c=Date.now())=>{r=c,i=null,a&&(clearTimeout(a),a=null),t(...u)};return[(...u)=>{const c=Date.now(),f=c-r;f>=n?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-f)))},()=>i&&o(i)]}const dl=(t,e,r=3)=>{let n=0;const i=KI(50,250);return JI(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(f)},r)},Tm=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Cm=t=>(...e)=>I.asap(()=>t(...e)),QI=Qe.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Qe.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,e5=Qe.hasStandardBrowserEnv?{write(t,e,r,n,i,a,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];I.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),I.isString(n)&&s.push(`path=${n}`),I.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),I.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function t5(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function r5(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function n1(t,e,r){let n=!t5(e);return t&&(n||r==!1)?r5(t,e):e}const Dm=t=>t instanceof pt?{...t}:t;function Xn(t,e){e=e||{};const r={};function n(u,c,f,h){return I.isPlainObject(u)&&I.isPlainObject(c)?I.merge.call({caseless:h},u,c):I.isPlainObject(c)?I.merge({},c):I.isArray(c)?c.slice():c}function i(u,c,f,h){if(I.isUndefined(c)){if(!I.isUndefined(u))return n(void 0,u,f,h)}else return n(u,c,f,h)}function a(u,c){if(!I.isUndefined(c))return n(void 0,c)}function o(u,c){if(I.isUndefined(c)){if(!I.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in t)return n(void 0,u)}const l={url:a,method:a,data:a,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:(u,c,f)=>i(Dm(u),Dm(c),f,!0)};return I.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=I.hasOwnProp(l,c)?l[c]:i,h=f(t[c],e[c],c);I.isUndefined(h)&&f!==s||(r[c]=h)}),r}const i1=t=>{const e=Xn({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;if(e.headers=o=pt.from(o),e.url=Jb(n1(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),I.isFormData(r)){if(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(I.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&o.set(c,f)})}}if(Qe.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(e)),n||n!==!1&&QI(e.url))){const l=i&&a&&e5.read(a);l&&o.set(i,l)}return e},n5=typeof XMLHttpRequest<"u",i5=n5&&function(t){return new Promise(function(r,n){const i=i1(t);let a=i.data;const o=pt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,v;function g(){d&&d(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function m(){if(!p)return;const _=pt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:_,config:t,request:p};r1(function(w){r(w),g()},function(w){n(w),g()},S),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(n(new re("Request aborted",re.ECONNABORTED,t,p)),p=null)},p.onerror=function(b){const S=b&&b.message?b.message:"Network Error",x=new re(S,re.ERR_NETWORK,t,p);x.event=b||null,n(x),p=null},p.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||_d;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new re(b,S.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,t,p)),p=null},a===void 0&&o.setContentType(null),"setRequestHeader"in p&&I.forEach(o.toJSON(),function(b,S){p.setRequestHeader(S,b)}),I.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),s&&s!=="json"&&(p.responseType=i.responseType),u&&([h,v]=dl(u,!0),p.addEventListener("progress",h)),l&&p.upload&&([f,d]=dl(l),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=_=>{p&&(n(!_||_.type?new yo(null,t,p):_),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=ZI(i.url);if(y&&Qe.protocols.indexOf(y)===-1){n(new re("Unsupported protocol "+y+":",re.ERR_BAD_REQUEST,t));return}p.send(a||null)})},a5=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof re?c:new yo(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,a(new re(`timeout of ${e}ms exceeded`,re.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),t=null)};t.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>I.asap(s),l}},o5=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},s5=async function*(t,e){for await(const r of l5(t))yield*o5(r,e)},l5=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Em=(t,e,r,n)=>{const i=s5(t,e);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let h=a+=f;r(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},km=64*1024,{isFunction:ss}=I,u5=(({Request:t,Response:e})=>({Request:t,Response:e}))(I.global),{ReadableStream:Mm,TextEncoder:Am}=I.global,Rm=(t,...e)=>{try{return!!t(...e)}catch{return!1}},c5=t=>{t=I.merge.call({skipUndefined:!0},u5,t);const{fetch:e,Request:r,Response:n}=t,i=e?ss(e):typeof fetch=="function",a=ss(r),o=ss(n);if(!i)return!1;const s=i&&ss(Mm),l=i&&(typeof Am=="function"?(v=>g=>v.encode(g))(new Am):async v=>new Uint8Array(await new r(v).arrayBuffer())),u=a&&s&&Rm(()=>{let v=!1;const g=new Mm,p=new r(Qe.origin,{body:g,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return g.cancel(),v&&!p}),c=o&&s&&Rm(()=>I.isReadableStream(new n("").body)),f={stream:c&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!f[v]&&(f[v]=(g,p)=>{let m=g&&g[v];if(m)return m.call(g);throw new re(`Response type '${v}' is not supported`,re.ERR_NOT_SUPPORT,p)})});const h=async v=>{if(v==null)return 0;if(I.isBlob(v))return v.size;if(I.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(I.isArrayBufferView(v)||I.isArrayBuffer(v))return v.byteLength;if(I.isURLSearchParams(v)&&(v=v+""),I.isString(v))return(await l(v)).byteLength},d=async(v,g)=>{const p=I.toFiniteNumber(v.getContentLength());return p??h(g)};return async v=>{let{url:g,method:p,data:m,signal:y,cancelToken:_,timeout:b,onDownloadProgress:S,onUploadProgress:x,responseType:w,headers:T,withCredentials:D="same-origin",fetchOptions:E}=i1(v),k=e||fetch;w=w?(w+"").toLowerCase():"text";let A=a5([y,_&&_.toAbortSignal()],b),R=null;const L=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let N;try{if(x&&u&&p!=="get"&&p!=="head"&&(N=await d(T,m))!==0){let U=new r(g,{method:"POST",body:m,duplex:"half"}),j;if(I.isFormData(m)&&(j=U.headers.get("content-type"))&&T.setContentType(j),U.body){const[H,K]=Tm(N,dl(Cm(x)));m=Em(U.body,km,H,K)}}I.isString(D)||(D=D?"include":"omit");const O=a&&"credentials"in r.prototype,F={...E,signal:A,method:p.toUpperCase(),headers:T.normalize().toJSON(),body:m,duplex:"half",credentials:O?D:void 0};R=a&&new r(g,F);let P=await(a?k(R,E):k(g,F));const G=c&&(w==="stream"||w==="response");if(c&&(S||G&&L)){const U={};["status","statusText","headers"].forEach(fe=>{U[fe]=P[fe]});const j=I.toFiniteNumber(P.headers.get("content-length")),[H,K]=S&&Tm(j,dl(Cm(S),!0))||[];P=new n(Em(P.body,km,H,()=>{K&&K(),L&&L()}),U)}w=w||"text";let W=await f[I.findKey(f,w)||"text"](P,v);return!G&&L&&L(),await new Promise((U,j)=>{r1(U,j,{data:W,headers:pt.from(P.headers),status:P.status,statusText:P.statusText,config:v,request:R})})}catch(O){throw L&&L(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,v,R,O&&O.response),{cause:O.cause||O}):re.from(O,O&&O.code,v,R,O&&O.response)}}},f5=new Map,a1=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,a=[n,i,r];let o=a.length,s=o,l,u,c=f5;for(;s--;)l=a[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:c5(e)),c=u;return u};a1();const xd={http:DI,xhr:i5,fetch:{get:a1}};I.forEach(xd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Lm=t=>`- ${t}`,h5=t=>I.isFunction(t)||t===null||t===!1;function d5(t,e){t=I.isArray(t)?t:[t];const{length:r}=t;let n,i;const a={};for(let o=0;o<r;o++){n=t[o];let s;if(i=n,!h5(n)&&(i=xd[(s=String(n)).toLowerCase()],i===void 0))throw new re(`Unknown adapter '${s}'`);if(i&&(I.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
|
27
|
+
`+o.map(Lm).join(`
|
|
28
|
+
`):" "+Lm(o[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const o1={getAdapter:d5,adapters:xd};function wc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new yo(null,t)}function Im(t){return wc(t),t.headers=pt.from(t.headers),t.data=xc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),o1.getAdapter(t.adapter||mo.adapter,t)(t).then(function(n){return wc(t),n.data=xc.call(t,t.transformResponse,n),n.headers=pt.from(n.headers),n},function(n){return t1(n)||(wc(t),n&&n.response&&(n.response.data=xc.call(t,t.transformResponse,n.response),n.response.headers=pt.from(n.response.headers))),Promise.reject(n)})}const s1="1.15.0",Gl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Gl[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Pm={};Gl.transitional=function(e,r,n){function i(a,o){return"[Axios v"+s1+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new re(i(o," has been removed"+(r?" in "+r:"")),re.ERR_DEPRECATED);return r&&!Pm[o]&&(Pm[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};Gl.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function v5(t,e,r){if(typeof t!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new re("option "+a+" must be "+l,re.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new re("Unknown option "+a,re.ERR_BAD_OPTION)}}const Cs={assertOptions:v5,validators:Gl},Dt=Cs.validators;let Wn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new wm,response:new wm}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(`
|
|
29
|
+
`);return o===-1?"":i.stack.slice(o+1)})();try{if(!n.stack)n.stack=a;else if(a){const o=a.indexOf(`
|
|
30
|
+
`),s=o===-1?-1:a.indexOf(`
|
|
31
|
+
`,o+1),l=s===-1?"":a.slice(s+1);String(n.stack).endsWith(l)||(n.stack+=`
|
|
32
|
+
`+a)}}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Xn(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Cs.assertOptions(n,{silentJSONParsing:Dt.transitional(Dt.boolean),forcedJSONParsing:Dt.transitional(Dt.boolean),clarifyTimeoutError:Dt.transitional(Dt.boolean),legacyInterceptorReqResOrdering:Dt.transitional(Dt.boolean)},!1),i!=null&&(I.isFunction(i)?r.paramsSerializer={serialize:i}:Cs.assertOptions(i,{encode:Dt.function,serialize:Dt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Cs.assertOptions(r,{baseUrl:Dt.spelling("baseURL"),withXsrfToken:Dt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&I.merge(a.common,a[r.method]);a&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),r.headers=pt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;l=l&&g.synchronous;const p=r.transitional||_d;p&&p.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,h;if(!l){const v=[Im.bind(this),void 0];for(v.unshift(...s),v.push(...u),h=v.length,c=Promise.resolve(r);f<h;)c=c.then(v[f++],v[f++]);return c}h=s.length;let d=r;for(;f<h;){const v=s[f++],g=s[f++];try{d=v(d)}catch(p){g.call(this,p);break}}try{c=Im.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Xn(this.defaults,e);const r=n1(e.baseURL,e.url,e.allowAbsoluteUrls);return Jb(r,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){Wn.prototype[e]=function(r,n){return this.request(Xn(n||{},{method:e,url:r,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(e){function r(n){return function(a,o,s){return this.request(Xn(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Wn.prototype[e]=r(),Wn.prototype[e+"Form"]=r(!0)});let p5=class l1{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new yo(a,o,s),r(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 r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new l1(function(i){e=i}),cancel:e}}};function g5(t){return function(r){return t.apply(null,r)}}function m5(t){return I.isObject(t)&&t.isAxiosError===!0}const Zf={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(Zf).forEach(([t,e])=>{Zf[e]=t});function u1(t){const e=new Wn(t),r=Hb(Wn.prototype.request,e);return I.extend(r,Wn.prototype,e,{allOwnKeys:!0}),I.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return u1(Xn(t,i))},r}const Ie=u1(mo);Ie.Axios=Wn;Ie.CanceledError=yo;Ie.CancelToken=p5;Ie.isCancel=t1;Ie.VERSION=s1;Ie.toFormData=Wl;Ie.AxiosError=re;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=g5;Ie.isAxiosError=m5;Ie.mergeConfig=Xn;Ie.AxiosHeaders=pt;Ie.formToJSON=t=>Qb(I.isHTMLForm(t)?new FormData(t):t);Ie.getAdapter=o1.getAdapter;Ie.HttpStatusCode=Zf;Ie.default=Ie;const{Axios:dP,AxiosError:vP,CanceledError:pP,isCancel:gP,CancelToken:mP,VERSION:yP,all:_P,Cancel:bP,isAxiosError:xP,spread:wP,toFormData:SP,AxiosHeaders:TP,HttpStatusCode:CP,formToJSON:DP,getAdapter:EP,mergeConfig:kP}=Ie;async function c1(){return(await Ie.get("/api/monitor/realtime")).data.data}Kr([NA,rL,wL,LL,BL]);const y5=({blockId:t})=>{const e=B.useRef(null),r=B.useRef(null),[n,i]=B.useState(null),[a,o]=B.useState(!0),s=B.useCallback(c=>({tooltip:{trigger:"axis",backgroundColor:"rgba(10,15,30,0.9)",borderColor:"rgba(99,102,241,0.4)",textStyle:{color:"#fff",fontSize:11}},legend:{data:c.series.map(f=>f.name),top:4,right:8,textStyle:{color:"rgba(255,255,255,0.6)",fontSize:10},itemWidth:12,itemHeight:8},grid:{left:40,right:12,top:32,bottom:24},xAxis:{type:"category",data:c.xAxis,axisLine:{lineStyle:{color:"rgba(255,255,255,0.1)"}},axisLabel:{color:"rgba(255,255,255,0.4)",fontSize:9,interval:3},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:"rgba(255,255,255,0.35)",fontSize:9},splitLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}}},series:c.series.map((f,h)=>({name:f.name,type:"line",data:f.data,smooth:!0,symbol:"none",lineStyle:{width:2},areaStyle:{color:new Rh(0,0,0,1,[{offset:0,color:h===0?"rgba(99,102,241,0.35)":"rgba(52,211,153,0.25)"},{offset:1,color:"transparent"}])},itemStyle:{color:h===0?"#6366f1":"#34d399"}})),animation:!0,animationDuration:800}),[]),l=B.useCallback(async()=>{try{o(!0);const c=await c1();i(c.summary),r.current&&r.current.setOption(s(c.visitTrend))}catch(c){console.error("[SampleMonitor] fetch error:",c)}finally{o(!1)}},[s]);B.useEffect(()=>{if(!e.current)return;r.current=Dk(e.current,void 0,{renderer:"canvas"}),l();const c=setInterval(l,1e4);return()=>{clearInterval(c),r.current?.dispose(),r.current=null}},[l]),B.useEffect(()=>{if(!e.current)return;const c=new ResizeObserver(()=>{r.current?.resize()});return c.observe(e.current),()=>c.disconnect()},[]);const u=n?[{label:"总访问量",value:n.totalVisits.toLocaleString(),color:"#6366f1"},{label:"在线用户",value:n.onlineUsers.toLocaleString(),color:"#34d399"},{label:"响应(ms)",value:String(n.avgResponse),color:"#38bdf8"},{label:"错误率",value:`${n.errorRate}%`,color:"#f87171"}]:[];return C.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:8,boxSizing:"border-box",gap:6},children:[C.jsx("div",{style:{display:"flex",gap:6,flexShrink:0},children:u.map(c=>C.jsxs("div",{style:{flex:1,background:"rgba(255,255,255,0.04)",borderRadius:6,padding:"6px 8px",display:"flex",flexDirection:"column",gap:2,border:"1px solid rgba(255,255,255,0.06)"},children:[C.jsx("span",{style:{fontSize:9,color:"rgba(255,255,255,0.4)"},children:c.label}),C.jsx("span",{style:{fontSize:14,fontWeight:700,color:c.color,fontFamily:"monospace"},children:a?"...":c.value})]},c.label))}),C.jsx("div",{ref:e,style:{flex:1,minHeight:0,width:"100%"}}),C.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:9,color:"rgba(255,255,255,0.25)",flexShrink:0},children:[C.jsxs("span",{children:["ID: ",t]}),C.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[C.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:a?"#f59e0b":"#4ade80",display:"inline-block"}}),a?"加载中...":"实时 · 10s 刷新"]})]})]})};let Sc=null,no="",Kf="",Jf="",Tc=null,Om=null,$e=1,Ri=!1;const io={isAutofitRunning:!1,init(t={},e=!0){e&&console.log("autofit.js is running");const{dw:r=1920,dh:n=1080,el:i=typeof t=="string"?t:"body",resize:a=!0,ignore:o=[],transition:s="none",delay:l=0,limit:u=.1,cssMode:c="scale",allowScroll:f=!1}=t;Sc=i;const h=document.querySelector(i);if(!h){console.error(`autofit: '${i}' is not exist`);return}const d=document.createElement("style"),v=document.createElement("style");d.lang="text/css",v.lang="text/css",d.id="autofit-style",v.id="ignoreStyle",!f&&(d.innerHTML="body {overflow: hidden;}");const g=document.querySelector("body");g.appendChild(d),g.appendChild(v),h.style.height=`${n}px`,h.style.width=`${r}px`,h.style.transformOrigin="0 0",!f&&(h.style.overflow="hidden"),Cc(r,n,h,o,u,c),Tc=()=>{clearTimeout(Om),l!=0?Om=setTimeout(()=>{Cc(r,n,h,o,u,c),Ri&&Qf(no,Jf,Kf)},l):(Cc(r,n,h,o,u,c),Ri&&Qf(no,Jf,Kf))},a&&window.addEventListener("resize",Tc),this.isAutofitRunning=!0,setTimeout(()=>{h.style.transition=`${s}s`})},off(t="body"){try{window.removeEventListener("resize",Tc);const e=document.querySelector("#autofit-style");e&&e.remove();const r=document.querySelector("#ignoreStyle");r&&r.remove();const n=document.querySelector(Sc||t);n&&(n.style.cssText=""),Ri&&f1()}catch(e){console.error("autofit: Failed to remove normally",e)}this.isAutofitRunning=!1,console.log("autofit.js is off")},elRectification:null,scale:$e};function Qf(t,e=!0,r=1){if(!io.isAutofitRunning){console.error("autofit.js:(elRectification): autofit has not been initialized yet");return}f1(),!t&&console.error(`autofit.js:elRectification bad selector: ${t}`),no=t,Kf=r,Jf=e;const n=Array.from(document.querySelectorAll(t));if(n.length==0){console.error(`autofit.js:elRectification found no element by selector: "${t}"`);return}for(const i of n){const a=$e==1?1:Number($e)*Number(r);Ri||(i.originalWidth=i.clientWidth,i.originalHeight=i.clientHeight),e?(i.style.width=`${i.originalWidth*a}px`,i.style.height=`${i.originalHeight*a}px`):(i.style.width=`${100*a}%`,i.style.height=`${100*a}%`),i.style.transform=`translateZ(0) scale(${1/Number($e)})`,i.style.transformOrigin="0 0"}Ri=!0}function f1(){if(no){Ri=!1;for(const t of Array.from(document.querySelectorAll(no)))t.style.width="",t.style.height="",t.style.transform=""}}function Cc(t,e,r,n,i,a="scale"){const o=document.documentElement.clientHeight,s=document.documentElement.clientWidth;$e=s/o<t/e?s/t:o/e,$e=Math.abs(1-$e)>i?$e:1,io.scale=+$e;const l=Math.round(o/Number($e)),u=Math.round(s/Number($e));r.style.height=`${l}px`,r.style.width=`${u}px`,a==="zoom"?r.style.zoom=`${$e}`:r.style.transform=`translateZ(0) scale(${$e})`;const c=document.querySelector("#ignoreStyle");c.innerHTML="";for(const f of n){const h=f;let d=h.el||h.dom;if(typeof h=="string"&&(d=h),!d||typeof d=="object"&&!Object.keys(d).length){console.error(`autofit: found invalid or empty selector/object: ${d}`);continue}const v=h.scale?h.scale:1/Number($e),g=v!=$e&&h.fontSize,p=v!=$e&&h.width,m=v!=$e&&h.height;c.innerHTML+=`
|
|
33
|
+
${d} {
|
|
34
|
+
transform: scale(${v})!important;
|
|
35
|
+
transform-origin: 0 0;
|
|
36
|
+
${p?`width: ${p}!important;`:""}
|
|
37
|
+
${m?`height: ${m}!important;`:""}
|
|
38
|
+
}`,g&&(c.innerHTML+=`
|
|
39
|
+
${d} div ,${d} span,${d} a,${d} * {
|
|
40
|
+
font-size: ${g}px;
|
|
41
|
+
}`)}}io.elRectification=Qf;function _5(){const t=Hm(),{config:e}=t,r=typeof{url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Ei&&Ei.tagName.toUpperCase()==="SCRIPT"&&Ei.src||new URL("visual-dashboard-scaffold.cjs.js",document.baseURI).href}<"u"&&!0||!1,n=typeof e.outer.width=="number"?e.outer.width:1920,i=typeof e.outer.height=="number"?e.outer.height:1080;return B.useLayoutEffect(()=>{document.documentElement.style.height=`${i}px`,document.body.style.height=`${i}px`,document.documentElement.style.width=`${n}px`,document.body.style.width=`${n}px`;const a=document.getElementById("root");return a&&(a.style.width="100%",a.style.height="100%"),io.init({dw:n,dh:i,el:"body",resize:!0}),()=>{io.off()}},[n,i]),C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{position:"fixed",inset:0,background:tr(e.globalBackground),zIndex:0}}),C.jsxs(jm,{config:e,children:[C.jsx($m,{config:e.header,editMode:e.editMode,onUpdateTitle:t.updateHeaderTitle,onAddPanel:t.addHeaderPanel,onRemovePanel:t.removeHeaderPanel,onUpdatePanel:t.updateHeaderPanel}),C.jsx(Xm,{config:e.middle,chartBlocks:e.chartBlocks,editMode:e.editMode,cols:e.cols,rowHeight:e.rowHeight,containerWidth:n-16,onAddBlock:t.addChartBlock,onRemoveBlock:t.removeChartBlock,onUpdateBlock:t.updateChartBlock,onLayoutChange:t.updateChartLayouts,onReorderBlocks:t.reorderChartBlocks}),C.jsx(Km,{config:e.footer,editMode:e.editMode,onAddItem:t.addBottomItem,onRemoveItem:t.removeBottomItem,onUpdateItem:t.updateBottomItem})]}),!r&&C.jsxs("div",{style:{position:"fixed",bottom:16,left:16,zIndex:9999,display:"flex",alignItems:"center",gap:8,padding:"6px 12px",borderRadius:20,background:e.editMode?"rgba(99,102,241,0.9)":"rgba(15,23,42,0.8)",border:"1px solid rgba(99,102,241,0.4)",backdropFilter:"blur(8px)",fontSize:12,color:"#fff",letterSpacing:.5,cursor:"pointer",userSelect:"none",transition:"all 0.3s",boxShadow:e.editMode?"0 0 20px rgba(99,102,241,0.4)":"none"},onClick:()=>t.setEditMode(!e.editMode),title:"点击切换编辑模式",children:[C.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:e.editMode?"#4ade80":"rgba(255,255,255,0.4)",boxShadow:e.editMode?"0 0 6px #4ade80":"none"}}),e.editMode?"编辑模式":"预览模式"]}),!r&&C.jsx(Jm,{store:t}),C.jsx("style",{children:`
|
|
42
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
43
|
+
body {
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
46
|
+
background: #0f172a;
|
|
47
|
+
}
|
|
48
|
+
@keyframes pulse {
|
|
49
|
+
0%, 100% { opacity: 1; }
|
|
50
|
+
50% { opacity: 0.5; }
|
|
51
|
+
}
|
|
52
|
+
.react-grid-placeholder,
|
|
53
|
+
.react-resizable-handle::after {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
`})]})}function h1(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=h1(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function b5(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=h1(t))&&(n&&(n+=" "),n+=e);return n}const x5=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},w5=(t,e)=>({classGroupId:t,validator:e}),d1=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),vl="-",Nm=[],S5="arbitrary..",T5=t=>{const e=D5(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return C5(o);const s=o.split(vl),l=s[0]===""&&s.length>1?1:0;return v1(s,l,e)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?x5(u,l):l:u||Nm}return r[o]||Nm}}},v1=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const i=t[e],a=r.nextPart.get(i);if(a){const u=v1(t,e+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=e===0?t.join(vl):t.slice(e).join(vl),l=o.length;for(let u=0;u<l;u++){const c=o[u];if(c.validator(s))return c.classGroupId}},C5=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?S5+n:void 0})(),D5=t=>{const{theme:e,classGroups:r}=t;return E5(r,e)},E5=(t,e)=>{const r=d1();for(const n in t){const i=t[n];wd(i,r,n,e)}return r},wd=(t,e,r,n)=>{const i=t.length;for(let a=0;a<i;a++){const o=t[a];k5(o,e,r,n)}},k5=(t,e,r,n)=>{if(typeof t=="string"){M5(t,e,r);return}if(typeof t=="function"){A5(t,e,r,n);return}R5(t,e,r,n)},M5=(t,e,r)=>{const n=t===""?e:p1(e,t);n.classGroupId=r},A5=(t,e,r,n)=>{if(L5(t)){wd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(w5(r,t))},R5=(t,e,r,n)=>{const i=Object.entries(t),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];wd(l,p1(e,s),r,n)}},p1=(t,e)=>{let r=t;const n=e.split(vl),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=d1(),r.nextPart.set(o,s)),r=s}return r},L5=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,I5=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},eh="!",Bm=":",P5=[],zm=(t,e,r,n,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),O5=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=i=>{const a=[];let o=0,s=0,l=0,u;const c=i.length;for(let g=0;g<c;g++){const p=i[g];if(o===0&&s===0){if(p===Bm){a.push(i.slice(l,g)),l=g+1;continue}if(p==="/"){u=g;continue}}p==="["?o++:p==="]"?o--:p==="("?s++:p===")"&&s--}const f=a.length===0?i:i.slice(l);let h=f,d=!1;f.endsWith(eh)?(h=f.slice(0,-1),d=!0):f.startsWith(eh)&&(h=f.slice(1),d=!0);const v=u&&u>l?u-l:void 0;return zm(a,d,h,v)};if(e){const i=e+Bm,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):zm(P5,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},N5=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",l=e.has(o);s||l?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},B5=t=>({cache:I5(t.cacheSize),parseClassName:O5(t),sortModifiers:N5(t),...T5(t)}),z5=/\s+/,F5=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=e,o=[],s=t.trim().split(z5);let l="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:f,modifiers:h,hasImportantModifier:d,baseClassName:v,maybePostfixModifierPosition:g}=r(c);if(f){l=c+(l.length>0?" "+l:l);continue}let p=!!g,m=n(p?v.substring(0,g):v);if(!m){if(!p){l=c+(l.length>0?" "+l:l);continue}if(m=n(v),!m){l=c+(l.length>0?" "+l:l);continue}p=!1}const y=h.length===0?"":h.length===1?h[0]:a(h).join(":"),_=d?y+eh:y,b=_+m;if(o.indexOf(b)>-1)continue;o.push(b);const S=i(m,p);for(let x=0;x<S.length;++x){const w=S[x];o.push(_+w)}l=c+(l.length>0?" "+l:l)}return l},V5=(...t)=>{let e=0,r,n,i="";for(;e<t.length;)(r=t[e++])&&(n=g1(r))&&(i&&(i+=" "),i+=n);return i},g1=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=g1(t[n]))&&(r&&(r+=" "),r+=e);return r},H5=(t,...e)=>{let r,n,i,a;const o=l=>{const u=e.reduce((c,f)=>f(c),t());return r=B5(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const c=F5(l,r);return i(l,c),c};return a=o,(...l)=>a(V5(...l))},j5=[],Ne=t=>{const e=r=>r[t]||j5;return e.isThemeGetter=!0,e},m1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W5=/^\d+\/\d+$/,G5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U5=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Y5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yi=t=>W5.test(t),ue=t=>!!t&&!Number.isNaN(Number(t)),Br=t=>!!t&&Number.isInteger(Number(t)),Dc=t=>t.endsWith("%")&&ue(t.slice(0,-1)),mr=t=>G5.test(t),q5=()=>!0,Z5=t=>U5.test(t)&&!$5.test(t),_1=()=>!1,K5=t=>Y5.test(t),J5=t=>X5.test(t),Q5=t=>!$(t)&&!Y(t),eP=t=>Ki(t,w1,_1),$=t=>m1.test(t),kn=t=>Ki(t,S1,Z5),Ec=t=>Ki(t,aP,ue),Fm=t=>Ki(t,b1,_1),tP=t=>Ki(t,x1,J5),ls=t=>Ki(t,T1,K5),Y=t=>y1.test(t),ya=t=>Ji(t,S1),rP=t=>Ji(t,oP),Vm=t=>Ji(t,b1),nP=t=>Ji(t,w1),iP=t=>Ji(t,x1),us=t=>Ji(t,T1,!0),Ki=(t,e,r)=>{const n=m1.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Ji=(t,e,r=!1)=>{const n=y1.exec(t);return n?n[1]?e(n[1]):r:!1},b1=t=>t==="position"||t==="percentage",x1=t=>t==="image"||t==="url",w1=t=>t==="length"||t==="size"||t==="bg-size",S1=t=>t==="length",aP=t=>t==="number",oP=t=>t==="family-name",T1=t=>t==="shadow",sP=()=>{const t=Ne("color"),e=Ne("font"),r=Ne("text"),n=Ne("font-weight"),i=Ne("tracking"),a=Ne("leading"),o=Ne("breakpoint"),s=Ne("container"),l=Ne("spacing"),u=Ne("radius"),c=Ne("shadow"),f=Ne("inset-shadow"),h=Ne("text-shadow"),d=Ne("drop-shadow"),v=Ne("blur"),g=Ne("perspective"),p=Ne("aspect"),m=Ne("ease"),y=Ne("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...b(),Y,$],x=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],T=()=>[Y,$,l],D=()=>[yi,"full","auto",...T()],E=()=>[Br,"none","subgrid",Y,$],k=()=>["auto",{span:["full",Br,Y,$]},Br,Y,$],A=()=>[Br,"auto",Y,$],R=()=>["auto","min","max","fr",Y,$],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...T()],F=()=>[yi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],P=()=>[t,Y,$],G=()=>[...b(),Vm,Fm,{position:[Y,$]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",nP,eP,{size:[Y,$]}],j=()=>[Dc,ya,kn],H=()=>["","none","full",u,Y,$],K=()=>["",ue,ya,kn],fe=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[ue,Dc,Vm,Fm],Ze=()=>["","none",v,Y,$],ze=()=>["none",ue,Y,$],Me=()=>["none",ue,Y,$],ae=()=>[ue,Y,$],le=()=>[yi,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[q5],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[Q5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",ue],text:[mr],"text-shadow":[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yi,$,Y,p]}],container:["container"],columns:[{columns:[ue,$,Y,s]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Br,"auto",Y,$]}],basis:[{basis:[yi,"full","auto",s,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,yi,"auto","initial","none",$]}],grow:[{grow:["",ue,Y,$]}],shrink:[{shrink:["",ue,Y,$]}],order:[{order:[Br,"first","last","none",Y,$]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[s,"screen",...F()]}],"min-w":[{"min-w":[s,"screen","none",...F()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,ya,kn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Y,Ec]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dc,$]}],"font-family":[{font:[rP,$,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Y,$]}],"line-clamp":[{"line-clamp":[ue,"none",Y,Ec]}],leading:[{leading:[a,...T()]}],"list-image":[{"list-image":["none",Y,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",Y,kn]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[ue,"auto",Y,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Br,Y,$],radial:["",Y,$],conic:[Br,Y,$]},iP,tP]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,Y,$]}],"outline-w":[{outline:["",ue,ya,kn]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",c,us,ls]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",f,us,ls]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[ue,kn]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",h,us,ls]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[ue,Y,$]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Y,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,$]}],filter:[{filter:["","none",Y,$]}],blur:[{blur:Ze()}],brightness:[{brightness:[ue,Y,$]}],contrast:[{contrast:[ue,Y,$]}],"drop-shadow":[{"drop-shadow":["","none",d,us,ls]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",ue,Y,$]}],"hue-rotate":[{"hue-rotate":[ue,Y,$]}],invert:[{invert:["",ue,Y,$]}],saturate:[{saturate:[ue,Y,$]}],sepia:[{sepia:["",ue,Y,$]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,$]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[ue,Y,$]}],"backdrop-contrast":[{"backdrop-contrast":[ue,Y,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,Y,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,Y,$]}],"backdrop-invert":[{"backdrop-invert":["",ue,Y,$]}],"backdrop-opacity":[{"backdrop-opacity":[ue,Y,$]}],"backdrop-saturate":[{"backdrop-saturate":[ue,Y,$]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,Y,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",Y,$]}],ease:[{ease:["linear","initial",m,Y,$]}],delay:[{delay:[ue,Y,$]}],animate:[{animate:["none",y,Y,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Y,$]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[Y,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,$]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[ue,ya,kn,Ec]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lP=H5(sP);function uP(...t){return lP(b5(t))}exports.App=_5;exports.BUILTIN_EMOJIS=Zm;exports.BUILTIN_ICONS=qm;exports.BackgroundPicker=_r;exports.ChartBlock=Ym;exports.FooterSection=Km;exports.HeaderSection=$m;exports.MiddleSection=Xm;exports.OuterContainer=jm;exports.SampleMonitor=y5;exports.SettingsPanel=Jm;exports.cn=uP;exports.defaultConfig=Ds;exports.fetchRealtimeData=c1;exports.getBlockComponent=ks;exports.getRegisteredBlockIds=dx;exports.registerBlock=hx;exports.resolveBackground=tr;exports.useConfigStore=Hm;
|
|
57
|
+
//# sourceMappingURL=visual-dashboard-scaffold.cjs.js.map
|