vue-pure-admin/dist/static/js/index-c61a73ff.js
2023-05-11 20:37:21 +08:00

84 lines
1.2 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var ya=Object.defineProperty;var Sa=(r,t,o)=>t in r?ya(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;var ir=(r,t,o)=>(Sa(r,typeof t!="symbol"?t+"":t,o),o);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const v of l)if(v.type==="childList")for(const x of v.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&s(x)}).observe(document,{childList:!0,subtree:!0});function o(l){const v={};return l.integrity&&(v.integrity=l.integrity),l.referrerPolicy&&(v.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?v.credentials="include":l.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function s(l){if(l.ep)return;l.ep=!0;const v=o(l);fetch(l.href,v)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function getAugmentedNamespace(r){if(r.__esModule)return r;var t=r.default;if(typeof t=="function"){var o=function s(){if(this instanceof s){var l=[null];l.push.apply(l,arguments);var v=Function.bind.apply(t,l);return new v}return t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var l=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,l.get?l:{enumerable:!0,get:function(){return r[s]}})}),o}var zhCn={};(function(r){Object.defineProperty(r,"__esModule",{value:!0});var t={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};r.default=t})(zhCn);const zhLocale=getDefaultExportFromCjs(zhCn);var en={};(function(r){Object.defineProperty(r,"__esModule",{value:!0});var t={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};r.default=t})(en);const enLocale=getDefaultExportFromCjs(en);var ot=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,$t$1=(r,t)=>{for(var o in t)ot(r,o,{get:t[o],enumerable:!0})},rt$1=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Rt(t))!Dt.call(r,l)&&l!==o&&ot(r,l,{get:()=>t[l],enumerable:!(s=kt(t,l))||s.enumerable});return r},G=(r,t,o)=>(rt$1(r,t,"default"),o&&rt$1(o,t,"default"));function it(r){let t=r.split(","),o=t[0].match(/:(.*?);/)[1],s=window.atob(t[1]),l=s.length,v=new Uint8Array(l);for(;l--;)v[l]=s.charCodeAt(l);return new Blob([v],{type:o})}function at(r,t,o){return new Promise((s,l)=>{let v=document.createElement("CANVAS"),x=v.getContext("2d"),A=new Image;A.crossOrigin="",A.onload=function(){if(!v||!x)return l();v.height=A.height,v.width=A.width,x.drawImage(A,0,0);let w=v.toDataURL(t||"image/png",o);v=null,s(w)},A.src=r})}var It=Object.prototype.toString;function L$1(r,t){return It.call(r)===`[object ${t}]`}function N(r){return r!==null&&L$1(r,"Object")}function k(r){return typeof r<"u"}function lt$1(r){return!k(r)}function ft(r){return r===null}function Pt(r){return ft(r)||lt$1(r)}function Ut(r){return J$1(r)||S(r)?r.length===0:r instanceof Map||r instanceof Set?r.size===0:N(r)?Object.keys(r).length===0:!1}function P$1(r){return!!(Ut(r)||Pt(r))}function pt(r){return L$1(r,"Number")}function S(r){return L$1(r,"String")}function ut(r){return typeof r=="function"}function Ae(r){return L$1(r,"Boolean")}function J$1(r){return r&&Array.isArray(r)}var K$1=typeof window>"u",Q=!K$1;function dt(r){let t="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(t,"ig").test(r)}function Ue(r){return/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/.test(r)}function Be(r){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(r)}var j$2=(r,t)=>!!(r!=null&&r.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))),qe=(r,t,o)=>{j$2(r,t)||(r.className+=" "+t),o&&!j$2(r,o)&&(r.className+=" "+o)},Xe=(r,t,o)=>{if(j$2(r,t)){let s=new RegExp("(\\s|^)"+t+"(\\s|$)");r.className=r.className.replace(s," ").trim()}if(o&&j$2(r,o)){let s=new RegExp("(\\s|^)"+o+"(\\s|$)");r.className=r.className.replace(s," ").trim()}},Ve=(r,t,o)=>{let s=o||document.body,{className:l}=s,v=l.replace(t,"").trim().split(/\s+/).join(" ");s.className=r?`${v} ${t}`:v},Bt=Object.prototype.toString;function Nt(r,t){return r&&r.hasOwnProperty?r.hasOwnProperty(t):!1}function jt(r,t,o){if(r)if(r.forEach)r.forEach(t,o);else for(let s=0,l=r.length;s<l;s++)t.call(o,r[s],s,r)}function Ht(r,t,o){if(r)for(let s in r)Nt(r,s)&&t.call(o,r[s],s,r)}function tt(r,t){let o=r.__proto__.constructor;return t?new o(t):new o}function H$1(r,t){return t?et(r,t):r}function et(r,t){if(r)switch(Bt.call(r)){case"[object Object]":{let o=Object.create(r.__proto__);return Ht(r,function(s,l){o[l]=H$1(s,t)}),o}case"[object Date]":case"[object RegExp]":return tt(r,r.valueOf());case"[object Array]":case"[object Arguments]":{let o=[];return jt(r,function(s){o.push(H$1(s,t))}),o}case"[object Set]":{let o=tt(r);return o.forEach(function(s){o.add(H$1(s,t))}),o}case"[object Map]":{let o=tt(r);return o.forEach(function(s){o.set(H$1(s,t))}),o}}return r}function Je(r,t){return r&&et(r,t)}function Ke(r){return r&&et(r,!0)}var tn=r=>{let t=(r==null?void 0:r.type)??"rgb",o=(r==null?void 0:r.num)??0;if(o===0)switch(t){case"rgb":return window.crypto.getRandomValues(new Uint8Array(3)).toString();case"hex":return`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`;case"hsl":return[360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString()}else switch(t){case"rgb":let s=[];for(let x=0;x<o;x++)s.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return s;case"hex":let l=[];for(let x=0;x<o;x++)l.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return l;case"hsl":let v=[];for(let x=0;x<o;x++)v.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return v}},D$1=(r=20)=>new Promise(t=>setTimeout(t,r)),Et=(r,t=200,o=!1)=>{let s,l=t,v;return function(){s&&clearTimeout(s),o?(s||r.call(v,...arguments),s=setTimeout(()=>s=null,l)):s=setTimeout(()=>r.call(v,...arguments),l)}},Sn=(r,t=1e3)=>{let o;return function(){o||(o=setTimeout(()=>{r.call(void 0,...arguments),o=null},t))}},Ln=()=>{let r=navigator.userAgent.toLowerCase(),t=r.match(/midp/i)=="midp",o=r.match(/ucweb/i)=="ucweb",s=r.match(/android/i)=="android",l=r.match(/iphone os/i)=="iphone os",v=r.match(/windows ce/i)=="windows ce",x=r.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",A=r.match(/windows mobile/i)=="windows mobile";return t||o||s||l||v||x||A},Tt=(r,t="_blank")=>{let o=document.createElement("a");o.setAttribute("href",r),o.setAttribute("target",t),o.setAttribute("rel","noreferrer noopener"),o.setAttribute("id","external");let s=document.getElementById("external");s&&document.body.removeChild(s),document.body.appendChild(o),o.click(),o.remove()};function In(r,t,o,s){at(r).then(l=>{zt(l,t,o,s)})}function zt(r,t,o,s){let l=it(r);_t(l,t,o,s)}function _t(r,t,o,s){let l=typeof s<"u"?[s,r]:[r],v=new Blob(l,{type:o||"application/octet-stream"}),x=window.URL.createObjectURL(v),A=document.createElement("a");A.style.display="none",A.href=x,A.setAttribute("download",t),typeof A.download>"u"&&A.setAttribute("target","_blank"),document.body.appendChild(A),A.click(),document.body.removeChild(A),window.URL.revokeObjectURL(x)}function Pn(r,t,o="_self"){let s=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,l=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return console.error("Your browser does not support download!"),!1;if(s||l){let v=document.createElement("a");if(v.href=r,v.target=o,v.download!==void 0&&(v.download=t||r.substring(r.lastIndexOf("/")+1,r.length)),document.createEvent){let x=document.createEvent("MouseEvents");return x.initEvent("click",!0,!0),v.dispatchEvent(x),!0}}return r.indexOf("?")===-1&&(r+="?download"),Tt(r,o),!0}function Wt(r,t){if(!r||!t||r.length!==t.length)return!1;for(let o of Object.keys(r))if(!Mt(r[o],t[o]))return!1;return!0}function qt(r,t){if(!r||!t)return!1;let{length:o}=r;if(o!==t.length)return!1;for(let s=0;s<o;s++)if(!Mt(r[s],t[s]))return!1;return!0}function Mt(r,t){let o=Object.prototype.toString.call(r);return o!==Object.prototype.toString.call(t)?!1:o==="[object Object]"?Wt(r,t):o==="[object Array]"?qt(r,t):o==="[object Function]"?r===t?!0:r.toString()===t.toString():r===t}var Hn=(r,t)=>{if(r.install=o=>{for(let s of[r,...Object.values(t??{})])o.component(s.name,s)},t)for(let[o,s]of Object.entries(t))r[o]=s;return r},U=class{constructor(r){ir(this,"storage");this.storage=r}setItem(r,t){P$1(this.storage)||this.storage.setItem(r,JSON.stringify(t))}getItem(r){if(!P$1(this.storage))return JSON.parse(this.storage.getItem(r))}removeItem(r){P$1(this.storage)||this.storage.removeItem(r)}clear(){P$1(this.storage)||this.storage.clear()}},q=class extends U{constructor(r){super(r)}},Kn=()=>Q?new q(window.localStorage):new q(""),Qn=()=>Q?new U(window.sessionStorage):new U("");function Xt(r,t){return S(t)?r.substring(0,r.indexOf(t)):""}function fr(r){if(!dt(r))return console.error(`${r}不符合超链接规范`),{};let t=r.indexOf("?"),o=r.slice(t+1).split("&"),s={};for(let l=0;l<o.length;l++)s[o[l].split("=")[0]]=o[l].split("=")[1];return s}function br(r,t){return r.every(o=>t.some(s=>s===o))}var yr=(...r)=>[...r].reduce((t,o)=>t.filter(s=>o.includes(s)));function wr(r,t){let o=[];for(let s of r)s[t]&&o.push(s[t]);return Array.from(new Set(o))}var i={};$t$1(i,{Vue:()=>Vue});G(i,Vue);var ee=["class","style"],ne=/^on[A-Z]/;function re(r){return Object.keys(r).map(t=>[t,r[t]])}function vr(r={}){let t=(0,i.getCurrentInstance)();if(!t)return{};let{excludeListeners:o=!1,excludeKeys:s=[]}=r,l=(0,i.shallowRef)({}),v=s.concat(ee);return t.attrs=(0,i.reactive)(t.attrs),(0,i.watchEffect)(()=>{let x=re(t.attrs).reduce((A,[w,E])=>(!v.includes(w)&&!(o&&ne.test(w))&&(A[w]=E),A),{});l.value=x}),l}function O(r){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)(r)}var Br=()=>{let r=(0,i.ref)(!1),t,o=()=>{r.value=document.documentElement.classList.contains("dark")};return O(()=>{t.takeRecords(),t.disconnect()}),(0,i.onBeforeMount)(()=>{o(),t=new MutationObserver(o),t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:r}};function Ct(){let{appContext:{config:{globalProperties:r}}}=(0,i.getCurrentInstance)();return r}var Zr=(r,t)=>{let o=(t==null?void 0:t.theme)??(0,i.ref)("default"),s=(t==null?void 0:t.tooltipId)??"tooltipElement",l=Ct().$echarts,v=null,x=(0,i.ref)({}),A=(0,i.ref)(),w=(0,i.computed)(()=>o.value!=="dark"?x.value:{backgroundColor:"transparent",...x.value});function E(ve){let xe=(0,i.unref)(r);!xe||!(0,i.unref)(xe)||(v=l.init(xe,ve))}function C(ve,...xe){var _e;if(x.value=ve,A.value=xe,((_e=(0,i.unref)(r))==null?void 0:_e.offsetHeight)===0){D$1().then(()=>C((0,i.unref)(w),...xe));return}(0,i.nextTick)(()=>{D$1().then(()=>{!v&&E(o.value),(ve.clear??!0)&&R(),v==null||v.setOption((0,i.unref)(w)),xe&&xe.map(Te=>{(Te==null?void 0:Te.type)!=="zrender"&&typeof(Te==null?void 0:Te.callback)=="function"&&(v==null||v.on(Te==null?void 0:Te.name,Te!=null&&Te.query?Te==null?void 0:Te.query:"",Ee=>{Te==null||Te.callback(Ee)})),(Te==null?void 0:Te.type)==="zrender"&&typeof(Te==null?void 0:Te.callback)=="function"&&(v==null||v.getZr().on(Te==null?void 0:Te.name,Ee=>{Ee.target||(Te==null||Te.callback(Ee))}))}),ve!=null&&ve.addTooltip&&oe(ve.addTooltip)})})}function R(){v&&v.clear()}function $(){v.resize()}function V(ve){let xe=(ve==null?void 0:ve.type)??"default",_e=(ve==null?void 0:ve.opts)??{};v.showLoading(xe,_e)}function z(){v.hideLoading()}function F(ve){v.appendData(ve)}function B(){return v.getWidth()}function W(){return v.getHeight()}function Y(){return v||E(o.value),v}function Z(){return v.getDom()}function X(){return v.getOption()}function ae(ve){return v.getDataURL(ve)}function ie(ve){return v.getConnectedDataURL(ve)}function oe(ve){if(!ve)return;let xe=document.querySelector("html");if(!document.getElementById(s)){let Ee=document.createElement("div");Ee.setAttribute("id",s),Ee.style.display="block",xe.appendChild(Ee)}let _e=document.querySelector(`#${s}`),Te=Ee=>{if((Ee==null?void 0:Ee.targetType)!=="axisLabel")return;let Ce=`
padding: 5px;
font-size: 12px;
display: inline;
border-radius: 4px;
position: absolute;
background-color: #303133;
z-index: 99999;color: #fff;
box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px;
`;_e.style.cssText=Ce,_e.innerHTML=Ee==null?void 0:Ee.value,xe.onmousemove=Pe=>{let Me=Pe.pageX-10,Fe=Pe.pageY+15;_e.style.top=Fe+"px",_e.style.left=Me+"px"}};v==null||v.on("mouseover",Ee=>{(ve==="x"&&Ee.componentType=="xAxis"||ve==="y"&&Ee.componentType=="yAxis"||ve.toString()==="true"&&Ee.componentType.includes("Axis"))&&Te(Ee)}),v==null||v.on("mouseout",()=>{xe.onmousemove=null,_e.style.cssText="display:none"})}(0,i.watch)(()=>o.value,ve=>{v&&(v.dispose(),E(ve),C(x.value,...A.value))});function le(){var ve;!v||D$1(((ve=x.value)==null?void 0:ve.delay)??300).then(()=>{$()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",le)})}),O(()=>{var ve;window.removeEventListener("resize",le),v&&(v.dispose(),v=null,(ve=document.querySelector(`#${s}`))==null||ve.remove())}),{echarts:l,clear:R,resize:$,getDom:Z,getWidth:B,getOption:X,getHeight:W,addTooltip:oe,getDataURL:ae,setOptions:C,appendData:F,getInstance:Y,showLoading:V,hideLoading:z,getConnectedDataURL:ie}},se=Symbol("watermark-dom"),oo=(r=(0,i.ref)(document.body))=>{let t=se.toString(),o=(0,i.shallowRef)(),s=()=>{let R=(0,i.unref)(o);o.value=void 0;let $=(0,i.unref)(r);!$||R&&$.removeChild(R)};function l(R,$){let V=document.createElement("canvas"),z=($==null?void 0:$.width)??250,F=($==null?void 0:$.height)??100;Object.assign(V,{width:z,height:F});let B=V.getContext("2d");if(B){if(B.rotate((($==null?void 0:$.rotate)??-10*Math.PI)/120),B.font=($==null?void 0:$.font)??"15px Reggae One",($==null?void 0:$.gradient)&&J$1($==null?void 0:$.gradient)){let W=B.createLinearGradient(0,0,z,0);$==null||$.gradient.forEach(Y=>{W.addColorStop(Y.value,Y.color)}),B.fillStyle=W}else B.fillStyle=($==null?void 0:$.fillStyle)??"rgba(0, 0, 0, 0.15)";if(B.textAlign="left",B.textBaseline="middle",$!=null&&$.globalAlpha&&(B.globalAlpha=$.globalAlpha),$==null?void 0:$.shadowConfig){let{shadowConfig:W}=$;B.shadowBlur=W[0],B.shadowColor=(W==null?void 0:W[1])??"#000000",B.shadowOffsetX=(W==null?void 0:W[2])??0,B.shadowOffsetY=(W==null?void 0:W[3])??0}B.fillText(R,z/(($==null?void 0:$.fillTextWidth)??20),F/(($==null?void 0:$.fillTextHeight)??2))}return V.toDataURL("image/png")}function v(R={}){let $=(0,i.unref)(o);!$||(k(R.width)&&($.style.width=`${R.width}px`),k(R.height)&&($.style.height=`${R.height}px`),k(R.str)&&($.style.background=`url(${l(R.str,R.attr)}) left top repeat`))}let x=Et(()=>{let R=(0,i.unref)(r);if(!R)return;let{clientHeight:$,clientWidth:V}=R;v({height:$,width:V})}),A=(R,$)=>{var W;if((0,i.unref)(o))return v({str:R,attr:$}),t;let V=document.createElement("div");o.value=V,V.id=t,V.style.pointerEvents="none",V.style.top="0px",V.style.left="0px",V.style.position="absolute",V.style.zIndex=($==null?void 0:$.zIndex)??"100000";let z=(0,i.unref)(r);if(!z)return t;let{clientHeight:F,clientWidth:B}=z;return v({str:R,width:B,height:F,attr:$}),(W=z==null?void 0:z.style)!=null&&W.position||(z.style.position="relative"),z.appendChild(V),t};function w(R,{str:$,attr:V}){R[0].removedNodes[0]&&R[0].removedNodes[0].id===t&&(o.value=void 0,A($,V))}function E(R,$){let V={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(z=>w(z,{str:R,attr:$})).observe((0,i.unref)(r),V)}function C(R,$){A(R,$),window.addEventListener("resize",x),$!=null&&$.forever&&E(R,$),(0,i.getCurrentInstance)()&&s&&s()}return O(()=>{window.removeEventListener("resize",x)}),{clear:s,setWatermark:C}};const _hoisted_1$1={key:1},_sfc_main$1=Vue.defineComponent({__name:"index",setup(r){const t=Vue.computed(()=>l=>{var v;return((v=l==null?void 0:l.footerButtons)==null?void 0:v.length)>0?l.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:x,index:A}})=>{const w=()=>closeDialog(x,A,{command:"cancel"});x!=null&&x.beforeCancel&&ut(x==null?void 0:x.beforeCancel)?x.beforeCancel(w,{options:x,index:A}):w()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:x,index:A}})=>{const w=()=>closeDialog(x,A,{command:"sure"});x!=null&&x.beforeSure&&ut(x==null?void 0:x.beforeSure)?x.beforeSure(w,{options:x,index:A}):w()}}]});function o(l,v,x){if(v!=null&&v[l]&&ut(v==null?void 0:v[l]))return v==null?void 0:v[l]({options:v,index:x})}function s(l,v,x={command:"close"}){closeDialog(l,v,x),o("close",l,v)}return(l,v)=>{const x=Vue.resolveComponent("el-button"),A=Vue.resolveComponent("el-dialog");return Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(dialogStore),(w,E)=>(Vue.openBlock(),Vue.createBlock(A,Vue.mergeProps({key:E},w,{modelValue:w.visible,"onUpdate:modelValue":C=>w.visible=C,onOpened:C=>o("open",w,E),onClose:C=>s(w,E),onOpenAutoFocus:C=>o("openAutoFocus",w,E),onCloseAutoFocus:C=>o("closeAutoFocus",w,E)}),Vue.createSlots({default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(w.contentRenderer({options:w,index:E})),Vue.mergeProps(w==null?void 0:w.props,{onClose:C=>s(w,E,C)}),null,16,["onClose"]))]),_:2},[w!=null&&w.headerRenderer?{name:"header",fn:Vue.withCtx(({close:C,titleId:R,titleClass:$})=>[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(w==null?void 0:w.headerRenderer({close:C,titleId:R,titleClass:$}))))]),key:"0"}:void 0,w!=null&&w.hideFooter?void 0:{name:"footer",fn:Vue.withCtx(()=>[w!=null&&w.footerRenderer?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(w==null?void 0:w.footerRenderer({options:w,index:E})),{key:0})):(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$1,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.value(w),(C,R)=>(Vue.openBlock(),Vue.createBlock(x,Vue.mergeProps({key:R},C,{onClick:$=>C.btnClick({dialog:{options:w,index:E},button:{btn:C,index:R}})}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(C==null?void 0:C.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","onOpened","onClose","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose$1(r){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(r),!0):!1}function toValue(r){return typeof r=="function"?r():VueDemi.unref(r)}const isClient$1=typeof window<"u",noop$2=()=>{},isIOS=getIsIOS();function getIsIOS(){var r;return isClient$1&&((r=window==null?void 0:window.navigator)==null?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(r,t){function o(...s){return new Promise((l,v)=>{Promise.resolve(r(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(l).catch(v)})}return o}function debounceFilter(r,t={}){let o,s,l=noop$2;const v=A=>{clearTimeout(A),l(),l=noop$2};return A=>{const w=toValue(r),E=toValue(t.maxWait);return o&&v(o),w<=0||E!==void 0&&E<=0?(s&&(v(s),s=null),Promise.resolve(A())):new Promise((C,R)=>{l=t.rejectOnCancel?R:C,E&&!s&&(s=setTimeout(()=>{o&&v(o),s=null,C(A())},E)),o=setTimeout(()=>{s&&v(s),s=null,C(A())},w)})}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function toRef(...r){if(r.length!==1)return VueDemi.toRef(...r);const t=r[0];return typeof t=="function"?VueDemi.readonly(VueDemi.customRef(()=>({get:t,set:noop$2}))):VueDemi.ref(t)}function useDebounceFn(r,t=200,o={}){return createFilterWrapper(debounceFilter(t,o),r)}function tryOnMounted(r,t=!0){VueDemi.getCurrentInstance()?VueDemi.onMounted(r):t?r():VueDemi.nextTick(r)}function tryOnUnmounted$1(r){VueDemi.getCurrentInstance()&&VueDemi.onUnmounted(r)}function useIntervalFn(r,t=1e3,o={}){const{immediate:s=!0,immediateCallback:l=!1}=o;let v=null;const x=VueDemi.ref(!1);function A(){v&&(clearInterval(v),v=null)}function w(){x.value=!1,A()}function E(){const C=toValue(t);C<=0||(x.value=!0,l&&r(),A(),v=setInterval(r,C))}if(s&&isClient$1&&E(),VueDemi.isRef(t)||typeof t=="function"){const C=VueDemi.watch(t,()=>{x.value&&isClient$1&&E()});tryOnScopeDispose$1(C)}return tryOnScopeDispose$1(w),{isActive:x,pause:w,resume:E}}function useTimeoutFn(r,t,o={}){const{immediate:s=!0}=o,l=VueDemi.ref(!1);let v=null;function x(){v&&(clearTimeout(v),v=null)}function A(){l.value=!1,x()}function w(...E){x(),l.value=!0,v=setTimeout(()=>{l.value=!1,v=null,r(...E)},toValue(t))}return s&&(l.value=!0,isClient$1&&w()),tryOnScopeDispose$1(A),{isPending:VueDemi.readonly(l),start:w,stop:A}}const dialogStore=Vue.ref([]),addDialog=r=>{const t=()=>dialogStore.value.push(Object.assign(r,{visible:!0}));r!=null&&r.openDelay?useTimeoutFn(()=>{t()},r.openDelay):t()},closeDialog=(r,t,o)=>{dialogStore.value.splice(t,1),r.closeCallBack&&r.closeCallBack({options:r,index:t,args:o})},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Hn(_sfc_main$1),_sfc_main=Vue.defineComponent({name:"app",components:{[ElementPlus.ElConfigProvider.name]:ElementPlus.ElConfigProvider,ReDialog},computed:{currentLocale(){var r;return((r=this.$storage.locale)==null?void 0:r.locale)==="zh"?zhLocale:enLocale}}}),_export_sfc=(r,t)=>{const o=r.__vccOpts||r;for(const[s,l]of t)o[s]=l;return o};function _sfc_render(r,t,o,s,l,v){const x=Vue.resolveComponent("router-view"),A=Vue.resolveComponent("ReDialog"),w=Vue.resolveComponent("el-config-provider");return Vue.openBlock(),Vue.createBlock(w,{locale:r.currentLocale},{default:Vue.withCtx(()=>[Vue.createVNode(x),Vue.createVNode(A)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function(r){return"/vue-pure-admin/"+r},seen={},__vitePreload=function(t,o,s){if(!o||o.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(o.map(v=>{if(v=assetsURL(v),v in seen)return;seen[v]=!0;const x=v.endsWith(".css"),A=x?'[rel="stylesheet"]':"";if(!!s)for(let C=l.length-1;C>=0;C--){const R=l[C];if(R.href===v&&(!x||R.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${A}`))return;const E=document.createElement("link");if(E.rel=x?"stylesheet":scriptRel,x||(E.as="script",E.crossOrigin=""),E.href=v,document.head.appendChild(E),x)return new Promise((C,R)=>{E.addEventListener("load",C),E.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${v}`)))})})).then(()=>t())},resource$1={buttons:{hsLoginOut:r=>{const{normalize:t}=r;return t(["LoginOut"])},hsfullscreen:r=>{const{normalize:t}=r;return t(["FullScreen"])},hsexitfullscreen:r=>{const{normalize:t}=r;return t(["ExitFullscreen"])},hsrefreshRoute:r=>{const{normalize:t}=r;return t(["RefreshRoute"])},hslogin:r=>{const{normalize:t}=r;return t(["Login"])},hsadd:r=>{const{normalize:t}=r;return t(["Add"])},hsmark:r=>{const{normalize:t}=r;return t(["Mark/Cancel"])},hssave:r=>{const{normalize:t}=r;return t(["Save"])},hssearch:r=>{const{normalize:t}=r;return t(["Search"])},hsexpendAll:r=>{const{normalize:t}=r;return t(["Expand All"])},hscollapseAll:r=>{const{normalize:t}=r;return t(["Collapse All"])},hssystemSet:r=>{const{normalize:t}=r;return t(["Open ProjectConfig"])},hsdelete:r=>{const{normalize:t}=r;return t(["Delete"])},hsreload:r=>{const{normalize:t}=r;return t(["Reload"])},hscloseCurrentTab:r=>{const{normalize:t}=r;return t(["Close CurrentTab"])},hscloseLeftTabs:r=>{const{normalize:t}=r;return t(["Close LeftTabs"])},hscloseRightTabs:r=>{const{normalize:t}=r;return t(["Close RightTabs"])},hscloseOtherTabs:r=>{const{normalize:t}=r;return t(["Close OtherTabs"])},hscloseAllTabs:r=>{const{normalize:t}=r;return t(["Close AllTabs"])},hswholeFullScreen:r=>{const{normalize:t}=r;return t(["FullScreen"])},hswholeExitFullScreen:r=>{const{normalize:t}=r;return t(["ExitFull"])},hscontentFullScreen:r=>{const{normalize:t}=r;return t(["Content FullScreen"])},hscontentExitFullScreen:r=>{const{normalize:t}=r;return t(["Content ExitFullScreen"])}},menus:{hshome:r=>{const{normalize:t}=r;return t(["Home"])},hslogin:r=>{const{normalize:t}=r;return t(["Login"])},hsempty:r=>{const{normalize:t}=r;return t(["Empty Page"])},hssysManagement:r=>{const{normalize:t}=r;return t(["System Manage"])},hsUser:r=>{const{normalize:t}=r;return t(["User Manage"])},hsRole:r=>{const{normalize:t}=r;return t(["Role Manage"])},hsDept:r=>{const{normalize:t}=r;return t(["Dept Manage"])},hseditor:r=>{const{normalize:t}=r;return t(["Editor"])},hsabnormal:r=>{const{normalize:t}=r;return t(["Abnormal Page"])},hsfourZeroFour:r=>{const{normalize:t}=r;return t(["404"])},hsfourZeroOne:r=>{const{normalize:t}=r;return t(["403"])},hsFive:r=>{const{normalize:t}=r;return t(["500"])},hscomponents:r=>{const{normalize:t}=r;return t(["Components"])},hsdialog:r=>{const{normalize:t}=r;return t(["Dialog Components"])},hsmessage:r=>{const{normalize:t}=r;return t(["Message Tips Components"])},hsvideo:r=>{const{normalize:t}=r;return t(["Video Components"])},hsmap:r=>{const{normalize:t}=r;return t(["Map Components"])},hsdraggable:r=>{const{normalize:t}=r;return t(["Draggable Components"])},hssplitPane:r=>{const{normalize:t}=r;return t(["Split Pane"])},hsbutton:r=>{const{normalize:t}=r;return t(["Button Components"])},hscropping:r=>{const{normalize:t}=r;return t(["Picture Cropping"])},hscountTo:r=>{const{normalize:t}=r;return t(["Digital Animation"])},hsselector:r=>{const{normalize:t}=r;return t(["Selector Components"])},hsflowChart:r=>{const{normalize:t}=r;return t(["Flow Chart"])},hsseamless:r=>{const{normalize:t}=r;return t(["Seamless Scroll"])},hscontextmenu:r=>{const{normalize:t}=r;return t(["Context Menu"])},hstypeit:r=>{const{normalize:t}=r;return t(["Typeit Components"])},hsjsoneditor:r=>{const{normalize:t}=r;return t(["JSON Editor"])},hsmenus:r=>{const{normalize:t}=r;return t(["MultiLevel Menu"])},hsmenu1:r=>{const{normalize:t}=r;return t(["Menu1"])},"hsmenu1-1":r=>{const{normalize:t}=r;return t(["Menu1-1"])},"hsmenu1-2":r=>{const{normalize:t}=r;return t(["Menu1-2"])},"hsmenu1-2-1":r=>{const{normalize:t}=r;return t(["Menu1-2-1"])},"hsmenu1-2-2":r=>{const{normalize:t}=r;return t(["Menu1-2-2"])},"hsmenu1-3":r=>{const{normalize:t}=r;return t(["Menu1-3"])},hsmenu2:r=>{const{normalize:t}=r;return t(["Menu2"])},permission:r=>{const{normalize:t}=r;return t(["Permission Manage"])},permissionPage:r=>{const{normalize:t}=r;return t(["Page Permission"])},permissionButton:r=>{const{normalize:t}=r;return t(["Button Permission"])},hstabs:r=>{const{normalize:t}=r;return t(["Tabs Operate"])},hsguide:r=>{const{normalize:t}=r;return t(["Guide"])},hsAble:r=>{const{normalize:t}=r;return t(["Able"])},hsMenuTree:r=>{const{normalize:t}=r;return t(["Menu Tree"])},hsWatermark:r=>{const{normalize:t}=r;return t(["Water Mark"])},hsPrint:r=>{const{normalize:t}=r;return t(["Print"])},hsDownload:r=>{const{normalize:t}=r;return t(["Download"])},hsExternalPage:r=>{const{normalize:t}=r;return t(["External Page"])},hsPureDocument:r=>{const{normalize:t}=r;return t(["Pure Doc(Embedded)"])},externalLink:r=>{const{normalize:t}=r;return t(["Pure Doc(External)"])},hsEpDocument:r=>{const{normalize:t}=r;return t(["Element Plus Doc(Embedded)"])},hsVueDocument:r=>{const{normalize:t}=r;return t(["Vue3 Doc(Embedded)"])},hsViteDocument:r=>{const{normalize:t}=r;return t(["Vite Doc(Embedded)"])},hsPiniaDocument:r=>{const{normalize:t}=r;return t(["Pinia Doc(Embedded)"])},hsRouterDocument:r=>{const{normalize:t}=r;return t(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:r=>{const{normalize:t}=r;return t(["Tailwindcss Doc(Embedded)"])},hsAbout:r=>{const{normalize:t}=r;return t(["About"])},hsResult:r=>{const{normalize:t}=r;return t(["Result Page"])},hsSuccess:r=>{const{normalize:t}=r;return t(["Success Page"])},hsFail:r=>{const{normalize:t}=r;return t(["Fail Page"])},hsIconSelect:r=>{const{normalize:t}=r;return t(["Icon Select"])},hsTimeline:r=>{const{normalize:t}=r;return t(["Time Line"])},hsLineTree:r=>{const{normalize:t}=r;return t(["LineTree"])},hsList:r=>{const{normalize:t}=r;return t(["List Page"])},hsListCard:r=>{const{normalize:t}=r;return t(["Card List Page"])},hsDebounce:r=>{const{normalize:t}=r;return t(["Debounce & Throttle"])},hsFormDesign:r=>{const{normalize:t}=r;return t(["Form Design"])},hsBarcode:r=>{const{normalize:t}=r;return t(["Barcode"])},hsQrcode:r=>{const{normalize:t}=r;return t(["Qrcode"])},hsCascader:r=>{const{normalize:t}=r;return t(["Area Cascader"])},hsSwiper:r=>{const{normalize:t}=r;return t(["Swiper Plugin"])},hsVirtualList:r=>{const{normalize:t}=r;return t(["Virtual List"])},hsPdf:r=>{const{normalize:t}=r;return t(["PDF Preview"])},hsExecl:r=>{const{normalize:t}=r;return t(["Export Excel"])},hsInfiniteScroll:r=>{const{normalize:t}=r;return t(["Table Infinite Scroll"])},hsdanmaku:r=>{const{normalize:t}=r;return t(["Danmaku Components"])},hsPureTableBase:r=>{const{normalize:t}=r;return t(["Base Usage"])},hsPureTableHigh:r=>{const{normalize:t}=r;return t(["High Usage"])},hsTree:r=>{const{normalize:t}=r;return t(["Big Data Tree"])},hsMenuoverflow:r=>{const{normalize:t}=r;return t(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:r=>{const{normalize:t}=r;return t(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:r=>{const{normalize:t}=r;return t(["Loading..."])}},login:{username:r=>{const{normalize:t}=r;return t(["Username"])},password:r=>{const{normalize:t}=r;return t(["Password"])},verifyCode:r=>{const{normalize:t}=r;return t(["VerifyCode"])},remember:r=>{const{normalize:t}=r;return t(["Remember Password"])},sure:r=>{const{normalize:t}=r;return t(["Sure Password"])},forget:r=>{const{normalize:t}=r;return t(["Forget Password?"])},login:r=>{const{normalize:t}=r;return t(["Login"])},thirdLogin:r=>{const{normalize:t}=r;return t(["Third Login"])},phoneLogin:r=>{const{normalize:t}=r;return t(["Phone Login"])},qRCodeLogin:r=>{const{normalize:t}=r;return t(["QRCode Login"])},register:r=>{const{normalize:t}=r;return t(["Register"])},weChatLogin:r=>{const{normalize:t}=r;return t(["WeChat Login"])},alipayLogin:r=>{const{normalize:t}=r;return t(["Alipay Login"])},qqLogin:r=>{const{normalize:t}=r;return t(["QQ Login"])},weiboLogin:r=>{const{normalize:t}=r;return t(["Weibo Login"])},phone:r=>{const{normalize:t}=r;return t(["Phone"])},smsVerifyCode:r=>{const{normalize:t}=r;return t(["SMS VerifyCode"])},back:r=>{const{normalize:t}=r;return t(["Back"])},test:r=>{const{normalize:t}=r;return t(["Mock Test"])},tip:r=>{const{normalize:t}=r;return t(['After scanning the code, click "Confirm" to complete the login'])},definite:r=>{const{normalize:t}=r;return t(["Definite"])},loginSuccess:r=>{const{normalize:t}=r;return t(["Login Success"])},registerSuccess:r=>{const{normalize:t}=r;return t(["Regist Success"])},tickPrivacy:r=>{const{normalize:t}=r;return t(["Please tick Privacy Policy"])},readAccept:r=>{const{normalize:t}=r;return t(["I have read it carefully and accept"])},privacyPolicy:r=>{const{normalize:t}=r;return t(["Privacy Policy"])},getVerifyCode:r=>{const{normalize:t}=r;return t(["Get VerifyCode"])},info:r=>{const{normalize:t}=r;return t(["Seconds"])},usernameReg:r=>{const{normalize:t}=r;return t(["Please enter username"])},passwordReg:r=>{const{normalize:t}=r;return t(["Please enter password"])},verifyCodeReg:r=>{const{normalize:t}=r;return t(["Please enter verify code"])},verifyCodeCorrectReg:r=>{const{normalize:t}=r;return t(["Please enter correct verify code"])},verifyCodeSixReg:r=>{const{normalize:t}=r;return t(["Please enter a 6-digit verify code"])},phoneReg:r=>{const{normalize:t}=r;return t(["Please enter the phone"])},phoneCorrectReg:r=>{const{normalize:t}=r;return t(["Please enter the correct phone number format"])},passwordRuleReg:r=>{const{normalize:t}=r;return t(["The password format should be any combination of 8-18 digits"])},passwordSureReg:r=>{const{normalize:t}=r;return t(["Please enter confirm password"])},passwordDifferentReg:r=>{const{normalize:t}=r;return t(["The two passwords do not match!"])},passwordUpdateReg:r=>{const{normalize:t}=r;return t(["Password has been updated"])}}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource$1},Symbol.toStringTag,{value:"Module"})),resource={buttons:{hsLoginOut:r=>{const{normalize:t}=r;return t(["退出系统"])},hsfullscreen:r=>{const{normalize:t}=r;return t(["全屏"])},hsexitfullscreen:r=>{const{normalize:t}=r;return t(["退出全屏"])},hsrefreshRoute:r=>{const{normalize:t}=r;return t(["刷新路由"])},hslogin:r=>{const{normalize:t}=r;return t(["登录"])},hsadd:r=>{const{normalize:t}=r;return t(["新增"])},hsmark:r=>{const{normalize:t}=r;return t(["标记/取消"])},hssave:r=>{const{normalize:t}=r;return t(["保存"])},hssearch:r=>{const{normalize:t}=r;return t(["搜索"])},hsexpendAll:r=>{const{normalize:t}=r;return t(["全部展开"])},hscollapseAll:r=>{const{normalize:t}=r;return t(["全部折叠"])},hssystemSet:r=>{const{normalize:t}=r;return t(["打开项目配置"])},hsdelete:r=>{const{normalize:t}=r;return t(["删除"])},hsreload:r=>{const{normalize:t}=r;return t(["重新加载"])},hscloseCurrentTab:r=>{const{normalize:t}=r;return t(["关闭当前标签页"])},hscloseLeftTabs:r=>{const{normalize:t}=r;return t(["关闭左侧标签页"])},hscloseRightTabs:r=>{const{normalize:t}=r;return t(["关闭右侧标签页"])},hscloseOtherTabs:r=>{const{normalize:t}=r;return t(["关闭其他标签页"])},hscloseAllTabs:r=>{const{normalize:t}=r;return t(["关闭全部标签页"])},hswholeFullScreen:r=>{const{normalize:t}=r;return t(["全屏"])},hswholeExitFullScreen:r=>{const{normalize:t}=r;return t(["退出全屏"])},hscontentFullScreen:r=>{const{normalize:t}=r;return t(["内容区全屏"])},hscontentExitFullScreen:r=>{const{normalize:t}=r;return t(["内容区退出全屏"])}},menus:{hshome:r=>{const{normalize:t}=r;return t(["首页"])},hslogin:r=>{const{normalize:t}=r;return t(["登录"])},hsempty:r=>{const{normalize:t}=r;return t(["无Layout页"])},hssysManagement:r=>{const{normalize:t}=r;return t(["系统管理"])},hsUser:r=>{const{normalize:t}=r;return t(["用户管理"])},hsRole:r=>{const{normalize:t}=r;return t(["角色管理"])},hsDept:r=>{const{normalize:t}=r;return t(["部门管理"])},hseditor:r=>{const{normalize:t}=r;return t(["编辑器"])},hsabnormal:r=>{const{normalize:t}=r;return t(["异常页面"])},hsfourZeroFour:r=>{const{normalize:t}=r;return t(["404"])},hsfourZeroOne:r=>{const{normalize:t}=r;return t(["403"])},hsFive:r=>{const{normalize:t}=r;return t(["500"])},hscomponents:r=>{const{normalize:t}=r;return t(["组件"])},hsdialog:r=>{const{normalize:t}=r;return t(["函数式弹框组件"])},hsmessage:r=>{const{normalize:t}=r;return t(["消息提示组件"])},hsvideo:r=>{const{normalize:t}=r;return t(["视频组件"])},hsmap:r=>{const{normalize:t}=r;return t(["地图组件"])},hsdraggable:r=>{const{normalize:t}=r;return t(["拖拽组件"])},hssplitPane:r=>{const{normalize:t}=r;return t(["切割面板"])},hsbutton:r=>{const{normalize:t}=r;return t(["按钮组件"])},hscropping:r=>{const{normalize:t}=r;return t(["图片裁剪"])},hscountTo:r=>{const{normalize:t}=r;return t(["数字动画"])},hsselector:r=>{const{normalize:t}=r;return t(["选择器组件"])},hsflowChart:r=>{const{normalize:t}=r;return t(["流程图"])},hsseamless:r=>{const{normalize:t}=r;return t(["无缝滚动"])},hscontextmenu:r=>{const{normalize:t}=r;return t(["右键菜单"])},hstypeit:r=>{const{normalize:t}=r;return t(["打字机组件"])},hsjsoneditor:r=>{const{normalize:t}=r;return t(["JSON编辑器"])},hsmenus:r=>{const{normalize:t}=r;return t(["多级菜单"])},hsmenu1:r=>{const{normalize:t}=r;return t(["菜单1"])},"hsmenu1-1":r=>{const{normalize:t}=r;return t(["菜单1-1"])},"hsmenu1-2":r=>{const{normalize:t}=r;return t(["菜单1-2"])},"hsmenu1-2-1":r=>{const{normalize:t}=r;return t(["菜单1-2-1"])},"hsmenu1-2-2":r=>{const{normalize:t}=r;return t(["菜单1-2-2"])},"hsmenu1-3":r=>{const{normalize:t}=r;return t(["菜单1-3"])},hsmenu2:r=>{const{normalize:t}=r;return t(["菜单2"])},permission:r=>{const{normalize:t}=r;return t(["权限管理"])},permissionPage:r=>{const{normalize:t}=r;return t(["页面权限"])},permissionButton:r=>{const{normalize:t}=r;return t(["按钮权限"])},hstabs:r=>{const{normalize:t}=r;return t(["标签页操作"])},hsguide:r=>{const{normalize:t}=r;return t(["引导页"])},hsAble:r=>{const{normalize:t}=r;return t(["功能"])},hsMenuTree:r=>{const{normalize:t}=r;return t(["菜单树结构"])},hsWatermark:r=>{const{normalize:t}=r;return t(["水印"])},hsPrint:r=>{const{normalize:t}=r;return t(["打印"])},hsDownload:r=>{const{normalize:t}=r;return t(["下载"])},hsExternalPage:r=>{const{normalize:t}=r;return t(["外部页面"])},hsPureDocument:r=>{const{normalize:t}=r;return t(["平台文档(内嵌)"])},externalLink:r=>{const{normalize:t}=r;return t(["平台文档(外链)"])},hsEpDocument:r=>{const{normalize:t}=r;return t(["Element Plus 文档(内嵌)"])},hsVueDocument:r=>{const{normalize:t}=r;return t(["Vue3 文档(内嵌)"])},hsViteDocument:r=>{const{normalize:t}=r;return t(["Vite 文档(内嵌)"])},hsPiniaDocument:r=>{const{normalize:t}=r;return t(["Pinia 文档(内嵌)"])},hsRouterDocument:r=>{const{normalize:t}=r;return t(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:r=>{const{normalize:t}=r;return t(["Tailwindcss 文档(内嵌)"])},hsAbout:r=>{const{normalize:t}=r;return t(["关于"])},hsResult:r=>{const{normalize:t}=r;return t(["结果页面"])},hsSuccess:r=>{const{normalize:t}=r;return t(["成功页面"])},hsFail:r=>{const{normalize:t}=r;return t(["失败页面"])},hsIconSelect:r=>{const{normalize:t}=r;return t(["图标选择器"])},hsTimeline:r=>{const{normalize:t}=r;return t(["时间线"])},hsLineTree:r=>{const{normalize:t}=r;return t(["树形连接线"])},hsList:r=>{const{normalize:t}=r;return t(["列表页"])},hsListCard:r=>{const{normalize:t}=r;return t(["卡片列表页"])},hsDebounce:r=>{const{normalize:t}=r;return t(["防抖节流"])},hsFormDesign:r=>{const{normalize:t}=r;return t(["表单设计器"])},hsBarcode:r=>{const{normalize:t}=r;return t(["条形码"])},hsQrcode:r=>{const{normalize:t}=r;return t(["二维码"])},hsCascader:r=>{const{normalize:t}=r;return t(["区域级联选择器"])},hsSwiper:r=>{const{normalize:t}=r;return t(["Swiper插件"])},hsVirtualList:r=>{const{normalize:t}=r;return t(["虚拟列表"])},hsPdf:r=>{const{normalize:t}=r;return t(["PDF预览"])},hsExecl:r=>{const{normalize:t}=r;return t(["导出Excel"])},hsInfiniteScroll:r=>{const{normalize:t}=r;return t(["表格无限滚动"])},hsdanmaku:r=>{const{normalize:t}=r;return t(["弹幕组件"])},hsPureTableBase:r=>{const{normalize:t}=r;return t(["基础用法23个示例"])},hsPureTableHigh:r=>{const{normalize:t}=r;return t(["高级用法10个示例"])},hsTree:r=>{const{normalize:t}=r;return t(["大数据树业务组件"])},hsMenuoverflow:r=>{const{normalize:t}=r;return t(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:r=>{const{normalize:t}=r;return t(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:r=>{const{normalize:t}=r;return t(["加载中..."])}},login:{username:r=>{const{normalize:t}=r;return t(["账号"])},password:r=>{const{normalize:t}=r;return t(["密码"])},verifyCode:r=>{const{normalize:t}=r;return t(["验证码"])},remember:r=>{const{normalize:t}=r;return t(["记住密码"])},sure:r=>{const{normalize:t}=r;return t(["确认密码"])},forget:r=>{const{normalize:t}=r;return t(["忘记密码?"])},login:r=>{const{normalize:t}=r;return t(["登录"])},thirdLogin:r=>{const{normalize:t}=r;return t(["第三方登录"])},phoneLogin:r=>{const{normalize:t}=r;return t(["手机登录"])},qRCodeLogin:r=>{const{normalize:t}=r;return t(["二维码登录"])},register:r=>{const{normalize:t}=r;return t(["注册"])},weChatLogin:r=>{const{normalize:t}=r;return t(["微信登录"])},alipayLogin:r=>{const{normalize:t}=r;return t(["支付宝登录"])},qqLogin:r=>{const{normalize:t}=r;return t(["QQ登录"])},weiboLogin:r=>{const{normalize:t}=r;return t(["微博登录"])},phone:r=>{const{normalize:t}=r;return t(["手机号码"])},smsVerifyCode:r=>{const{normalize:t}=r;return t(["短信验证码"])},back:r=>{const{normalize:t}=r;return t(["返回"])},test:r=>{const{normalize:t}=r;return t(["模拟测试"])},tip:r=>{const{normalize:t}=r;return t(['扫码后点击"确认",即可完成登录'])},definite:r=>{const{normalize:t}=r;return t(["确定"])},loginSuccess:r=>{const{normalize:t}=r;return t(["登录成功"])},registerSuccess:r=>{const{normalize:t}=r;return t(["注册成功"])},tickPrivacy:r=>{const{normalize:t}=r;return t(["请勾选隐私政策"])},readAccept:r=>{const{normalize:t}=r;return t(["我已仔细阅读并接受"])},privacyPolicy:r=>{const{normalize:t}=r;return t(["《隐私政策》"])},getVerifyCode:r=>{const{normalize:t}=r;return t(["获取验证码"])},info:r=>{const{normalize:t}=r;return t(["秒后重新获取"])},usernameReg:r=>{const{normalize:t}=r;return t(["请输入账号"])},passwordReg:r=>{const{normalize:t}=r;return t(["请输入密码"])},verifyCodeReg:r=>{const{normalize:t}=r;return t(["请输入验证码"])},verifyCodeCorrectReg:r=>{const{normalize:t}=r;return t(["请输入正确的验证码"])},verifyCodeSixReg:r=>{const{normalize:t}=r;return t(["请输入6位数字验证码"])},phoneReg:r=>{const{normalize:t}=r;return t(["请输入手机号码"])},phoneCorrectReg:r=>{const{normalize:t}=r;return t(["请输入正确的手机号码格式"])},passwordRuleReg:r=>{const{normalize:t}=r;return t(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:r=>{const{normalize:t}=r;return t(["请输入确认密码"])},passwordDifferentReg:r=>{const{normalize:t}=r;return t(["两次密码不一致!"])},passwordUpdateReg:r=>{const{normalize:t}=r;return t(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));let config={};const{VITE_PUBLIC_PATH}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},setConfig=r=>{config=Object.assign(config,r)},getConfig=r=>{if(typeof r=="string"){const t=r.split(".");if(t&&t.length){let o=config;return t.forEach(s=>{o&&typeof o[s]<"u"?o=o[s]:o=null}),o}}return config},getServerConfig=async r=>(r.config.globalProperties.$config=getConfig(),axios({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:t})=>{let o=r.config.globalProperties.$config;return r&&o&&typeof t=="object"&&(o=Object.assign(o,t),r.config.globalProperties.$config=o,setConfig(o)),o}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n(r="zh-CN"){return Object.fromEntries(Object.entries(Object.assign({"../../locales/en.yaml":__vite_glob_0_0$2,"../../locales/zh-CN.yaml":__vite_glob_0_1$2})).map(([t,o])=>[t.match(/([A-Za-z0-9-_]+)\./i)[1],o.default]))[r]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n(r=""){var o;if(!r)return"";if(typeof r=="object"){const s=i18n.global.locale;return r[s==null?void 0:s.value]}const t=(o=r.match(/(\S*)\./))==null?void 0:o[1];return t&&Object.keys(siphonI18n("zh-CN")).includes(t)||!t&&Object.keys(siphonI18n("zh-CN")).includes(r)?i18n.global.t.call(i18n.global.locale,r):r}const $t=r=>r;var An;const i18n=VueI18n.createI18n({legacy:!1,locale:((An=Kn().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:An.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n(r){r.use(i18n)}const home$1=0,doc=1,utils$7=2,table$1=3,components$1=4,able$1=5,frame$1=6,nested$1=7,result$1=8,error$1=9,list$2=10,permission=11,system$1=12,tabs=13,formdesign$1=14,flowchart$1=15,ppt$1=16,editor$1=17,guide$1=18,menuoverflow$1=19,about$1=20,able={path:"/able",redirect:"/able/watermark",meta:{icon:"ubuntuFill",title:$t("menus.hsAble"),rank:able$1},children:[{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark-71d8fef6.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-4cf3a1e0.js"),["static/js/print-4cf3a1e0.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js","static/js/app-7adcc40f.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-a3bbbdbf.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-7261ae3c.js"),["static/js/icon-select-7261ae3c.js","static/css/icon-select-f6ac52ad.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-ecc59a22.js"),["static/js/timeline-ecc59a22.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/js/hooks-55e29a46.js","static/js/iphone-89710f1a.js","static/css/timeline-0391e3d4.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-8bc90927.js"),["static/js/menu-tree-8bc90927.js","static/js/hooks-55e29a46.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-26ddd513.js"),["static/js/line-tree-26ddd513.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-e8eccde8.js"),["static/js/debounce-e8eccde8.js","static/js/message-9ae1daa3.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-6d872a2e.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-b52874b8.js"),["static/js/qrcode-b52874b8.js","static/js/message-9ae1daa3.js","static/js/index-29a339f3.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader-7d8981a0.js"),["static/js/cascader-7d8981a0.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-ff2b8019.js"),["static/js/swiper-ff2b8019.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-42d975f6.js"),["static/js/index-42d975f6.js","static/js/vertical-c67ab039.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-47dea087.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf-23c1b4b4.js"),["static/js/pdf-23c1b4b4.js","static/js/_vue_commonjs-external-c09696f7.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-40f04d43.js"),["static/js/execl-40f04d43.js","static/js/xlsx-e927f539.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-f059b49d.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:able},Symbol.toStringTag,{value:"Module"})),about={path:"/about",redirect:"/about/index",meta:{title:$t("menus.hsAbout"),rank:about$1},children:[{path:"/about/index",name:"About",component:()=>__vitePreload(()=>import("./index-db03b490.js"),["static/js/index-db03b490.js","static/js/columns-583d93a9.js","static/css/index-14544c94.css"]),meta:{title:$t("menus.hsAbout")}}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:about},Symbol.toStringTag,{value:"Module"})),components={path:"/components",redirect:"/components/video",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"Dialog",component:()=>__vitePreload(()=>import("./index-5350eda7.js"),["static/js/index-5350eda7.js","static/js/message-9ae1daa3.js","static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js"]),meta:{title:$t("menus.hsdialog"),extraIcon:"IF-pure-iconfont-new svg",transition:{enterTransition:"animate__fadeInLeft",leaveTransition:"animate__fadeOutRight"}}},{path:"/components/message",name:"Message",component:()=>__vitePreload(()=>import("./index-45f82129.js"),["static/js/index-45f82129.js","static/js/message-9ae1daa3.js","static/js/hooks-55e29a46.js","static/js/check-f53d8364.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/video",name:"Video",component:()=>__vitePreload(()=>import("./index-1d8001c7.js"),["static/js/index-1d8001c7.js","static/js/hooks-55e29a46.js","static/css/index-11b4621f.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"Map",component:()=>__vitePreload(()=>import("./index-17baec95.js"),["static/js/index-17baec95.js","static/css/index-d504fa9c.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-0a0d5e28.js"),["static/js/index-0a0d5e28.js","static/js/sortable.esm-679e0872.js","static/js/app-7adcc40f.js","static/js/hooks-55e29a46.js","static/css/index-b2ddca14.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-bc534f29.js"),["static/js/index-bc534f29.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"Button",component:()=>__vitePreload(()=>import("./index-5401e768.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-6bd36615.js"),["static/js/index-6bd36615.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-a9d53612.js"),["static/js/index-a9d53612.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-7ea256f3.js"),["static/js/index-7ea256f3.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-1245da83.js"),["static/js/index-1245da83.js","static/js/index-f1e7ee6d.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-8ead185b.js"),["static/js/index-8ead185b.js","static/js/basic-568930cb.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css","static/js/menuGroup-1d509aa1.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-20a0b66d.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index-bdd5ab08.js"),["static/js/index-bdd5ab08.js","static/js/index-771e958b.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-638fd271.js"),["static/js/index-638fd271.js","static/js/styles-eecf6cc2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-f7a391a0.js"),["static/js/index-f7a391a0.js","static/css/index-14392f45.css"]),meta:{title:$t("menus.hsdanmaku")}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:components},Symbol.toStringTag,{value:"Module"})),editor={path:"/editor",redirect:"/editor/index",meta:{icon:"edit",title:$t("menus.hseditor"),rank:editor$1},children:[{path:"/editor/index",name:"Editor",component:()=>__vitePreload(()=>import("./index-0e070646.js"),["static/js/index-0e070646.js","static/js/hooks-55e29a46.js","static/js/edit-542ce8b5.js","static/css/index-f38a3df6.css"]),meta:{title:$t("menus.hseditor"),keepAlive:!0}}]},__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:editor},Symbol.toStringTag,{value:"Module"})),error={path:"/error",redirect:"/error/403",meta:{icon:"informationLine",title:$t("menus.hsabnormal"),rank:error$1},children:[{path:"/error/403",name:"403",component:()=>__vitePreload(()=>import("./403-63441291.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-aad1e074.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-4d370a5c.js"),[]),meta:{title:$t("menus.hsFive")}}]},__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:error},Symbol.toStringTag,{value:"Module"})),flowchart={path:"/flowChart",redirect:"/flowChart/index",meta:{icon:"setUp",title:$t("menus.hsflowChart"),rank:flowchart$1},children:[{path:"/flowChart/index",name:"FlowChart",component:()=>__vitePreload(()=>import("./index-bc3a5417.js"),["static/js/index-bc3a5417.js","static/js/hooks-55e29a46.js","static/js/styles-eecf6cc2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css","static/js/set-up-729eb907.js","static/css/index-6bd35e69.css"]),meta:{title:$t("menus.hsflowChart")}}]},__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:flowchart},Symbol.toStringTag,{value:"Module"})),IFrame$4=()=>__vitePreload(()=>import("./frameView-535a4e9c.js"),["static/js/frameView-535a4e9c.js","static/css/frameView-ed080731.css"]),formdesign={path:"/formDesign",redirect:"/formDesign/index",meta:{icon:"terminalWindowLine",title:$t("menus.hsFormDesign"),rank:formdesign$1},children:[{path:"/formDesign/index",name:"FormDesign",component:IFrame$4,meta:{title:$t("menus.hsFormDesign"),frameSrc:"https://haixin-fang.github.io/starfish-vue3-lowcode/playground/index.html#/"}}]},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:formdesign},Symbol.toStringTag,{value:"Module"})),guide={path:"/guide",redirect:"/guide/index",meta:{icon:"guide",title:$t("menus.hsguide"),rank:guide$1},children:[{path:"/guide/index",name:"Guide",component:()=>__vitePreload(()=>import("./index-2c297e1e.js"),["static/js/index-2c297e1e.js","static/css/index-38ef32bb.css"]),meta:{title:$t("menus.hsguide")}}]},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:guide},Symbol.toStringTag,{value:"Module"})),{VITE_HIDE_HOME:VITE_HIDE_HOME$2}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Layout$1=()=>__vitePreload(()=>import("./index-16215e41.js"),["static/js/index-16215e41.js","static/js/menu-a4fe64fb.js","static/js/edit-542ce8b5.js","static/js/set-up-729eb907.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-2f4f0a96.js","static/js/app-7adcc40f.js","static/js/epTheme-d89c26ff.js","static/js/hooks-55e29a46.js","static/js/index-f1e7ee6d.js","static/js/search-4b9e88d3.js","static/js/check-f53d8364.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/index-17881e6a.css"]),home={path:"/",name:"Home",component:Layout$1,redirect:"/welcome",meta:{icon:"homeFilled",title:$t("menus.hshome"),rank:home$1},children:[{path:"/welcome",name:"Welcome",component:()=>__vitePreload(()=>import("./index-19971265.js"),["static/js/index-19971265.js","static/js/Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js","static/js/app-7adcc40f.js","static/js/Pie.vue_vue_type_script_setup_true_lang-ee222e50.js","static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js","static/js/index-771e958b.js","static/js/index-f1e7ee6d.js","static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js","static/js/columns-d84895c5.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/css/index-e89363d8.css"]),meta:{title:$t("menus.hshome"),showLink:VITE_HIDE_HOME$2!=="true"}}]},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:home},Symbol.toStringTag,{value:"Module"})),list$1={path:"/list",redirect:"/list/card",meta:{icon:"listCheck",title:$t("menus.hsList"),rank:list$2},children:[{path:"/list/card",name:"ListCard",component:()=>__vitePreload(()=>import("./index-785bcb23.js"),["static/js/index-785bcb23.js","static/js/Card-83689119.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-6b1295ac.css","static/js/message-9ae1daa3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js","static/js/hooks-55e29a46.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),meta:{icon:"card",title:$t("menus.hsListCard"),showParent:!0}}]},__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:list$1},Symbol.toStringTag,{value:"Module"})),menuoverflow={path:"/menuoverflow",redirect:"/menuoverflow/index",meta:{title:$t("menus.hsMenuoverflow"),rank:menuoverflow$1},children:[{path:"/menuoverflow/index",name:"MenuOverflow",component:()=>__vitePreload(()=>import("./index-be914bdb.js"),[]),meta:{title:$t("menus.hsChildMenuoverflow"),showParent:!0}}]},__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:menuoverflow},Symbol.toStringTag,{value:"Module"})),nested={path:"/nested",redirect:"/nested/menu1/menu1-1",meta:{title:$t("menus.hsmenus"),icon:"histogram",rank:nested$1},children:[{path:"/nested/menu1",meta:{title:$t("menus.hsmenu1"),keepAlive:!0},redirect:"/nested/menu1/menu1-1",children:[{path:"/nested/menu1/menu1-1",component:()=>__vitePreload(()=>import("./index-f9b60cce.js"),[]),name:"Menu1-1",meta:{title:$t("menus.hsmenu1-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:$t("menus.hsmenu1-2"),keepAlive:!0},children:[{path:"/nested/menu1/menu1-2/menu1-2-1",component:()=>__vitePreload(()=>import("./index-9b74b1b4.js"),[]),name:"Menu1-2-1",meta:{title:$t("menus.hsmenu1-2-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2/menu1-2-2",component:()=>__vitePreload(()=>import("./index-f0630e7a.js"),[]),name:"Menu1-2-2",meta:{title:$t("menus.hsmenu1-2-2"),keepAlive:!0,extraIcon:"IF-pure-iconfont-new svg"}}]},{path:"/nested/menu1/menu1-3",component:()=>__vitePreload(()=>import("./index-9312b9c4.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-1610e1d6.js"),[]),meta:{title:$t("menus.hsmenu2"),keepAlive:!0}}]},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:nested},Symbol.toStringTag,{value:"Module"})),IFrame$3=()=>__vitePreload(()=>import("./frameView-535a4e9c.js"),["static/js/frameView-535a4e9c.js","static/css/frameView-ed080731.css"]),ppt={path:"/ppt",redirect:"/ppt/index",meta:{icon:"ppt",title:"PPT",rank:ppt$1},children:[{path:"/ppt/index",name:"FramePpt",component:IFrame$3,meta:{title:"PPT",frameSrc:"https://pipipi-pikachu.github.io/PPTist/",frameLoading:!1}}]},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:ppt},Symbol.toStringTag,{value:"Module"})),_hoisted_1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2=Vue.createElementVNode("path",{fill:"#FF5D50",d:"M428.698 107.315c-6.503 72.192-36.352 207.258-160.256 337.408 3.686-48.025-7.117-83.763-19.047-107.673-6.605-13.159-26.06-10.599-28.877 3.84-5.734 29.44-20.582 75.059-57.6 137.779-71.628 121.395-62.566 459.878 340.736 459.878S934.093 585.728 876.8 442.522c-37.376-93.44-93.952-152.525-128.82-182.324-11.417-9.779-29.132-1.945-29.593 13.056-.921 30.464-7.321 73.37-33.075 102.144-.666-52.787-38.144-208.384-202.445-296.857-23.296-12.544-51.763 2.457-54.17 28.774z"},null,-1),_hoisted_3=Vue.createElementVNode("path",{fill:"#FFDF99",d:"M702.26 678.4c-4.2-45.056-60.673-166.554-212.634-246.426-10.599-5.58-23.092 3.124-21.504 15.002 6.246 46.848 12.953 140.493-24.064 184.73 4.044-40.397-18.125-73.83-36.66-94.31-8.396-9.217-23.552-4.66-25.497 7.68-3.533 22.322-12.851 56.268-36.557 97.945-42.086 74.035-86.989 188.672 124.57 294.656 10.956.563 22.17.87 33.74.87a617.97 617.97 0 0 0 32.717-.87C694.631 878.182 709.837 759.706 702.26 678.4z"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3];function render$3(r,t){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView-535a4e9c.js"),["static/js/frameView-535a4e9c.js","static/css/frameView-ed080731.css"]),puredoc={path:"/pure-admin-doc",redirect:"/pure-admin-doc/index",meta:{icon:hot,title:"pure-admin-doc",rank:doc},children:[{path:"/pure-admin-doc/index",name:"FrameDoc",component:IFrame$2,meta:{title:"pure-admin-doc",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc/"}}]},__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:puredoc},Symbol.toStringTag,{value:"Module"})),IFrame$1=()=>__vitePreload(()=>import("./frameView-535a4e9c.js"),["static/js/frameView-535a4e9c.js","static/css/frameView-ed080731.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$7},children:[{path:"/pure-admin-utils/index",name:"FrameUtils",component:IFrame$1,meta:{title:"pure-admin-utils",frameSrc:"https://pure-admin-utils.netlify.app/"}}]},__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:pureutils},Symbol.toStringTag,{value:"Module"})),result={path:"/result",redirect:"/result/success",meta:{icon:"checkboxCircleLine",title:$t("menus.hsResult"),rank:result$1},children:[{path:"/result/success",name:"Success",component:()=>__vitePreload(()=>import("./success-4dfec439.js"),["static/js/success-4dfec439.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-fee57cd2.js"),["static/js/fail-fee57cd2.js","static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/fail-8c7d12a4.css"]),meta:{title:$t("menus.hsFail")}}]},__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:result},Symbol.toStringTag,{value:"Module"})),table={path:"/pure-table",redirect:"/pure-table/index",meta:{icon:hot,title:"pure-admin-table",rank:table$1},children:[{path:"/pure-table/index",name:"PureTable",component:()=>__vitePreload(()=>import("./index-7aee3e8c.js"),["static/js/index-7aee3e8c.js","static/js/list-83f31031.js","static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js","static/js/data-5ec60fc2.js","static/js/stripe.vue_vue_type_script_setup_true_lang-5d3a4fba.js","static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js","static/js/status.vue_vue_type_style_index_0_lang-fee2fcc7.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js","static/js/radio.vue_vue_type_script_setup_true_lang-1c8aa556.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-12c2e5fd.js","static/js/sortable.vue_vue_type_script_setup_true_lang-29dd24dd.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-768133c2.js","static/js/columns-3d82d5a7.js","static/js/message-9ae1daa3.js","static/js/index.vue_vue_type_script_setup_true_lang-9b251ba5.js","static/js/columns-c7818246.js","static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js","static/js/layout.vue_vue_type_script_setup_true_lang-9b77194a.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-5ebc0ab0.js"),["static/js/high-5ebc0ab0.js","static/js/list-937f8d1f.js","static/js/index.vue_vue_type_script_setup_true_lang-ffe395c1.js","static/js/columns-928b7b53.js","static/js/data-8e10e21a.js","static/js/index.vue_vue_type_script_setup_true_lang-dba0d268.js","static/js/columns-174f6fc9.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-c22a8fe5.js","static/js/columns-0893fc98.js","static/js/index.vue_vue_type_script_setup_true_lang-57395104.js","static/js/columns-db1f92e9.js","static/js/message-9ae1daa3.js","static/js/index.vue_vue_type_script_setup_true_lang-cf392244.js","static/js/columns-e5493833.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-2716c923.js","static/js/columns-5d6f3a23.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-717fb06e.js","static/js/columns-f7651f28.js","static/js/index.vue_vue_type_script_setup_true_lang-a932c026.js","static/js/columns-49cce1a9.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-e92884ca.js","static/js/columns-97dc43c8.js","static/js/index-f1e7ee6d.js","static/js/index.vue_vue_type_script_setup_true_lang-32e05a0c.js","static/js/index.vue_vue_type_script_setup_true_lang-60e264d2.js","static/js/columns-d33385ba.js","static/js/index.vue_vue_type_script_setup_true_lang-7b4568aa.js","static/js/columns-a4182130.js","static/css/high-5bc3f1f1.css"]),meta:{title:$t("menus.hsPureTableHigh")}}]},__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function assign$1(r){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)r[s]=o[s]}return r}var defaultConverter={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$2(r,t){function o(l,v,x){if(!(typeof document>"u")){x=assign$1({},t,x),typeof x.expires=="number"&&(x.expires=new Date(Date.now()+x.expires*864e5)),x.expires&&(x.expires=x.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var A="";for(var w in x)x[w]&&(A+="; "+w,x[w]!==!0&&(A+="="+x[w].split(";")[0]));return document.cookie=l+"="+r.write(v,l)+A}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var v=document.cookie?document.cookie.split("; "):[],x={},A=0;A<v.length;A++){var w=v[A].split("="),E=w.slice(1).join("=");try{var C=decodeURIComponent(w[0]);if(x[C]=r.read(E,C),l===C)break}catch{}}return l?x[l]:x}}return Object.create({set:o,get:s,remove:function(l,v){o(l,"",assign$1({},v,{expires:-1}))},withAttributes:function(l){return init$2(this.converter,assign$1({},this.attributes,l))},withConverter:function(l){return init$2(assign$1({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(r)}})}var api=init$2(defaultConverter,{path:"/"});const store=Pinia.createPinia();function setupStore(r){r.use(store)}const{VITE_HIDE_HOME:VITE_HIDE_HOME$1}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},routerArrays=VITE_HIDE_HOME$1==="false"?[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome",icon:"homeFilled"}}]:[];var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},o=Symbol("test"),s=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var l=42;t[o]=l;for(o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var v=Object.getOwnPropertySymbols(t);if(v.length!==1||v[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(t,o);if(x.value!==l||x.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(t){var o=this;if(typeof o!="function"||toStr$1.call(o)!==funcType)throw new TypeError(ERROR_MESSAGE+o);for(var s=slice$1.call(arguments,1),l,v=function(){if(this instanceof l){var C=o.apply(this,s.concat(slice$1.call(arguments)));return Object(C)===C?C:this}else return o.apply(t,s.concat(slice$1.call(arguments)))},x=Math.max(0,o.length-s.length),A=[],w=0;w<x;w++)A.push("$"+w);if(l=Function("binder","return function ("+A.join(",")+"){ return binder.apply(this,arguments); }")(v),o.prototype){var E=function(){};E.prototype=o.prototype,l.prototype=new E,E.prototype=null}return l},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(r){try{return $Function('"use strict"; return ('+r+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function(r){return r.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch(r){var errorProto=getProto(getProto(r));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function r(t){var o;if(t==="%AsyncFunction%")o=getEvalledConstructor("async function () {}");else if(t==="%GeneratorFunction%")o=getEvalledConstructor("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=getEvalledConstructor("async function* () {}");else if(t==="%AsyncGenerator%"){var s=r("%AsyncGeneratorFunction%");s&&(o=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var l=r("%AsyncGenerator%");l&&(o=getProto(l.prototype))}return INTRINSICS[t]=o,o},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(t){var o=$strSlice(t,0,1),s=$strSlice(t,-1);if(o==="%"&&s!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(s==="%"&&o!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var l=[];return $replace$1(t,rePropName,function(v,x,A,w){l[l.length]=A?$replace$1(w,reEscapeChar,"$1"):x||v}),l},getBaseIntrinsic=function(t,o){var s=t,l;if(hasOwn$2(LEGACY_ALIASES,s)&&(l=LEGACY_ALIASES[s],s="%"+l[0]+"%"),hasOwn$2(INTRINSICS,s)){var v=INTRINSICS[s];if(v===needsEval&&(v=doEval(s)),typeof v>"u"&&!o)throw new $TypeError$1("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:l,name:s,value:v}}throw new $SyntaxError("intrinsic "+t+" does not exist!")},getIntrinsic=function(t,o){if(typeof t!="string"||t.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,t)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=stringToPath(t),l=s.length>0?s[0]:"",v=getBaseIntrinsic("%"+l+"%",o),x=v.name,A=v.value,w=!1,E=v.alias;E&&(l=E[0],$spliceApply(s,$concat$1([0,1],E)));for(var C=1,R=!0;C<s.length;C+=1){var $=s[C],V=$strSlice($,0,1),z=$strSlice($,-1);if((V==='"'||V==="'"||V==="`"||z==='"'||z==="'"||z==="`")&&V!==z)throw new $SyntaxError("property names with quotes must have matching quotes");if(($==="constructor"||!R)&&(w=!0),l+="."+$,x="%"+l+"%",hasOwn$2(INTRINSICS,x))A=INTRINSICS[x];else if(A!=null){if(!($ in A)){if(!o)throw new $TypeError$1("base intrinsic for "+t+" exists, but the property is not available.");return}if($gOPD&&C+1>=s.length){var F=$gOPD(A,$);R=!!F,R&&"get"in F&&!("originalValue"in F.get)?A=F.get:A=A[$]}else R=hasOwn$2(A,$),A=A[$];R&&!w&&(INTRINSICS[x]=A)}}return A},callBind$1={exports:{}};(function(r){var t=functionBind,o=getIntrinsic,s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),v=o("%Reflect.apply%",!0)||t.call(l,s),x=o("%Object.getOwnPropertyDescriptor%",!0),A=o("%Object.defineProperty%",!0),w=o("%Math.max%");if(A)try{A({},"a",{value:1})}catch{A=null}r.exports=function(R){var $=v(t,l,arguments);if(x&&A){var V=x($,"length");V.configurable&&A($,"length",{value:1+w(0,R.length-(arguments.length-1))})}return $};var E=function(){return v(t,s,arguments)};A?A(r.exports,"apply",{value:E}):r.exports.apply=E})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(t,o){var s=GetIntrinsic$1(t,!!o);return typeof s=="function"&&$indexOf(t,".prototype.")>-1?callBind(s):s};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function addNumericSeparator(r,t){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||$test.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var s=r<0?-$floor(-r):$floor(r);if(s!==r){var l=String(s),v=$slice.call(t,l.length+1);return $replace.call(l,o,"$&_")+"."+$replace.call($replace.call(v,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,o,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function r(t,o,s,l){var v=o||{};if(has$4(v,"quoteStyle")&&v.quoteStyle!=="single"&&v.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(v,"maxStringLength")&&(typeof v.maxStringLength=="number"?v.maxStringLength<0&&v.maxStringLength!==1/0:v.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var x=has$4(v,"customInspect")?v.customInspect:!0;if(typeof x!="boolean"&&x!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(v,"indent")&&v.indent!==null&&v.indent!==" "&&!(parseInt(v.indent,10)===v.indent&&v.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(v,"numericSeparator")&&typeof v.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var A=v.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return inspectString(t,v);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var w=String(t);return A?addNumericSeparator(t,w):w}if(typeof t=="bigint"){var E=String(t)+"n";return A?addNumericSeparator(t,E):E}var C=typeof v.depth>"u"?5:v.depth;if(typeof s>"u"&&(s=0),s>=C&&C>0&&typeof t=="object")return isArray$6(t)?"[Array]":"[Object]";var R=getIndent(v,s);if(typeof l>"u")l=[];else if(indexOf$1(l,t)>=0)return"[Circular]";function $(Ee,Ce,Pe){if(Ce&&(l=$arrSlice.call(l),l.push(Ce)),Pe){var Me={depth:v.depth};return has$4(v,"quoteStyle")&&(Me.quoteStyle=v.quoteStyle),r(Ee,Me,s+1,l)}return r(Ee,v,s+1,l)}if(typeof t=="function"&&!isRegExp$2(t)){var V=nameOf(t),z=arrObjKeys(t,$);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(z.length>0?" { "+$join.call(z,", ")+" }":"")}if(isSymbol(t)){var F=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return typeof t=="object"&&!hasShammedSymbols?markBoxed(F):F}if(isElement$1(t)){for(var B="<"+$toLowerCase.call(String(t.nodeName)),W=t.attributes||[],Y=0;Y<W.length;Y++)B+=" "+W[Y].name+"="+wrapQuotes(quote(W[Y].value),"double",v);return B+=">",t.childNodes&&t.childNodes.length&&(B+="..."),B+="</"+$toLowerCase.call(String(t.nodeName))+">",B}if(isArray$6(t)){if(t.length===0)return"[]";var Z=arrObjKeys(t,$);return R&&!singleLineValues(Z)?"["+indentedJoin(Z,R)+"]":"[ "+$join.call(Z,", ")+" ]"}if(isError(t)){var X=arrObjKeys(t,$);return!("cause"in Error.prototype)&&"cause"in t&&!isEnumerable.call(t,"cause")?"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+$(t.cause),X),", ")+" }":X.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(X,", ")+" }"}if(typeof t=="object"&&x){if(inspectSymbol&&typeof t[inspectSymbol]=="function"&&utilInspect)return utilInspect(t,{depth:C-s});if(x!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(isMap(t)){var ae=[];return mapForEach&&mapForEach.call(t,function(Ee,Ce){ae.push($(Ce,t,!0)+" => "+$(Ee,t))}),collectionOf("Map",mapSize.call(t),ae,R)}if(isSet(t)){var ie=[];return setForEach&&setForEach.call(t,function(Ee){ie.push($(Ee,t))}),collectionOf("Set",setSize.call(t),ie,R)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber$2(t))return markBoxed($(Number(t)));if(isBigInt(t))return markBoxed($(bigIntValueOf.call(t)));if(isBoolean(t))return markBoxed(booleanValueOf.call(t));if(isString$3(t))return markBoxed($(String(t)));if(!isDate(t)&&!isRegExp$2(t)){var oe=arrObjKeys(t,$),le=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,ve=t instanceof Object?"":"null prototype",xe=!le&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):ve?"Object":"",_e=le||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Te=_e+(xe||ve?"["+$join.call($concat.call([],xe||[],ve||[]),": ")+"] ":"");return oe.length===0?Te+"{}":R?Te+"{"+indentedJoin(oe,R)+"}":Te+"{ "+$join.call(oe,", ")+" }"}return String(t)};function wrapQuotes(r,t,o){var s=(o.quoteStyle||t)==="double"?'"':"'";return s+r+s}function quote(r){return $replace.call(String(r),/"/g,"&quot;")}function isArray$6(r){return toStr(r)==="[object Array]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isDate(r){return toStr(r)==="[object Date]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isRegExp$2(r){return toStr(r)==="[object RegExp]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isError(r){return toStr(r)==="[object Error]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isString$3(r){return toStr(r)==="[object String]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isNumber$2(r){return toStr(r)==="[object Number]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isBoolean(r){return toStr(r)==="[object Boolean]"&&(!toStringTag||!(typeof r=="object"&&toStringTag in r))}function isSymbol(r){if(hasShammedSymbols)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!symToString)return!1;try{return symToString.call(r),!0}catch{}return!1}function isBigInt(r){if(!r||typeof r!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(r),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(r){return r in this};function has$4(r,t){return hasOwn$1.call(r,t)}function toStr(r){return objectToString.call(r)}function nameOf(r){if(r.name)return r.name;var t=$match.call(functionToString.call(r),/^function\s*([\w$]+)/);return t?t[1]:null}function indexOf$1(r,t){if(r.indexOf)return r.indexOf(t);for(var o=0,s=r.length;o<s;o++)if(r[o]===t)return o;return-1}function isMap(r){if(!mapSize||!r||typeof r!="object")return!1;try{mapSize.call(r);try{setSize.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function isWeakMap(r){if(!weakMapHas||!r||typeof r!="object")return!1;try{weakMapHas.call(r,weakMapHas);try{weakSetHas.call(r,weakSetHas)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function isWeakRef(r){if(!weakRefDeref||!r||typeof r!="object")return!1;try{return weakRefDeref.call(r),!0}catch{}return!1}function isSet(r){if(!setSize||!r||typeof r!="object")return!1;try{setSize.call(r);try{mapSize.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function isWeakSet(r){if(!weakSetHas||!r||typeof r!="object")return!1;try{weakSetHas.call(r,weakSetHas);try{weakMapHas.call(r,weakMapHas)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function isElement$1(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function inspectString(r,t){if(r.length>t.maxStringLength){var o=r.length-t.maxStringLength,s="... "+o+" more character"+(o>1?"s":"");return inspectString($slice.call(r,0,t.maxStringLength),t)+s}var l=$replace.call($replace.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(l,"single",t)}function lowbyte(r){var t=r.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(r){return"Object("+r+")"}function weakCollectionOf(r){return r+" { ? }"}function collectionOf(r,t,o,s){var l=s?indentedJoin(o,s):$join.call(o,", ");return r+" ("+t+") {"+l+"}"}function singleLineValues(r){for(var t=0;t<r.length;t++)if(indexOf$1(r[t],`
`)>=0)return!1;return!0}function getIndent(r,t){var o;if(r.indent===" ")o=" ";else if(typeof r.indent=="number"&&r.indent>0)o=$join.call(Array(r.indent+1)," ");else return null;return{base:o,prev:$join.call(Array(t+1),o)}}function indentedJoin(r,t){if(r.length===0)return"";var o=`
`+t.prev+t.base;return o+$join.call(r,","+o)+`
`+t.prev}function arrObjKeys(r,t){var o=isArray$6(r),s=[];if(o){s.length=r.length;for(var l=0;l<r.length;l++)s[l]=has$4(r,l)?t(r[l],r):""}var v=typeof gOPS=="function"?gOPS(r):[],x;if(hasShammedSymbols){x={};for(var A=0;A<v.length;A++)x["$"+v[A]]=v[A]}for(var w in r)has$4(r,w)&&(o&&String(Number(w))===w&&w<r.length||hasShammedSymbols&&x["$"+w]instanceof Symbol||($test.call(/[^\w$]/,w)?s.push(t(w,r)+": "+t(r[w],r)):s.push(w+": "+t(r[w],r))));if(typeof gOPS=="function")for(var E=0;E<v.length;E++)isEnumerable.call(r,v[E])&&s.push("["+t(v[E])+"]: "+t(r[v[E]],r));return s}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(r,t){for(var o=r,s;(s=o.next)!==null;o=s)if(s.key===t)return o.next=s.next,s.next=r.next,r.next=s,s},listGet=function(r,t){var o=listGetNode(r,t);return o&&o.value},listSet=function(r,t,o){var s=listGetNode(r,t);s?s.value=o:r.next={key:t,next:r.next,value:o}},listHas=function(r,t){return!!listGetNode(r,t)},sideChannel=function(){var t,o,s,l={assert:function(v){if(!l.has(v))throw new $TypeError("Side channel does not contain "+inspect(v))},get:function(v){if($WeakMap&&v&&(typeof v=="object"||typeof v=="function")){if(t)return $weakMapGet(t,v)}else if($Map){if(o)return $mapGet(o,v)}else if(s)return listGet(s,v)},has:function(v){if($WeakMap&&v&&(typeof v=="object"||typeof v=="function")){if(t)return $weakMapHas(t,v)}else if($Map){if(o)return $mapHas(o,v)}else if(s)return listHas(s,v);return!1},set:function(v,x){$WeakMap&&v&&(typeof v=="object"||typeof v=="function")?(t||(t=new $WeakMap),$weakMapSet(t,v,x)):$Map?(o||(o=new $Map),$mapSet(o,v,x)):(s||(s={key:{},next:null}),listSet(s,v,x))}};return l},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(r){return replace.call(r,percentTwenties,"+")},RFC3986:function(r){return String(r)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$3=Object.prototype.hasOwnProperty,isArray$5=Array.isArray,hexTable=function(){for(var r=[],t=0;t<256;++t)r.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return r}(),compactQueue=function(t){for(;t.length>1;){var o=t.pop(),s=o.obj[o.prop];if(isArray$5(s)){for(var l=[],v=0;v<s.length;++v)typeof s[v]<"u"&&l.push(s[v]);o.obj[o.prop]=l}}},arrayToObject=function(t,o){for(var s=o&&o.plainObjects?Object.create(null):{},l=0;l<t.length;++l)typeof t[l]<"u"&&(s[l]=t[l]);return s},merge$1=function r(t,o,s){if(!o)return t;if(typeof o!="object"){if(isArray$5(t))t.push(o);else if(t&&typeof t=="object")(s&&(s.plainObjects||s.allowPrototypes)||!has$3.call(Object.prototype,o))&&(t[o]=!0);else return[t,o];return t}if(!t||typeof t!="object")return[t].concat(o);var l=t;return isArray$5(t)&&!isArray$5(o)&&(l=arrayToObject(t,s)),isArray$5(t)&&isArray$5(o)?(o.forEach(function(v,x){if(has$3.call(t,x)){var A=t[x];A&&typeof A=="object"&&v&&typeof v=="object"?t[x]=r(A,v,s):t.push(v)}else t[x]=v}),t):Object.keys(o).reduce(function(v,x){var A=o[x];return has$3.call(v,x)?v[x]=r(v[x],A,s):v[x]=A,v},l)},assign=function(t,o){return Object.keys(o).reduce(function(s,l){return s[l]=o[l],s},t)},decode$1=function(r,t,o){var s=r.replace(/\+/g," ");if(o==="iso-8859-1")return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch{return s}},encode=function(t,o,s,l,v){if(t.length===0)return t;var x=t;if(typeof t=="symbol"?x=Symbol.prototype.toString.call(t):typeof t!="string"&&(x=String(t)),s==="iso-8859-1")return escape(x).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var A="",w=0;w<x.length;++w){var E=x.charCodeAt(w);if(E===45||E===46||E===95||E===126||E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122||v===formats$2.RFC1738&&(E===40||E===41)){A+=x.charAt(w);continue}if(E<128){A=A+hexTable[E];continue}if(E<2048){A=A+(hexTable[192|E>>6]+hexTable[128|E&63]);continue}if(E<55296||E>=57344){A=A+(hexTable[224|E>>12]+hexTable[128|E>>6&63]+hexTable[128|E&63]);continue}w+=1,E=65536+((E&1023)<<10|x.charCodeAt(w)&1023),A+=hexTable[240|E>>18]+hexTable[128|E>>12&63]+hexTable[128|E>>6&63]+hexTable[128|E&63]}return A},compact=function(t){for(var o=[{obj:{o:t},prop:"o"}],s=[],l=0;l<o.length;++l)for(var v=o[l],x=v.obj[v.prop],A=Object.keys(x),w=0;w<A.length;++w){var E=A[w],C=x[E];typeof C=="object"&&C!==null&&s.indexOf(C)===-1&&(o.push({obj:x,prop:E}),s.push(C))}return compactQueue(o),t},isRegExp$1=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},isBuffer=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},combine=function(t,o){return[].concat(t,o)},maybeMap=function(t,o){if(isArray$5(t)){for(var s=[],l=0;l<t.length;l+=1)s.push(o(t[l]));return s}return o(t)},utils$6={arrayToObject,assign,combine,compact,decode:decode$1,encode,isBuffer,isRegExp:isRegExp$1,maybeMap,merge:merge$1},getSideChannel=sideChannel,utils$5=utils$6,formats$1=formats$3,has$2=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,o){return t+"["+o+"]"},repeat:function(t){return t}},isArray$4=Array.isArray,push$1=Array.prototype.push,pushToArray=function(r,t){push$1.apply(r,isArray$4(t)?t:[t])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$2={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$5.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(t){return toISO.call(t)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},sentinel={},stringify$2=function r(t,o,s,l,v,x,A,w,E,C,R,$,V,z,F,B){for(var W=t,Y=B,Z=0,X=!1;(Y=Y.get(sentinel))!==void 0&&!X;){var ae=Y.get(t);if(Z+=1,typeof ae<"u"){if(ae===Z)throw new RangeError("Cyclic object value");X=!0}typeof Y.get(sentinel)>"u"&&(Z=0)}if(typeof w=="function"?W=w(o,W):W instanceof Date?W=R(W):s==="comma"&&isArray$4(W)&&(W=utils$5.maybeMap(W,function(Me){return Me instanceof Date?R(Me):Me})),W===null){if(v)return A&&!z?A(o,defaults$2.encoder,F,"key",$):o;W=""}if(isNonNullishPrimitive(W)||utils$5.isBuffer(W)){if(A){var ie=z?o:A(o,defaults$2.encoder,F,"key",$);return[V(ie)+"="+V(A(W,defaults$2.encoder,F,"value",$))]}return[V(o)+"="+V(String(W))]}var oe=[];if(typeof W>"u")return oe;var le;if(s==="comma"&&isArray$4(W))z&&A&&(W=utils$5.maybeMap(W,A)),le=[{value:W.length>0?W.join(",")||null:void 0}];else if(isArray$4(w))le=w;else{var ve=Object.keys(W);le=E?ve.sort(E):ve}for(var xe=l&&isArray$4(W)&&W.length===1?o+"[]":o,_e=0;_e<le.length;++_e){var Te=le[_e],Ee=typeof Te=="object"&&typeof Te.value<"u"?Te.value:W[Te];if(!(x&&Ee===null)){var Ce=isArray$4(W)?typeof s=="function"?s(xe,Te):xe:xe+(C?"."+Te:"["+Te+"]");B.set(t,Z);var Pe=getSideChannel();Pe.set(sentinel,B),pushToArray(oe,r(Ee,Ce,s,l,v,x,s==="comma"&&z&&isArray$4(W)?null:A,w,E,C,R,$,V,z,F,Pe))}}return oe},normalizeStringifyOptions=function(t){if(!t)return defaults$2;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=t.charset||defaults$2.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=formats$1.default;if(typeof t.format<"u"){if(!has$2.call(formats$1.formatters,t.format))throw new TypeError("Unknown format option provided.");s=t.format}var l=formats$1.formatters[s],v=defaults$2.filter;return(typeof t.filter=="function"||isArray$4(t.filter))&&(v=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof t.allowDots>"u"?defaults$2.allowDots:!!t.allowDots,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof t.delimiter>"u"?defaults$2.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:defaults$2.encode,encoder:typeof t.encoder=="function"?t.encoder:defaults$2.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:v,format:s,formatter:l,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:defaults$2.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:defaults$2.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(r,t){var o=r,s=normalizeStringifyOptions(t),l,v;typeof s.filter=="function"?(v=s.filter,o=v("",o)):isArray$4(s.filter)&&(v=s.filter,l=v);var x=[];if(typeof o!="object"||o===null)return"";var A;t&&t.arrayFormat in arrayPrefixGenerators?A=t.arrayFormat:t&&"indices"in t?A=t.indices?"indices":"repeat":A="indices";var w=arrayPrefixGenerators[A];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var E=w==="comma"&&t&&t.commaRoundTrip;l||(l=Object.keys(o)),s.sort&&l.sort(s.sort);for(var C=getSideChannel(),R=0;R<l.length;++R){var $=l[R];s.skipNulls&&o[$]===null||pushToArray(x,stringify$2(o[$],$,w,E,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,C))}var V=x.join(s.delimiter),z=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?z+="utf8=%26%2310003%3B&":z+="utf8=%E2%9C%93&"),V.length>0?z+V:""},utils$4=utils$6,has$1=Object.prototype.hasOwnProperty,isArray$3=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$4.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(r){return r.replace(/&#(\d+);/g,function(t,o){return String.fromCharCode(parseInt(o,10))})},parseArrayValue=function(r,t){return r&&typeof r=="string"&&t.comma&&r.indexOf(",")>-1?r.split(","):r},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(t,o){var s={},l=o.ignoreQueryPrefix?t.replace(/^\?/,""):t,v=o.parameterLimit===1/0?void 0:o.parameterLimit,x=l.split(o.delimiter,v),A=-1,w,E=o.charset;if(o.charsetSentinel)for(w=0;w<x.length;++w)x[w].indexOf("utf8=")===0&&(x[w]===charsetSentinel?E="utf-8":x[w]===isoSentinel&&(E="iso-8859-1"),A=w,w=x.length);for(w=0;w<x.length;++w)if(w!==A){var C=x[w],R=C.indexOf("]="),$=R===-1?C.indexOf("="):R+1,V,z;$===-1?(V=o.decoder(C,defaults$1.decoder,E,"key"),z=o.strictNullHandling?null:""):(V=o.decoder(C.slice(0,$),defaults$1.decoder,E,"key"),z=utils$4.maybeMap(parseArrayValue(C.slice($+1),o),function(F){return o.decoder(F,defaults$1.decoder,E,"value")})),z&&o.interpretNumericEntities&&E==="iso-8859-1"&&(z=interpretNumericEntities(z)),C.indexOf("[]=")>-1&&(z=isArray$3(z)?[z]:z),has$1.call(s,V)?s[V]=utils$4.combine(s[V],z):s[V]=z}return s},parseObject=function(r,t,o,s){for(var l=s?t:parseArrayValue(t,o),v=r.length-1;v>=0;--v){var x,A=r[v];if(A==="[]"&&o.parseArrays)x=[].concat(l);else{x=o.plainObjects?Object.create(null):{};var w=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,E=parseInt(w,10);!o.parseArrays&&w===""?x={0:l}:!isNaN(E)&&A!==w&&String(E)===w&&E>=0&&o.parseArrays&&E<=o.arrayLimit?(x=[],x[E]=l):w!=="__proto__"&&(x[w]=l)}l=x}return l},parseKeys=function(t,o,s,l){if(t){var v=s.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,x=/(\[[^[\]]*])/,A=/(\[[^[\]]*])/g,w=s.depth>0&&x.exec(v),E=w?v.slice(0,w.index):v,C=[];if(E){if(!s.plainObjects&&has$1.call(Object.prototype,E)&&!s.allowPrototypes)return;C.push(E)}for(var R=0;s.depth>0&&(w=A.exec(v))!==null&&R<s.depth;){if(R+=1,!s.plainObjects&&has$1.call(Object.prototype,w[1].slice(1,-1))&&!s.allowPrototypes)return;C.push(w[1])}return w&&C.push("["+v.slice(w.index)+"]"),parseObject(C,o,s,l)}},normalizeParseOptions=function(t){if(!t)return defaults$1;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=typeof t.charset>"u"?defaults$1.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?defaults$1.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:defaults$1.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:defaults$1.arrayLimit,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:defaults$1.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:defaults$1.comma,decoder:typeof t.decoder=="function"?t.decoder:defaults$1.decoder,delimiter:typeof t.delimiter=="string"||utils$4.isRegExp(t.delimiter)?t.delimiter:defaults$1.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:defaults$1.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:defaults$1.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function(r,t){var o=normalizeParseOptions(t);if(r===""||r===null||typeof r>"u")return o.plainObjects?Object.create(null):{};for(var s=typeof r=="string"?parseValues(r,o):r,l=o.plainObjects?Object.create(null):{},v=Object.keys(s),x=0;x<v.length;++x){var A=v[x],w=parseKeys(A,s[A],o,typeof r=="string");l=utils$4.merge(l,w,o)}return o.allowSparse===!0?l:utils$4.compact(l)},stringify$1=stringify_1,parse$3=parse$4,formats=formats$3,lib={formats,parse:parse$3,stringify:stringify$1},nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */(function(r,t){(function(o,s){r.exports=s()})(commonjsGlobal,function(){var o={};o.version="0.2.0";var s=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};o.configure=function(z){var F,B;for(F in z)B=z[F],B!==void 0&&z.hasOwnProperty(F)&&(s[F]=B);return this},o.status=null,o.set=function(z){var F=o.isStarted();z=l(z,s.minimum,1),o.status=z===1?null:z;var B=o.render(!F),W=B.querySelector(s.barSelector),Y=s.speed,Z=s.easing;return B.offsetWidth,A(function(X){s.positionUsing===""&&(s.positionUsing=o.getPositioningCSS()),w(W,x(z,Y,Z)),z===1?(w(B,{transition:"none",opacity:1}),B.offsetWidth,setTimeout(function(){w(B,{transition:"all "+Y+"ms linear",opacity:0}),setTimeout(function(){o.remove(),X()},Y)},Y)):setTimeout(X,Y)}),this},o.isStarted=function(){return typeof o.status=="number"},o.start=function(){o.status||o.set(0);var z=function(){setTimeout(function(){o.status&&(o.trickle(),z())},s.trickleSpeed)};return s.trickle&&z(),this},o.done=function(z){return!z&&!o.status?this:o.inc(.3+.5*Math.random()).set(1)},o.inc=function(z){var F=o.status;return F?(typeof z!="number"&&(z=(1-F)*l(Math.random()*F,.1,.95)),F=l(F+z,0,.994),o.set(F)):o.start()},o.trickle=function(){return o.inc(Math.random()*s.trickleRate)},function(){var z=0,F=0;o.promise=function(B){return!B||B.state()==="resolved"?this:(F===0&&o.start(),z++,F++,B.always(function(){F--,F===0?(z=0,o.done()):o.set((z-F)/z)}),this)}}(),o.render=function(z){if(o.isRendered())return document.getElementById("nprogress");C(document.documentElement,"nprogress-busy");var F=document.createElement("div");F.id="nprogress",F.innerHTML=s.template;var B=F.querySelector(s.barSelector),W=z?"-100":v(o.status||0),Y=document.querySelector(s.parent),Z;return w(B,{transition:"all 0 linear",transform:"translate3d("+W+"%,0,0)"}),s.showSpinner||(Z=F.querySelector(s.spinnerSelector),Z&&V(Z)),Y!=document.body&&C(Y,"nprogress-custom-parent"),Y.appendChild(F),F},o.remove=function(){R(document.documentElement,"nprogress-busy"),R(document.querySelector(s.parent),"nprogress-custom-parent");var z=document.getElementById("nprogress");z&&V(z)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var z=document.body.style,F="WebkitTransform"in z?"Webkit":"MozTransform"in z?"Moz":"msTransform"in z?"ms":"OTransform"in z?"O":"";return F+"Perspective"in z?"translate3d":F+"Transform"in z?"translate":"margin"};function l(z,F,B){return z<F?F:z>B?B:z}function v(z){return(-1+z)*100}function x(z,F,B){var W;return s.positionUsing==="translate3d"?W={transform:"translate3d("+v(z)+"%,0,0)"}:s.positionUsing==="translate"?W={transform:"translate("+v(z)+"%,0)"}:W={"margin-left":v(z)+"%"},W.transition="all "+F+"ms "+B,W}var A=function(){var z=[];function F(){var B=z.shift();B&&B(F)}return function(B){z.push(B),z.length==1&&F()}}(),w=function(){var z=["Webkit","O","Moz","ms"],F={};function B(X){return X.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(ae,ie){return ie.toUpperCase()})}function W(X){var ae=document.body.style;if(X in ae)return X;for(var ie=z.length,oe=X.charAt(0).toUpperCase()+X.slice(1),le;ie--;)if(le=z[ie]+oe,le in ae)return le;return X}function Y(X){return X=B(X),F[X]||(F[X]=W(X))}function Z(X,ae,ie){ae=Y(ae),X.style[ae]=ie}return function(X,ae){var ie=arguments,oe,le;if(ie.length==2)for(oe in ae)le=ae[oe],le!==void 0&&ae.hasOwnProperty(oe)&&Z(X,oe,le);else Z(X,ie[1],ie[2])}}();function E(z,F){var B=typeof z=="string"?z:$(z);return B.indexOf(" "+F+" ")>=0}function C(z,F){var B=$(z),W=B+F;E(B,F)||(z.className=W.substring(1))}function R(z,F){var B=$(z),W;E(z,F)&&(W=B.replace(" "+F+" "," "),z.className=W.substring(1,W.length-1))}function $(z){return(" "+(z.className||"")+" ").replace(/\s+/gi," ")}function V(z){z&&z.parentNode&&z.parentNode.removeChild(z)}return o})})(nprogress$1);var nprogressExports=nprogress$1.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),nprogress="";NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const defaultConfig$1={timeout:1e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},paramsSerializer:{serialize:lib.stringify}},Vt=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(t){return new Promise(o=>{Vt.requests.push(s=>{t.headers.Authorization=formatToken(s),o(t)})})}httpInterceptorsRequest(){Vt.axiosInstance.interceptors.request.use(async t=>(NProgress.start(),typeof t.beforeRequestCallback=="function"?(t.beforeRequestCallback(t),t):Vt.initConfig.beforeRequestCallback?(Vt.initConfig.beforeRequestCallback(t),t):["/refreshToken","/login"].some(s=>t.url.indexOf(s)>-1)?t:new Promise(s=>{const l=getToken();if(l){const v=new Date().getTime();parseInt(l.expires)-v<=0?(Vt.isRefreshing||(Vt.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:l.refreshToken}).then(A=>{const w=A.data.accessToken;t.headers.Authorization=formatToken(w),Vt.requests.forEach(E=>E(w)),Vt.requests=[]}).finally(()=>{Vt.isRefreshing=!1})),s(Vt.retryOriginalRequest(t))):(t.headers.Authorization=formatToken(l.accessToken),s(t))}else s(t)})),t=>Promise.reject(t))}httpInterceptorsResponse(){Vt.axiosInstance.interceptors.response.use(o=>{const s=o.config;return NProgress.done(),typeof s.beforeResponseCallback=="function"?(s.beforeResponseCallback(o),o.data):(Vt.initConfig.beforeResponseCallback&&Vt.initConfig.beforeResponseCallback(o),o.data)},o=>{const s=o;return s.isCancelRequest=axios.isCancel(s),NProgress.done(),Promise.reject(s)})}request(t,o,s,l){const v={method:t,url:o,...s,...l};return new Promise((x,A)=>{Vt.axiosInstance.request(v).then(w=>{x(w)}).catch(w=>{A(w)})})}post(t,o,s){return this.request("post",t,o,s)}get(t,o,s){return this.request("get",t,o,s)}};let PureHttp=Vt;ir(PureHttp,"requests",[]),ir(PureHttp,"isRefreshing",!1),ir(PureHttp,"initConfig",{}),ir(PureHttp,"axiosInstance",axios.create(defaultConfig$1));const http=new PureHttp,getLogin=r=>http.request("post","/login",{data:r}),refreshTokenApi=r=>http.request("post","/refreshToken",{data:r}),useMultiTagsStore=Pinia.defineStore({id:"pure-multiTags",state:()=>{var r,t;return{multiTags:(r=Kn().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&r.multiTagsCache?Kn().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(t=Kn().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:t.multiTagsCache}},getters:{getMultiTagsCache(r){return r.multiTagsCache}},actions:{multiTagsCacheChange(r){this.multiTagsCache=r,r?Kn().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):Kn().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache(r){this.getMultiTagsCache&&Kn().setItem(`${responsiveStorageNameSpace()}tags`,r)},handleTags(r,t,o){var s,l,v,x,A;switch(r){case"equal":this.multiTags=t,this.tagsCache(this.multiTags);break;case"push":{const w=t;if((s=w==null?void 0:w.meta)!=null&&s.hiddenTag||dt(w==null?void 0:w.name)||((l=w==null?void 0:w.meta)==null?void 0:l.title.length)===0||Ae((v=w==null?void 0:w.meta)==null?void 0:v.showLink)&&!((x=w==null?void 0:w.meta)!=null&&x.showLink))return;const E=w.path,C=this.multiTags.some(z=>z.path===E),R=this.multiTags.some(z=>Mt(z==null?void 0:z.query,w==null?void 0:w.query)),$=this.multiTags.some(z=>Mt(z==null?void 0:z.params,w==null?void 0:w.params));if(C&&R&&$)return;const V=((A=w==null?void 0:w.meta)==null?void 0:A.dynamicLevel)??-1;if(V>0&&this.multiTags.filter(z=>(z==null?void 0:z.path)===E).length>=V){const z=this.multiTags.findIndex(F=>(F==null?void 0:F.path)===E);z!==-1&&this.multiTags.splice(z,1)}this.multiTags.push(t),this.tagsCache(this.multiTags)}break;case"splice":if(o)this.multiTags.splice(o==null?void 0:o.startIndex,o==null?void 0:o.length);else{const w=this.multiTags.findIndex(E=>E.path===t);if(w===-1)return;this.multiTags.splice(w,1)}return this.tagsCache(this.multiTags),this.multiTags;case"slice":return this.multiTags.slice(-1)}}}});function useMultiTagsStoreHook(){return useMultiTagsStore(store)}const useUserStore=Pinia.defineStore({id:"pure-user",state:()=>{var r,t;return{username:((r=Qn().getItem(sessionKey))==null?void 0:r.username)??"",roles:((t=Qn().getItem(sessionKey))==null?void 0:t.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME(r){this.username=r},SET_ROLES(r){this.roles=r},SET_VERIFYCODE(r){this.verifyCode=r},SET_CURRENTPAGE(r){this.currentPage=r},async loginByUsername(r){return new Promise((t,o)=>{getLogin(r).then(s=>{s&&(setToken(s.data),t(s))}).catch(s=>{o(s)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken(r){return new Promise((t,o)=>{refreshTokenApi(r).then(s=>{s&&(setToken(s.data),t(s))}).catch(s=>{o(s)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):Qn().getItem(sessionKey)}function setToken(r){var x,A;let t=0;const{accessToken:o,refreshToken:s}=r;t=new Date(r.expires).getTime();const l=JSON.stringify({accessToken:o,expires:t});t>0?api.set(TokenKey,l,{expires:(t-Date.now())/864e5}):api.set(TokenKey,l);function v(w,E){useUserStoreHook().SET_USERNAME(w),useUserStoreHook().SET_ROLES(E),Qn().setItem(sessionKey,{refreshToken:s,expires:t,username:w,roles:E})}if(r.username&&r.roles){const{username:w,roles:E}=r;v(w,E)}else{const w=((x=Qn().getItem(sessionKey))==null?void 0:x.username)??"",E=((A=Qn().getItem(sessionKey))==null?void 0:A.roles)??[];v(w,E)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=r=>"Bearer "+r;(function(){const r=fr(location.href),t=["username","roles","accessToken"],o=t.length;if(Object.keys(r).length!==o)return;let s=[],l=0;for(;l<o;)Object.keys(r).includes(t[l])&&s.length<=o?s.push(t[l]):s=[],l++;if(s.length===o){removeToken(),setToken(r),delete r.roles,delete r.accessToken;const v=`${location.origin}${location.pathname}${Xt(location.hash,"?")}?${JSON.stringify(r).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(v)}else return})();const extractPathList=r=>{if(!Array.isArray(r))return console.warn("tree must be an array"),[];if(!r||r.length===0)return[];const t=[];for(const o of r)o.children&&o.children.length>0&&extractPathList(o.children),t.push(o.uniqueId);return t},deleteChildren=(r,t=[])=>{if(!Array.isArray(r))return console.warn("menuTree must be an array"),[];if(!r||r.length===0)return[];for(const[o,s]of r.entries())s.children&&s.children.length===1&&delete s.children,s.id=o,s.parentId=t.length?t[t.length-1]:null,s.pathList=[...t,s.id],s.uniqueId=s.pathList.length>1?s.pathList.join("-"):s.pathList[0],s.children&&s.children.length>0&&deleteChildren(s.children,s.pathList);return r},buildHierarchyTree=(r,t=[])=>{if(!Array.isArray(r))return console.warn("tree must be an array"),[];if(!r||r.length===0)return[];for(const[o,s]of r.entries())s.id=o,s.parentId=t.length?t[t.length-1]:null,s.pathList=[...t,s.id],s.children&&s.children.length>0&&buildHierarchyTree(s.children,s.pathList);return r},getNodeByUniqueId=(r,t)=>{if(!Array.isArray(r))return console.warn("menuTree must be an array"),[];if(!r||r.length===0)return[];const o=r.find(l=>l.uniqueId===t);if(o)return o;const s=r.filter(l=>l.children).map(l=>l.children).flat(1);return getNodeByUniqueId(s,t)},appendFieldByUniqueId=(r,t,o)=>{if(!Array.isArray(r))return console.warn("menuTree must be an array"),[];if(!r||r.length===0)return[];for(const s of r){const l=s.children&&s.children.length>0;s.uniqueId===t&&Object.prototype.toString.call(o)==="[object Object]"&&Object.assign(s,o),l&&appendFieldByUniqueId(s.children,t,o)}return r},handleTree=(r,t,o,s)=>{if(!Array.isArray(r))return console.warn("data must be an array"),[];const l={id:t||"id",parentId:o||"parentId",childrenList:s||"children"},v={},x={},A=[];for(const E of r){const C=E[l.parentId];v[C]==null&&(v[C]=[]),x[E[l.id]]=E,v[C].push(E)}for(const E of r){const C=E[l.parentId];x[C]==null&&A.push(E)}for(const E of A)w(E);function w(E){if(v[E[l.id]]!==null&&(E[l.childrenList]=v[E[l.id]]),E[l.childrenList])for(const C of E[l.childrenList])w(C)}return A},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-535a4e9c.js"),["static/js/frameView-535a4e9c.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-6d872a2e.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-7d8981a0.js"),["static/js/cascader-7d8981a0.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-e8eccde8.js"),["static/js/debounce-e8eccde8.js","static/js/message-9ae1daa3.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-a3bbbdbf.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-40f04d43.js"),["static/js/execl-40f04d43.js","static/js/xlsx-e927f539.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-7261ae3c.js"),["static/js/icon-select-7261ae3c.js","static/css/icon-select-f6ac52ad.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-f059b49d.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-26ddd513.js"),["static/js/line-tree-26ddd513.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-8bc90927.js"),["static/js/menu-tree-8bc90927.js","static/js/hooks-55e29a46.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-23c1b4b4.js"),["static/js/pdf-23c1b4b4.js","static/js/_vue_commonjs-external-c09696f7.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-4cf3a1e0.js"),["static/js/print-4cf3a1e0.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js","static/js/app-7adcc40f.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-b52874b8.js"),["static/js/qrcode-b52874b8.js","static/js/message-9ae1daa3.js","static/js/index-29a339f3.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-ff2b8019.js"),["static/js/swiper-ff2b8019.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-ecc59a22.js"),["static/js/timeline-ecc59a22.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/js/hooks-55e29a46.js","static/js/iphone-89710f1a.js","static/css/timeline-0391e3d4.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-47dea087.js"),["static/js/horizontal-47dea087.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-42d975f6.js"),["static/js/index-42d975f6.js","static/js/vertical-c67ab039.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-47dea087.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-c67ab039.js"),["static/js/vertical-c67ab039.js","static/js/vue-virtual-scroller.esm-909b27d4.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-71d8fef6.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-583d93a9.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-db03b490.js"),["static/js/index-db03b490.js","static/js/columns-583d93a9.js","static/css/index-14544c94.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-5401e768.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-568930cb.js"),["static/js/basic-568930cb.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-8ead185b.js"),["static/js/index-8ead185b.js","static/js/basic-568930cb.js","static/js/index.esm-ba027bbc.js","static/css/basic-d842f1a0.css","static/js/menuGroup-1d509aa1.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-20a0b66d.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-20a0b66d.js"),["static/js/menuDynamic-20a0b66d.js","static/js/index.esm-ba027bbc.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-1d509aa1.js"),["static/js/menuGroup-1d509aa1.js","static/js/index.esm-ba027bbc.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-a9d53612.js"),["static/js/index-a9d53612.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-6bd36615.js"),["static/js/index-6bd36615.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-f7a391a0.js"),["static/js/index-f7a391a0.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-a3057bb7.js"),["static/js/form-a3057bb7.js","static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-5350eda7.js"),["static/js/index-5350eda7.js","static/js/message-9ae1daa3.js","static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-0a0d5e28.js"),["static/js/index-0a0d5e28.js","static/js/sortable.esm-679e0872.js","static/js/app-7adcc40f.js","static/js/hooks-55e29a46.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-638fd271.js"),["static/js/index-638fd271.js","static/js/styles-eecf6cc2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-17baec95.js"),["static/js/index-17baec95.js","static/css/index-d504fa9c.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-45f82129.js"),["static/js/index-45f82129.js","static/js/message-9ae1daa3.js","static/js/hooks-55e29a46.js","static/js/check-f53d8364.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-1245da83.js"),["static/js/index-1245da83.js","static/js/index-f1e7ee6d.js","static/css/index-53a917f7.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-7ea256f3.js"),["static/js/index-7ea256f3.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-bc534f29.js"),["static/js/index-bc534f29.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-bdd5ab08.js"),["static/js/index-bdd5ab08.js","static/js/index-771e958b.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-1d8001c7.js"),["static/js/index-1d8001c7.js","static/js/hooks-55e29a46.js","static/css/index-11b4621f.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-0e070646.js"),["static/js/index-0e070646.js","static/js/hooks-55e29a46.js","static/js/edit-542ce8b5.js","static/css/index-f38a3df6.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-1b03d1d4.js"),["static/js/index-1b03d1d4.js","static/css/index-218e4ba3.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-63441291.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-aad1e074.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-4d370a5c.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-bc3a5417.js"),["static/js/index-bc3a5417.js","static/js/hooks-55e29a46.js","static/js/styles-eecf6cc2.js","static/js/_vue_commonjs-external-c09696f7.js","static/css/styles-670012e0.css","static/js/set-up-729eb907.js","static/css/index-6bd35e69.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-2c297e1e.js"),["static/js/index-2c297e1e.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-83689119.js"),["static/js/Card-83689119.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-fd684ffb.js"),["static/js/DialogForm-fd684ffb.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js","static/js/message-9ae1daa3.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-785bcb23.js"),["static/js/index-785bcb23.js","static/js/Card-83689119.js","static/js/more-2-fill-4bb0933c.js","static/css/Card-6b1295ac.css","static/js/message-9ae1daa3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js","static/js/hooks-55e29a46.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-0f358062.js"),["static/js/phone-0f358062.js","static/js/phone.vue_vue_type_script_setup_true_lang-0bf7df16.js","static/js/motion-a9ba222e.js","static/js/message-9ae1daa3.js","static/js/verifyCode-6eeef2f5.js","static/js/hooks-55e29a46.js","static/js/iphone-89710f1a.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-cfe7fe42.js"),["static/js/qrCode-cfe7fe42.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-d7a3b8f9.js","static/js/motion-a9ba222e.js","static/js/index-29a339f3.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-cbbdd0f6.js"),["static/js/regist-cbbdd0f6.js","static/js/regist.vue_vue_type_script_setup_true_lang-e1a9de78.js","static/js/motion-a9ba222e.js","static/js/message-9ae1daa3.js","static/js/verifyCode-6eeef2f5.js","static/js/hooks-55e29a46.js","static/js/lock-fill-c966ff17.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update-27f4ba37.js"),["static/js/update-27f4ba37.js","static/js/update.vue_vue_type_script_setup_true_lang-521adc1b.js","static/js/motion-a9ba222e.js","static/js/message-9ae1daa3.js","static/js/verifyCode-6eeef2f5.js","static/js/hooks-55e29a46.js","static/js/lock-fill-c966ff17.js","static/js/iphone-89710f1a.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-bf5d389a.js"),["static/js/index-bf5d389a.js","static/js/motion-a9ba222e.js","static/js/message-9ae1daa3.js","static/js/verifyCode-6eeef2f5.js","static/js/phone.vue_vue_type_script_setup_true_lang-0bf7df16.js","static/js/hooks-55e29a46.js","static/js/iphone-89710f1a.js","static/js/index-771e958b.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-d7a3b8f9.js","static/js/index-29a339f3.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-e1a9de78.js","static/js/lock-fill-c966ff17.js","static/js/user-3-fill-99d174b6.js","static/js/update.vue_vue_type_script_setup_true_lang-521adc1b.js","static/js/dark-2f4f0a96.js","static/js/app-7adcc40f.js","static/js/epTheme-d89c26ff.js","static/js/check-f53d8364.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-be914bdb.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-f9b60cce.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-9b74b1b4.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-f0630e7a.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-9312b9c4.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-1610e1d6.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-e42eaf5b.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-8a536d03.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-f3d75240.js"),["static/js/base-f3d75240.js","static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-79d46992.js"),["static/js/border-79d46992.js","static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-3d82d5a7.js"),["static/js/columns-3d82d5a7.js","static/js/message-9ae1daa3.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-f1c399f6.js"),["static/js/index-f1c399f6.js","static/js/index.vue_vue_type_script_setup_true_lang-768133c2.js","static/js/columns-3d82d5a7.js","static/js/message-9ae1daa3.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-d23805e1.js"),["static/js/customIndex-d23805e1.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-fbc86f9f.js"),["static/js/expand-fbc86f9f.js","static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-ad96158d.js"),["static/js/filters-ad96158d.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-0a0ff886.js"),["static/js/fixColumn-0a0ff886.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-ce0b6275.js"),["static/js/fixHeader-ce0b6275.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-54a7bb59.js"),["static/js/fluidHeight-54a7bb59.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-03d30b86.js"),["static/js/groupHeader-03d30b86.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-c7818246.js"),["static/js/columns-c7818246.js","static/js/message-9ae1daa3.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-7d94e9d7.js"),["static/js/index-7d94e9d7.js","static/js/index.vue_vue_type_script_setup_true_lang-9b251ba5.js","static/js/columns-c7818246.js","static/js/message-9ae1daa3.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-b8d58cc5.js"),["static/js/imgPreview-b8d58cc5.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-ed107b85.js"),["static/js/layout-ed107b85.js","static/js/layout.vue_vue_type_script_setup_true_lang-9b77194a.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-83f31031.js"),["static/js/list-83f31031.js","static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js","static/js/data-5ec60fc2.js","static/js/stripe.vue_vue_type_script_setup_true_lang-5d3a4fba.js","static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js","static/js/status.vue_vue_type_style_index_0_lang-fee2fcc7.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js","static/js/radio.vue_vue_type_script_setup_true_lang-1c8aa556.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-12c2e5fd.js","static/js/sortable.vue_vue_type_script_setup_true_lang-29dd24dd.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-768133c2.js","static/js/columns-3d82d5a7.js","static/js/message-9ae1daa3.js","static/js/index.vue_vue_type_script_setup_true_lang-9b251ba5.js","static/js/columns-c7818246.js","static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js","static/js/layout.vue_vue_type_script_setup_true_lang-9b77194a.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-98ffa0d0.js"),["static/js/merge-98ffa0d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-13532d31.js"),["static/js/multipleChoice-13532d31.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-12c2e5fd.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-b89c4de9.js"),["static/js/nestProp-b89c4de9.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-37d5eba0.js"),["static/js/radio-37d5eba0.js","static/js/radio.vue_vue_type_script_setup_true_lang-1c8aa556.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-b2a39205.js"),["static/js/sortable-b2a39205.js","static/js/sortable.vue_vue_type_script_setup_true_lang-29dd24dd.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-5092e6e4.js"),["static/js/status-5092e6e4.js","static/js/status.vue_vue_type_style_index_0_lang-fee2fcc7.js","static/js/data-5ec60fc2.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-291be748.js"),["static/js/stripe-291be748.js","static/js/stripe.vue_vue_type_script_setup_true_lang-5d3a4fba.js","static/js/data-5ec60fc2.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-3752b049.js"),["static/js/totalRow-3752b049.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-16e86dfe.js"),["static/js/tree-16e86dfe.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-5ebc0ab0.js"),["static/js/high-5ebc0ab0.js","static/js/list-937f8d1f.js","static/js/index.vue_vue_type_script_setup_true_lang-ffe395c1.js","static/js/columns-928b7b53.js","static/js/data-8e10e21a.js","static/js/index.vue_vue_type_script_setup_true_lang-dba0d268.js","static/js/columns-174f6fc9.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-c22a8fe5.js","static/js/columns-0893fc98.js","static/js/index.vue_vue_type_script_setup_true_lang-57395104.js","static/js/columns-db1f92e9.js","static/js/message-9ae1daa3.js","static/js/index.vue_vue_type_script_setup_true_lang-cf392244.js","static/js/columns-e5493833.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-2716c923.js","static/js/columns-5d6f3a23.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-717fb06e.js","static/js/columns-f7651f28.js","static/js/index.vue_vue_type_script_setup_true_lang-a932c026.js","static/js/columns-49cce1a9.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-e92884ca.js","static/js/columns-97dc43c8.js","static/js/index-f1e7ee6d.js","static/js/index.vue_vue_type_script_setup_true_lang-32e05a0c.js","static/js/index.vue_vue_type_script_setup_true_lang-60e264d2.js","static/js/columns-d33385ba.js","static/js/index.vue_vue_type_script_setup_true_lang-7b4568aa.js","static/js/columns-a4182130.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-db1f92e9.js"),["static/js/columns-db1f92e9.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-a4bd2800.js"),["static/js/index-a4bd2800.js","static/js/index.vue_vue_type_script_setup_true_lang-57395104.js","static/js/columns-db1f92e9.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-0893fc98.js"),["static/js/columns-0893fc98.js","static/js/sortable.esm-679e0872.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-d902d437.js"),["static/js/index-d902d437.js","static/js/index.vue_vue_type_script_setup_true_lang-c22a8fe5.js","static/js/columns-0893fc98.js","static/js/sortable.esm-679e0872.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-174f6fc9.js"),["static/js/columns-174f6fc9.js","static/js/sortable.esm-679e0872.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-3f10c840.js"),["static/js/index-3f10c840.js","static/js/index.vue_vue_type_script_setup_true_lang-dba0d268.js","static/js/columns-174f6fc9.js","static/js/sortable.esm-679e0872.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-97dc43c8.js"),["static/js/columns-97dc43c8.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js","static/js/index-f1e7ee6d.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-08cd3286.js"),["static/js/index-08cd3286.js","static/js/index.vue_vue_type_script_setup_true_lang-e92884ca.js","static/js/columns-97dc43c8.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js","static/js/index-f1e7ee6d.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-5d6f3a23.js"),["static/js/columns-5d6f3a23.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-e9699339.js"),["static/js/index-e9699339.js","static/js/index.vue_vue_type_script_setup_true_lang-2716c923.js","static/js/columns-5d6f3a23.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-e5493833.js"),["static/js/columns-e5493833.js","static/js/xlsx-e927f539.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-d2569c10.js"),["static/js/index-d2569c10.js","static/js/index.vue_vue_type_script_setup_true_lang-cf392244.js","static/js/columns-e5493833.js","static/js/xlsx-e927f539.js","static/js/data-8e10e21a.js","static/js/message-9ae1daa3.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-937f8d1f.js"),["static/js/list-937f8d1f.js","static/js/index.vue_vue_type_script_setup_true_lang-ffe395c1.js","static/js/columns-928b7b53.js","static/js/data-8e10e21a.js","static/js/index.vue_vue_type_script_setup_true_lang-dba0d268.js","static/js/columns-174f6fc9.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-c22a8fe5.js","static/js/columns-0893fc98.js","static/js/index.vue_vue_type_script_setup_true_lang-57395104.js","static/js/columns-db1f92e9.js","static/js/message-9ae1daa3.js","static/js/index.vue_vue_type_script_setup_true_lang-cf392244.js","static/js/columns-e5493833.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-2716c923.js","static/js/columns-5d6f3a23.js","static/js/edit-pen-37b5ced2.js","static/js/check-f53d8364.js","static/js/index.vue_vue_type_script_setup_true_lang-717fb06e.js","static/js/columns-f7651f28.js","static/js/index.vue_vue_type_script_setup_true_lang-a932c026.js","static/js/columns-49cce1a9.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-e92884ca.js","static/js/columns-97dc43c8.js","static/js/index-f1e7ee6d.js","static/js/index.vue_vue_type_script_setup_true_lang-32e05a0c.js","static/js/index.vue_vue_type_script_setup_true_lang-60e264d2.js","static/js/columns-d33385ba.js","static/js/index.vue_vue_type_script_setup_true_lang-7b4568aa.js","static/js/columns-a4182130.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-928b7b53.js"),["static/js/columns-928b7b53.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-a82c98dd.js"),["static/js/index-a82c98dd.js","static/js/index.vue_vue_type_script_setup_true_lang-ffe395c1.js","static/js/columns-928b7b53.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-49cce1a9.js"),["static/js/columns-49cce1a9.js","static/js/print-a6e42845.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-852601bb.js"),["static/js/index-852601bb.js","static/js/index.vue_vue_type_script_setup_true_lang-a932c026.js","static/js/columns-49cce1a9.js","static/js/print-a6e42845.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-e5152f3b.js"),["static/js/index-e5152f3b.js","static/js/index.vue_vue_type_script_setup_true_lang-32e05a0c.js","static/js/index.vue_vue_type_script_setup_true_lang-60e264d2.js","static/js/columns-d33385ba.js","static/js/message-9ae1daa3.js","static/js/data-8e10e21a.js","static/js/index.vue_vue_type_script_setup_true_lang-7b4568aa.js","static/js/columns-a4182130.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-a4182130.js"),["static/js/columns-a4182130.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-fc364cc6.js"),["static/js/index-fc364cc6.js","static/js/index.vue_vue_type_script_setup_true_lang-7b4568aa.js","static/js/columns-a4182130.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-d33385ba.js"),["static/js/columns-d33385ba.js","static/js/message-9ae1daa3.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-359b2c78.js"),["static/js/index-359b2c78.js","static/js/index.vue_vue_type_script_setup_true_lang-60e264d2.js","static/js/columns-d33385ba.js","static/js/message-9ae1daa3.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-f7651f28.js"),["static/js/columns-f7651f28.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-e360bad2.js"),["static/js/index-e360bad2.js","static/js/index.vue_vue_type_script_setup_true_lang-717fb06e.js","static/js/columns-f7651f28.js","static/js/data-8e10e21a.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-7aee3e8c.js"),["static/js/index-7aee3e8c.js","static/js/list-83f31031.js","static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js","static/js/data-5ec60fc2.js","static/js/stripe.vue_vue_type_script_setup_true_lang-5d3a4fba.js","static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js","static/js/status.vue_vue_type_style_index_0_lang-fee2fcc7.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js","static/js/radio.vue_vue_type_script_setup_true_lang-1c8aa556.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-12c2e5fd.js","static/js/sortable.vue_vue_type_script_setup_true_lang-29dd24dd.js","static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js","static/js/index.vue_vue_type_script_setup_true_lang-768133c2.js","static/js/columns-3d82d5a7.js","static/js/message-9ae1daa3.js","static/js/index.vue_vue_type_script_setup_true_lang-9b251ba5.js","static/js/columns-c7818246.js","static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js","static/js/tree.vue_vue_type_script_setup_true_lang-9318b807.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js","static/js/merge.vue_vue_type_script_setup_true_lang-72107030.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js","static/js/layout.vue_vue_type_script_setup_true_lang-9b77194a.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js","static/css/index-c6b6432d.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-feb8cdc1.js"),["static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-fee57cd2.js"),["static/js/fail-fee57cd2.js","static/js/columns-feb8cdc1.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-4dfec439.js"),["static/js/success-4dfec439.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-3aa257b6.js"),["static/js/form-3aa257b6.js","static/js/form.vue_vue_type_script_setup_true_lang-910ce83a.js"]),"/src/views/system/dept/hook.tsx":()=>__vitePreload(()=>import("./hook-f735a073.js"),["static/js/hook-f735a073.js","static/js/form.vue_vue_type_script_setup_true_lang-910ce83a.js","static/js/message-9ae1daa3.js","static/js/system-13d4d7cb.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-cf852d35.js"),["static/js/index-cf852d35.js","static/js/hook-f735a073.js","static/js/form.vue_vue_type_script_setup_true_lang-910ce83a.js","static/js/message-9ae1daa3.js","static/js/system-13d4d7cb.js","static/js/refresh-5e0bb25b.js","static/js/epTheme-d89c26ff.js","static/js/sortable.esm-679e0872.js","static/js/hooks-55e29a46.js","static/js/edit-pen-37b5ced2.js","static/js/search-4b9e88d3.js","static/js/add-circle-line-438b436c.js"]),"/src/views/system/role/hook.tsx":()=>__vitePreload(()=>import("./hook-676946a2.js"),["static/js/hook-676946a2.js","static/js/message-9ae1daa3.js","static/js/system-13d4d7cb.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-2d31f40e.js"),["static/js/index-2d31f40e.js","static/js/hook-676946a2.js","static/js/message-9ae1daa3.js","static/js/system-13d4d7cb.js","static/js/refresh-5e0bb25b.js","static/js/epTheme-d89c26ff.js","static/js/sortable.esm-679e0872.js","static/js/hooks-55e29a46.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/search-4b9e88d3.js","static/js/menu-a4fe64fb.js","static/js/add-circle-line-438b436c.js","static/css/index-9f62158a.css"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-f5f24eb4.js"),["static/js/hook-f5f24eb4.js","static/js/message-9ae1daa3.js","static/js/system-13d4d7cb.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-ea335b97.js"),["static/js/index-ea335b97.js","static/js/tree-f13652bb.js","static/js/system-13d4d7cb.js","static/js/hooks-55e29a46.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-4b9e88d3.js","static/js/more-2-fill-4bb0933c.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css","static/js/hook-f5f24eb4.js","static/js/message-9ae1daa3.js","static/js/refresh-5e0bb25b.js","static/js/epTheme-d89c26ff.js","static/js/sortable.esm-679e0872.js","static/js/admin-line-92b9acda.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-438b436c.js","static/css/index-7734e749.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-f13652bb.js"),["static/js/tree-f13652bb.js","static/js/system-13d4d7cb.js","static/js/hooks-55e29a46.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-4b9e88d3.js","static/js/more-2-fill-4bb0933c.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index-98c0749c.js"),["static/js/index-98c0749c.js","static/js/hooks-f5028e91.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-78bc5035.js"),["static/js/params-detail-78bc5035.js","static/js/hooks-f5028e91.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-f74cfc42.js"),["static/js/query-detail-f74cfc42.js","static/js/hooks-f5028e91.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-d1ff595c.js"),["static/js/Bar-d1ff595c.js","static/js/Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js","static/js/app-7adcc40f.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-04649e33.js"),["static/js/Github-04649e33.js","static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js","static/js/columns-d84895c5.js","static/js/index-771e958b.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line-1798cde1.js"),["static/js/Line-1798cde1.js","static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js","static/js/app-7adcc40f.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-0a191e90.js"),["static/js/Pie-0a191e90.js","static/js/Pie.vue_vue_type_script_setup_true_lang-ee222e50.js","static/js/app-7adcc40f.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-d84895c5.js"),["static/js/columns-d84895c5.js","static/js/index-771e958b.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index-19971265.js"),["static/js/index-19971265.js","static/js/Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js","static/js/app-7adcc40f.js","static/js/Pie.vue_vue_type_script_setup_true_lang-ee222e50.js","static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js","static/js/index-771e958b.js","static/js/index-f1e7ee6d.js","static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js","static/js/columns-d84895c5.js","static/js/office-building-cc7a1721.js","static/js/iphone-89710f1a.js","static/js/user-3-fill-99d174b6.js","static/js/index-68a687a6.js","static/css/index-18417f34.css","static/css/index-e89363d8.css"])});function handRank(r){const{name:t,path:o,parentId:s,meta:l}=r;return P$1(s)?!!(P$1(l==null?void 0:l.rank)||(l==null?void 0:l.rank)===0&&t!=="Home"&&o!=="/"):!1}function ascending(r){return r.forEach((t,o)=>{handRank(t)&&(t.meta.rank=o+2)}),r.sort((t,o)=>(t==null?void 0:t.meta.rank)-(o==null?void 0:o.meta.rank))}function filterTree(r){const t=Ke(r).filter(o=>{var s;return((s=o.meta)==null?void 0:s.showLink)!==!1});return t.forEach(o=>o.children&&(o.children=filterTree(o.children))),t}function filterChildrenTree(r){const t=Ke(r).filter(o=>{var s;return((s=o==null?void 0:o.children)==null?void 0:s.length)!==0});return t.forEach(o=>o.children&&(o.children=filterTree(o.children))),t}function isOneOfArray(r,t){return Array.isArray(r)&&Array.isArray(t)?yr(r,t).length>0:!0}function filterNoPermissionTree(r){var s;const t=((s=Qn().getItem(sessionKey))==null?void 0:s.roles)??[],o=Ke(r).filter(l=>{var v;return isOneOfArray((v=l.meta)==null?void 0:v.roles,t)});return o.forEach(l=>l.children&&(l.children=filterNoPermissionTree(l.children))),filterChildrenTree(o)}function getParentPaths(r,t,o="path"){function s(l,v,x){for(let A=0;A<l.length;A++){const w=l[A];if(w[o]===v)return x;if(!(!w.children||!w.children.length)){if(x.push(w.path),s(w.children,v,x).length)return x;x.pop()}}return[]}return s(t,r,[])}function findRouteByPath(r,t){let o=t.find(s=>s.path==r);if(o)return Vue.isProxy(o)?Vue.toRaw(o):o;for(let s=0;s<t.length;s++)if(t[s].children instanceof Array&&t[s].children.length>0&&(o=findRouteByPath(r,t[s].children),o))return Vue.isProxy(o)?Vue.toRaw(o):o;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes(r){r.length===0||formatFlatteningRoutes(addAsyncRoutes(r)).map(t=>{if(router.options.routes[0].children.findIndex(o=>o.path===t.path)===-1){router.options.routes[0].children.push(t),ascending(router.options.routes[0].children),router.hasRoute(t==null?void 0:t.name)||router.addRoute(t);const o=router.getRoutes().find(s=>s.path==="/");router.addRoute(o)}}),usePermissionStoreHook().handleWholeMenus(r),addPathMatch()}function initRouter(){var r;if((r=getConfig())!=null&&r.CachingAsyncRoutes){const t="async-routes",o=Qn().getItem(t);return o&&(o==null?void 0:o.length)>0?new Promise(s=>{handleAsyncRoutes(o),s(router)}):new Promise(s=>{getAsyncRoutes().then(({data:l})=>{handleAsyncRoutes(Ke(l)),Qn().setItem(t,l),s(router)})})}else return new Promise(t=>{getAsyncRoutes().then(({data:o})=>{handleAsyncRoutes(Ke(o)),t(router)})})}function formatFlatteningRoutes(r){if(r.length===0)return r;let t=buildHierarchyTree(r);for(let o=0;o<t.length;o++)t[o].children&&(t=t.slice(0,o+1).concat(t[o].children,t.slice(o+1)));return t}function formatTwoStageRoutes(r){if(r.length===0)return r;const t=[];return r.forEach(o=>{var s;o.path==="/"?t.push({component:o.component,name:o.name,path:o.path,redirect:o.redirect,meta:o.meta,children:[]}):(s=t[0])==null||s.children.push({...o})}),t}function handleAliveRoute({name:r},t){switch(t){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:r});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:r});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:r});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:r}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:r})},100)}}function addAsyncRoutes(r){if(!r||!r.length)return;const t=Object.keys(modulesRoutes);return r.forEach(o=>{var s;if(o.meta.backstage=!0,o!=null&&o.children&&o.children.length&&!o.redirect&&(o.redirect=o.children[0].path),o!=null&&o.children&&o.children.length&&!o.name&&(o.name=o.children[0].name+"Parent"),(s=o.meta)!=null&&s.frameSrc)o.component=IFrame;else{const l=o!=null&&o.component?t.findIndex(v=>v.includes(o.component)):t.findIndex(v=>v.includes(o.path));o.component=modulesRoutes[t[l]]}o!=null&&o.children&&o.children.length&&addAsyncRoutes(o.children)}),r}function getHistoryMode(r){const t=r.split(","),o=t[0],s=t[1];if(t.length===1){if(o==="hash")return VueRouter.createWebHashHistory("");if(o==="h5")return VueRouter.createWebHistory("")}else if(t.length===2){if(o==="hash")return VueRouter.createWebHashHistory(s);if(o==="h5")return VueRouter.createWebHistory(s)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth(r){if(!r)return!1;const t=getAuths();return t?!!(S(r)?t.includes(r):br(r,t)):!1}function getTopMenu(r=!1){var o;const t=(o=usePermissionStoreHook().wholeMenus[0])==null?void 0:o.children[0];return r&&useMultiTagsStoreHook().handleTags("push",t),t}const usePermissionStore=Pinia.defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus(r){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat(r))))},cacheOperate({mode:r,name:t}){const o=this.cachePageList.findIndex(s=>s===t);switch(r){case"refresh":this.cachePageList=this.cachePageList.filter(s=>s!==t);break;case"add":this.cachePageList.push(t);break;case"delete":o!==-1&&this.cachePageList.splice(o,1);break}(()=>{let s=this.cachePageList.length;const l=wr(useMultiTagsStoreHook().multiTags,"name");for(;s>0;)l.findIndex(v=>v===this.cachePageList[s-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[s-1]),1),s--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-16215e41.js"),["static/js/index-16215e41.js","static/js/menu-a4fe64fb.js","static/js/edit-542ce8b5.js","static/js/set-up-729eb907.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-2f4f0a96.js","static/js/app-7adcc40f.js","static/js/epTheme-d89c26ff.js","static/js/hooks-55e29a46.js","static/js/index-f1e7ee6d.js","static/js/search-4b9e88d3.js","static/js/check-f53d8364.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-bcf0e8c6.js","static/css/index-17881e6a.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-bf5d389a.js"),["static/js/index-bf5d389a.js","static/js/motion-a9ba222e.js","static/js/message-9ae1daa3.js","static/js/verifyCode-6eeef2f5.js","static/js/phone.vue_vue_type_script_setup_true_lang-0bf7df16.js","static/js/hooks-55e29a46.js","static/js/iphone-89710f1a.js","static/js/index-771e958b.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-d7a3b8f9.js","static/js/index-29a339f3.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-e1a9de78.js","static/js/lock-fill-c966ff17.js","static/js/user-3-fill-99d174b6.js","static/js/update.vue_vue_type_script_setup_true_lang-521adc1b.js","static/js/dark-2f4f0a96.js","static/js/app-7adcc40f.js","static/js/epTheme-d89c26ff.js","static/js/check-f53d8364.js","static/css/index-90a3ebb5.css"]),meta:{title:$t("menus.hslogin"),showLink:!1,rank:101}},{path:"/redirect",component:Layout,meta:{title:$t("status.hsLoad"),showLink:!1,rank:102},children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./redirect-e4c87040.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-1b03d1d4.js"),["static/js/index-1b03d1d4.js","static/css/index-218e4ba3.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}],modules$1=Object.assign({"./modules/able.ts":__vite_glob_0_0$1,"./modules/about.ts":__vite_glob_0_1$1,"./modules/components.ts":__vite_glob_0_2$1,"./modules/editor.ts":__vite_glob_0_3$1,"./modules/error.ts":__vite_glob_0_4$1,"./modules/flowchart.ts":__vite_glob_0_5$1,"./modules/formdesign.ts":__vite_glob_0_6,"./modules/guide.ts":__vite_glob_0_7,"./modules/home.ts":__vite_glob_0_8,"./modules/list.ts":__vite_glob_0_9,"./modules/menuoverflow.ts":__vite_glob_0_10,"./modules/nested.ts":__vite_glob_0_11,"./modules/ppt.ts":__vite_glob_0_12,"./modules/puredoc.ts":__vite_glob_0_13,"./modules/pureutils.ts":__vite_glob_0_14,"./modules/result.ts":__vite_glob_0_15,"./modules/table.ts":__vite_glob_0_16}),routes=[];Object.keys(modules$1).forEach(r=>{routes.push(modules$1[r].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))),constantMenus=ascending(routes).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map(r=>remainingRouter[r].path),router=VueRouter.createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior(r,t,o){return new Promise(s=>{if(o)return o;if(t.meta.saveSrollTop){const l=document.documentElement.scrollTop||document.body.scrollTop;s({left:0,top:l})}})}});function resetRouter(){router.getRoutes().forEach(r=>{const{name:t,meta:o}=r;t&&router.hasRoute(t)&&(o!=null&&o.backstage)&&(router.removeRoute(t),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))))}),usePermissionStoreHook().clearAllCachePage()}const whiteList=["/login"],{VITE_HIDE_HOME}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};router.beforeEach((r,t,o)=>{var x,A,w;(x=r.meta)!=null&&x.keepAlive&&(handleAliveRoute(r,"add"),(t.name===void 0||t.name==="Redirect")&&handleAliveRoute(r));const s=Qn().getItem(sessionKey);NProgress.start();const l=dt(r==null?void 0:r.name);l||r.matched.some(E=>{if(!E.meta.title)return"";const C=getConfig().Title;C?document.title=`${transformI18n(E.meta.title)} | ${C}`:document.title=transformI18n(E.meta.title)});function v(){whiteList.includes(r.fullPath)?o(t.fullPath):o()}s?((A=r.meta)!=null&&A.roles&&!isOneOfArray((w=r.meta)==null?void 0:w.roles,s==null?void 0:s.roles)&&o({path:"/error/403"}),VITE_HIDE_HOME==="true"&&r.fullPath==="/welcome"&&o({path:"/error/404"}),t!=null&&t.name?l?(Tt(r==null?void 0:r.name),NProgress.done()):v():(usePermissionStoreHook().wholeMenus.length===0&&r.path!=="/login"&&initRouter().then(E=>{var C;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:R}=r,$=findRouteByPath(R,E.options.routes[0].children);getTopMenu(!0),$&&((C=$.meta)!=null&&C.title)&&useMultiTagsStoreHook().handleTags("push",{path:$.path,name:$.name,meta:$.meta})}E.push(r.fullPath)}),v())):r.path!=="/login"?whiteList.indexOf(r.path)!==-1?o():o({path:"/login"}):o()});router.afterEach(()=>{NProgress.done()});var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=r=>typeof r=="number",isString$2=r=>typeof r=="string",isObject$4=r=>toString.call(r)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function tryOnScopeDispose(r){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(r),!0):!1}function tryOnUnmounted(r){VueDemi.getCurrentInstance()&&VueDemi.onUnmounted(r)}function unrefElement(r){var t;const o=VueDemi.unref(r);return(t=o==null?void 0:o.$el)!=null?t:o}const defaultWindow=isClient?window:void 0;function useEventListener(...r){let t,o,s,l;if(isString$2(r[0])?([o,s,l]=r,t=defaultWindow):[t,o,s,l]=r,!t)return noop$1;let v=noop$1;const x=VueDemi.watch(()=>unrefElement(t),w=>{v(),w&&(w.addEventListener(o,s,l),v=()=>{w.removeEventListener(o,s,l),v=noop$1})},{immediate:!0,flush:"post"}),A=()=>{x(),v()};return tryOnScopeDispose(A),A}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};function useIntersectionObserver(r,t,o={}){const{root:s,rootMargin:l="0px",threshold:v=.1,window:x=defaultWindow}=o,A=x&&"IntersectionObserver"in x;let w=noop$1;const E=A?VueDemi.watch(()=>({el:unrefElement(r),root:unrefElement(s)}),({el:R,root:$})=>{if(w(),!R)return;const V=new IntersectionObserver(t,{root:$,rootMargin:l,threshold:v});V.observe(R),w=()=>{V.disconnect(),w=noop$1}},{immediate:!0,flush:"post"}):noop$1,C=()=>{w(),E()};return tryOnScopeDispose(C),{isSupported:A,stop:C}}var SwipeDirection;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?r=>window.requestAnimationFrame(r):r=>setTimeout(()=>r(getCurrentTime()),defaultTimestep);function createRenderStep(r){let t=[],o=[],s=0,l=!1,v=!1;const x=new WeakSet,A={schedule:(w,E=!1,C=!1)=>{const R=C&&l,$=R?t:o;return E&&x.add(w),$.indexOf(w)===-1&&($.push(w),R&&l&&(s=t.length)),w},cancel:w=>{const E=o.indexOf(w);E!==-1&&o.splice(E,1),x.delete(w)},process:w=>{if(l){v=!0;return}if(l=!0,[t,o]=[o,t],o.length=0,s=t.length,s)for(let E=0;E<s;E++){const C=t[E];C(w),x.has(C)&&(A.schedule(C),r())}l=!1,v&&(v=!1,A.process(w))}};return A}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce((r,t)=>(r[t]=createRenderStep(()=>runNextFrame=!0),r),{}),sync=stepsOrder.reduce((r,t)=>{const o=steps[t];return r[t]=(s,l=!1,v=!1)=>(runNextFrame||startLoop(),o.schedule(s,l,v)),r},{}),cancelSync=stepsOrder.reduce((r,t)=>(r[t]=steps[t].cancel,r),{});stepsOrder.reduce((r,t)=>(r[t]=()=>steps[t].process(frame),r),{});const processStep=r=>steps[r].process(frame),processFrame=r=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(r-frame.timestamp,maxElapsed),1),frame.timestamp=r,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(r,t){var o={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&t.indexOf(s)<0&&(o[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(r);l<s.length;l++)t.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(r,s[l])&&(o[s[l]]=r[s[l]]);return o}var warning=function(){},invariant=function(){};const clamp$2=(r,t,o)=>Math.min(Math.max(o,r),t),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:r=800,bounce:t=.25,velocity:o=0,mass:s=1}){let l,v;warning(r<=maxDuration*1e3);let x=1-t;x=clamp$2(minDamping,maxDamping,x),r=clamp$2(minDuration,maxDuration,r/1e3),x<1?(l=E=>{const C=E*x,R=C*r,$=C-o,V=calcAngularFreq(E,x),z=Math.exp(-R);return safeMin-$/V*z},v=E=>{const R=E*x*r,$=R*o+o,V=Math.pow(x,2)*Math.pow(E,2)*r,z=Math.exp(-R),F=calcAngularFreq(Math.pow(E,2),x);return(-l(E)+safeMin>0?-1:1)*(($-V)*z)/F}):(l=E=>{const C=Math.exp(-E*r),R=(E-o)*r+1;return-safeMin+C*R},v=E=>{const C=Math.exp(-E*r),R=(o-E)*(r*r);return C*R});const A=5/r,w=approximateRoot(l,v,A);if(r=r*1e3,isNaN(w))return{stiffness:100,damping:10,duration:r};{const E=Math.pow(w,2)*s;return{stiffness:E,damping:x*2*Math.sqrt(s*E),duration:r}}}const rootIterations=12;function approximateRoot(r,t,o){let s=o;for(let l=1;l<rootIterations;l++)s=s-r(s)/t(s);return s}function calcAngularFreq(r,t){return r*Math.sqrt(1-t*t)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(r,t){return t.some(o=>r[o]!==void 0)}function getSpringOptions(r){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},r);if(!isSpringType(r,physicsKeys)&&isSpringType(r,durationKeys)){const o=findSpring(r);t=Object.assign(Object.assign(Object.assign({},t),o),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function spring(r){var{from:t=0,to:o=1,restSpeed:s=2,restDelta:l}=r,v=__rest(r,["from","to","restSpeed","restDelta"]);const x={done:!1,value:t};let{stiffness:A,damping:w,mass:E,velocity:C,duration:R,isResolvedFromDuration:$}=getSpringOptions(v),V=zero,z=zero;function F(){const B=C?-(C/1e3):0,W=o-t,Y=w/(2*Math.sqrt(A*E)),Z=Math.sqrt(A/E)/1e3;if(l===void 0&&(l=Math.min(Math.abs(o-t)/100,.4)),Y<1){const X=calcAngularFreq(Z,Y);V=ae=>{const ie=Math.exp(-Y*Z*ae);return o-ie*((B+Y*Z*W)/X*Math.sin(X*ae)+W*Math.cos(X*ae))},z=ae=>{const ie=Math.exp(-Y*Z*ae);return Y*Z*ie*(Math.sin(X*ae)*(B+Y*Z*W)/X+W*Math.cos(X*ae))-ie*(Math.cos(X*ae)*(B+Y*Z*W)-X*W*Math.sin(X*ae))}}else if(Y===1)V=X=>o-Math.exp(-Z*X)*(W+(B+Z*W)*X);else{const X=Z*Math.sqrt(Y*Y-1);V=ae=>{const ie=Math.exp(-Y*Z*ae),oe=Math.min(X*ae,300);return o-ie*((B+Y*Z*W)*Math.sinh(oe)+X*W*Math.cosh(oe))/X}}}return F(),{next:B=>{const W=V(B);if($)x.done=B>=R;else{const Y=z(B)*1e3,Z=Math.abs(Y)<=s,X=Math.abs(o-W)<=l;x.done=Z&&X}return x.value=x.done?o:W,x},flipTarget:()=>{C=-C,[t,o]=[o,t],F()}}}spring.needsInterpolation=(r,t)=>typeof r=="string"||typeof t=="string";const zero=r=>0,progress=(r,t,o)=>{const s=t-r;return s===0?1:(o-r)/s},mix=(r,t,o)=>-o*r+o*t+r,clamp$1=(r,t)=>o=>Math.max(Math.min(o,t),r),sanitize=r=>r%1?Number(r.toFixed(5)):r,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1(r){return typeof r=="string"}const number$1={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=r=>({test:t=>isString$1(t)&&t.endsWith(r)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${r}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:r=>percent.parse(r)/100,transform:r=>percent.transform(r*100)}),isColorString=(r,t)=>o=>!!(isString$1(o)&&singleColorRegex.test(o)&&o.startsWith(r)||t&&Object.prototype.hasOwnProperty.call(o,t)),splitColor=(r,t,o)=>s=>{if(!isString$1(s))return s;const[l,v,x,A]=s.match(floatRegex);return{[r]:parseFloat(l),[t]:parseFloat(v),[o]:parseFloat(x),alpha:A!==void 0?parseFloat(A):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:r,saturation:t,lightness:o,alpha:s=1})=>"hsla("+Math.round(r)+", "+percent.transform(sanitize(t))+", "+percent.transform(sanitize(o))+", "+sanitize(alpha.transform(s))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:r=>Math.round(clampRgbUnit(r))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:r,green:t,blue:o,alpha:s=1})=>"rgba("+rgbUnit.transform(r)+", "+rgbUnit.transform(t)+", "+rgbUnit.transform(o)+", "+sanitize(alpha.transform(s))+")"};function parseHex(r){let t="",o="",s="",l="";return r.length>5?(t=r.substr(1,2),o=r.substr(3,2),s=r.substr(5,2),l=r.substr(7,2)):(t=r.substr(1,1),o=r.substr(2,1),s=r.substr(3,1),l=r.substr(4,1),t+=t,o+=o,s+=s,l+=l),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:r=>rgba.test(r)||hex.test(r)||hsla.test(r),parse:r=>rgba.test(r)?rgba.parse(r):hsla.test(r)?hsla.parse(r):hex.parse(r),transform:r=>isString$1(r)?r:r.hasOwnProperty("red")?rgba.transform(r):hsla.transform(r)},colorToken="${c}",numberToken="${n}";function test(r){var t,o,s,l;return isNaN(r)&&isString$1(r)&&((o=(t=r.match(floatRegex))===null||t===void 0?void 0:t.length)!==null&&o!==void 0?o:0)+((l=(s=r.match(colorRegex))===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}function analyse$1(r){typeof r=="number"&&(r=`${r}`);const t=[];let o=0;const s=r.match(colorRegex);s&&(o=s.length,r=r.replace(colorRegex,colorToken),t.push(...s.map(color$1.parse)));const l=r.match(floatRegex);return l&&(r=r.replace(floatRegex,numberToken),t.push(...l.map(number$1.parse))),{values:t,numColors:o,tokenised:r}}function parse$2(r){return analyse$1(r).values}function createTransformer(r){const{values:t,numColors:o,tokenised:s}=analyse$1(r),l=t.length;return v=>{let x=s;for(let A=0;A<l;A++)x=x.replace(A<o?colorToken:numberToken,A<o?color$1.transform(v[A]):sanitize(v[A]));return x}}const convertNumbersToZero=r=>typeof r=="number"?0:r;function getAnimatableNone$1(r){const t=parse$2(r);return createTransformer(r)(t.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(r){let[t,o]=r.slice(0,-1).split("(");if(t==="drop-shadow")return r;const[s]=o.match(floatRegex)||[];if(!s)return r;const l=o.replace(s,"");let v=maxDefaults.has(t)?1:0;return s!==o&&(v*=100),t+"("+v+l+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:r=>{const t=r.match(functionRegex);return t?t.map(applyDefaultFilter).join(" "):r}});function hueToRgb(r,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(t-r)*6*o:o<1/2?t:o<2/3?r+(t-r)*(2/3-o)*6:r}function hslaToRgba({hue:r,saturation:t,lightness:o,alpha:s}){r/=360,t/=100,o/=100;let l=0,v=0,x=0;if(!t)l=v=x=o;else{const A=o<.5?o*(1+t):o+t-o*t,w=2*o-A;l=hueToRgb(w,A,r+1/3),v=hueToRgb(w,A,r),x=hueToRgb(w,A,r-1/3)}return{red:Math.round(l*255),green:Math.round(v*255),blue:Math.round(x*255),alpha:s}}const mixLinearColor=(r,t,o)=>{const s=r*r,l=t*t;return Math.sqrt(Math.max(0,o*(l-s)+s))},colorTypes=[hex,rgba,hsla],getColorType=r=>colorTypes.find(t=>t.test(r)),mixColor=(r,t)=>{let o=getColorType(r),s=getColorType(t),l=o.parse(r),v=s.parse(t);o===hsla&&(l=hslaToRgba(l),o=rgba),s===hsla&&(v=hslaToRgba(v),s=rgba);const x=Object.assign({},l);return A=>{for(const w in x)w!=="alpha"&&(x[w]=mixLinearColor(l[w],v[w],A));return x.alpha=mix(l.alpha,v.alpha,A),o.transform(x)}},isNum=r=>typeof r=="number",combineFunctions=(r,t)=>o=>t(r(o)),pipe=(...r)=>r.reduce(combineFunctions);function getMixer(r,t){return isNum(r)?o=>mix(r,t,o):color$1.test(r)?mixColor(r,t):mixComplex(r,t)}const mixArray=(r,t)=>{const o=[...r],s=o.length,l=r.map((v,x)=>getMixer(v,t[x]));return v=>{for(let x=0;x<s;x++)o[x]=l[x](v);return o}},mixObject=(r,t)=>{const o=Object.assign(Object.assign({},r),t),s={};for(const l in o)r[l]!==void 0&&t[l]!==void 0&&(s[l]=getMixer(r[l],t[l]));return l=>{for(const v in s)o[v]=s[v](l);return o}};function analyse(r){const t=complex.parse(r),o=t.length;let s=0,l=0,v=0;for(let x=0;x<o;x++)s||typeof t[x]=="number"?s++:t[x].hue!==void 0?v++:l++;return{parsed:t,numNumbers:s,numRGB:l,numHSL:v}}const mixComplex=(r,t)=>{const o=complex.createTransformer(t),s=analyse(r),l=analyse(t);return s.numHSL===l.numHSL&&s.numRGB===l.numRGB&&s.numNumbers>=l.numNumbers?pipe(mixArray(s.parsed,l.parsed),o):x=>`${x>0?t:r}`},mixNumber=(r,t)=>o=>mix(r,t,o);function detectMixerFactory(r){if(typeof r=="number")return mixNumber;if(typeof r=="string")return color$1.test(r)?mixColor:mixComplex;if(Array.isArray(r))return mixArray;if(typeof r=="object")return mixObject}function createMixers(r,t,o){const s=[],l=o||detectMixerFactory(r[0]),v=r.length-1;for(let x=0;x<v;x++){let A=l(r[x],r[x+1]);if(t){const w=Array.isArray(t)?t[x]:t;A=pipe(w,A)}s.push(A)}return s}function fastInterpolate([r,t],[o]){return s=>o(progress(r,t,s))}function slowInterpolate(r,t){const o=r.length,s=o-1;return l=>{let v=0,x=!1;if(l<=r[0]?x=!0:l>=r[s]&&(v=s-1,x=!0),!x){let w=1;for(;w<o&&!(r[w]>l||w===s);w++);v=w-1}const A=progress(r[v],r[v+1],l);return t[v](A)}}function interpolate(r,t,{clamp:o=!0,ease:s,mixer:l}={}){const v=r.length;invariant(v===t.length),invariant(!s||!Array.isArray(s)||s.length===v-1),r[0]>r[v-1]&&(r=[].concat(r),t=[].concat(t),r.reverse(),t.reverse());const x=createMixers(t,s,l),A=v===2?fastInterpolate(r,x):slowInterpolate(r,x);return o?w=>A(clamp$2(r[0],r[v-1],w)):A}const reverseEasing=r=>t=>1-r(1-t),mirrorEasing=r=>t=>t<=.5?r(2*t)/2:(2-r(2*(1-t)))/2,createExpoIn=r=>t=>Math.pow(t,r),createBackIn=r=>t=>t*t*((r+1)*t-r),createAnticipate=r=>{const t=createBackIn(r);return o=>(o*=2)<1?.5*t(o):.5*(2-Math.pow(2,-10*(o-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=r=>r,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=r=>1-Math.sin(Math.acos(r)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=r=>{if(r===1||r===0)return r;const t=r*r;return r<BOUNCE_FIRST_THRESHOLD?7.5625*t:r<BOUNCE_SECOND_THRESHOLD?9.075*t-9.9*r+3.4:r<BOUNCE_THIRD_THRESHOLD?ca*t-cb*r+cc:10.8*r*r-20.52*r+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=r=>r<.5?.5*(1-bounceOut(1-r*2)):.5*bounceOut(r*2-1)+.5;function defaultEasing(r,t){return r.map(()=>t||easeInOut).splice(0,r.length-1)}function defaultOffset(r){const t=r.length;return r.map((o,s)=>s!==0?s/(t-1):0)}function convertOffsetToTimes(r,t){return r.map(o=>o*t)}function keyframes$1({from:r=0,to:t=1,ease:o,offset:s,duration:l=300}){const v={done:!1,value:r},x=Array.isArray(t)?t:[r,t],A=convertOffsetToTimes(s&&s.length===x.length?s:defaultOffset(x),l);function w(){return interpolate(A,x,{ease:Array.isArray(o)?o:defaultEasing(x,o)})}let E=w();return{next:C=>(v.value=E(C),v.done=C>=l,v),flipTarget:()=>{x.reverse(),E=w()}}}function decay({velocity:r=0,from:t=0,power:o=.8,timeConstant:s=350,restDelta:l=.5,modifyTarget:v}){const x={done:!1,value:t};let A=o*r;const w=t+A,E=v===void 0?w:v(w);return E!==w&&(A=E-t),{next:C=>{const R=-A*Math.exp(-C/s);return x.done=!(R>l||R<-l),x.value=x.done?E:E+R,x},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions(r){if(Array.isArray(r.to))return keyframes$1;if(types[r.type])return types[r.type];const t=new Set(Object.keys(r));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?keyframes$1:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?spring:keyframes$1}function loopElapsed(r,t,o=0){return r-t-o}function reverseElapsed(r,t,o=0,s=!0){return s?loopElapsed(t+-r,t,o):t-(r-t)+o}function hasRepeatDelayElapsed(r,t,o,s){return s?r>=t+o:r<=-o}const framesync=r=>{const t=({delta:o})=>r(o);return{start:()=>sync.update(t,!0),stop:()=>cancelSync.update(t)}};function animate(r){var t,o,{from:s,autoplay:l=!0,driver:v=framesync,elapsed:x=0,repeat:A=0,repeatType:w="loop",repeatDelay:E=0,onPlay:C,onStop:R,onComplete:$,onRepeat:V,onUpdate:z}=r,F=__rest(r,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:B}=F,W,Y=0,Z=F.duration,X,ae=!1,ie=!0,oe;const le=detectAnimationFromOptions(F);!((o=(t=le).needsInterpolation)===null||o===void 0)&&o.call(t,s,B)&&(oe=interpolate([0,100],[s,B],{clamp:!1}),s=0,B=100);const ve=le(Object.assign(Object.assign({},F),{from:s,to:B}));function xe(){Y++,w==="reverse"?(ie=Y%2===0,x=reverseElapsed(x,Z,E,ie)):(x=loopElapsed(x,Z,E),w==="mirror"&&ve.flipTarget()),ae=!1,V&&V()}function _e(){W.stop(),$&&$()}function Te(Ce){if(ie||(Ce=-Ce),x+=Ce,!ae){const Pe=ve.next(Math.max(0,x));X=Pe.value,oe&&(X=oe(X)),ae=ie?Pe.done:x<=0}z==null||z(X),ae&&(Y===0&&(Z??(Z=x)),Y<A?hasRepeatDelayElapsed(x,Z,E,ie)&&xe():_e())}function Ee(){C==null||C(),W=v(Te),W.start()}return l&&Ee(),{stop:()=>{R==null||R(),W.stop()}}}function velocityPerSecond(r,t){return t?r*(1e3/t):0}function inertia({from:r=0,velocity:t=0,min:o,max:s,power:l=.8,timeConstant:v=750,bounceStiffness:x=500,bounceDamping:A=10,restDelta:w=1,modifyTarget:E,driver:C,onUpdate:R,onComplete:$,onStop:V}){let z;function F(Z){return o!==void 0&&Z<o||s!==void 0&&Z>s}function B(Z){return o===void 0?s:s===void 0||Math.abs(o-Z)<Math.abs(s-Z)?o:s}function W(Z){z==null||z.stop(),z=animate(Object.assign(Object.assign({},Z),{driver:C,onUpdate:X=>{var ae;R==null||R(X),(ae=Z.onUpdate)===null||ae===void 0||ae.call(Z,X)},onComplete:$,onStop:V}))}function Y(Z){W(Object.assign({type:"spring",stiffness:x,damping:A,restDelta:w},Z))}if(F(r))Y({from:r,velocity:t,to:B(r)});else{let Z=l*t+r;typeof E<"u"&&(Z=E(Z));const X=B(Z),ae=X===o?-1:1;let ie,oe;const le=ve=>{ie=oe,oe=ve,t=velocityPerSecond(ve-ie,getFrameData().delta),(ae===1&&ve>X||ae===-1&&ve<X)&&Y({from:ve,to:X,velocity:t})};W({type:"decay",from:r,velocity:t,timeConstant:v,power:l,restDelta:w,modifyTarget:E,onUpdate:F(Z)?le:void 0})}return{stop:()=>z==null?void 0:z.stop()}}const a=(r,t)=>1-3*t+3*r,b=(r,t)=>3*t-6*r,c$1=r=>3*r,calcBezier=(r,t,o)=>((a(t,o)*r+b(t,o))*r+c$1(t))*r,getSlope=(r,t,o)=>3*a(t,o)*r*r+2*b(t,o)*r+c$1(t),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(r,t,o,s,l){let v,x,A=0;do x=t+(o-t)/2,v=calcBezier(x,s,l)-r,v>0?o=x:t=x;while(Math.abs(v)>subdivisionPrecision&&++A<subdivisionMaxIterations);return x}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate(r,t,o,s){for(let l=0;l<newtonIterations;++l){const v=getSlope(t,o,s);if(v===0)return t;const x=calcBezier(t,o,s)-r;t-=x/v}return t}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier(r,t,o,s){if(r===t&&o===s)return linear;const l=new Float32Array(kSplineTableSize);for(let x=0;x<kSplineTableSize;++x)l[x]=calcBezier(x*kSampleStepSize,r,o);function v(x){let A=0,w=1;const E=kSplineTableSize-1;for(;w!==E&&l[w]<=x;++w)A+=kSampleStepSize;--w;const C=(x-l[w])/(l[w+1]-l[w]),R=A+C*kSampleStepSize,$=getSlope(R,r,o);return $>=newtonMinSlope?newtonRaphsonIterate(x,R,r,o):$===0?R:binarySubdivide(x,A,A+kSampleStepSize,r,o)}return x=>x===0||x===1?x:calcBezier(v(x),t,s)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,o,s){if(this.subscriptions.size)for(const l of this.subscriptions)l(t,o,s)}clear(){this.subscriptions.clear()}}const isFloat=r=>!isNaN(parseFloat(r));class MotionValue{constructor(t){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=o=>{this.prev=this.current,this.current=o;const{delta:s,timestamp:l}=getFrameData();this.lastUpdated!==l&&(this.timeDelta=s,this.lastUpdated=l),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:o})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),o!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=t,this.canTrackVelocity=isFloat(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(o=>{const{stop:s}=t(o);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue(r){return new MotionValue(r)}const{isArray:isArray$2}=Array;function useMotionValues(){const r=VueDemi.ref({}),t=s=>{const l=v=>{r.value[v]&&(r.value[v].stop(),r.value[v].destroy(),VueDemi.del(r.value,v))};s?isArray$2(s)?s.forEach(l):l(s):Object.keys(r.value).forEach(l)},o=(s,l,v)=>{if(r.value[s])return r.value[s];const x=getMotionValue(l);return x.onChange(A=>{VueDemi.set(v,s,A)}),VueDemi.set(r.value,s,x),x};return tryOnUnmounted(t),{motionValues:r,get:o,stop:t}}const isKeyframesTarget=r=>Array.isArray(r),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=r=>({type:"spring",stiffness:550,damping:r===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=r=>({type:"keyframes",duration:800,values:r}),defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween},getDefaultTransition=(r,t)=>{let o;return isKeyframesTarget(t)?o=keyframes:o=defaultTransitions[r]||defaultTransitions.default,{to:t,...o(t)}},int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=r=>valueTypes[r],getValueAsType=(r,t)=>t&&typeof r=="number"&&t.transform?t.transform(r):r;function getAnimatableNone(r,t){let o=getValueType(r);return o!==filter$1&&(o=complex),o.getAnimatableNone?o.getAnimatableNone(t):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=r=>{if(Array.isArray(r)){const[t,o,s,l]=r;return cubicBezier(t,o,s,l)}else if(typeof r=="string")return easingLookup[r];return r},isEasingArray=r=>Array.isArray(r)&&typeof r[0]!="number",isAnimatable=(r,t)=>r==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&complex.test(t)&&!t.startsWith("url("));function hydrateKeyframes(r){return Array.isArray(r.to)&&r.to[0]===null&&(r.to=[...r.to],r.to[0]=r.from),r}function convertTransitionToAnimationOptions({ease:r,times:t,delay:o,...s}){const l={...s};return t&&(l.offset=t),r&&(l.ease=isEasingArray(r)?r.map(easingDefinitionToFunction):easingDefinitionToFunction(r)),o&&(l.elapsed=-o),l}function getPopmotionAnimationOptions(r,t,o){return Array.isArray(t.to)&&(r.duration||(r.duration=800)),hydrateKeyframes(t),isTransitionDefined(r)||(r={...r,...getDefaultTransition(o,t.to)}),{...t,...convertTransitionToAnimationOptions(r)}}function isTransitionDefined({delay:r,repeat:t,repeatType:o,repeatDelay:s,from:l,...v}){return!!Object.keys(v).length}function getValueTransition(r,t){return r[t]||r.default||r}function getAnimation(r,t,o,s,l){const v=getValueTransition(s,r);let x=v.from===null||v.from===void 0?t.get():v.from;const A=isAnimatable(r,o);x==="none"&&A&&typeof o=="string"&&(x=getAnimatableNone(r,o));const w=isAnimatable(r,x);function E(R){const $={from:x,to:o,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:V=>t.set(V)};return v.type==="inertia"||v.type==="decay"?inertia({...$,...v}):animate({...getPopmotionAnimationOptions(v,$,r),onUpdate:V=>{$.onUpdate(V),v.onUpdate&&v.onUpdate(V)},onComplete:()=>{s.onComplete&&s.onComplete(),l&&l(),R&&R()}})}function C(R){return t.set(o),s.onComplete&&s.onComplete(),l&&l(),R&&R(),{stop:()=>{}}}return!w||!A||v.type===!1?C:E}function useMotionTransitions(){const{motionValues:r,stop:t,get:o}=useMotionValues();return{motionValues:r,stop:t,push:(l,v,x,A={},w)=>{const E=x[l],C=o(l,E,x);if(A&&A.immediate){C.set(v);return}const R=getAnimation(l,C,v,A,w);C.start(R)}}}function useMotionControls(r,t={},{motionValues:o,push:s,stop:l}=useMotionTransitions()){const v=VueDemi.unref(t),x=VueDemi.ref(!1),A=VueDemi.watch(o,$=>{x.value=Object.values($).filter(V=>V.isAnimating()).length>0},{immediate:!0,deep:!0}),w=$=>{if(!v||!v[$])throw new Error(`The variant ${$} does not exist.`);return v[$]},E=$=>(typeof $=="string"&&($=w($)),Promise.all(Object.entries($).map(([V,z])=>{if(V!=="transition")return new Promise(F=>{s(V,z,r,$.transition||getDefaultTransition(V,$[V]),F)})}).filter(Boolean)));return{isAnimating:x,apply:E,set:$=>{const V=isObject$4($)?$:w($);Object.entries(V).forEach(([z,F])=>{z!=="transition"&&s(z,F,r,{immediate:!0})})},stopTransitions:()=>{A(),l()},leave:async $=>{let V;if(v&&(v.leave&&(V=v.leave),!v.leave&&v.initial&&(V=v.initial)),!V){$();return}await E(V),$()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:r,state:t,variants:o,apply:s}){const l=VueDemi.unref(o),v=[],x=(...z)=>{const F=useEventListener.apply(null,z);return v.push(F),F},A=VueDemi.ref(!1),w=VueDemi.ref(!1),E=VueDemi.ref(!1),C=VueDemi.computed(()=>{let z=[];return l&&(l.hovered&&(z=[...z,...Object.keys(l.hovered)]),l.tapped&&(z=[...z,...Object.keys(l.tapped)]),l.focused&&(z=[...z,...Object.keys(l.focused)])),z}),R=VueDemi.computed(()=>{const z={};Object.assign(z,t.value),A.value&&l.hovered&&Object.assign(z,l.hovered),w.value&&l.tapped&&Object.assign(z,l.tapped),E.value&&l.focused&&Object.assign(z,l.focused);for(const F in z)C.value.includes(F)||delete z[F];return z});l.hovered&&(x(r,"mouseenter",()=>{A.value=!0}),x(r,"mouseleave",()=>{A.value=!1,w.value=!1}),x(r,"mouseout",()=>{A.value=!1,w.value=!1})),l.tapped&&(supportsMouseEvents()&&(x(r,"mousedown",()=>{w.value=!0}),x(r,"mouseup",()=>{w.value=!1})),supportsPointerEvents()&&(x(r,"pointerdown",()=>{w.value=!0}),x(r,"pointerup",()=>{w.value=!1})),supportsTouchEvents()&&(x(r,"touchstart",()=>{w.value=!0}),x(r,"touchend",()=>{w.value=!1}))),l.focused&&(x(r,"focus",()=>{E.value=!0}),x(r,"blur",()=>{E.value=!1}));const $=VueDemi.watch(R,s);return{stop:()=>{v.forEach(z=>z()),$()}}}function registerLifeCycleHooks({set:r,target:t,variants:o,variant:s}){const l=VueDemi.unref(o);return{stop:VueDemi.watch(()=>t,()=>{l&&(l.initial&&r("initial"),l.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:r,apply:t}){return{stop:VueDemi.watch(r,s=>{s&&t(s)},{immediate:!0})}}function registerVisibilityHooks({target:r,variants:t,variant:o}){const s=VueDemi.unref(t);let l=noop$1;if(s&&(s.visible||s.visibleOnce)){const{stop:v}=useIntersectionObserver(r,([{isIntersecting:x}])=>{s.visible?x?o.value="visible":o.value="initial":s.visibleOnce&&(x?o.value!=="visibleOnce"&&(o.value="visibleOnce"):o.value||(o.value="initial"))});l=v}return{stop:l}}function useMotionFeatures(r,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const o=VueDemi.ref([]);if(t.lifeCycleHooks){const{stop:l}=registerLifeCycleHooks(r);o.value.push(l)}if(t.syncVariants){const{stop:l}=registerVariantsSync(r);o.value.push(l)}if(t.visibilityHooks){const{stop:l}=registerVisibilityHooks(r);o.value.push(l)}if(t.eventListeners){const{stop:l}=registerEventListeners(r);o.value.push(l)}const s=()=>o.value.forEach(l=>l());return tryOnUnmounted(s),{stop:s}}function reactiveStyle(r={}){const t=VueDemi.reactive({...r}),o=VueDemi.ref({});return VueDemi.watch(t,()=>{const s={};for(const[l,v]of Object.entries(t)){const x=getValueType(l),A=getValueAsType(v,x);s[l]=A}o.value=s},{immediate:!0,deep:!0}),{state:t,style:o}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach(r=>{transformAxes.forEach(t=>{const o=r+t;transformProps.push(o)})});const transformPropSet=new Set(transformProps);function isTransformProp(r){return transformPropSet.has(r)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(r){return transformOriginProps.has(r)}function splitValues(r){const t={},o={};return Object.entries(r).forEach(([s,l])=>{isTransformProp(s)||isTransformOriginProp(s)?t[s]=l:o[s]=l}),{transform:t,style:o}}function useElementStyle(r,t){let o,s;const{state:l,style:v}=reactiveStyle(),x=VueDemi.watch(()=>unrefElement(r),E=>{if(E){s=E;for(const C of Object.keys(valueTypes))E.style[C]===null||E.style[C]===""||isTransformProp(C)||isTransformOriginProp(C)||VueDemi.set(l,C,E.style[C]);o&&Object.entries(o).forEach(([C,R])=>VueDemi.set(E.style,C,R)),t&&t(l)}},{immediate:!0}),A=VueDemi.watch(v,E=>{if(!s){o=E;return}for(const C in E)VueDemi.set(s.style,C,E[C])},{immediate:!0});return{style:l,stop:()=>{s=void 0,o=void 0,x(),A()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(r={},t=!0){const o=VueDemi.reactive({...r}),s=VueDemi.ref("");return VueDemi.watch(o,l=>{let v="",x=!1;if(t&&(l.x||l.y||l.z)){const A=[l.x||0,l.y||0,l.z||0].map(px.transform).join(",");v+=`translate3d(${A}) `,x=!0}for(const[A,w]of Object.entries(l)){if(t&&(A==="x"||A==="y"||A==="z"))continue;const E=getValueType(A),C=getValueAsType(w,E);v+=`${translateAlias[A]||A}(${C}) `}t&&!x&&(v+="translateZ(0px) "),s.value=v.trim()},{immediate:!0,deep:!0}),{state:o,transform:s}}function parseTransform(r){const t=r.trim().split(/\) |\)/);if(t.length===1)return{};const o=s=>s.endsWith("px")||s.endsWith("deg")?parseFloat(s):isNaN(Number(s))?Number(s):s;return t.reduce((s,l)=>{if(!l)return s;const[v,x]=l.split("("),w=x.split(",").map(C=>o(C.endsWith(")")?C.replace(")",""):C.trim())),E=w.length===1?w[0]:w;return{...s,[v]:E}},{})}function stateFromTransform(r,t){Object.entries(parseTransform(t)).forEach(([o,s])=>{s=parseFloat(s);const l=["x","y","z"];if(o==="translate3d"){if(s===0){l.forEach(v=>{VueDemi.set(r,v,0)});return}s.forEach((v,x)=>{VueDemi.set(r,l[x],v)});return}if(o==="translateX"){VueDemi.set(r,"x",s);return}if(o==="translateY"){VueDemi.set(r,"y",s);return}if(o==="translateZ"){VueDemi.set(r,"z",s);return}VueDemi.set(r,o,s)})}function useElementTransform(r,t){let o,s;const{state:l,transform:v}=reactiveTransform(),x=VueDemi.watch(()=>unrefElement(r),E=>{E&&(s=E,E.style.transform&&stateFromTransform(l,E.style.transform),o&&(E.style.transform=o),t&&t(l))},{immediate:!0}),A=VueDemi.watch(v,E=>{if(!s){o=E;return}s.style.transform=E},{immediate:!0});return{transform:l,stop:()=>{o=void 0,s=void 0,x(),A()}}}function useMotionProperties(r,t){const o=VueDemi.reactive({}),s=R=>{Object.entries(R).forEach(([$,V])=>{VueDemi.set(o,$,V)})},{style:l,stop:v}=useElementStyle(r,s),{transform:x,stop:A}=useElementTransform(r,s),w=VueDemi.watch(o,R=>{Object.entries(R).forEach(([$,V])=>{const z=isTransformProp($)?x:l;z[$]&&z[$]===V||VueDemi.set(z,$,V)})},{immediate:!0,deep:!0}),E=VueDemi.watch(()=>unrefElement(r),R=>{R&&t&&s(t)},{immediate:!0});return{motionProperties:o,style:l,transform:x,stop:()=>{v(),A(),w(),E()}}}function useMotionVariants(r={}){const t=VueDemi.unref(r),o=VueDemi.ref();return{state:VueDemi.computed(()=>{if(o.value)return t[o.value]}),variant:o}}function useMotion(r,t={},o){const{motionProperties:s,stop:l}=useMotionProperties(r),{variant:v,state:x}=useMotionVariants(t),A=useMotionControls(s,t),w={target:r,variant:v,variants:t,state:x,motionProperties:s,...A,stop:(C=!1)=>{}},{stop:E}=useMotionFeatures(w,o);return w.stop=(C=!1)=>{const R=()=>{w.stopTransitions(),l(),E()};if(!C&&t.value&&t.value.leave){const $=VueDemi.watch(w.isAnimating,V=>{V||($(),R())})}else R()},tryOnUnmounted(()=>w.stop()),w}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=(r,t)=>{const o=r.props?r.props:r.data&&r.data.attrs?r.data.attrs:{};o&&(o.variants&&isObject$4(o.variants)&&(t.value={...t.value,...o.variants}),directivePropsKeys.forEach(s=>{if(s==="delay"){if(o&&o[s]&&isNumber$1(o[s])){const l=o[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={...t.value.enter.transition,delay:l}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={...t.value.visible.transition,delay:l}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={...t.value.visibleOnce.transition,delay:l}))}return}s==="visible-once"&&(s="visibleOnce"),o&&o[s]&&isObject$4(o[s])&&(t.value[s]=o[s])}))},directive=r=>{const t=(s,l,v)=>{const x=l.value&&typeof l.value=="string"?l.value:v.key;x&&motionState[x]&&motionState[x].stop();const A=VueDemi.ref(r||{});typeof l.value=="object"&&(A.value=l.value),resolveVariants(v,A);const w=useMotion(s,A);s.motionInstance=w,x&&VueDemi.set(motionState,x,w)},o=s=>{s.motionInstance&&s.motionInstance.stop()};return{created:t,unmounted:o,bind:t,unbind:o,getSSRProps(s,l){const{initial:v}=s.value||l.props||{};if(!v||Object.keys(v).length===0)return;const{transform:x,style:A}=splitValues(v),{transform:w}=reactiveTransform(x),{style:E}=reactiveStyle(A);return w.value&&(E.value.transform=w.value),{style:E.value}}}},fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify(r){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",o="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return r.toString().replace(/[A-Z]/g,l=>`-${l}`).toLowerCase().replace(/\s+/g,"-").replace(s,l=>o.charAt(t.indexOf(l))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install(r,t){if(r.directive("motion",directive()),!t||t&&!t.excludePresets)for(const o in presets){const s=presets[o];r.directive(`motion-${slugify(o)}`,directive(s))}if(t&&t.directives)for(const o in t.directives){const s=t.directives[o];!s.initial&&__DEV__&&console.warn(`Your directive v-motion-${o} is missing initial variant!`),r.directive(`motion-${o}`,directive(s))}}};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(r,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l])},extendStatics(r,t)};function __extends(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(r,t);function o(){this.constructor=r}r.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var Browser=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Env=function(){function r(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(r,t){var o=t.browser,s=r.match(/Firefox\/([\d.]+)/),l=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),v=r.match(/Edge?\/([\d.]+)/),x=/micromessenger/i.test(r);s&&(o.firefox=!0,o.version=s[1]),l&&(o.ie=!0,o.version=l[1]),v&&(o.edge=!0,o.version=v[1],o.newEdge=+v[1].split(".")[0]>18),x&&(o.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!o.ie&&!o.edge,t.pointerEventsSupported="onpointerdown"in window&&(o.edge||o.ie&&+o.version>=11),t.domSupported=typeof document<"u";var A=document.documentElement.style;t.transform3dSupported=(o.ie&&"transition"in A||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in A)&&!("OTransition"in A),t.transformSupported=t.transform3dSupported||o.ie&&+o.version>=9}const env$1=env;var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(r){var t={};if(typeof JSON>"u")return t;for(var o=0;o<r.length;o++){var s=String.fromCharCode(o+32),l=(r.charCodeAt(o)-OFFSET)/SCALE;t[s]=l}return t}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(o,s){if(!r){var l=platformApi.createCanvas();r=l&&l.getContext("2d")}if(r)return t!==s&&(t=r.font=s||DEFAULT_FONT),r.measureText(o);o=o||"",s=s||DEFAULT_FONT;var v=/(\d+)px/.exec(s),x=v&&+v[1]||DEFAULT_FONT_SIZE,A=0;if(s.indexOf("mono")>=0)A=x*o.length;else for(var w=0;w<o.length;w++){var E=DEFAULT_TEXT_WIDTH_MAP[o[w]];A+=E==null?x:E*x}return{width:A}}}(),loadImage:function(r,t,o){var s=new Image;return s.onload=t,s.onerror=o,s.src=r,s}};function setPlatformAPI(r){for(var t in platformApi)r[t]&&(platformApi[t]=r[t])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=function(){}.constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function clone$3(r){if(r==null||typeof r!="object")return r;var t=r,o=objToString.call(r);if(o==="[object Array]"){if(!isPrimitive(r)){t=[];for(var s=0,l=r.length;s<l;s++)t[s]=clone$3(r[s])}}else if(TYPED_ARRAY[o]){if(!isPrimitive(r)){var v=r.constructor;if(v.from)t=v.from(r);else{t=new v(r.length);for(var s=0,l=r.length;s<l;s++)t[s]=r[s]}}}else if(!BUILTIN_OBJECT[o]&&!isPrimitive(r)&&!isDom(r)){t={};for(var x in r)r.hasOwnProperty(x)&&x!==protoKey&&(t[x]=clone$3(r[x]))}return t}function merge(r,t,o){if(!isObject$3(t)||!isObject$3(r))return o?clone$3(t):r;for(var s in t)if(t.hasOwnProperty(s)&&s!==protoKey){var l=r[s],v=t[s];isObject$3(v)&&isObject$3(l)&&!isArray$1(v)&&!isArray$1(l)&&!isDom(v)&&!isDom(l)&&!isBuiltInObject(v)&&!isBuiltInObject(l)&&!isPrimitive(v)&&!isPrimitive(l)?merge(l,v,o):(o||!(s in r))&&(r[s]=clone$3(t[s]))}return r}function mergeAll(r,t){for(var o=r[0],s=1,l=r.length;s<l;s++)o=merge(o,r[s],t);return o}function extend(r,t){if(Object.assign)Object.assign(r,t);else for(var o in t)t.hasOwnProperty(o)&&o!==protoKey&&(r[o]=t[o]);return r}function defaults(r,t,o){for(var s=keys(t),l=0;l<s.length;l++){var v=s[l];(o?t[v]!=null:r[v]==null)&&(r[v]=t[v])}return r}var createCanvas=platformApi.createCanvas;function indexOf(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var o=0,s=r.length;o<s;o++)if(r[o]===t)return o}return-1}function inherits(r,t){var o=r.prototype;function s(){}s.prototype=t.prototype,r.prototype=new s;for(var l in o)o.hasOwnProperty(l)&&(r.prototype[l]=o[l]);r.prototype.constructor=r,r.superClass=t}function mixin(r,t,o){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var s=Object.getOwnPropertyNames(t),l=0;l<s.length;l++){var v=s[l];v!=="constructor"&&(o?t[v]!=null:r[v]==null)&&(r[v]=t[v])}else defaults(r,t,o)}function isArrayLike(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function each$c(r,t,o){if(r&&t)if(r.forEach&&r.forEach===nativeForEach)r.forEach(t,o);else if(r.length===+r.length)for(var s=0,l=r.length;s<l;s++)t.call(o,r[s],s,r);else for(var v in r)r.hasOwnProperty(v)&&t.call(o,r[v],v,r)}function map$2(r,t,o){if(!r)return[];if(!t)return slice(r);if(r.map&&r.map===nativeMap)return r.map(t,o);for(var s=[],l=0,v=r.length;l<v;l++)s.push(t.call(o,r[l],l,r));return s}function reduce(r,t,o,s){if(r&&t){for(var l=0,v=r.length;l<v;l++)o=t.call(s,o,r[l],l,r);return o}}function filter(r,t,o){if(!r)return[];if(!t)return slice(r);if(r.filter&&r.filter===nativeFilter)return r.filter(t,o);for(var s=[],l=0,v=r.length;l<v;l++)t.call(o,r[l],l,r)&&s.push(r[l]);return s}function find(r,t,o){if(r&&t){for(var s=0,l=r.length;s<l;s++)if(t.call(o,r[s],s,r))return r[s]}}function keys(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var o in r)r.hasOwnProperty(o)&&t.push(o);return t}function bindPolyfill(r,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return function(){return r.apply(t,o.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1(r){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return function(){return r.apply(this,t.concat(nativeSlice.call(arguments)))}}function isArray$1(r){return Array.isArray?Array.isArray(r):objToString.call(r)==="[object Array]"}function isFunction(r){return typeof r=="function"}function isString(r){return typeof r=="string"}function isStringSafe(r){return objToString.call(r)==="[object String]"}function isNumber(r){return typeof r=="number"}function isObject$3(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function isBuiltInObject(r){return!!BUILTIN_OBJECT[objToString.call(r)]}function isTypedArray(r){return!!TYPED_ARRAY[objToString.call(r)]}function isDom(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function isGradientObject(r){return r.colorStops!=null}function isImagePatternObject(r){return r.image!=null}function isRegExp(r){return objToString.call(r)==="[object RegExp]"}function eqNaN(r){return r!==r}function retrieve(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var o=0,s=r.length;o<s;o++)if(r[o]!=null)return r[o]}function retrieve2(r,t){return r??t}function retrieve3(r,t,o){return r??t??o}function slice(r){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return nativeSlice.apply(r,t)}function normalizeCssArray$1(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function assert(r,t){if(!r)throw new Error(t)}function trim$1(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive(r){r[primitiveKey]=!0}function isPrimitive(r){return r[primitiveKey]}var MapPolyfill=function(){function r(){this.data={}}return r.prototype.delete=function(t){var o=this.has(t);return o&&delete this.data[t],o},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,o){return this.data[t]=o,this},r.prototype.keys=function(){return keys(this.data)},r.prototype.forEach=function(t){var o=this.data;for(var s in o)o.hasOwnProperty(s)&&t(o[s],s)},r}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function r(t){var o=isArray$1(t);this.data=maybeNativeMap();var s=this;t instanceof r?t.each(l):t&&each$c(t,l);function l(v,x){o?s.set(v,x):s.set(x,v)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,o){return this.data.set(t,o),o},r.prototype.each=function(t,o){this.data.forEach(function(s,l){t.call(o,s,l)})},r.prototype.keys=function(){var t=this.data.keys();return isNativeMapSupported?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function createHashMap(r){return new HashMap(r)}function concatArray(r,t){for(var o=new r.constructor(r.length+t.length),s=0;s<r.length;s++)o[s]=r[s];for(var l=r.length,s=0;s<t.length;s++)o[s+l]=t[s];return o}function createObject(r,t){var o;if(Object.create)o=Object.create(r);else{var s=function(){};s.prototype=r,o=new s}return t&&extend(o,t),o}function disableUserSelect(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function hasOwn(r,t){return r.hasOwnProperty(t)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;const util$1=Object.freeze(Object.defineProperty({__proto__:null,HashMap,RADIAN_TO_DEGREE,assert,bind:bind$1,clone:clone$3,concatArray,createCanvas,createHashMap,createObject,curry:curry$1,defaults,disableUserSelect,each:each$c,eqNaN,extend,filter,find,guid,hasOwn,indexOf,inherits,isArray:isArray$1,isArrayLike,isBuiltInObject,isDom,isFunction,isGradientObject,isImagePatternObject,isNumber,isObject:isObject$3,isPrimitive,isRegExp,isString,isStringSafe,isTypedArray,keys,logError,map:map$2,merge,mergeAll,mixin,noop,normalizeCssArray:normalizeCssArray$1,reduce,retrieve,retrieve2,retrieve3,setAsPrimitive,slice,trim:trim$1},Symbol.toStringTag,{value:"Module"}));function create$1(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function copy$1(r,t){return r[0]=t[0],r[1]=t[1],r}function clone$2(r){return[r[0],r[1]]}function set$1(r,t,o){return r[0]=t,r[1]=o,r}function add(r,t,o){return r[0]=t[0]+o[0],r[1]=t[1]+o[1],r}function scaleAndAdd(r,t,o,s){return r[0]=t[0]+o[0]*s,r[1]=t[1]+o[1]*s,r}function sub(r,t,o){return r[0]=t[0]-o[0],r[1]=t[1]-o[1],r}function len(r){return Math.sqrt(lenSquare(r))}var length=len;function lenSquare(r){return r[0]*r[0]+r[1]*r[1]}var lengthSquare=lenSquare;function mul$1(r,t,o){return r[0]=t[0]*o[0],r[1]=t[1]*o[1],r}function div(r,t,o){return r[0]=t[0]/o[0],r[1]=t[1]/o[1],r}function dot(r,t){return r[0]*t[0]+r[1]*t[1]}function scale$2(r,t,o){return r[0]=t[0]*o,r[1]=t[1]*o,r}function normalize$1(r,t){var o=len(t);return o===0?(r[0]=0,r[1]=0):(r[0]=t[0]/o,r[1]=t[1]/o),r}function distance(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var dist$1=distance;function distanceSquare(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var distSquare=distanceSquare;function negate(r,t){return r[0]=-t[0],r[1]=-t[1],r}function lerp$1(r,t,o,s){return r[0]=t[0]+s*(o[0]-t[0]),r[1]=t[1]+s*(o[1]-t[1]),r}function applyTransform$1(r,t,o){var s=t[0],l=t[1];return r[0]=o[0]*s+o[2]*l+o[4],r[1]=o[1]*s+o[3]*l+o[5],r}function min$1(r,t,o){return r[0]=Math.min(t[0],o[0]),r[1]=Math.min(t[1],o[1]),r}function max$1(r,t,o){return r[0]=Math.max(t[0],o[0]),r[1]=Math.max(t[1],o[1]),r}const vector=Object.freeze(Object.defineProperty({__proto__:null,add,applyTransform:applyTransform$1,clone:clone$2,copy:copy$1,create:create$1,dist:dist$1,distSquare,distance,distanceSquare,div,dot,len,lenSquare,length,lengthSquare,lerp:lerp$1,max:max$1,min:min$1,mul:mul$1,negate,normalize:normalize$1,scale:scale$2,scaleAndAdd,set:set$1,sub},Symbol.toStringTag,{value:"Module"}));var Param=function(){function r(t,o){this.target=t,this.topTarget=o&&o.topTarget}return r}(),Draggable=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var o=t.target;o&&!o.draggable;)o=o.parent||o.__hostTarget;o&&(this._draggingTarget=o,o.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Param(o,t),"dragstart",t.event))},r.prototype._drag=function(t){var o=this._draggingTarget;if(o){var s=t.offsetX,l=t.offsetY,v=s-this._x,x=l-this._y;this._x=s,this._y=l,o.drift(v,x,t),this.handler.dispatchToElement(new Param(o,t),"drag",t.event);var A=this.handler.findHover(s,l,o).target,w=this._dropTarget;this._dropTarget=A,o!==A&&(w&&A!==w&&this.handler.dispatchToElement(new Param(w,t),"dragleave",t.event),A&&A!==w&&this.handler.dispatchToElement(new Param(A,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var o=this._draggingTarget;o&&(o.dragging=!1),this.handler.dispatchToElement(new Param(o,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const Draggable$1=Draggable;var Eventful=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,o,s,l){this._$handlers||(this._$handlers={});var v=this._$handlers;if(typeof o=="function"&&(l=s,s=o,o=null),!s||!t)return this;var x=this._$eventProcessor;o!=null&&x&&x.normalizeQuery&&(o=x.normalizeQuery(o)),v[t]||(v[t]=[]);for(var A=0;A<v[t].length;A++)if(v[t][A].h===s)return this;var w={h:s,query:o,ctx:l||this,callAtLast:s.zrEventfulCallAtLast},E=v[t].length-1,C=v[t][E];return C&&C.callAtLast?v[t].splice(E,0,w):v[t].push(w),this},r.prototype.isSilent=function(t){var o=this._$handlers;return!o||!o[t]||!o[t].length},r.prototype.off=function(t,o){var s=this._$handlers;if(!s)return this;if(!t)return this._$handlers={},this;if(o){if(s[t]){for(var l=[],v=0,x=s[t].length;v<x;v++)s[t][v].h!==o&&l.push(s[t][v]);s[t]=l}s[t]&&s[t].length===0&&delete s[t]}else delete s[t];return this},r.prototype.trigger=function(t){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[t],v=this._$eventProcessor;if(l)for(var x=o.length,A=l.length,w=0;w<A;w++){var E=l[w];if(!(v&&v.filter&&E.query!=null&&!v.filter(t,E.query)))switch(x){case 0:E.h.call(E.ctx);break;case 1:E.h.call(E.ctx,o[0]);break;case 2:E.h.call(E.ctx,o[0],o[1]);break;default:E.h.apply(E.ctx,o);break}}return v&&v.afterTrigger&&v.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[t],v=this._$eventProcessor;if(l)for(var x=o.length,A=o[x-1],w=l.length,E=0;E<w;E++){var C=l[E];if(!(v&&v.filter&&C.query!=null&&!v.filter(t,C.query)))switch(x){case 0:C.h.call(A);break;case 1:C.h.call(A,o[0]);break;case 2:C.h.call(A,o[0],o[1]);break;default:C.h.apply(A,o.slice(1,x-1));break}}return v&&v.afterTrigger&&v.afterTrigger(t),this},r}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant(r,t,o,s,l,v){var x=s+"-"+l,A=r.length;if(v.hasOwnProperty(x))return v[x];if(t===1){var w=Math.round(Math.log((1<<A)-1&~l)/LN2);return r[o][w]}for(var E=s|1<<o,C=o+1;s&1<<C;)C++;for(var R=0,$=0,V=0;$<A;$++){var z=1<<$;z&l||(R+=(V%2?-1:1)*r[o][$]*determinant(r,t-1,C,E,l|z,v),V++)}return v[x]=R,R}function buildTransformer(r,t){var o=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],s={},l=determinant(o,8,0,0,0,s);if(l!==0){for(var v=[],x=0;x<8;x++)for(var A=0;A<8;A++)v[A]==null&&(v[A]=0),v[A]+=((x+A)%2?-1:1)*determinant(o,7,x===0?1:0,1<<x,1<<A,s)/l*t[x];return function(w,E,C){var R=E*v[6]+C*v[7]+1;w[0]=(E*v[0]+C*v[1]+v[2])/R,w[1]=(E*v[3]+C*v[4]+v[5])/R}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord(r,t,o,s,l){return transformCoordWithViewport(_calcOut$1,t,s,l,!0)&&transformCoordWithViewport(r,o,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport(r,t,o,s,l){if(t.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(t)){var v=t[EVENT_SAVED_PROP]||(t[EVENT_SAVED_PROP]={}),x=prepareCoordMarkers(t,v),A=preparePointerTransformer(x,v,l);if(A)return A(r,o,s),!0}return!1}function prepareCoordMarkers(r,t){var o=t.markers;if(o)return o;o=t.markers=[];for(var s=["left","right"],l=["top","bottom"],v=0;v<4;v++){var x=document.createElement("div"),A=x.style,w=v%2,E=(v>>1)%2;A.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[w]+":0",l[E]+":0",s[1-w]+":auto",l[1-E]+":auto",""].join("!important;"),r.appendChild(x),o.push(x)}return o}function preparePointerTransformer(r,t,o){for(var s=o?"invTrans":"trans",l=t[s],v=t.srcCoords,x=[],A=[],w=!0,E=0;E<4;E++){var C=r[E].getBoundingClientRect(),R=2*E,$=C.left,V=C.top;x.push($,V),w=w&&v&&$===v[R]&&V===v[R+1],A.push(r[E].offsetLeft,r[E].offsetTop)}return w&&l?l:(t.srcCoords=x,t[s]=o?buildTransformer(A,x):buildTransformer(x,A))}function isCanvasEl(r){return r.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function encodeHTML(r){return r==null?"":(r+"").replace(replaceReg,function(t,o){return replaceMap[o]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(r,t,o,s){return o=o||{},s?calculateZrXY(r,t,o):firefoxNotSupportOffsetXY&&t.layerX!=null&&t.layerX!==t.offsetX?(o.zrX=t.layerX,o.zrY=t.layerY):t.offsetX!=null?(o.zrX=t.offsetX,o.zrY=t.offsetY):calculateZrXY(r,t,o),o}function calculateZrXY(r,t,o){if(env$1.domSupported&&r.getBoundingClientRect){var s=t.clientX,l=t.clientY;if(isCanvasEl(r)){var v=r.getBoundingClientRect();o.zrX=s-v.left,o.zrY=l-v.top;return}else if(transformCoordWithViewport(_calcOut,r,s,l)){o.zrX=_calcOut[0],o.zrY=_calcOut[1];return}}o.zrX=o.zrY=0}function getNativeEvent(r){return r||window.event}function normalizeEvent(r,t,o){if(t=getNativeEvent(t),t.zrX!=null)return t;var s=t.type,l=s&&s.indexOf("touch")>=0;if(l){var x=s!=="touchend"?t.targetTouches[0]:t.changedTouches[0];x&&clientToLocal(r,x,t,o)}else{clientToLocal(r,t,t,o);var v=getWheelDeltaMayPolyfill(t);t.zrDelta=v?v/120:-(t.detail||0)/3}var A=t.button;return t.which==null&&A!==void 0&&MOUSE_EVENT_REG.test(t.type)&&(t.which=A&1?1:A&2?3:A&4?2:0),t}function getWheelDeltaMayPolyfill(r){var t=r.wheelDelta;if(t)return t;var o=r.deltaX,s=r.deltaY;if(o==null||s==null)return t;var l=Math.abs(s!==0?s:o),v=s>0?-1:s<0?1:o>0?-1:1;return 3*l*v}function addEventListener(r,t,o,s){r.addEventListener(t,o,s)}function removeEventListener(r,t,o,s){r.removeEventListener(t,o,s)}var stop=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(r){return r.which===2||r.which===3}var GestureMgr=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,o,s){return this._doTrack(t,o,s),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,o,s){var l=t.touches;if(l){for(var v={points:[],touches:[],target:o,event:t},x=0,A=l.length;x<A;x++){var w=l[x],E=clientToLocal(s,w,{});v.points.push([E.zrX,E.zrY]),v.touches.push(w)}this._track.push(v)}},r.prototype._recognize=function(t){for(var o in recognizers)if(recognizers.hasOwnProperty(o)){var s=recognizers[o](this._track,t);if(s)return s}},r}();function dist(r){var t=r[1][0]-r[0][0],o=r[1][1]-r[0][1];return Math.sqrt(t*t+o*o)}function center(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var recognizers={pinch:function(r,t){var o=r.length;if(o){var s=(r[o-1]||{}).points,l=(r[o-2]||{}).points||s;if(l&&l.length>1&&s&&s.length>1){var v=dist(s)/dist(l);!isFinite(v)&&(v=1),t.pinchScale=v;var x=center(s);return t.pinchX=x[0],t.pinchY=x[1],{type:"pinch",target:r[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function copy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function mul(r,t,o){var s=t[0]*o[0]+t[2]*o[1],l=t[1]*o[0]+t[3]*o[1],v=t[0]*o[2]+t[2]*o[3],x=t[1]*o[2]+t[3]*o[3],A=t[0]*o[4]+t[2]*o[5]+t[4],w=t[1]*o[4]+t[3]*o[5]+t[5];return r[0]=s,r[1]=l,r[2]=v,r[3]=x,r[4]=A,r[5]=w,r}function translate(r,t,o){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+o[0],r[5]=t[5]+o[1],r}function rotate(r,t,o){var s=t[0],l=t[2],v=t[4],x=t[1],A=t[3],w=t[5],E=Math.sin(o),C=Math.cos(o);return r[0]=s*C+x*E,r[1]=-s*E+x*C,r[2]=l*C+A*E,r[3]=-l*E+C*A,r[4]=C*v+E*w,r[5]=C*w-E*v,r}function scale$1(r,t,o){var s=o[0],l=o[1];return r[0]=t[0]*s,r[1]=t[1]*l,r[2]=t[2]*s,r[3]=t[3]*l,r[4]=t[4]*s,r[5]=t[5]*l,r}function invert(r,t){var o=t[0],s=t[2],l=t[4],v=t[1],x=t[3],A=t[5],w=o*x-v*s;return w?(w=1/w,r[0]=x*w,r[1]=-v*w,r[2]=-s*w,r[3]=o*w,r[4]=(s*A-x*l)*w,r[5]=(v*l-o*A)*w,r):null}function clone$1(r){var t=create();return copy(t,r),t}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function r(t,o){this.x=t||0,this.y=o||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,o){return this.x=t,this.y=o,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,o){this.x+=t.x*o,this.y+=t.y*o},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var o=this.x-t.x,s=this.y-t.y;return Math.sqrt(o*o+s*s)},r.prototype.distanceSquare=function(t){var o=this.x-t.x,s=this.y-t.y;return o*o+s*s},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var o=this.x,s=this.y;return this.x=t[0]*o+t[2]*s+t[4],this.y=t[1]*o+t[3]*s+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,o,s){t.x=o,t.y=s},r.copy=function(t,o){t.x=o.x,t.y=o.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,o){return t.x*o.x+t.y*o.y},r.add=function(t,o,s){t.x=o.x+s.x,t.y=o.y+s.y},r.sub=function(t,o,s){t.x=o.x-s.x,t.y=o.y-s.y},r.scale=function(t,o,s){t.x=o.x*s,t.y=o.y*s},r.scaleAndAdd=function(t,o,s,l){t.x=o.x+s.x*l,t.y=o.y+s.y*l},r.lerp=function(t,o,s,l){var v=1-l;t.x=v*o.x+l*s.x,t.y=v*o.y+l*s.y},r}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function r(t,o,s,l){s<0&&(t=t+s,s=-s),l<0&&(o=o+l,l=-l),this.x=t,this.y=o,this.width=s,this.height=l}return r.prototype.union=function(t){var o=mathMin$8(t.x,this.x),s=mathMin$8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(t.x+t.width,this.x+this.width)-o:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(t.y+t.height,this.y+this.height)-s:this.height=t.height,this.x=o,this.y=s},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var o=this,s=t.width/o.width,l=t.height/o.height,v=create();return translate(v,v,[-o.x,-o.y]),scale$1(v,v,[s,l]),translate(v,v,[t.x,t.y]),v},r.prototype.intersect=function(t,o){if(!t)return!1;t instanceof r||(t=r.create(t));var s=this,l=s.x,v=s.x+s.width,x=s.y,A=s.y+s.height,w=t.x,E=t.x+t.width,C=t.y,R=t.y+t.height,$=!(v<w||E<l||A<C||R<x);if(o){var V=1/0,z=0,F=Math.abs(v-w),B=Math.abs(E-l),W=Math.abs(A-C),Y=Math.abs(R-x),Z=Math.min(F,B),X=Math.min(W,Y);v<w||E<l?Z>z&&(z=Z,F<B?Point$1.set(maxTv$1,-F,0):Point$1.set(maxTv$1,B,0)):Z<V&&(V=Z,F<B?Point$1.set(minTv$1,F,0):Point$1.set(minTv$1,-B,0)),A<C||R<x?X>z&&(z=X,W<Y?Point$1.set(maxTv$1,0,-W):Point$1.set(maxTv$1,0,Y)):Z<V&&(V=Z,W<Y?Point$1.set(minTv$1,0,W):Point$1.set(minTv$1,0,-Y))}return o&&Point$1.copy(o,$?minTv$1:maxTv$1),$},r.prototype.contain=function(t,o){var s=this;return t>=s.x&&t<=s.x+s.width&&o>=s.y&&o<=s.y+s.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,o){t.x=o.x,t.y=o.y,t.width=o.width,t.height=o.height},r.applyTransform=function(t,o,s){if(!s){t!==o&&r.copy(t,o);return}if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var l=s[0],v=s[3],x=s[4],A=s[5];t.x=o.x*l+x,t.y=o.y*v+A,t.width=o.width*l,t.height=o.height*v,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}lt.x=lb.x=o.x,lt.y=rt.y=o.y,rb.x=rt.x=o.x+o.width,rb.y=lb.y=o.y+o.height,lt.transform(s),rt.transform(s),rb.transform(s),lb.transform(s),t.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),t.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var w=mathMax$8(lt.x,rb.x,lb.x,rt.x),E=mathMax$8(lt.y,rb.y,lb.y,rt.y);t.width=w-t.x,t.height=E-t.y},r}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket(r,t,o){return{type:r,event:o,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:o.zrX,offsetY:o.zrY,gestureEvent:o.gestureEvent,pinchX:o.pinchX,pinchY:o.pinchY,pinchScale:o.pinchScale,wheelDelta:o.zrDelta,zrByTouch:o.zrByTouch,which:o.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.handler=null,o}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Eventful$1),HoveredResult=function(){function r(t,o){this.x=t,this.y=o}return r}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(r){__extends(t,r);function t(o,s,l,v,x){var A=r.call(this)||this;return A._hovered=new HoveredResult(0,0),A.storage=o,A.painter=s,A.painterRoot=v,A._pointerSize=x,l=l||new EmptyProxy,A.proxy=null,A.setHandlerProxy(l),A._draggingMgr=new Draggable$1(A),A}return t.prototype.setHandlerProxy=function(o){this.proxy&&this.proxy.dispose(),o&&(each$c(handlerNames,function(s){o.on&&o.on(s,this[s],this)},this),o.handler=this),this.proxy=o},t.prototype.mousemove=function(o){var s=o.zrX,l=o.zrY,v=isOutsideBoundary(this,s,l),x=this._hovered,A=x.target;A&&!A.__zr&&(x=this.findHover(x.x,x.y),A=x.target);var w=this._hovered=v?new HoveredResult(s,l):this.findHover(s,l),E=w.target,C=this.proxy;C.setCursor&&C.setCursor(E?E.cursor:"default"),A&&E!==A&&this.dispatchToElement(x,"mouseout",o),this.dispatchToElement(w,"mousemove",o),E&&E!==A&&this.dispatchToElement(w,"mouseover",o)},t.prototype.mouseout=function(o){var s=o.zrEventControl;s!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",o),s!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:o})},t.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},t.prototype.dispatch=function(o,s){var l=this[o];l&&l.call(this,s)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(o){var s=this.proxy;s.setCursor&&s.setCursor(o)},t.prototype.dispatchToElement=function(o,s,l){o=o||{};var v=o.target;if(!(v&&v.silent)){for(var x="on"+s,A=makeEventPacket(s,o,l);v&&(v[x]&&(A.cancelBubble=!!v[x].call(v,A)),v.trigger(s,A),v=v.__hostTarget?v.__hostTarget:v.parent,!A.cancelBubble););A.cancelBubble||(this.trigger(s,A),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(w){typeof w[x]=="function"&&w[x].call(w,A),w.trigger&&w.trigger(s,A)}))}},t.prototype.findHover=function(o,s,l){var v=this.storage.getDisplayList(),x=new HoveredResult(o,s);if(setHoverTarget(v,x,o,s,l),this._pointerSize&&!x.target){for(var A=[],w=this._pointerSize,E=w/2,C=new BoundingRect$1(o-E,s-E,w,w),R=v.length-1;R>=0;R--){var $=v[R];$!==l&&!$.ignore&&!$.ignoreCoarsePointer&&(!$.parent||!$.parent.ignoreCoarsePointer)&&(tmpRect$1.copy($.getBoundingRect()),$.transform&&tmpRect$1.applyTransform($.transform),tmpRect$1.intersect(C)&&A.push($))}if(A.length)for(var V=4,z=Math.PI/12,F=Math.PI*2,B=0;B<E;B+=V)for(var W=0;W<F;W+=z){var Y=o+B*Math.cos(W),Z=s+B*Math.sin(W);if(setHoverTarget(A,x,Y,Z,l),x.target)return x}}return x},t.prototype.processGesture=function(o,s){this._gestureMgr||(this._gestureMgr=new GestureMgr);var l=this._gestureMgr;s==="start"&&l.clear();var v=l.recognize(o,this.findHover(o.zrX,o.zrY,null).target,this.proxy.dom);if(s==="end"&&l.clear(),v){var x=v.type;o.gestureEvent=x;var A=new HoveredResult;A.target=v.target,this.dispatchToElement(A,x,v.event)}},t}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Handler.prototype[r]=function(t){var o=t.zrX,s=t.zrY,l=isOutsideBoundary(this,o,s),v,x;if((r!=="mouseup"||!l)&&(v=this.findHover(o,s),x=v.target),r==="mousedown")this._downEl=x,this._downPoint=[t.zrX,t.zrY],this._upEl=x;else if(r==="mouseup")this._upEl=x;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(v,r,t)}});function isHover(r,t,o){if(r[r.rectHover?"rectContain":"contain"](t,o)){for(var s=r,l=void 0,v=!1;s;){if(s.ignoreClip&&(v=!0),!v){var x=s.getClipPath();if(x&&!x.contain(t,o))return!1;s.silent&&(l=!0)}var A=s.__hostTarget;s=A||s.parent}return l?SILENT:!0}return!1}function setHoverTarget(r,t,o,s,l){for(var v=r.length-1;v>=0;v--){var x=r[v],A=void 0;if(x!==l&&!x.ignore&&(A=isHover(x,o,s))&&(!t.topTarget&&(t.topTarget=x),A!==SILENT)){t.target=x;break}}}function isOutsideBoundary(r,t,o){var s=r.painter;return t<0||t>s.getWidth()||o<0||o>s.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(r){for(var t=0;r>=DEFAULT_MIN_MERGE;)t|=r&1,r>>=1;return r+t}function makeAscendingRun(r,t,o,s){var l=t+1;if(l===o)return 1;if(s(r[l++],r[t])<0){for(;l<o&&s(r[l],r[l-1])<0;)l++;reverseRun(r,t,l)}else for(;l<o&&s(r[l],r[l-1])>=0;)l++;return l-t}function reverseRun(r,t,o){for(o--;t<o;){var s=r[t];r[t++]=r[o],r[o--]=s}}function binaryInsertionSort(r,t,o,s,l){for(s===t&&s++;s<o;s++){for(var v=r[s],x=t,A=s,w;x<A;)w=x+A>>>1,l(v,r[w])<0?A=w:x=w+1;var E=s-x;switch(E){case 3:r[x+3]=r[x+2];case 2:r[x+2]=r[x+1];case 1:r[x+1]=r[x];break;default:for(;E>0;)r[x+E]=r[x+E-1],E--}r[x]=v}}function gallopLeft(r,t,o,s,l,v){var x=0,A=0,w=1;if(v(r,t[o+l])>0){for(A=s-l;w<A&&v(r,t[o+l+w])>0;)x=w,w=(w<<1)+1,w<=0&&(w=A);w>A&&(w=A),x+=l,w+=l}else{for(A=l+1;w<A&&v(r,t[o+l-w])<=0;)x=w,w=(w<<1)+1,w<=0&&(w=A);w>A&&(w=A);var E=x;x=l-w,w=l-E}for(x++;x<w;){var C=x+(w-x>>>1);v(r,t[o+C])>0?x=C+1:w=C}return w}function gallopRight(r,t,o,s,l,v){var x=0,A=0,w=1;if(v(r,t[o+l])<0){for(A=l+1;w<A&&v(r,t[o+l-w])<0;)x=w,w=(w<<1)+1,w<=0&&(w=A);w>A&&(w=A);var E=x;x=l-w,w=l-E}else{for(A=s-l;w<A&&v(r,t[o+l+w])>=0;)x=w,w=(w<<1)+1,w<=0&&(w=A);w>A&&(w=A),x+=l,w+=l}for(x++;x<w;){var C=x+(w-x>>>1);v(r,t[o+C])<0?w=C:x=C+1}return w}function TimSort(r,t){var o=DEFAULT_MIN_GALLOPING,s,l,v=0;r.length;var x=[];s=[],l=[];function A(V,z){s[v]=V,l[v]=z,v+=1}function w(){for(;v>1;){var V=v-2;if(V>=1&&l[V-1]<=l[V]+l[V+1]||V>=2&&l[V-2]<=l[V]+l[V-1])l[V-1]<l[V+1]&&V--;else if(l[V]>l[V+1])break;C(V)}}function E(){for(;v>1;){var V=v-2;V>0&&l[V-1]<l[V+1]&&V--,C(V)}}function C(V){var z=s[V],F=l[V],B=s[V+1],W=l[V+1];l[V]=F+W,V===v-3&&(s[V+1]=s[V+2],l[V+1]=l[V+2]),v--;var Y=gallopRight(r[B],r,z,F,0,t);z+=Y,F-=Y,F!==0&&(W=gallopLeft(r[z+F-1],r,B,W,W-1,t),W!==0&&(F<=W?R(z,F,B,W):$(z,F,B,W)))}function R(V,z,F,B){var W=0;for(W=0;W<z;W++)x[W]=r[V+W];var Y=0,Z=F,X=V;if(r[X++]=r[Z++],--B===0){for(W=0;W<z;W++)r[X+W]=x[Y+W];return}if(z===1){for(W=0;W<B;W++)r[X+W]=r[Z+W];r[X+B]=x[Y];return}for(var ae=o,ie,oe,le;;){ie=0,oe=0,le=!1;do if(t(r[Z],x[Y])<0){if(r[X++]=r[Z++],oe++,ie=0,--B===0){le=!0;break}}else if(r[X++]=x[Y++],ie++,oe=0,--z===1){le=!0;break}while((ie|oe)<ae);if(le)break;do{if(ie=gallopRight(r[Z],x,Y,z,0,t),ie!==0){for(W=0;W<ie;W++)r[X+W]=x[Y+W];if(X+=ie,Y+=ie,z-=ie,z<=1){le=!0;break}}if(r[X++]=r[Z++],--B===0){le=!0;break}if(oe=gallopLeft(x[Y],r,Z,B,0,t),oe!==0){for(W=0;W<oe;W++)r[X+W]=r[Z+W];if(X+=oe,Z+=oe,B-=oe,B===0){le=!0;break}}if(r[X++]=x[Y++],--z===1){le=!0;break}ae--}while(ie>=DEFAULT_MIN_GALLOPING||oe>=DEFAULT_MIN_GALLOPING);if(le)break;ae<0&&(ae=0),ae+=2}if(o=ae,o<1&&(o=1),z===1){for(W=0;W<B;W++)r[X+W]=r[Z+W];r[X+B]=x[Y]}else{if(z===0)throw new Error;for(W=0;W<z;W++)r[X+W]=x[Y+W]}}function $(V,z,F,B){var W=0;for(W=0;W<B;W++)x[W]=r[F+W];var Y=V+z-1,Z=B-1,X=F+B-1,ae=0,ie=0;if(r[X--]=r[Y--],--z===0){for(ae=X-(B-1),W=0;W<B;W++)r[ae+W]=x[W];return}if(B===1){for(X-=z,Y-=z,ie=X+1,ae=Y+1,W=z-1;W>=0;W--)r[ie+W]=r[ae+W];r[X]=x[Z];return}for(var oe=o;;){var le=0,ve=0,xe=!1;do if(t(x[Z],r[Y])<0){if(r[X--]=r[Y--],le++,ve=0,--z===0){xe=!0;break}}else if(r[X--]=x[Z--],ve++,le=0,--B===1){xe=!0;break}while((le|ve)<oe);if(xe)break;do{if(le=z-gallopRight(x[Z],r,V,z,z-1,t),le!==0){for(X-=le,Y-=le,z-=le,ie=X+1,ae=Y+1,W=le-1;W>=0;W--)r[ie+W]=r[ae+W];if(z===0){xe=!0;break}}if(r[X--]=x[Z--],--B===1){xe=!0;break}if(ve=B-gallopLeft(r[Y],x,0,B,B-1,t),ve!==0){for(X-=ve,Z-=ve,B-=ve,ie=X+1,ae=Z+1,W=0;W<ve;W++)r[ie+W]=x[ae+W];if(B<=1){xe=!0;break}}if(r[X--]=r[Y--],--z===0){xe=!0;break}oe--}while(le>=DEFAULT_MIN_GALLOPING||ve>=DEFAULT_MIN_GALLOPING);if(xe)break;oe<0&&(oe=0),oe+=2}if(o=oe,o<1&&(o=1),B===1){for(X-=z,Y-=z,ie=X+1,ae=Y+1,W=z-1;W>=0;W--)r[ie+W]=r[ae+W];r[X]=x[Z]}else{if(B===0)throw new Error;for(ae=X-(B-1),W=0;W<B;W++)r[ae+W]=x[W]}}return{mergeRuns:w,forceMergeRuns:E,pushRun:A}}function sort(r,t,o,s){o||(o=0),s||(s=r.length);var l=s-o;if(!(l<2)){var v=0;if(l<DEFAULT_MIN_MERGE){v=makeAscendingRun(r,o,s,t),binaryInsertionSort(r,o,s,o+v,t);return}var x=TimSort(r,t),A=minRunLength(l);do{if(v=makeAscendingRun(r,o,s,t),v<A){var w=l;w>A&&(w=A),binaryInsertionSort(r,o,o+w,o+v,t),v=w}x.pushRun(o,v),x.mergeRuns(),l-=v,o+=v}while(l!==0);x.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Storage=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return r.prototype.traverse=function(t,o){for(var s=0;s<this._roots.length;s++)this._roots[s].traverse(t,o)},r.prototype.getDisplayList=function(t,o){o=o||!1;var s=this._displayList;return(t||!s.length)&&this.updateDisplayList(o),s},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var o=this._roots,s=this._displayList,l=0,v=o.length;l<v;l++)this._updateAndAddDisplayable(o[l],null,t);s.length=this._displayListLen,sort(s,shapeCompareFunc)},r.prototype._updateAndAddDisplayable=function(t,o,s){if(!(t.ignore&&!s)){t.beforeUpdate(),t.update(),t.afterUpdate();var l=t.getClipPath();if(t.ignoreClip)o=null;else if(l){o?o=o.slice():o=[];for(var v=l,x=t;v;)v.parent=x,v.updateTransform(),o.push(v),x=v,v=v.getClipPath()}if(t.childrenRef){for(var A=t.childrenRef(),w=0;w<A.length;w++){var E=A[w];t.__dirty&&(E.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(E,o,s)}t.__dirty=0}else{var C=t;o&&o.length?C.__clipPaths=o:C.__clipPaths&&C.__clipPaths.length>0&&(C.__clipPaths=[]),isNaN(C.z)&&(logInvalidZError(),C.z=0),isNaN(C.z2)&&(logInvalidZError(),C.z2=0),isNaN(C.zlevel)&&(logInvalidZError(),C.zlevel=0),this._displayList[this._displayListLen++]=C}var R=t.getDecalElement&&t.getDecalElement();R&&this._updateAndAddDisplayable(R,o,s);var $=t.getTextGuideLine();$&&this._updateAndAddDisplayable($,o,s);var V=t.getTextContent();V&&this._updateAndAddDisplayable(V,o,s)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var o=0,s=t.length;o<s;o++)this.delRoot(t[o]);return}var l=indexOf(this._roots,t);l>=0&&this._roots.splice(l,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const Storage$1=Storage;var requestAnimationFrame;requestAnimationFrame=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const requestAnimationFrame$1=requestAnimationFrame;var easingFuncs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,o=.1,s=.4;return r===0?0:r===1?1:(!o||o<1?(o=1,t=s/4):t=s*Math.asin(1/o)/(2*Math.PI),-(o*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/s)))},elasticOut:function(r){var t,o=.1,s=.4;return r===0?0:r===1?1:(!o||o<1?(o=1,t=s/4):t=s*Math.asin(1/o)/(2*Math.PI),o*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/s)+1)},elasticInOut:function(r){var t,o=.1,s=.4;return r===0?0:r===1?1:(!o||o<1?(o=1,t=s/4):t=s*Math.asin(1/o)/(2*Math.PI),(r*=2)<1?-.5*(o*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/s)):o*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/s)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-easingFuncs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?easingFuncs.bounceIn(r*2)*.5:easingFuncs.bounceOut(r*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(r){return r>-EPSILON$3&&r<EPSILON$3}function isNotAroundZero$1(r){return r>EPSILON$3||r<-EPSILON$3}function cubicAt(r,t,o,s,l){var v=1-l;return v*v*(v*r+3*l*t)+l*l*(l*s+3*v*o)}function cubicDerivativeAt(r,t,o,s,l){var v=1-l;return 3*(((t-r)*v+2*(o-t)*l)*v+(s-o)*l*l)}function cubicRootAt(r,t,o,s,l,v){var x=s+3*(t-o)-r,A=3*(o-t*2+r),w=3*(t-r),E=r-l,C=A*A-3*x*w,R=A*w-9*x*E,$=w*w-3*A*E,V=0;if(isAroundZero(C)&&isAroundZero(R))if(isAroundZero(A))v[0]=0;else{var z=-w/A;z>=0&&z<=1&&(v[V++]=z)}else{var F=R*R-4*C*$;if(isAroundZero(F)){var B=R/C,z=-A/x+B,W=-B/2;z>=0&&z<=1&&(v[V++]=z),W>=0&&W<=1&&(v[V++]=W)}else if(F>0){var Y=mathSqrt$3(F),Z=C*A+1.5*x*(-R+Y),X=C*A+1.5*x*(-R-Y);Z<0?Z=-mathPow$2(-Z,ONE_THIRD):Z=mathPow$2(Z,ONE_THIRD),X<0?X=-mathPow$2(-X,ONE_THIRD):X=mathPow$2(X,ONE_THIRD);var z=(-A-(Z+X))/(3*x);z>=0&&z<=1&&(v[V++]=z)}else{var ae=(2*C*A-3*x*R)/(2*mathSqrt$3(C*C*C)),ie=Math.acos(ae)/3,oe=mathSqrt$3(C),le=Math.cos(ie),z=(-A-2*oe*le)/(3*x),W=(-A+oe*(le+THREE_SQRT*Math.sin(ie)))/(3*x),ve=(-A+oe*(le-THREE_SQRT*Math.sin(ie)))/(3*x);z>=0&&z<=1&&(v[V++]=z),W>=0&&W<=1&&(v[V++]=W),ve>=0&&ve<=1&&(v[V++]=ve)}}return V}function cubicExtrema(r,t,o,s,l){var v=6*o-12*t+6*r,x=9*t+3*s-3*r-9*o,A=3*t-3*r,w=0;if(isAroundZero(x)){if(isNotAroundZero$1(v)){var E=-A/v;E>=0&&E<=1&&(l[w++]=E)}}else{var C=v*v-4*x*A;if(isAroundZero(C))l[0]=-v/(2*x);else if(C>0){var R=mathSqrt$3(C),E=(-v+R)/(2*x),$=(-v-R)/(2*x);E>=0&&E<=1&&(l[w++]=E),$>=0&&$<=1&&(l[w++]=$)}}return w}function cubicSubdivide(r,t,o,s,l,v){var x=(t-r)*l+r,A=(o-t)*l+t,w=(s-o)*l+o,E=(A-x)*l+x,C=(w-A)*l+A,R=(C-E)*l+E;v[0]=r,v[1]=x,v[2]=E,v[3]=R,v[4]=R,v[5]=C,v[6]=w,v[7]=s}function cubicProjectPoint(r,t,o,s,l,v,x,A,w,E,C){var R,$=.005,V=1/0,z,F,B,W;_v0[0]=w,_v0[1]=E;for(var Y=0;Y<1;Y+=.05)_v1[0]=cubicAt(r,o,l,x,Y),_v1[1]=cubicAt(t,s,v,A,Y),B=distSquare(_v0,_v1),B<V&&(R=Y,V=B);V=1/0;for(var Z=0;Z<32&&!($<EPSILON_NUMERIC);Z++)z=R-$,F=R+$,_v1[0]=cubicAt(r,o,l,x,z),_v1[1]=cubicAt(t,s,v,A,z),B=distSquare(_v1,_v0),z>=0&&B<V?(R=z,V=B):(_v2[0]=cubicAt(r,o,l,x,F),_v2[1]=cubicAt(t,s,v,A,F),W=distSquare(_v2,_v0),F<=1&&W<V?(R=F,V=W):$*=.5);return C&&(C[0]=cubicAt(r,o,l,x,R),C[1]=cubicAt(t,s,v,A,R)),mathSqrt$3(V)}function cubicLength(r,t,o,s,l,v,x,A,w){for(var E=r,C=t,R=0,$=1/w,V=1;V<=w;V++){var z=V*$,F=cubicAt(r,o,l,x,z),B=cubicAt(t,s,v,A,z),W=F-E,Y=B-C;R+=Math.sqrt(W*W+Y*Y),E=F,C=B}return R}function quadraticAt(r,t,o,s){var l=1-s;return l*(l*r+2*s*t)+s*s*o}function quadraticDerivativeAt(r,t,o,s){return 2*((1-s)*(t-r)+s*(o-t))}function quadraticRootAt(r,t,o,s,l){var v=r-2*t+o,x=2*(t-r),A=r-s,w=0;if(isAroundZero(v)){if(isNotAroundZero$1(x)){var E=-A/x;E>=0&&E<=1&&(l[w++]=E)}}else{var C=x*x-4*v*A;if(isAroundZero(C)){var E=-x/(2*v);E>=0&&E<=1&&(l[w++]=E)}else if(C>0){var R=mathSqrt$3(C),E=(-x+R)/(2*v),$=(-x-R)/(2*v);E>=0&&E<=1&&(l[w++]=E),$>=0&&$<=1&&(l[w++]=$)}}return w}function quadraticExtremum(r,t,o){var s=r+o-2*t;return s===0?.5:(r-t)/s}function quadraticSubdivide(r,t,o,s,l){var v=(t-r)*s+r,x=(o-t)*s+t,A=(x-v)*s+v;l[0]=r,l[1]=v,l[2]=A,l[3]=A,l[4]=x,l[5]=o}function quadraticProjectPoint(r,t,o,s,l,v,x,A,w){var E,C=.005,R=1/0;_v0[0]=x,_v0[1]=A;for(var $=0;$<1;$+=.05){_v1[0]=quadraticAt(r,o,l,$),_v1[1]=quadraticAt(t,s,v,$);var V=distSquare(_v0,_v1);V<R&&(E=$,R=V)}R=1/0;for(var z=0;z<32&&!(C<EPSILON_NUMERIC);z++){var F=E-C,B=E+C;_v1[0]=quadraticAt(r,o,l,F),_v1[1]=quadraticAt(t,s,v,F);var V=distSquare(_v1,_v0);if(F>=0&&V<R)E=F,R=V;else{_v2[0]=quadraticAt(r,o,l,B),_v2[1]=quadraticAt(t,s,v,B);var W=distSquare(_v2,_v0);B<=1&&W<R?(E=B,R=W):C*=.5}}return w&&(w[0]=quadraticAt(r,o,l,E),w[1]=quadraticAt(t,s,v,E)),mathSqrt$3(R)}function quadraticLength(r,t,o,s,l,v,x){for(var A=r,w=t,E=0,C=1/x,R=1;R<=x;R++){var $=R*C,V=quadraticAt(r,o,l,$),z=quadraticAt(t,s,v,$),F=V-A,B=z-w;E+=Math.sqrt(F*F+B*B),A=V,w=z}return E}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(r){var t=r&&regexp.exec(r);if(t){var o=t[1].split(","),s=+trim$1(o[0]),l=+trim$1(o[1]),v=+trim$1(o[2]),x=+trim$1(o[3]);if(isNaN(s+l+v+x))return;var A=[];return function(w){return w<=0?0:w>=1?1:cubicRootAt(0,s,v,1,w,A)&&cubicAt(0,l,x,1,A[0])}}}var Clip=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||noop,this.ondestroy=t.ondestroy||noop,this.onrestart=t.onrestart||noop,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,o){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=o;return}var s=this._life,l=t-this._startTime-this._pausedTime,v=l/s;v<0&&(v=0),v=Math.min(v,1);var x=this.easingFunc,A=x?x(v):v;if(this.onframe(A),v===1)if(this.loop){var w=l%s;this._startTime=t-w,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=isFunction(t)?t:easingFuncs$1[t]||createCubicEasingFunc(t)},r}();const Clip$1=Clip;var Entry=function(){function r(t){this.value=t}return r}(),LinkedList=function(){function r(){this._len=0}return r.prototype.insert=function(t){var o=new Entry(t);return this.insertEntry(o),o},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var o=t.prev,s=t.next;o?o.next=s:this.head=s,s?s.prev=o:this.tail=o,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),LRU=function(){function r(t){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,o){var s=this._list,l=this._map,v=null;if(l[t]==null){var x=s.len(),A=this._lastRemovedEntry;if(x>=this._maxSize&&x>0){var w=s.head;s.remove(w),delete l[w.key],v=w.value,this._lastRemovedEntry=w}A?A.value=o:A=new Entry(o),A.key=t,s.insertEntry(A),l[t]=A}return v},r.prototype.get=function(t){var o=this._map[t],s=this._list;if(o!=null)return o!==s.tail&&(s.remove(o),s.insertEntry(o)),o.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const LRU$1=LRU;var kCSSColorTable={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 clampCssByte(r){return r=Math.round(r),r<0?0:r>255?255:r}function clampCssAngle(r){return r=Math.round(r),r<0?0:r>360?360:r}function clampCssFloat(r){return r<0?0:r>1?1:r}function parseCssInt(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?clampCssByte(parseFloat(t)/100*255):clampCssByte(parseInt(t,10))}function parseCssFloat(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?clampCssFloat(parseFloat(t)/100):clampCssFloat(parseFloat(t))}function cssHueToRgb(r,t,o){return o<0?o+=1:o>1&&(o-=1),o*6<1?r+(t-r)*o*6:o*2<1?t:o*3<2?r+(t-r)*(2/3-o)*6:r}function lerpNumber(r,t,o){return r+(t-r)*o}function setRgba(r,t,o,s,l){return r[0]=t,r[1]=o,r[2]=s,r[3]=l,r}function copyRgba(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(r,t){lastRemovedArr&&copyRgba(lastRemovedArr,t),lastRemovedArr=colorCache.put(r,lastRemovedArr||t.slice())}function parse$1(r,t){if(r){t=t||[];var o=colorCache.get(r);if(o)return copyRgba(t,o);r=r+"";var s=r.replace(/ /g,"").toLowerCase();if(s in kCSSColorTable)return copyRgba(t,kCSSColorTable[s]),putToCache(r,t),t;var l=s.length;if(s.charAt(0)==="#"){if(l===4||l===5){var v=parseInt(s.slice(1,4),16);if(!(v>=0&&v<=4095)){setRgba(t,0,0,0,1);return}return setRgba(t,(v&3840)>>4|(v&3840)>>8,v&240|(v&240)>>4,v&15|(v&15)<<4,l===5?parseInt(s.slice(4),16)/15:1),putToCache(r,t),t}else if(l===7||l===9){var v=parseInt(s.slice(1,7),16);if(!(v>=0&&v<=16777215)){setRgba(t,0,0,0,1);return}return setRgba(t,(v&16711680)>>16,(v&65280)>>8,v&255,l===9?parseInt(s.slice(7),16)/255:1),putToCache(r,t),t}return}var x=s.indexOf("("),A=s.indexOf(")");if(x!==-1&&A+1===l){var w=s.substr(0,x),E=s.substr(x+1,A-(x+1)).split(","),C=1;switch(w){case"rgba":if(E.length!==4)return E.length===3?setRgba(t,+E[0],+E[1],+E[2],1):setRgba(t,0,0,0,1);C=parseCssFloat(E.pop());case"rgb":if(E.length>=3)return setRgba(t,parseCssInt(E[0]),parseCssInt(E[1]),parseCssInt(E[2]),E.length===3?C:parseCssFloat(E[3])),putToCache(r,t),t;setRgba(t,0,0,0,1);return;case"hsla":if(E.length!==4){setRgba(t,0,0,0,1);return}return E[3]=parseCssFloat(E[3]),hsla2rgba(E,t),putToCache(r,t),t;case"hsl":if(E.length!==3){setRgba(t,0,0,0,1);return}return hsla2rgba(E,t),putToCache(r,t),t;default:return}}setRgba(t,0,0,0,1)}}function hsla2rgba(r,t){var o=(parseFloat(r[0])%360+360)%360/360,s=parseCssFloat(r[1]),l=parseCssFloat(r[2]),v=l<=.5?l*(s+1):l+s-l*s,x=l*2-v;return t=t||[],setRgba(t,clampCssByte(cssHueToRgb(x,v,o+1/3)*255),clampCssByte(cssHueToRgb(x,v,o)*255),clampCssByte(cssHueToRgb(x,v,o-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function rgba2hsla(r){if(r){var t=r[0]/255,o=r[1]/255,s=r[2]/255,l=Math.min(t,o,s),v=Math.max(t,o,s),x=v-l,A=(v+l)/2,w,E;if(x===0)w=0,E=0;else{A<.5?E=x/(v+l):E=x/(2-v-l);var C=((v-t)/6+x/2)/x,R=((v-o)/6+x/2)/x,$=((v-s)/6+x/2)/x;t===v?w=$-R:o===v?w=1/3+C-$:s===v&&(w=2/3+R-C),w<0&&(w+=1),w>1&&(w-=1)}var V=[w*360,E,A];return r[3]!=null&&V.push(r[3]),V}}function lift(r,t){var o=parse$1(r);if(o){for(var s=0;s<3;s++)t<0?o[s]=o[s]*(1-t)|0:o[s]=(255-o[s])*t+o[s]|0,o[s]>255?o[s]=255:o[s]<0&&(o[s]=0);return stringify(o,o.length===4?"rgba":"rgb")}}function toHex(r){var t=parse$1(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function fastLerp(r,t,o){if(!(!(t&&t.length)||!(r>=0&&r<=1))){o=o||[];var s=r*(t.length-1),l=Math.floor(s),v=Math.ceil(s),x=t[l],A=t[v],w=s-l;return o[0]=clampCssByte(lerpNumber(x[0],A[0],w)),o[1]=clampCssByte(lerpNumber(x[1],A[1],w)),o[2]=clampCssByte(lerpNumber(x[2],A[2],w)),o[3]=clampCssFloat(lerpNumber(x[3],A[3],w)),o}}var fastMapToColor=fastLerp;function lerp(r,t,o){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var s=r*(t.length-1),l=Math.floor(s),v=Math.ceil(s),x=parse$1(t[l]),A=parse$1(t[v]),w=s-l,E=stringify([clampCssByte(lerpNumber(x[0],A[0],w)),clampCssByte(lerpNumber(x[1],A[1],w)),clampCssByte(lerpNumber(x[2],A[2],w)),clampCssFloat(lerpNumber(x[3],A[3],w))],"rgba");return o?{color:E,leftIndex:l,rightIndex:v,value:s}:E}}var mapToColor=lerp;function modifyHSL(r,t,o,s){var l=parse$1(r);if(r)return l=rgba2hsla(l),t!=null&&(l[0]=clampCssAngle(t)),o!=null&&(l[1]=parseCssFloat(o)),s!=null&&(l[2]=parseCssFloat(s)),stringify(hsla2rgba(l),"rgba")}function modifyAlpha(r,t){var o=parse$1(r);if(o&&t!=null)return o[3]=clampCssFloat(t),stringify(o,"rgba")}function stringify(r,t){if(!(!r||!r.length)){var o=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(o+=","+r[3]),t+"("+o+")"}}function lum(r,t){var o=parse$1(r);return o?(.299*o[0]+.587*o[1]+.114*o[2])*o[3]/255+(1-o[3])*t:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient(r){return r.type==="linear"}function isRadialGradient(r){return r.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(r,t,o){return(t-r)*o+r}function interpolate1DArray(r,t,o,s){for(var l=t.length,v=0;v<l;v++)r[v]=interpolateNumber$1(t[v],o[v],s);return r}function interpolate2DArray(r,t,o,s){for(var l=t.length,v=l&&t[0].length,x=0;x<l;x++){r[x]||(r[x]=[]);for(var A=0;A<v;A++)r[x][A]=interpolateNumber$1(t[x][A],o[x][A],s)}return r}function add1DArray(r,t,o,s){for(var l=t.length,v=0;v<l;v++)r[v]=t[v]+o[v]*s;return r}function add2DArray(r,t,o,s){for(var l=t.length,v=l&&t[0].length,x=0;x<l;x++){r[x]||(r[x]=[]);for(var A=0;A<v;A++)r[x][A]=t[x][A]+o[x][A]*s}return r}function fillColorStops(r,t){for(var o=r.length,s=t.length,l=o>s?t:r,v=Math.min(o,s),x=l[v-1]||{color:[0,0,0,0],offset:0},A=v;A<Math.max(o,s);A++)l.push({offset:x.offset,color:x.color.slice()})}function fillArray(r,t,o){var s=r,l=t;if(!(!s.push||!l.push)){var v=s.length,x=l.length;if(v!==x){var A=v>x;if(A)s.length=x;else for(var w=v;w<x;w++)s.push(o===1?l[w]:arraySlice.call(l[w]))}for(var E=s[0]&&s[0].length,w=0;w<s.length;w++)if(o===1)isNaN(s[w])&&(s[w]=l[w]);else for(var C=0;C<E;C++)isNaN(s[w][C])&&(s[w][C]=l[w][C])}}function cloneValue(r){if(isArrayLike(r)){var t=r.length;if(isArrayLike(r[0])){for(var o=[],s=0;s<t;s++)o.push(arraySlice.call(r[s]));return o}return arraySlice.call(r)}return r}function rgba2String(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function guessArrayDim(r){return isArrayLike(r&&r[0])?2:1}var VALUE_TYPE_NUMBER=0,VALUE_TYPE_1D_ARRAY=1,VALUE_TYPE_2D_ARRAY=2,VALUE_TYPE_COLOR=3,VALUE_TYPE_LINEAR_GRADIENT=4,VALUE_TYPE_RADIAL_GRADIENT=5,VALUE_TYPE_UNKOWN=6;function isGradientValueType(r){return r===VALUE_TYPE_LINEAR_GRADIENT||r===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType(r){return r===VALUE_TYPE_1D_ARRAY||r===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,o,s){this._needsSort=!0;var l=this.keyframes,v=l.length,x=!1,A=VALUE_TYPE_UNKOWN,w=o;if(isArrayLike(o)){var E=guessArrayDim(o);A=E,(E===1&&!isNumber(o[0])||E===2&&!isNumber(o[0][0]))&&(x=!0)}else if(isNumber(o)&&!eqNaN(o))A=VALUE_TYPE_NUMBER;else if(isString(o))if(!isNaN(+o))A=VALUE_TYPE_NUMBER;else{var C=parse$1(o);C&&(w=C,A=VALUE_TYPE_COLOR)}else if(isGradientObject(o)){var R=extend({},w);R.colorStops=map$2(o.colorStops,function(V){return{offset:V.offset,color:parse$1(V.color)}}),isLinearGradient(o)?A=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(o)&&(A=VALUE_TYPE_RADIAL_GRADIENT),w=R}v===0?this.valType=A:(A!==this.valType||A===VALUE_TYPE_UNKOWN)&&(x=!0),this.discrete=this.discrete||x;var $={time:t,value:w,rawValue:o,percent:0};return s&&($.easing=s,$.easingFunc=isFunction(s)?s:easingFuncs$1[s]||createCubicEasingFunc(s)),l.push($),$},r.prototype.prepare=function(t,o){var s=this.keyframes;this._needsSort&&s.sort(function(F,B){return F.time-B.time});for(var l=this.valType,v=s.length,x=s[v-1],A=this.discrete,w=isArrayValueType(l),E=isGradientValueType(l),C=0;C<v;C++){var R=s[C],$=R.value,V=x.value;R.percent=R.time/t,A||(w&&C!==v-1?fillArray($,V,l):E&&fillColorStops($.colorStops,V.colorStops))}if(!A&&l!==VALUE_TYPE_RADIAL_GRADIENT&&o&&this.needsAnimate()&&o.needsAnimate()&&l===o.valType&&!o._finished){this._additiveTrack=o;for(var z=s[0].value,C=0;C<v;C++)l===VALUE_TYPE_NUMBER?s[C].additiveValue=s[C].value-z:l===VALUE_TYPE_COLOR?s[C].additiveValue=add1DArray([],s[C].value,z,-1):isArrayValueType(l)&&(s[C].additiveValue=l===VALUE_TYPE_1D_ARRAY?add1DArray([],s[C].value,z,-1):add2DArray([],s[C].value,z,-1))}},r.prototype.step=function(t,o){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var s=this._additiveTrack!=null,l=s?"additiveValue":"value",v=this.valType,x=this.keyframes,A=x.length,w=this.propName,E=v===VALUE_TYPE_COLOR,C,R=this._lastFr,$=Math.min,V,z;if(A===1)V=z=x[0];else{if(o<0)C=0;else if(o<this._lastFrP){var F=$(R+1,A-1);for(C=F;C>=0&&!(x[C].percent<=o);C--);C=$(C,A-2)}else{for(C=R;C<A&&!(x[C].percent>o);C++);C=$(C-1,A-2)}z=x[C+1],V=x[C]}if(V&&z){this._lastFr=C,this._lastFrP=o;var B=z.percent-V.percent,W=B===0?1:$((o-V.percent)/B,1);z.easingFunc&&(W=z.easingFunc(W));var Y=s?this._additiveValue:E?tmpRgba:t[w];if((isArrayValueType(v)||E)&&!Y&&(Y=this._additiveValue=[]),this.discrete)t[w]=W<1?V.rawValue:z.rawValue;else if(isArrayValueType(v))v===VALUE_TYPE_1D_ARRAY?interpolate1DArray(Y,V[l],z[l],W):interpolate2DArray(Y,V[l],z[l],W);else if(isGradientValueType(v)){var Z=V[l],X=z[l],ae=v===VALUE_TYPE_LINEAR_GRADIENT;t[w]={type:ae?"linear":"radial",x:interpolateNumber$1(Z.x,X.x,W),y:interpolateNumber$1(Z.y,X.y,W),colorStops:map$2(Z.colorStops,function(oe,le){var ve=X.colorStops[le];return{offset:interpolateNumber$1(oe.offset,ve.offset,W),color:rgba2String(interpolate1DArray([],oe.color,ve.color,W))}}),global:X.global},ae?(t[w].x2=interpolateNumber$1(Z.x2,X.x2,W),t[w].y2=interpolateNumber$1(Z.y2,X.y2,W)):t[w].r=interpolateNumber$1(Z.r,X.r,W)}else if(E)interpolate1DArray(Y,V[l],z[l],W),s||(t[w]=rgba2String(Y));else{var ie=interpolateNumber$1(V[l],z[l],W);s?this._additiveValue=ie:t[w]=ie}s&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var o=this.valType,s=this.propName,l=this._additiveValue;o===VALUE_TYPE_NUMBER?t[s]=t[s]+l:o===VALUE_TYPE_COLOR?(parse$1(t[s],tmpRgba),add1DArray(tmpRgba,tmpRgba,l,1),t[s]=rgba2String(tmpRgba)):o===VALUE_TYPE_1D_ARRAY?add1DArray(t[s],t[s],l,1):o===VALUE_TYPE_2D_ARRAY&&add2DArray(t[s],t[s],l,1)},r}(),Animator=function(){function r(t,o,s,l){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=o,o&&l){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=l,this._allowDiscrete=s}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,o,s){return this.whenWithKeys(t,o,keys(o),s)},r.prototype.whenWithKeys=function(t,o,s,l){for(var v=this._tracks,x=0;x<s.length;x++){var A=s[x],w=v[A];if(!w){w=v[A]=new Track(A);var E=void 0,C=this._getAdditiveTrack(A);if(C){var R=C.keyframes,$=R[R.length-1];E=$&&$.value,C.valType===VALUE_TYPE_COLOR&&E&&(E=rgba2String(E))}else E=this._target[A];if(E==null)continue;t>0&&w.addKeyframe(0,cloneValue(E),l),this._trackKeys.push(A)}w.addKeyframe(t,cloneValue(o[A]),l)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var o=t.length,s=0;s<o;s++)t[s].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,o=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,o)for(var s=0;s<o.length;s++)o[s].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,o=this._trackKeys,s=0;s<o.length;s++)t[o[s]].setFinished()},r.prototype._getAdditiveTrack=function(t){var o,s=this._additiveAnimators;if(s)for(var l=0;l<s.length;l++){var v=s[l].getTrack(t);v&&(o=v)}return o},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var o=this,s=[],l=this._maxTime||0,v=0;v<this._trackKeys.length;v++){var x=this._trackKeys[v],A=this._tracks[x],w=this._getAdditiveTrack(x),E=A.keyframes,C=E.length;if(A.prepare(l,w),A.needsAnimate())if(!this._allowDiscrete&&A.discrete){var R=E[C-1];R&&(o._target[A.propName]=R.rawValue),A.setFinished()}else s.push(A)}if(s.length||this._force){var $=new Clip$1({life:l,loop:this._loop,delay:this._delay||0,onframe:function(V){o._started=2;var z=o._additiveAnimators;if(z){for(var F=!1,B=0;B<z.length;B++)if(z[B]._clip){F=!0;break}F||(o._additiveAnimators=null)}for(var B=0;B<s.length;B++)s[B].step(o._target,V);var W=o._onframeCbs;if(W)for(var B=0;B<W.length;B++)W[B](o._target,V)},ondestroy:function(){o._doneCallback()}});this._clip=$,this.animation&&this.animation.addClip($),t&&$.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var o=this._clip;t&&o.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return map$2(this._trackKeys,function(o){return t._tracks[o]})},r.prototype.stopTracks=function(t,o){if(!t.length||!this._clip)return!0;for(var s=this._tracks,l=this._trackKeys,v=0;v<t.length;v++){var x=s[t[v]];x&&!x.isFinished()&&(o?x.step(this._target,1):this._started===1&&x.step(this._target,0),x.setFinished())}for(var A=!0,v=0;v<l.length;v++)if(!s[l[v]].isFinished()){A=!1;break}return A&&this._abortedCallback(),A},r.prototype.saveTo=function(t,o,s){if(t){o=o||this._trackKeys;for(var l=0;l<o.length;l++){var v=o[l],x=this._tracks[v];if(!(!x||x.isFinished())){var A=x.keyframes,w=A[s?0:A.length-1];w&&(t[v]=cloneValue(w.rawValue))}}}},r.prototype.__changeFinalValue=function(t,o){o=o||keys(t);for(var s=0;s<o.length;s++){var l=o[s],v=this._tracks[l];if(v){var x=v.keyframes;if(x.length>1){var A=x.pop();v.addKeyframe(A.time,t[l]),v.prepare(this._maxTime,v.getAdditiveTrack())}}}},r}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,o=o||{},s.stage=o.stage||{},s}return t.prototype.addClip=function(o){o.animation&&this.removeClip(o),this._head?(this._tail.next=o,o.prev=this._tail,o.next=null,this._tail=o):this._head=this._tail=o,o.animation=this},t.prototype.addAnimator=function(o){o.animation=this;var s=o.getClip();s&&this.addClip(s)},t.prototype.removeClip=function(o){if(o.animation){var s=o.prev,l=o.next;s?s.next=l:this._head=l,l?l.prev=s:this._tail=s,o.next=o.prev=o.animation=null}},t.prototype.removeAnimator=function(o){var s=o.getClip();s&&this.removeClip(s),o.animation=null},t.prototype.update=function(o){for(var s=getTime()-this._pausedTime,l=s-this._time,v=this._head;v;){var x=v.next,A=v.step(s,l);A&&(v.ondestroy(),this.removeClip(v)),v=x}this._time=s,o||(this.trigger("frame",l),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var o=this;this._running=!0;function s(){o._running&&(requestAnimationFrame$1(s),!o._paused&&o.update())}requestAnimationFrame$1(s)},t.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var o=this._head;o;){var s=o.next;o.prev=o.next=o.animation=null,o=s}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(o,s){s=s||{},this.start();var l=new Animator$1(o,s.loop);return this.addAnimator(l),l},t}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],o={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},s=map$2(r,function(l){var v=l.replace("mouse","pointer");return o.hasOwnProperty(v)?v:l});return{mouse:r,touch:t,pointer:s}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(r){var t=r.pointerType;return t==="pen"||t==="touch"}function setTouchTimer(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function markTouch(r){r&&(r.zrByTouch=!0)}function normalizeGlobalEvent(r,t){return normalizeEvent(r.dom,new FakeGlobalEvent(r,t),!0)}function isLocalEl(r,t){for(var o=t,s=!1;o&&o.nodeType!==9&&!(s=o.domBelongToZr||o!==t&&o===r.painterRoot);)o=o.parentNode;return s}var FakeGlobalEvent=function(){function r(t,o){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=o.type,this.target=this.currentTarget=t.dom,this.pointerType=o.pointerType,this.clientX=o.clientX,this.clientY=o.clientY}return r}(),localDOMHandlers={mousedown:function(r){r=normalizeEvent(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=normalizeEvent(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=normalizeEvent(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=normalizeEvent(this.dom,r);var t=r.toElement||r.relatedTarget;isLocalEl(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){wheelEventSupported=!0,r=normalizeEvent(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){wheelEventSupported||(r=normalizeEvent(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),localDOMHandlers.mousemove.call(this,r),localDOMHandlers.mousedown.call(this,r)},touchmove:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.handler.processGesture(r,"change"),localDOMHandlers.mousemove.call(this,r)},touchend:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.handler.processGesture(r,"end"),localDOMHandlers.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,r)},pointerdown:function(r){localDOMHandlers.mousedown.call(this,r)},pointermove:function(r){isPointerFromTouch(r)||localDOMHandlers.mousemove.call(this,r)},pointerup:function(r){localDOMHandlers.mouseup.call(this,r)},pointerout:function(r){isPointerFromTouch(r)||localDOMHandlers.mouseout.call(this,r)}};each$c(["click","dblclick","contextmenu"],function(r){localDOMHandlers[r]=function(t){t=normalizeEvent(this.dom,t),this.trigger(r,t)}});var globalDOMHandlers={pointermove:function(r){isPointerFromTouch(r)||globalDOMHandlers.mousemove.call(this,r)},pointerup:function(r){globalDOMHandlers.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function mountLocalDOMEventListeners(r,t){var o=t.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(s){mountSingleDOMEventListener(t,s,function(l){o[s].call(r,l)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(s){mountSingleDOMEventListener(t,s,function(l){o[s].call(r,l),setTouchTimer(t)})}),each$c(localNativeListenerNames.mouse,function(s){mountSingleDOMEventListener(t,s,function(l){l=getNativeEvent(l),t.touching||o[s].call(r,l)})}))}function mountGlobalDOMEventListeners(r,t){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,o):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,o);function o(s){function l(v){v=getNativeEvent(v),isLocalEl(r,v.target)||(v=normalizeGlobalEvent(r,v),t.domHandlers[s].call(r,v))}mountSingleDOMEventListener(t,s,l,{capture:!0})}}function mountSingleDOMEventListener(r,t,o,s){r.mounted[t]=o,r.listenerOpts[t]=s,addEventListener(r.domTarget,t,o,s)}function unmountDOMEventListeners(r){var t=r.mounted;for(var o in t)t.hasOwnProperty(o)&&removeEventListener(r.domTarget,o,t[o],r.listenerOpts[o]);r.mounted={}}var DOMHandlerScope=function(){function r(t,o){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=o}return r}(),HandlerDomProxy=function(r){__extends(t,r);function t(o,s){var l=r.call(this)||this;return l.__pointerCapturing=!1,l.dom=o,l.painterRoot=s,l._localHandlerScope=new DOMHandlerScope(o,localDOMHandlers),globalEventSupported&&(l._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(l,l._localHandlerScope),l}return t.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},t.prototype.setCursor=function(o){this.dom.style&&(this.dom.style.cursor=o||"default")},t.prototype.__togglePointerCapture=function(o){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+o){this.__pointerCapturing=o;var s=this._globalHandlerScope;o?mountGlobalDOMEventListeners(this,s):unmountDOMEventListeners(s)}},t}(Eventful$1);const HandlerProxy=HandlerDomProxy;var dpr=1;env$1.hasGlobalWindow&&(dpr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var devicePixelRatio=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$2=5e-5;function isNotAroundZero(r){return r>EPSILON$2||r<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,o=this.needLocalTransform(),s=this.transform;if(!(o||t)){s&&mIdentity(s);return}s=s||create(),o?this.getLocalTransform(s):mIdentity(s),t&&(o?mul(s,t,s):copy(s,t)),this.transform=s,this._resolveGlobalScaleRatio(s)},r.prototype._resolveGlobalScaleRatio=function(t){var o=this.globalScaleRatio;if(o!=null&&o!==1){this.getGlobalScale(scaleTmp);var s=scaleTmp[0]<0?-1:1,l=scaleTmp[1]<0?-1:1,v=((scaleTmp[0]-s)*o+s)/scaleTmp[0]||0,x=((scaleTmp[1]-l)*o+l)/scaleTmp[1]||0;t[0]*=v,t[1]*=v,t[2]*=x,t[3]*=x}this.invTransform=this.invTransform||create(),invert(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,o=[];t;)o.push(t),t=t.parent;for(;t=o.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var o=t[0]*t[0]+t[1]*t[1],s=t[2]*t[2]+t[3]*t[3],l=Math.atan2(t[1],t[0]),v=Math.PI/2+l-Math.atan2(t[3],t[2]);s=Math.sqrt(s)*Math.cos(v),o=Math.sqrt(o),this.skewX=v,this.skewY=0,this.rotation=-l,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=s,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,o=this.transform;t&&t.transform&&(mul(tmpTransform,t.invTransform,o),o=tmpTransform);var s=this.originX,l=this.originY;(s||l)&&(originTransform[4]=s,originTransform[5]=l,mul(tmpTransform,o,originTransform),tmpTransform[4]-=s,tmpTransform[5]-=l,o=tmpTransform),this.setLocalTransform(o)}},r.prototype.getGlobalScale=function(t){var o=this.transform;return t=t||[],o?(t[0]=Math.sqrt(o[0]*o[0]+o[1]*o[1]),t[1]=Math.sqrt(o[2]*o[2]+o[3]*o[3]),o[0]<0&&(t[0]=-t[0]),o[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,o){var s=[t,o],l=this.invTransform;return l&&applyTransform$1(s,s,l),s},r.prototype.transformCoordToGlobal=function(t,o){var s=[t,o],l=this.transform;return l&&applyTransform$1(s,s,l),s},r.prototype.getLineScale=function(){var t=this.transform;return t&&abs(t[0]-1)>1e-10&&abs(t[3]-1)>1e-10?Math.sqrt(abs(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){copyTransform(this,t)},r.getLocalTransform=function(t,o){o=o||[];var s=t.originX||0,l=t.originY||0,v=t.scaleX,x=t.scaleY,A=t.anchorX,w=t.anchorY,E=t.rotation||0,C=t.x,R=t.y,$=t.skewX?Math.tan(t.skewX):0,V=t.skewY?Math.tan(-t.skewY):0;if(s||l||A||w){var z=s+A,F=l+w;o[4]=-z*v-$*F*x,o[5]=-F*x-V*z*v}else o[4]=o[5]=0;return o[0]=v,o[3]=x,o[1]=V*v,o[2]=$*x,E&&rotate(o,o,E),o[4]+=s+C,o[5]+=l+R,o},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(r,t){for(var o=0;o<TRANSFORMABLE_PROPS.length;o++){var s=TRANSFORMABLE_PROPS[o];r[s]=t[s]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth(r,t){t=t||DEFAULT_FONT;var o=textWidthCache[t];o||(o=textWidthCache[t]=new LRU$1(500));var s=o.get(r);return s==null&&(s=platformApi.measureText(r,t).width,o.put(r,s)),s}function innerGetBoundingRect(r,t,o,s){var l=getWidth(r,t),v=getLineHeight(t),x=adjustTextX(0,l,o),A=adjustTextY(0,v,s),w=new BoundingRect$1(x,A,l,v);return w}function getBoundingRect(r,t,o,s){var l=((r||"")+"").split(`
`),v=l.length;if(v===1)return innerGetBoundingRect(l[0],t,o,s);for(var x=new BoundingRect$1(0,0,0,0),A=0;A<l.length;A++){var w=innerGetBoundingRect(l[A],t,o,s);A===0?x.copy(w):x.union(w)}return x}function adjustTextX(r,t,o){return o==="right"?r-=t:o==="center"&&(r-=t/2),r}function adjustTextY(r,t,o){return o==="middle"?r-=t/2:o==="bottom"&&(r-=t),r}function getLineHeight(r){return getWidth("国",r)}function parsePercent$1(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function calculateTextPosition(r,t,o){var s=t.position||"inside",l=t.distance!=null?t.distance:5,v=o.height,x=o.width,A=v/2,w=o.x,E=o.y,C="left",R="top";if(s instanceof Array)w+=parsePercent$1(s[0],o.width),E+=parsePercent$1(s[1],o.height),C=null,R=null;else switch(s){case"left":w-=l,E+=A,C="right",R="middle";break;case"right":w+=l+x,E+=A,R="middle";break;case"top":w+=x/2,E-=l,C="center",R="bottom";break;case"bottom":w+=x/2,E+=v+l,C="center";break;case"inside":w+=x/2,E+=A,C="center",R="middle";break;case"insideLeft":w+=l,E+=A,R="middle";break;case"insideRight":w+=x-l,E+=A,C="right",R="middle";break;case"insideTop":w+=x/2,E+=l,C="center";break;case"insideBottom":w+=x/2,E+=v-l,C="center",R="bottom";break;case"insideTopLeft":w+=l,E+=l;break;case"insideTopRight":w+=x-l,E+=l,C="right";break;case"insideBottomLeft":w+=l,E+=v-l,R="bottom";break;case"insideBottomRight":w+=x-l,E+=v-l,C="right",R="bottom";break}return r=r||{},r.x=w,r.y=E,r.align=C,r.verticalAlign=R,r}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(r,t){return r[t]=!0,r},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element=function(){function r(t){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,o,s){switch(this.draggable){case"horizontal":o=0;break;case"vertical":t=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=t,l[5]+=o,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var o=this._textContent;if(o&&(!o.ignore||t)){this.textConfig||(this.textConfig={});var s=this.textConfig,l=s.local,v=o.innerTransformable,x=void 0,A=void 0,w=!1;v.parent=l?this:null;var E=!1;if(v.copyTransform(o),s.position!=null){var C=tmpBoundingRect;s.layoutRect?C.copy(s.layoutRect):C.copy(this.getBoundingRect()),l||C.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,s,C):calculateTextPosition(tmpTextPosCalcRes,s,C),v.x=tmpTextPosCalcRes.x,v.y=tmpTextPosCalcRes.y,x=tmpTextPosCalcRes.align,A=tmpTextPosCalcRes.verticalAlign;var R=s.origin;if(R&&s.rotation!=null){var $=void 0,V=void 0;R==="center"?($=C.width*.5,V=C.height*.5):($=parsePercent$1(R[0],C.width),V=parsePercent$1(R[1],C.height)),E=!0,v.originX=-v.x+$+(l?0:C.x),v.originY=-v.y+V+(l?0:C.y)}}s.rotation!=null&&(v.rotation=s.rotation);var z=s.offset;z&&(v.x+=z[0],v.y+=z[1],E||(v.originX=-z[0],v.originY=-z[1]));var F=s.inside==null?typeof s.position=="string"&&s.position.indexOf("inside")>=0:s.inside,B=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),W=void 0,Y=void 0,Z=void 0;F&&this.canBeInsideText()?(W=s.insideFill,Y=s.insideStroke,(W==null||W==="auto")&&(W=this.getInsideTextFill()),(Y==null||Y==="auto")&&(Y=this.getInsideTextStroke(W),Z=!0)):(W=s.outsideFill,Y=s.outsideStroke,(W==null||W==="auto")&&(W=this.getOutsideFill()),(Y==null||Y==="auto")&&(Y=this.getOutsideStroke(W),Z=!0)),W=W||"#000",(W!==B.fill||Y!==B.stroke||Z!==B.autoStroke||x!==B.align||A!==B.verticalAlign)&&(w=!0,B.fill=W,B.stroke=Y,B.autoStroke=Z,B.align=x,B.verticalAlign=A,o.setDefaultTextStyle(B)),o.__dirty|=REDRAW_BIT,w&&o.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},r.prototype.getOutsideStroke=function(t){var o=this.__zr&&this.__zr.getBackgroundColor(),s=typeof o=="string"&&parse$1(o);s||(s=[255,255,255,1]);for(var l=s[3],v=this.__zr.isDarkMode(),x=0;x<3;x++)s[x]=s[x]*l+(v?0:255)*(1-l);return s[3]=1,stringify(s,"rgba")},r.prototype.traverse=function(t,o){},r.prototype.attrKV=function(t,o){t==="textConfig"?this.setTextConfig(o):t==="textContent"?this.setTextContent(o):t==="clipPath"?this.setClipPath(o):t==="extra"?(this.extra=this.extra||{},extend(this.extra,o)):this[t]=o},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,o){if(typeof t=="string")this.attrKV(t,o);else if(isObject$3(t))for(var s=t,l=keys(s),v=0;v<l.length;v++){var x=l[v];this.attrKV(x,t[x])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var o=this._normalState,s=0;s<this.animators.length;s++){var l=this.animators[s],v=l.__fromStateTransition;if(!(l.getLoop()||v&&v!==PRESERVED_NORMAL_STATE)){var x=l.targetName,A=x?o[x]:o;l.saveTo(A)}}},r.prototype._innerSaveToNormal=function(t){var o=this._normalState;o||(o=this._normalState={}),t.textConfig&&!o.textConfig&&(o.textConfig=this.textConfig),this._savePrimaryToNormal(t,o,PRIMARY_STATES_KEYS$1)},r.prototype._savePrimaryToNormal=function(t,o,s){for(var l=0;l<s.length;l++){var v=s[l];t[v]!=null&&!(v in o)&&(o[v]=this[v])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var o=this.states;return o[t]||(o[t]={}),o[t]},r.prototype.clearStates=function(t){this.useState(PRESERVED_NORMAL_STATE,!1,t)},r.prototype.useState=function(t,o,s,l){var v=t===PRESERVED_NORMAL_STATE,x=this.hasState();if(!(!x&&v)){var A=this.currentStates,w=this.stateTransition;if(!(indexOf(A,t)>=0&&(o||A.length===1))){var E;if(this.stateProxy&&!v&&(E=this.stateProxy(t)),E||(E=this.states&&this.states[t]),!E&&!v){logError("State "+t+" not exists.");return}v||this.saveCurrentToNormalState(E);var C=!!(E&&E.hoverLayer||l);C&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,E,this._normalState,o,!s&&!this.__inHover&&w&&w.duration>0,w);var R=this._textContent,$=this._textGuide;return R&&R.useState(t,o,s,C),$&&$.useState(t,o,s,C),v?(this.currentStates=[],this._normalState={}):o?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!C&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),E}}},r.prototype.useStates=function(t,o,s){if(!t.length)this.clearStates();else{var l=[],v=this.currentStates,x=t.length,A=x===v.length;if(A){for(var w=0;w<x;w++)if(t[w]!==v[w]){A=!1;break}}if(A)return;for(var w=0;w<x;w++){var E=t[w],C=void 0;this.stateProxy&&(C=this.stateProxy(E,t)),C||(C=this.states[E]),C&&l.push(C)}var R=l[x-1],$=!!(R&&R.hoverLayer||s);$&&this._toggleHoverLayerFlag(!0);var V=this._mergeStates(l),z=this.stateTransition;this.saveCurrentToNormalState(V),this._applyStateObj(t.join(","),V,this._normalState,!1,!o&&!this.__inHover&&z&&z.duration>0,z);var F=this._textContent,B=this._textGuide;F&&F.useStates(t,o,$),B&&B.useStates(t,o,$),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!$&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var o=this.animators[t];o.targetName&&o.changeTarget(this[o.targetName])}},r.prototype.removeState=function(t){var o=indexOf(this.currentStates,t);if(o>=0){var s=this.currentStates.slice();s.splice(o,1),this.useStates(s)}},r.prototype.replaceState=function(t,o,s){var l=this.currentStates.slice(),v=indexOf(l,t),x=indexOf(l,o)>=0;v>=0?x?l.splice(v,1):l[v]=o:s&&!x&&l.push(o),this.useStates(l)},r.prototype.toggleState=function(t,o){o?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var o={},s,l=0;l<t.length;l++){var v=t[l];extend(o,v),v.textConfig&&(s=s||{},extend(s,v.textConfig))}return s&&(o.textConfig=s),o},r.prototype._applyStateObj=function(t,o,s,l,v,x){var A=!(o&&l);o&&o.textConfig?(this.textConfig=extend({},l?this.textConfig:s.textConfig),extend(this.textConfig,o.textConfig)):A&&s.textConfig&&(this.textConfig=s.textConfig);for(var w={},E=!1,C=0;C<PRIMARY_STATES_KEYS$1.length;C++){var R=PRIMARY_STATES_KEYS$1[C],$=v&&DEFAULT_ANIMATABLE_MAP[R];o&&o[R]!=null?$?(E=!0,w[R]=o[R]):this[R]=o[R]:A&&s[R]!=null&&($?(E=!0,w[R]=s[R]):this[R]=s[R])}if(!v)for(var C=0;C<this.animators.length;C++){var V=this.animators[C],z=V.targetName;V.getLoop()||V.__changeFinalValue(z?(o||s)[z]:o||s)}E&&this._transitionState(t,w,x)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var o=this.__zr;o&&t.addSelfToZr(o),t.__zr=o,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var o=this._textContent;o!==t&&(o&&o!==t&&this.removeTextContent(),t.innerTransformable=new Transformable$1,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),extend(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var o=this._textContent,s=this._textGuide;o&&(o.__inHover=t),s&&(s.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var o=this.animators;if(o)for(var s=0;s<o.length;s++)t.animation.addAnimator(o[s]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var o=this.animators;if(o)for(var s=0;s<o.length;s++)t.animation.removeAnimator(o[s]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,o,s){var l=t?this[t]:this,v=new Animator$1(l,o,s);return t&&(v.targetName=t),this.addAnimator(v,t),v},r.prototype.addAnimator=function(t,o){var s=this.__zr,l=this;t.during(function(){l.updateDuringAnimation(o)}).done(function(){var v=l.animators,x=indexOf(v,t);x>=0&&v.splice(x,1)}),this.animators.push(t),s&&s.animation.addAnimator(t),s&&s.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,o){for(var s=this.animators,l=s.length,v=[],x=0;x<l;x++){var A=s[x];!t||t===A.scope?A.stop(o):v.push(A)}return this.animators=v,this},r.prototype.animateTo=function(t,o,s){animateTo(this,t,o,s)},r.prototype.animateFrom=function(t,o,s){animateTo(this,t,o,s,!0)},r.prototype._transitionState=function(t,o,s,l){for(var v=animateTo(this,o,s,l),x=0;x<v.length;x++)v[x].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=REDRAW_BIT;function o(s,l,v,x){Object.defineProperty(t,s,{get:function(){if(!this[l]){var w=this[l]=[];A(this,w)}return this[l]},set:function(w){this[v]=w[0],this[x]=w[1],this[l]=w,A(this,w)}});function A(w,E){Object.defineProperty(E,0,{get:function(){return w[v]},set:function(C){w[v]=C}}),Object.defineProperty(E,1,{get:function(){return w[x]},set:function(C){w[x]=C}})}}Object.defineProperty&&(o("position","_legacyPos","x","y"),o("scale","_legacyScale","scaleX","scaleY"),o("origin","_legacyOrigin","originX","originY"))}(),r}();mixin(Element,Eventful$1);mixin(Element,Transformable$1);function animateTo(r,t,o,s,l){o=o||{};var v=[];animateToShallow(r,"",r,t,o,s,v,l);var x=v.length,A=!1,w=o.done,E=o.aborted,C=function(){A=!0,x--,x<=0&&(A?w&&w():E&&E())},R=function(){x--,x<=0&&(A?w&&w():E&&E())};x||w&&w(),v.length>0&&o.during&&v[0].during(function(z,F){o.during(F)});for(var $=0;$<v.length;$++){var V=v[$];C&&V.done(C),R&&V.aborted(R),o.force&&V.duration(o.duration),V.start(o.easing)}return v}function copyArrShallow(r,t,o){for(var s=0;s<o;s++)r[s]=t[s]}function is2DArray(r){return isArrayLike(r[0])}function copyValue(r,t,o){if(isArrayLike(t[o]))if(isArrayLike(r[o])||(r[o]=[]),isTypedArray(t[o])){var s=t[o].length;r[o].length!==s&&(r[o]=new t[o].constructor(s),copyArrShallow(r[o],t[o],s))}else{var l=t[o],v=r[o],x=l.length;if(is2DArray(l))for(var A=l[0].length,w=0;w<x;w++)v[w]?copyArrShallow(v[w],l[w],A):v[w]=Array.prototype.slice.call(l[w]);else copyArrShallow(v,l,x);v.length=l.length}else r[o]=t[o]}function isValueSame(r,t){return r===t||isArrayLike(r)&&isArrayLike(t)&&is1DArraySame(r,t)}function is1DArraySame(r,t){var o=r.length;if(o!==t.length)return!1;for(var s=0;s<o;s++)if(r[s]!==t[s])return!1;return!0}function animateToShallow(r,t,o,s,l,v,x,A){for(var w=keys(s),E=l.duration,C=l.delay,R=l.additive,$=l.setToFinal,V=!isObject$3(v),z=r.animators,F=[],B=0;B<w.length;B++){var W=w[B],Y=s[W];if(Y!=null&&o[W]!=null&&(V||v[W]))if(isObject$3(Y)&&!isArrayLike(Y)&&!isGradientObject(Y)){if(t){A||(o[W]=Y,r.updateDuringAnimation(t));continue}animateToShallow(r,W,o[W],Y,l,v&&v[W],x,A)}else F.push(W);else A||(o[W]=Y,r.updateDuringAnimation(t),F.push(W))}var Z=F.length;if(!R&&Z)for(var X=0;X<z.length;X++){var ae=z[X];if(ae.targetName===t){var ie=ae.stopTracks(F);if(ie){var oe=indexOf(z,ae);z.splice(oe,1)}}}if(l.force||(F=filter(F,function(_e){return!isValueSame(s[_e],o[_e])}),Z=F.length),Z>0||l.force&&!x.length){var le=void 0,ve=void 0,xe=void 0;if(A){ve={},$&&(le={});for(var X=0;X<Z;X++){var W=F[X];ve[W]=o[W],$?le[W]=s[W]:o[W]=s[W]}}else if($){xe={};for(var X=0;X<Z;X++){var W=F[X];xe[W]=cloneValue(o[W]),copyValue(o,s,W)}}var ae=new Animator$1(o,!1,!1,R?filter(z,function(Te){return Te.targetName===t}):null);ae.targetName=t,l.scope&&(ae.scope=l.scope),$&&le&&ae.whenWithKeys(0,le,F),xe&&ae.whenWithKeys(0,xe,F),ae.whenWithKeys(E??500,A?ve:s,F).delay(C||0),r.addAnimator(ae,t),x.push(ae)}}const Element$1=Element;var Group$2=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s.isGroup=!0,s._children=[],s.attr(o),s}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(o){return this._children[o]},t.prototype.childOfName=function(o){for(var s=this._children,l=0;l<s.length;l++)if(s[l].name===o)return s[l]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(o){return o&&o!==this&&o.parent!==this&&(this._children.push(o),this._doAdd(o)),this},t.prototype.addBefore=function(o,s){if(o&&o!==this&&o.parent!==this&&s&&s.parent===this){var l=this._children,v=l.indexOf(s);v>=0&&(l.splice(v,0,o),this._doAdd(o))}return this},t.prototype.replace=function(o,s){var l=indexOf(this._children,o);return l>=0&&this.replaceAt(s,l),this},t.prototype.replaceAt=function(o,s){var l=this._children,v=l[s];if(o&&o!==this&&o.parent!==this&&o!==v){l[s]=o,v.parent=null;var x=this.__zr;x&&v.removeSelfFromZr(x),this._doAdd(o)}return this},t.prototype._doAdd=function(o){o.parent&&o.parent.remove(o),o.parent=this;var s=this.__zr;s&&s!==o.__zr&&o.addSelfToZr(s),s&&s.refresh()},t.prototype.remove=function(o){var s=this.__zr,l=this._children,v=indexOf(l,o);return v<0?this:(l.splice(v,1),o.parent=null,s&&o.removeSelfFromZr(s),s&&s.refresh(),this)},t.prototype.removeAll=function(){for(var o=this._children,s=this.__zr,l=0;l<o.length;l++){var v=o[l];s&&v.removeSelfFromZr(s),v.parent=null}return o.length=0,this},t.prototype.eachChild=function(o,s){for(var l=this._children,v=0;v<l.length;v++){var x=l[v];o.call(s,x,v)}return this},t.prototype.traverse=function(o,s){for(var l=0;l<this._children.length;l++){var v=this._children[l],x=o.call(s,v);v.isGroup&&!x&&v.traverse(o,s)}return this},t.prototype.addSelfToZr=function(o){r.prototype.addSelfToZr.call(this,o);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.addSelfToZr(o)}},t.prototype.removeSelfFromZr=function(o){r.prototype.removeSelfFromZr.call(this,o);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.removeSelfFromZr(o)}},t.prototype.getBoundingRect=function(o){for(var s=new BoundingRect$1(0,0,0,0),l=o||this._children,v=[],x=null,A=0;A<l.length;A++){var w=l[A];if(!(w.ignore||w.invisible)){var E=w.getBoundingRect(),C=w.getLocalTransform(v);C?(BoundingRect$1.applyTransform(s,E,C),x=x||s.clone(),x.union(s)):(x=x||E.clone(),x.union(E))}}return x||s},t}(Element$1);Group$2.prototype.type="group";const Group$3=Group$2;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var painterCtors={},instances$1={};function delInstance(r){delete instances$1[r]}function isDarkMode(r){if(!r)return!1;if(typeof r=="string")return lum(r,1)<DARK_MODE_THRESHOLD;if(r.colorStops){for(var t=r.colorStops,o=0,s=t.length,l=0;l<s;l++)o+=lum(t[l].color,1);return o/=s,o<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function r(t,o,s){var l=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,s=s||{},this.dom=o,this.id=t;var v=new Storage$1,x=s.renderer||"canvas";painterCtors[x]||(x=keys(painterCtors)[0]),s.useDirtyRect=s.useDirtyRect==null?!1:s.useDirtyRect;var A=new painterCtors[x](o,v,s,t),w=s.ssr||A.ssrOnly;this.storage=v,this.painter=A;var E=!env$1.node&&!env$1.worker&&!w?new HandlerProxy(A.getViewportRoot(),A.root):null,C=s.useCoarsePointer,R=C==null||C==="auto"?env$1.touchEventsSupported:!!C,$=44,V;R&&(V=retrieve2(s.pointerSize,$)),this.handler=new Handler$1(v,A,E,A.root,V),this.animation=new Animation$1({stage:{update:w?null:function(){return l._flush(!0)}}}),w||this.animation.start()}return r.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,o){this.painter.configLayer&&this.painter.configLayer(t,o),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=isDarkMode(t)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var o,s=getTime();this._needsRefresh&&(o=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(o=!0,this.refreshHoverImmediately());var l=getTime();o?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:l-s})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,o){return this.handler.findHover(t,o)},r.prototype.on=function(t,o,s){return this.handler.on(t,o,s),this},r.prototype.off=function(t,o){this.handler.off(t,o)},r.prototype.trigger=function(t,o){this.handler.trigger(t,o)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),o=0;o<t.length;o++)t[o]instanceof Group$3&&t[o].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,delInstance(this.id)},r}();function init$1(r,t){var o=new ZRender(guid(),r,t);return instances$1[o.id]=o,o}function dispose$1(r){r.dispose()}function disposeAll(){for(var r in instances$1)instances$1.hasOwnProperty(r)&&instances$1[r].dispose();instances$1={}}function getInstance(r){return instances$1[r]}function registerPainter(r,t){painterCtors[r]=t}var version$1="5.4.3";const zrender=Object.freeze(Object.defineProperty({__proto__:null,dispose:dispose$1,disposeAll,getInstance,init:init$1,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"}));var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim(r){return r.replace(/^\s+|\s+$/g,"")}function linearMap$2(r,t,o,s){var l=t[0],v=t[1],x=o[0],A=o[1],w=v-l,E=A-x;if(w===0)return E===0?x:(x+A)/2;if(s)if(w>0){if(r<=l)return x;if(r>=v)return A}else{if(r>=l)return x;if(r<=v)return A}else{if(r===l)return x;if(r===v)return A}return(r-l)/w*E+x}function parsePercent(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return isString(r)?_trim(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function round$1(r,t,o){return t==null&&(t=10),t=Math.min(Math.max(0,t),ROUND_SUPPORTED_PRECISION_MAX),r=(+r).toFixed(t),o?r:+r}function asc$2(r){return r.sort(function(t,o){return t-o}),r}function getPrecision(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,o=0;o<15;o++,t*=10)if(Math.round(r*t)/t===r)return o}return getPrecisionSafe(r)}function getPrecisionSafe(r){var t=r.toString().toLowerCase(),o=t.indexOf("e"),s=o>0?+t.slice(o+1):0,l=o>0?o:t.length,v=t.indexOf("."),x=v<0?0:l-1-v;return Math.max(0,x-s)}function getPixelPrecision(r,t){var o=Math.log,s=Math.LN10,l=Math.floor(o(r[1]-r[0])/s),v=Math.round(o(Math.abs(t[1]-t[0]))/s),x=Math.min(Math.max(-l+v,0),20);return isFinite(x)?x:20}function getPercentWithPrecision(r,t,o){if(!r[t])return 0;var s=getPercentSeats(r,o);return s[t]||0}function getPercentSeats(r,t){var o=reduce(r,function(V,z){return V+(isNaN(z)?0:z)},0);if(o===0)return[];for(var s=Math.pow(10,t),l=map$2(r,function(V){return(isNaN(V)?0:V)/o*s*100}),v=s*100,x=map$2(l,function(V){return Math.floor(V)}),A=reduce(x,function(V,z){return V+z},0),w=map$2(l,function(V,z){return V-x[z]});A<v;){for(var E=Number.NEGATIVE_INFINITY,C=null,R=0,$=w.length;R<$;++R)w[R]>E&&(E=w[R],C=R);++x[C],w[C]=0,++A}return map$2(x,function(V){return V/s})}function addSafe(r,t){var o=Math.max(getPrecision(r),getPrecision(t)),s=r+t;return o>ROUND_SUPPORTED_PRECISION_MAX?s:round$1(s,o)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(r){var t=Math.PI*2;return(r%t+t)%t}function isRadianAroundZero(r){return r>-RADIAN_EPSILON&&r<RADIAN_EPSILON}var TIME_REG=/^(?:(\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 parseDate(r){if(r instanceof Date)return r;if(isString(r)){var t=TIME_REG.exec(r);if(!t)return new Date(NaN);if(t[8]){var o=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(o-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,o,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function quantity(r){return Math.pow(10,quantityExponent(r))}function quantityExponent(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function nice(r,t){var o=quantityExponent(r),s=Math.pow(10,o),l=r/s,v;return t?l<1.5?v=1:l<2.5?v=2:l<4?v=3:l<7?v=5:v=10:l<1?v=1:l<2?v=2:l<3?v=3:l<5?v=5:v=10,r=v*s,o>=-20?+r.toFixed(o<0?-o:0):r}function quantile(r,t){var o=(r.length-1)*t+1,s=Math.floor(o),l=+r[s-1],v=o-s;return v?l+v*(r[s]-l):l}function reformIntervals(r){r.sort(function(w,E){return A(w,E,0)?-1:1});for(var t=-1/0,o=1,s=0;s<r.length;){for(var l=r[s].interval,v=r[s].close,x=0;x<2;x++)l[x]<=t&&(l[x]=t,v[x]=x?1:1-o),t=l[x],o=v[x];l[0]===l[1]&&v[0]*v[1]!==1?r.splice(s,1):s++}return r;function A(w,E,C){return w.interval[C]<E.interval[C]||w.interval[C]===E.interval[C]&&(w.close[C]-E.close[C]===(C?-1:1)||!C&&A(w,E,1))}}function numericToNumber(r){var t=parseFloat(r);return t==r&&(t!==0||!isString(r)||r.indexOf("x")<=0)?t:NaN}function isNumeric(r){return!isNaN(numericToNumber(r))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor(r,t){return t===0?r:getGreatestCommonDividor(t,r%t)}function getLeastCommonMultiple(r,t){return r==null?t:t==null?r:r*t/getGreatestCommonDividor(r,t)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console<"u"&&console.warn&&console.log;function outputLog(r,t,o){if(hasConsole){if(o){if(storedLogs[t])return;storedLogs[t]=!0}console[r](ECHARTS_PREFIX+t)}}function warn(r,t){outputLog("warn",r,t)}function throwError(r){throw new Error(r)}function interpolateNumber(r,t,o){return(t-r)*o+r}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray(r){return r instanceof Array?r:r==null?[]:[r]}function defaultEmphasis(r,t,o){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var s=0,l=o.length;s<l;s++){var v=o[s];!r.emphasis[t].hasOwnProperty(v)&&r[t].hasOwnProperty(v)&&(r.emphasis[t][v]=r[t][v])}}}var TEXT_STYLE_OPTIONS=["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 getDataItemValue(r){return isObject$3(r)&&!isArray$1(r)&&!(r instanceof Date)?r.value:r}function isDataItemOption(r){return isObject$3(r)&&!(r instanceof Array)}function mappingToExists(r,t,o){var s=o==="normalMerge",l=o==="replaceMerge",v=o==="replaceAll";r=r||[],t=(t||[]).slice();var x=createHashMap();each$c(t,function(w,E){if(!isObject$3(w)){t[E]=null;return}});var A=prepareResult(r,x,o);return(s||l)&&mappingById(A,r,x,t),s&&mappingByName(A,t),s||l?mappingByIndex(A,t,l):v&&mappingInReplaceAllMode(A,t),makeIdAndName(A),A}function prepareResult(r,t,o){var s=[];if(o==="replaceAll")return s;for(var l=0;l<r.length;l++){var v=r[l];v&&v.id!=null&&t.set(v.id,l),s.push({existing:o==="replaceMerge"||isComponentIdInternal(v)?null:v,newOption:null,keyInfo:null,brandNew:null})}return s}function mappingById(r,t,o,s){each$c(s,function(l,v){if(!(!l||l.id==null)){var x=makeComparableKey(l.id),A=o.get(x);if(A!=null){var w=r[A];assert(!w.newOption,'Duplicated option on id "'+x+'".'),w.newOption=l,w.existing=t[A],s[v]=null}}})}function mappingByName(r,t){each$c(t,function(o,s){if(!(!o||o.name==null))for(var l=0;l<r.length;l++){var v=r[l].existing;if(!r[l].newOption&&v&&(v.id==null||o.id==null)&&!isComponentIdInternal(o)&&!isComponentIdInternal(v)&&keyExistAndEqual("name",v,o)){r[l].newOption=o,t[s]=null;return}}})}function mappingByIndex(r,t,o){each$c(t,function(s){if(s){for(var l,v=0;(l=r[v])&&(l.newOption||isComponentIdInternal(l.existing)||l.existing&&s.id!=null&&!keyExistAndEqual("id",s,l.existing));)v++;l?(l.newOption=s,l.brandNew=o):r.push({newOption:s,brandNew:o,existing:null,keyInfo:null}),v++}})}function mappingInReplaceAllMode(r,t){each$c(t,function(o){r.push({newOption:o,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName(r){var t=createHashMap();each$c(r,function(o){var s=o.existing;s&&t.set(s.id,o)}),each$c(r,function(o){var s=o.newOption;assert(!s||s.id==null||!t.get(s.id)||t.get(s.id)===o,"id duplicates: "+(s&&s.id)),s&&s.id!=null&&t.set(s.id,o),!o.keyInfo&&(o.keyInfo={})}),each$c(r,function(o,s){var l=o.existing,v=o.newOption,x=o.keyInfo;if(isObject$3(v)){if(x.name=v.name!=null?makeComparableKey(v.name):l?l.name:DUMMY_COMPONENT_NAME_PREFIX+s,l)x.id=makeComparableKey(l.id);else if(v.id!=null)x.id=makeComparableKey(v.id);else{var A=0;do x.id="\0"+x.name+"\0"+A++;while(t.get(x.id))}t.set(x.id,o)}})}function keyExistAndEqual(r,t,o){var s=convertOptionIdName(t[r],null),l=convertOptionIdName(o[r],null);return s!=null&&l!=null&&s===l}function makeComparableKey(r){return convertOptionIdName(r,"")}function convertOptionIdName(r,t){return r==null?t:isString(r)?r:isNumber(r)||isStringSafe(r)?r+"":t}function isNameSpecified(r){var t=r.name;return!!(t&&t.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal(r){return r&&r.id!=null&&makeComparableKey(r.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId(r){return INTERNAL_COMPONENT_ID_PREFIX+r}function setComponentTypeToKeyInfo(r,t,o){each$c(r,function(s){var l=s.newOption;isObject$3(l)&&(s.keyInfo.mainType=t,s.keyInfo.subType=determineSubType(t,l,s.existing,o))})}function determineSubType(r,t,o,s){var l=t.type?t.type:o?o.subType:s.determineSubType(r,t);return l}function compressBatches(r,t){var o={},s={};return l(r||[],o),l(t||[],s,o),[v(o),v(s)];function l(x,A,w){for(var E=0,C=x.length;E<C;E++){var R=convertOptionIdName(x[E].seriesId,null);if(R==null)return;for(var $=normalizeToArray(x[E].dataIndex),V=w&&w[R],z=0,F=$.length;z<F;z++){var B=$[z];V&&V[B]?V[B]=null:(A[R]||(A[R]={}))[B]=1}}}function v(x,A){var w=[];for(var E in x)if(x.hasOwnProperty(E)&&x[E]!=null)if(A)w.push(+E);else{var C=v(x[E],!0);C.length&&w.push({seriesId:E,dataIndex:C})}return w}}function queryDataIndex(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return isArray$1(t.dataIndex)?map$2(t.dataIndex,function(o){return r.indexOfRawIndex(o)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return isArray$1(t.name)?map$2(t.name,function(o){return r.indexOfName(o)}):r.indexOfName(t.name)}function makeInner(){var r="__ec_inner_"+innerUniqueIndex++;return function(t){return t[r]||(t[r]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1(r,t,o){var s=preParseFinder(t,o),l=s.mainTypeSpecified,v=s.queryOptionMap,x=s.others,A=x,w=o?o.defaultMainType:null;return!l&&w&&v.set(w,{}),v.each(function(E,C){var R=queryReferringComponents(r,C,E,{useDefault:w===C,enableAll:o&&o.enableAll!=null?o.enableAll:!0,enableNone:o&&o.enableNone!=null?o.enableNone:!0});A[C+"Models"]=R.models,A[C+"Model"]=R.models[0]}),A}function preParseFinder(r,t){var o;if(isString(r)){var s={};s[r+"Index"]=0,o=s}else o=r;var l=createHashMap(),v={},x=!1;return each$c(o,function(A,w){if(w==="dataIndex"||w==="dataIndexInside"){v[w]=A;return}var E=w.match(/^(\w+)(Index|Id|Name)$/)||[],C=E[1],R=(E[2]||"").toLowerCase();if(!(!C||!R||t&&t.includeMainTypes&&indexOf(t.includeMainTypes,C)<0)){x=x||!!C;var $=l.get(C)||l.set(C,{});$[R]=A}}),{mainTypeSpecified:x,queryOptionMap:l,others:v}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents(r,t,o,s){s=s||SINGLE_REFERRING;var l=o.index,v=o.id,x=o.name,A={models:null,specified:l!=null||v!=null||x!=null};if(!A.specified){var w=void 0;return A.models=s.useDefault&&(w=r.getComponent(t))?[w]:[],A}return l==="none"||l===!1?(assert(s.enableNone,'`"none"` or `false` is not a valid value on index option.'),A.models=[],A):(l==="all"&&(assert(s.enableAll,'`"all"` is not a valid value on index option.'),l=v=x=null),A.models=r.queryComponents({mainType:t,index:l,id:v,name:x}),A)}function setAttribute(r,t,o){r.setAttribute?r.setAttribute(t,o):r[t]=o}function getAttribute(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function getTooltipRenderMode(r){return r==="auto"?env$1.domSupported?"html":"richText":r||"html"}function interpolateRawValues(r,t,o,s,l){var v=t==null||t==="auto";if(s==null)return s;if(isNumber(s)){var x=interpolateNumber(o||0,s,l);return round$1(x,v?Math.max(getPrecision(o||0),getPrecision(s)):t)}else{if(isString(s))return l<1?o:s;for(var A=[],w=o,E=s,C=Math.max(w?w.length:0,E.length),R=0;R<C;++R){var $=r.getDimensionInfo(R);if($&&$.type==="ordinal")A[R]=(l<1&&w?w:E)[R];else{var V=w&&w[R]?w[R]:0,z=E[R],x=interpolateNumber(V,z,l);A[R]=round$1(x,v?Math.max(getPrecision(V),getPrecision(z)):t)}}return A}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType(r){var t={main:"",sub:""};if(r){var o=r.split(TYPE_DELIMITER);t.main=o[0]||"",t.sub=o[1]||""}return t}function checkClassType(r){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function isExtendedClass(r){return!!(r&&r[IS_EXTENDED_CLASS])}function enableClassExtend(r,t){r.$constructor=r,r.extend=function(o){var s=this,l;return isESClass(s)?l=function(v){__extends(x,v);function x(){return v.apply(this,arguments)||this}return x}(s):(l=function(){(o.$constructor||s).apply(this,arguments)},inherits(l,this)),extend(l.prototype,o),l[IS_EXTENDED_CLASS]=!0,l.extend=this.extend,l.superCall=superCall,l.superApply=superApply,l.superClass=s,l}}function isESClass(r){return isFunction(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function mountExtend(r,t){r.extend=t.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck(r){var t=["__\0is_clz",classBase++].join("_");r.prototype[t]=!0,r.isInstance=function(o){return!!(o&&o[t])}}function superCall(r,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return this.superClass.prototype[t].apply(r,o)}function superApply(r,t,o){return this.superClass.prototype[t].apply(r,o)}function enableClassManagement(r){var t={};r.registerClass=function(s){var l=s.type||s.prototype.type;if(l){checkClassType(l),s.prototype.type=l;var v=parseClassType(l);if(!v.sub)t[v.main]=s;else if(v.sub!==IS_CONTAINER){var x=o(v);x[v.sub]=s}}return s},r.getClass=function(s,l,v){var x=t[s];if(x&&x[IS_CONTAINER]&&(x=l?x[l]:null),v&&!x)throw new Error(l?"Component "+s+"."+(l||"")+" is used but not imported.":s+".type should be specified.");return x},r.getClassesByMainType=function(s){var l=parseClassType(s),v=[],x=t[l.main];return x&&x[IS_CONTAINER]?each$c(x,function(A,w){w!==IS_CONTAINER&&v.push(A)}):v.push(x),v},r.hasClass=function(s){var l=parseClassType(s);return!!t[l.main]},r.getAllClassMainTypes=function(){var s=[];return each$c(t,function(l,v){s.push(v)}),s},r.hasSubTypes=function(s){var l=parseClassType(s),v=t[l.main];return v&&v[IS_CONTAINER]};function o(s){var l=t[s.main];return(!l||!l[IS_CONTAINER])&&(l=t[s.main]={},l[IS_CONTAINER]=!0),l}}function makeStyleMapper(r,t){for(var o=0;o<r.length;o++)r[o][1]||(r[o][1]=r[o][0]);return t=t||!1,function(s,l,v){for(var x={},A=0;A<r.length;A++){var w=r[A][1];if(!(l&&indexOf(l,w)>=0||v&&indexOf(v,w)<0)){var E=s.getShallow(w,t);E!=null&&(x[r[A][0]]=E)}}return x}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function r(){}return r.prototype.getAreaStyle=function(t,o){return getAreaStyle(this,t,o)},r}(),globalImageCache=new LRU$1(50);function findExistImage(r){if(typeof r=="string"){var t=globalImageCache.get(r);return t&&t.image}else return r}function createOrUpdateImage(r,t,o,s,l){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!o)return t;var v=globalImageCache.get(r),x={hostEl:o,cb:s,cbPayload:l};return v?(t=v.image,!isImageReady(t)&&v.pending.push(x)):(t=platformApi.loadImage(r,imageOnLoad,imageOnLoad),t.__zrImageSrc=r,globalImageCache.put(r,t.__cachedImgObj={image:t,pending:[x]})),t}else return r;else return t}function imageOnLoad(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var o=r.pending[t],s=o.cb;s&&s(this,o.cbPayload),o.hostEl.dirty()}r.pending.length=0}function isImageReady(r){return r&&r.width&&r.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText(r,t,o,s,l){if(!t)return"";var v=(r+"").split(`
`);l=prepareTruncateOptions(t,o,s,l);for(var x=0,A=v.length;x<A;x++)v[x]=truncateSingleLine(v[x],l);return v.join(`
`)}function prepareTruncateOptions(r,t,o,s){s=s||{};var l=extend({},s);l.font=t,o=retrieve2(o,"..."),l.maxIterations=retrieve2(s.maxIterations,2);var v=l.minChar=retrieve2(s.minChar,0);l.cnCharWidth=getWidth("国",t);var x=l.ascCharWidth=getWidth("a",t);l.placeholder=retrieve2(s.placeholder,"");for(var A=r=Math.max(0,r-1),w=0;w<v&&A>=x;w++)A-=x;var E=getWidth(o,t);return E>A&&(o="",E=0),A=r-E,l.ellipsis=o,l.ellipsisWidth=E,l.contentWidth=A,l.containerWidth=r,l}function truncateSingleLine(r,t){var o=t.containerWidth,s=t.font,l=t.contentWidth;if(!o)return"";var v=getWidth(r,s);if(v<=o)return r;for(var x=0;;x++){if(v<=l||x>=t.maxIterations){r+=t.ellipsis;break}var A=x===0?estimateLength(r,l,t.ascCharWidth,t.cnCharWidth):v>0?Math.floor(r.length*l/v):0;r=r.substr(0,A),v=getWidth(r,s)}return r===""&&(r=t.placeholder),r}function estimateLength(r,t,o,s){for(var l=0,v=0,x=r.length;v<x&&l<t;v++){var A=r.charCodeAt(v);l+=0<=A&&A<=127?o:s}return v}function parsePlainText(r,t){r!=null&&(r+="");var o=t.overflow,s=t.padding,l=t.font,v=o==="truncate",x=getLineHeight(l),A=retrieve2(t.lineHeight,x),w=!!t.backgroundColor,E=t.lineOverflow==="truncate",C=t.width,R;C!=null&&(o==="break"||o==="breakAll")?R=r?wrapText(r,t.font,C,o==="breakAll",0).lines:[]:R=r?r.split(`
`):[];var $=R.length*A,V=retrieve2(t.height,$);if($>V&&E){var z=Math.floor(V/A);R=R.slice(0,z)}if(r&&v&&C!=null)for(var F=prepareTruncateOptions(C,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),B=0;B<R.length;B++)R[B]=truncateSingleLine(R[B],F);for(var W=V,Y=0,B=0;B<R.length;B++)Y=Math.max(getWidth(R[B],l),Y);C==null&&(C=Y);var Z=Y;return s&&(W+=s[0]+s[2],Z+=s[1]+s[3],C+=s[1]+s[3]),w&&(Z=C),{lines:R,height:V,outerWidth:Z,outerHeight:W,lineHeight:A,calculatedLineHeight:x,contentWidth:Y,contentHeight:$,width:C}}var RichTextToken=function(){function r(){}return r}(),RichTextLine=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),RichTextContentBlock=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function parseRichText(r,t){var o=new RichTextContentBlock;if(r!=null&&(r+=""),!r)return o;for(var s=t.width,l=t.height,v=t.overflow,x=(v==="break"||v==="breakAll")&&s!=null?{width:s,accumWidth:0,breakAll:v==="breakAll"}:null,A=STYLE_REG.lastIndex=0,w;(w=STYLE_REG.exec(r))!=null;){var E=w.index;E>A&&pushTokens(o,r.substring(A,E),t,x),pushTokens(o,w[2],t,x,w[1]),A=STYLE_REG.lastIndex}A<r.length&&pushTokens(o,r.substring(A,r.length),t,x);var C=[],R=0,$=0,V=t.padding,z=v==="truncate",F=t.lineOverflow==="truncate";function B(De,Re,Ne){De.width=Re,De.lineHeight=Ne,R+=Ne,$=Math.max($,Re)}e:for(var W=0;W<o.lines.length;W++){for(var Y=o.lines[W],Z=0,X=0,ae=0;ae<Y.tokens.length;ae++){var ie=Y.tokens[ae],oe=ie.styleName&&t.rich[ie.styleName]||{},le=ie.textPadding=oe.padding,ve=le?le[1]+le[3]:0,xe=ie.font=oe.font||t.font;ie.contentHeight=getLineHeight(xe);var _e=retrieve2(oe.height,ie.contentHeight);if(ie.innerHeight=_e,le&&(_e+=le[0]+le[2]),ie.height=_e,ie.lineHeight=retrieve3(oe.lineHeight,t.lineHeight,_e),ie.align=oe&&oe.align||t.align,ie.verticalAlign=oe&&oe.verticalAlign||"middle",F&&l!=null&&R+ie.lineHeight>l){ae>0?(Y.tokens=Y.tokens.slice(0,ae),B(Y,X,Z),o.lines=o.lines.slice(0,W+1)):o.lines=o.lines.slice(0,W);break e}var Te=oe.width,Ee=Te==null||Te==="auto";if(typeof Te=="string"&&Te.charAt(Te.length-1)==="%")ie.percentWidth=Te,C.push(ie),ie.contentWidth=getWidth(ie.text,xe);else{if(Ee){var Ce=oe.backgroundColor,Pe=Ce&&Ce.image;Pe&&(Pe=findExistImage(Pe),isImageReady(Pe)&&(ie.width=Math.max(ie.width,Pe.width*_e/Pe.height)))}var Me=z&&s!=null?s-X:null;Me!=null&&Me<ie.width?!Ee||Me<ve?(ie.text="",ie.width=ie.contentWidth=0):(ie.text=truncateText(ie.text,Me-ve,xe,t.ellipsis,{minChar:t.truncateMinChar}),ie.width=ie.contentWidth=getWidth(ie.text,xe)):ie.contentWidth=getWidth(ie.text,xe)}ie.width+=ve,X+=ie.width,oe&&(Z=Math.max(Z,ie.lineHeight))}B(Y,X,Z)}o.outerWidth=o.width=retrieve2(s,$),o.outerHeight=o.height=retrieve2(l,R),o.contentHeight=R,o.contentWidth=$,V&&(o.outerWidth+=V[1]+V[3],o.outerHeight+=V[0]+V[2]);for(var W=0;W<C.length;W++){var ie=C[W],Fe=ie.percentWidth;ie.width=parseInt(Fe,10)/100*o.width}return o}function pushTokens(r,t,o,s,l){var v=t==="",x=l&&o.rich[l]||{},A=r.lines,w=x.font||o.font,E=!1,C,R;if(s){var $=x.padding,V=$?$[1]+$[3]:0;if(x.width!=null&&x.width!=="auto"){var z=parsePercent$1(x.width,s.width)+V;A.length>0&&z+s.accumWidth>s.width&&(C=t.split(`
`),E=!0),s.accumWidth=z}else{var F=wrapText(t,w,s.width,s.breakAll,s.accumWidth);s.accumWidth=F.accumWidth+V,R=F.linesWidths,C=F.lines}}else C=t.split(`
`);for(var B=0;B<C.length;B++){var W=C[B],Y=new RichTextToken;if(Y.styleName=l,Y.text=W,Y.isLineHolder=!W&&!v,typeof x.width=="number"?Y.width=x.width:Y.width=R?R[B]:getWidth(W,w),!B&&!E){var Z=(A[A.length-1]||(A[0]=new RichTextLine)).tokens,X=Z.length;X===1&&Z[0].isLineHolder?Z[0]=Y:(W||!X||v)&&Z.push(Y)}else A.push(new RichTextLine([Y]))}}function isAlphabeticLetter(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function isWordBreakChar(r){return isAlphabeticLetter(r)?!!breakCharMap[r]:!0}function wrapText(r,t,o,s,l){for(var v=[],x=[],A="",w="",E=0,C=0,R=0;R<r.length;R++){var $=r.charAt(R);if($===`
`){w&&(A+=w,C+=E),v.push(A),x.push(C),A="",w="",E=0,C=0;continue}var V=getWidth($,t),z=s?!1:!isWordBreakChar($);if(v.length?C+V>o:l+C+V>o){C?(A||w)&&(z?(A||(A=w,w="",E=0,C=E),v.push(A),x.push(C-E),w+=$,E+=V,A="",C=E):(w&&(A+=w,w="",E=0),v.push(A),x.push(C),A=$,C=V)):z?(v.push(w),x.push(E),w=$,E=V):(v.push($),x.push(V));continue}C+=V,z?(w+=$,E+=V):(w&&(A+=w,w="",E=0),A+=$)}return!v.length&&!A&&(A=r,w="",E=0),w&&(A+=w),A&&(v.push(A),x.push(C)),v.length===1&&(C+=l),{accumWidth:C,lines:v,linesWidths:x}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype._init=function(o){for(var s=keys(o),l=0;l<s.length;l++){var v=s[l];v==="style"?this.useStyle(o[v]):r.prototype.attrKV.call(this,v,o[v])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(o,s,l,v){var x=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,o,s)||x&&!x[0]&&!x[3])return!1;if(l&&this.__clipPaths){for(var A=0;A<this.__clipPaths.length;++A)if(this.__clipPaths[A].isZeroArea())return!1}if(v&&this.parent)for(var w=this.parent;w;){if(w.ignore)return!1;w=w.parent}return!0},t.prototype.contain=function(o,s){return this.rectContain(o,s)},t.prototype.traverse=function(o,s){o.call(s,this)},t.prototype.rectContain=function(o,s){var l=this.transformCoordToLocal(o,s),v=this.getBoundingRect();return v.contain(l[0],l[1])},t.prototype.getPaintRect=function(){var o=this._paintRect;if(!this._paintRect||this.__dirty){var s=this.transform,l=this.getBoundingRect(),v=this.style,x=v.shadowBlur||0,A=v.shadowOffsetX||0,w=v.shadowOffsetY||0;o=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),s?BoundingRect$1.applyTransform(o,l,s):o.copy(l),(x||A||w)&&(o.width+=x*2+Math.abs(A),o.height+=x*2+Math.abs(w),o.x=Math.min(o.x,o.x+A-x),o.y=Math.min(o.y,o.y+w-x));var E=this.dirtyRectTolerance;o.isZero()||(o.x=Math.floor(o.x-E),o.y=Math.floor(o.y-E),o.width=Math.ceil(o.width+1+E*2),o.height=Math.ceil(o.height+1+E*2))}return o},t.prototype.setPrevPaintRect=function(o){o?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(o)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(o){return this.animate("style",o)},t.prototype.updateDuringAnimation=function(o){o==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(o,s){o!=="style"?r.prototype.attrKV.call(this,o,s):this.style?this.setStyle(s):this.useStyle(s)},t.prototype.setStyle=function(o,s){return typeof o=="string"?this.style[o]=s:extend(this.style,o),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(o){o||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},t.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},t.prototype.createStyle=function(o){return createObject(DEFAULT_COMMON_STYLE,o)},t.prototype.useStyle=function(o){o[STYLE_MAGIC_KEY]||(o=this.createStyle(o)),this.__inHover?this.__hoverStyle=o:this.style=o,this.dirtyStyle()},t.prototype.isStyleObject=function(o){return o[STYLE_MAGIC_KEY]},t.prototype._innerSaveToNormal=function(o){r.prototype._innerSaveToNormal.call(this,o);var s=this._normalState;o.style&&!s.style&&(s.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(o,s,PRIMARY_STATES_KEYS)},t.prototype._applyStateObj=function(o,s,l,v,x,A){r.prototype._applyStateObj.call(this,o,s,l,v,x,A);var w=!(s&&v),E;if(s&&s.style?x?v?E=s.style:(E=this._mergeStyle(this.createStyle(),l.style),this._mergeStyle(E,s.style)):(E=this._mergeStyle(this.createStyle(),v?this.style:l.style),this._mergeStyle(E,s.style)):w&&(E=l.style),E)if(x){var C=this.style;if(this.style=this.createStyle(w?{}:C),w)for(var R=keys(C),$=0;$<R.length;$++){var V=R[$];V in E&&(E[V]=E[V],this.style[V]=C[V])}for(var z=keys(E),$=0;$<z.length;$++){var V=z[$];this.style[V]=this.style[V]}this._transitionState(o,{style:E},A,this.getAnimationStyleProps())}else this.useStyle(E);for(var F=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,$=0;$<F.length;$++){var V=F[$];s&&s[V]!=null?this[V]=s[V]:w&&l[V]!=null&&(this[V]=l[V])}},t.prototype._mergeStates=function(o){for(var s=r.prototype._mergeStates.call(this,o),l,v=0;v<o.length;v++){var x=o[v];x.style&&(l=l||{},this._mergeStyle(l,x.style))}return l&&(s.style=l),s},t.prototype._mergeStyle=function(o,s){return extend(o,s),o},t.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},t.initDefaultProps=function(){var o=t.prototype;o.type="displayable",o.invisible=!1,o.z=0,o.z2=0,o.zlevel=0,o.culling=!1,o.cursor="pointer",o.rectHover=!1,o.incremental=!1,o._rect=null,o.dirtyRectTolerance=0,o.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),t}(Element$1),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled(r,t,o){return tmpRect.copy(r.getBoundingRect()),r.transform&&tmpRect.applyTransform(r.transform),viewRect.width=t,viewRect.height=o,!tmpRect.intersect(viewRect)}const Displayable$1=Displayable;var mathMin$7=Math.min,mathMax$7=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$6=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine(r,t,o,s,l,v){l[0]=mathMin$7(r,o),l[1]=mathMin$7(t,s),v[0]=mathMax$7(r,o),v[1]=mathMax$7(t,s)}var xDim=[],yDim=[];function fromCubic(r,t,o,s,l,v,x,A,w,E){var C=cubicExtrema,R=cubicAt,$=C(r,o,l,x,xDim);w[0]=1/0,w[1]=1/0,E[0]=-1/0,E[1]=-1/0;for(var V=0;V<$;V++){var z=R(r,o,l,x,xDim[V]);w[0]=mathMin$7(z,w[0]),E[0]=mathMax$7(z,E[0])}$=C(t,s,v,A,yDim);for(var V=0;V<$;V++){var F=R(t,s,v,A,yDim[V]);w[1]=mathMin$7(F,w[1]),E[1]=mathMax$7(F,E[1])}w[0]=mathMin$7(r,w[0]),E[0]=mathMax$7(r,E[0]),w[0]=mathMin$7(x,w[0]),E[0]=mathMax$7(x,E[0]),w[1]=mathMin$7(t,w[1]),E[1]=mathMax$7(t,E[1]),w[1]=mathMin$7(A,w[1]),E[1]=mathMax$7(A,E[1])}function fromQuadratic(r,t,o,s,l,v,x,A){var w=quadraticExtremum,E=quadraticAt,C=mathMax$7(mathMin$7(w(r,o,l),1),0),R=mathMax$7(mathMin$7(w(t,s,v),1),0),$=E(r,o,l,C),V=E(t,s,v,R);x[0]=mathMin$7(r,l,$),x[1]=mathMin$7(t,v,V),A[0]=mathMax$7(r,l,$),A[1]=mathMax$7(t,v,V)}function fromArc(r,t,o,s,l,v,x,A,w){var E=min$1,C=max$1,R=Math.abs(l-v);if(R%PI2$6<1e-4&&R>1e-4){A[0]=r-o,A[1]=t-s,w[0]=r+o,w[1]=t+s;return}if(start[0]=mathCos$3(l)*o+r,start[1]=mathSin$3(l)*s+t,end[0]=mathCos$3(v)*o+r,end[1]=mathSin$3(v)*s+t,E(A,start,end),C(w,start,end),l=l%PI2$6,l<0&&(l=l+PI2$6),v=v%PI2$6,v<0&&(v=v+PI2$6),l>v&&!x?v+=PI2$6:l<v&&x&&(l+=PI2$6),x){var $=v;v=l,l=$}for(var V=0;V<v;V+=Math.PI/2)V>l&&(extremity[0]=mathCos$3(V)*o+r,extremity[1]=mathSin$3(V)*s+t,E(A,extremity,A),C(w,extremity,w))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2(r){var t=Math.round(r/PI$4*1e8)/1e8;return t%2*PI$4}function normalizeArcAngles(r,t){var o=modPI2(r[0]);o<0&&(o+=PI2$5);var s=o-r[0],l=r[1];l+=s,!t&&l-o>=PI2$5?l=o+PI2$5:t&&o-l>=PI2$5?l=o-PI2$5:!t&&o>l?l=o+(PI2$5-modPI2(o-l)):t&&o<l&&(l=o-(PI2$5-modPI2(l-o))),r[0]=o,r[1]=l}var PathProxy=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,o,s){s=s||0,s>0&&(this._ux=mathAbs$1(s/devicePixelRatio/t)||0,this._uy=mathAbs$1(s/devicePixelRatio/o)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,o){return this._drawPendingPt(),this.addData(CMD$2.M,t,o),this._ctx&&this._ctx.moveTo(t,o),this._x0=t,this._y0=o,this._xi=t,this._yi=o,this},r.prototype.lineTo=function(t,o){var s=mathAbs$1(t-this._xi),l=mathAbs$1(o-this._yi),v=s>this._ux||l>this._uy;if(this.addData(CMD$2.L,t,o),this._ctx&&v&&this._ctx.lineTo(t,o),v)this._xi=t,this._yi=o,this._pendingPtDist=0;else{var x=s*s+l*l;x>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=o,this._pendingPtDist=x)}return this},r.prototype.bezierCurveTo=function(t,o,s,l,v,x){return this._drawPendingPt(),this.addData(CMD$2.C,t,o,s,l,v,x),this._ctx&&this._ctx.bezierCurveTo(t,o,s,l,v,x),this._xi=v,this._yi=x,this},r.prototype.quadraticCurveTo=function(t,o,s,l){return this._drawPendingPt(),this.addData(CMD$2.Q,t,o,s,l),this._ctx&&this._ctx.quadraticCurveTo(t,o,s,l),this._xi=s,this._yi=l,this},r.prototype.arc=function(t,o,s,l,v,x){this._drawPendingPt(),tmpAngles[0]=l,tmpAngles[1]=v,normalizeArcAngles(tmpAngles,x),l=tmpAngles[0],v=tmpAngles[1];var A=v-l;return this.addData(CMD$2.A,t,o,s,s,l,A,0,x?0:1),this._ctx&&this._ctx.arc(t,o,s,l,v,x),this._xi=mathCos$2(v)*s+t,this._yi=mathSin$2(v)*s+o,this},r.prototype.arcTo=function(t,o,s,l,v){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,o,s,l,v),this},r.prototype.rect=function(t,o,s,l){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,o,s,l),this.addData(CMD$2.R,t,o,s,l),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var t=this._ctx,o=this._x0,s=this._y0;return t&&t.closePath(),this._xi=o,this._yi=s,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var o=t.length;!(this.data&&this.data.length===o)&&hasTypedArray&&(this.data=new Float32Array(o));for(var s=0;s<o;s++)this.data[s]=t[s];this._len=o},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var o=t.length,s=0,l=this._len,v=0;v<o;v++)s+=t[v].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(l+s));for(var v=0;v<o;v++)for(var x=t[v].data,A=0;A<x.length;A++)this.data[l++]=x[A];this._len=l},r.prototype.addData=function(t,o,s,l,v,x,A,w,E){if(this._saveData){var C=this.data;this._len+arguments.length>C.length&&(this._expandData(),C=this.data);for(var R=0;R<arguments.length;R++)C[this._len++]=arguments[R]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],o=0;o<this._len;o++)t[o]=this.data[o];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var t=this.data,o=0,s=0,l=0,v=0,x;for(x=0;x<this._len;){var A=t[x++],w=x===1;switch(w&&(o=t[x],s=t[x+1],l=o,v=s),A){case CMD$2.M:o=l=t[x++],s=v=t[x++],min2[0]=l,min2[1]=v,max2[0]=l,max2[1]=v;break;case CMD$2.L:fromLine(o,s,t[x],t[x+1],min2,max2),o=t[x++],s=t[x++];break;case CMD$2.C:fromCubic(o,s,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],min2,max2),o=t[x++],s=t[x++];break;case CMD$2.Q:fromQuadratic(o,s,t[x++],t[x++],t[x],t[x+1],min2,max2),o=t[x++],s=t[x++];break;case CMD$2.A:var E=t[x++],C=t[x++],R=t[x++],$=t[x++],V=t[x++],z=t[x++]+V;x+=1;var F=!t[x++];w&&(l=mathCos$2(V)*R+E,v=mathSin$2(V)*$+C),fromArc(E,C,R,$,V,z,F,min2,max2),o=mathCos$2(z)*R+E,s=mathSin$2(z)*$+C;break;case CMD$2.R:l=o=t[x++],v=s=t[x++];var B=t[x++],W=t[x++];fromLine(l,v,l+B,v+W,min2,max2);break;case CMD$2.Z:o=l,s=v;break}min$1(min,min,min2),max$1(max,max,max2)}return x===0&&(min[0]=min[1]=max[0]=max[1]=0),new BoundingRect$1(min[0],min[1],max[0]-min[0],max[1]-min[1])},r.prototype._calculateLength=function(){var t=this.data,o=this._len,s=this._ux,l=this._uy,v=0,x=0,A=0,w=0;this._pathSegLen||(this._pathSegLen=[]);for(var E=this._pathSegLen,C=0,R=0,$=0;$<o;){var V=t[$++],z=$===1;z&&(v=t[$],x=t[$+1],A=v,w=x);var F=-1;switch(V){case CMD$2.M:v=A=t[$++],x=w=t[$++];break;case CMD$2.L:{var B=t[$++],W=t[$++],Y=B-v,Z=W-x;(mathAbs$1(Y)>s||mathAbs$1(Z)>l||$===o-1)&&(F=Math.sqrt(Y*Y+Z*Z),v=B,x=W);break}case CMD$2.C:{var X=t[$++],ae=t[$++],B=t[$++],W=t[$++],ie=t[$++],oe=t[$++];F=cubicLength(v,x,X,ae,B,W,ie,oe,10),v=ie,x=oe;break}case CMD$2.Q:{var X=t[$++],ae=t[$++],B=t[$++],W=t[$++];F=quadraticLength(v,x,X,ae,B,W,10),v=B,x=W;break}case CMD$2.A:var le=t[$++],ve=t[$++],xe=t[$++],_e=t[$++],Te=t[$++],Ee=t[$++],Ce=Ee+Te;$+=1,t[$++],z&&(A=mathCos$2(Te)*xe+le,w=mathSin$2(Te)*_e+ve),F=mathMax$6(xe,_e)*mathMin$6(PI2$5,Math.abs(Ee)),v=mathCos$2(Ce)*xe+le,x=mathSin$2(Ce)*_e+ve;break;case CMD$2.R:{A=v=t[$++],w=x=t[$++];var Pe=t[$++],Me=t[$++];F=Pe*2+Me*2;break}case CMD$2.Z:{var Y=A-v,Z=w-x;F=Math.sqrt(Y*Y+Z*Z),v=A,x=w;break}}F>=0&&(E[R++]=F,C+=F)}return this._pathLen=C,C},r.prototype.rebuildPath=function(t,o){var s=this.data,l=this._ux,v=this._uy,x=this._len,A,w,E,C,R,$,V=o<1,z,F,B=0,W=0,Y,Z=0,X,ae;if(!(V&&(this._pathSegLen||this._calculateLength(),z=this._pathSegLen,F=this._pathLen,Y=o*F,!Y)))e:for(var ie=0;ie<x;){var oe=s[ie++],le=ie===1;switch(le&&(E=s[ie],C=s[ie+1],A=E,w=C),oe!==CMD$2.L&&Z>0&&(t.lineTo(X,ae),Z=0),oe){case CMD$2.M:A=E=s[ie++],w=C=s[ie++],t.moveTo(E,C);break;case CMD$2.L:{R=s[ie++],$=s[ie++];var ve=mathAbs$1(R-E),xe=mathAbs$1($-C);if(ve>l||xe>v){if(V){var _e=z[W++];if(B+_e>Y){var Te=(Y-B)/_e;t.lineTo(E*(1-Te)+R*Te,C*(1-Te)+$*Te);break e}B+=_e}t.lineTo(R,$),E=R,C=$,Z=0}else{var Ee=ve*ve+xe*xe;Ee>Z&&(X=R,ae=$,Z=Ee)}break}case CMD$2.C:{var Ce=s[ie++],Pe=s[ie++],Me=s[ie++],Fe=s[ie++],De=s[ie++],Re=s[ie++];if(V){var _e=z[W++];if(B+_e>Y){var Te=(Y-B)/_e;cubicSubdivide(E,Ce,Me,De,Te,tmpOutX),cubicSubdivide(C,Pe,Fe,Re,Te,tmpOutY),t.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}B+=_e}t.bezierCurveTo(Ce,Pe,Me,Fe,De,Re),E=De,C=Re;break}case CMD$2.Q:{var Ce=s[ie++],Pe=s[ie++],Me=s[ie++],Fe=s[ie++];if(V){var _e=z[W++];if(B+_e>Y){var Te=(Y-B)/_e;quadraticSubdivide(E,Ce,Me,Te,tmpOutX),quadraticSubdivide(C,Pe,Fe,Te,tmpOutY),t.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}B+=_e}t.quadraticCurveTo(Ce,Pe,Me,Fe),E=Me,C=Fe;break}case CMD$2.A:var Ne=s[ie++],Ze=s[ie++],je=s[ie++],Qe=s[ie++],ct=s[ie++],mt=s[ie++],ht=s[ie++],xt=!s[ie++],yt=je>Qe?je:Qe,$e=mathAbs$1(je-Qe)>.001,Ge=ct+mt,ke=!1;if(V){var _e=z[W++];B+_e>Y&&(Ge=ct+mt*(Y-B)/_e,ke=!0),B+=_e}if($e&&t.ellipse?t.ellipse(Ne,Ze,je,Qe,ht,ct,Ge,xt):t.arc(Ne,Ze,yt,ct,Ge,xt),ke)break e;le&&(A=mathCos$2(ct)*je+Ne,w=mathSin$2(ct)*Qe+Ze),E=mathCos$2(Ge)*je+Ne,C=mathSin$2(Ge)*Qe+Ze;break;case CMD$2.R:A=E=s[ie],w=C=s[ie+1],R=s[ie++],$=s[ie++];var Ye=s[ie++],bt=s[ie++];if(V){var _e=z[W++];if(B+_e>Y){var gt=Y-B;t.moveTo(R,$),t.lineTo(R+mathMin$6(gt,Ye),$),gt-=Ye,gt>0&&t.lineTo(R+Ye,$+mathMin$6(gt,bt)),gt-=bt,gt>0&&t.lineTo(R+mathMax$6(Ye-gt,0),$+bt),gt-=Ye,gt>0&&t.lineTo(R,$+mathMax$6(bt-gt,0));break e}B+=_e}t.rect(R,$,Ye,bt);break;case CMD$2.Z:if(V){var _e=z[W++];if(B+_e>Y){var Te=(Y-B)/_e;t.lineTo(E*(1-Te)+A*Te,C*(1-Te)+w*Te);break e}B+=_e}t.closePath(),E=A,C=w}}},r.prototype.clone=function(){var t=new r,o=this.data;return t.data=o.slice?o.slice():Array.prototype.slice.call(o),t._len=this._len,t},r.CMD=CMD$2,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const PathProxy$1=PathProxy;function containStroke$4(r,t,o,s,l,v,x){if(l===0)return!1;var A=l,w=0,E=r;if(x>t+A&&x>s+A||x<t-A&&x<s-A||v>r+A&&v>o+A||v<r-A&&v<o-A)return!1;if(r!==o)w=(t-s)/(r-o),E=(r*s-o*t)/(r-o);else return Math.abs(v-r)<=A/2;var C=w*v-x+E,R=C*C/(w*w+1);return R<=A/2*A/2}function containStroke$3(r,t,o,s,l,v,x,A,w,E,C){if(w===0)return!1;var R=w;if(C>t+R&&C>s+R&&C>v+R&&C>A+R||C<t-R&&C<s-R&&C<v-R&&C<A-R||E>r+R&&E>o+R&&E>l+R&&E>x+R||E<r-R&&E<o-R&&E<l-R&&E<x-R)return!1;var $=cubicProjectPoint(r,t,o,s,l,v,x,A,E,C,null);return $<=R/2}function containStroke$2(r,t,o,s,l,v,x,A,w){if(x===0)return!1;var E=x;if(w>t+E&&w>s+E&&w>v+E||w<t-E&&w<s-E&&w<v-E||A>r+E&&A>o+E&&A>l+E||A<r-E&&A<o-E&&A<l-E)return!1;var C=quadraticProjectPoint(r,t,o,s,l,v,A,w,null);return C<=E/2}var PI2$4=Math.PI*2;function normalizeRadian(r){return r%=PI2$4,r<0&&(r+=PI2$4),r}var PI2$3=Math.PI*2;function containStroke$1(r,t,o,s,l,v,x,A,w){if(x===0)return!1;var E=x;A-=r,w-=t;var C=Math.sqrt(A*A+w*w);if(C-E>o||C+E<o)return!1;if(Math.abs(s-l)%PI2$3<1e-4)return!0;if(v){var R=s;s=normalizeRadian(l),l=normalizeRadian(R)}else s=normalizeRadian(s),l=normalizeRadian(l);s>l&&(l+=PI2$3);var $=Math.atan2(w,A);return $<0&&($+=PI2$3),$>=s&&$<=l||$+PI2$3>=s&&$+PI2$3<=l}function windingLine(r,t,o,s,l,v){if(v>t&&v>s||v<t&&v<s||s===t)return 0;var x=(v-t)/(s-t),A=s<t?1:-1;(x===1||x===0)&&(A=s<t?.5:-.5);var w=x*(o-r)+r;return w===l?1/0:w>l?A:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(r,t){return Math.abs(r-t)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var r=extrema[0];extrema[0]=extrema[1],extrema[1]=r}function windingCubic(r,t,o,s,l,v,x,A,w,E){if(E>t&&E>s&&E>v&&E>A||E<t&&E<s&&E<v&&E<A)return 0;var C=cubicRootAt(t,s,v,A,E,roots);if(C===0)return 0;for(var R=0,$=-1,V=void 0,z=void 0,F=0;F<C;F++){var B=roots[F],W=B===0||B===1?.5:1,Y=cubicAt(r,o,l,x,B);Y<w||($<0&&($=cubicExtrema(t,s,v,A,extrema),extrema[1]<extrema[0]&&$>1&&swapExtrema(),V=cubicAt(t,s,v,A,extrema[0]),$>1&&(z=cubicAt(t,s,v,A,extrema[1]))),$===2?B<extrema[0]?R+=V<t?W:-W:B<extrema[1]?R+=z<V?W:-W:R+=A<z?W:-W:B<extrema[0]?R+=V<t?W:-W:R+=A<V?W:-W)}return R}function windingQuadratic(r,t,o,s,l,v,x,A){if(A>t&&A>s&&A>v||A<t&&A<s&&A<v)return 0;var w=quadraticRootAt(t,s,v,A,roots);if(w===0)return 0;var E=quadraticExtremum(t,s,v);if(E>=0&&E<=1){for(var C=0,R=quadraticAt(t,s,v,E),$=0;$<w;$++){var V=roots[$]===0||roots[$]===1?.5:1,z=quadraticAt(r,o,l,roots[$]);z<x||(roots[$]<E?C+=R<t?V:-V:C+=v<R?V:-V)}return C}else{var V=roots[0]===0||roots[0]===1?.5:1,z=quadraticAt(r,o,l,roots[0]);return z<x?0:v<t?V:-V}}function windingArc(r,t,o,s,l,v,x,A){if(A-=t,A>o||A<-o)return 0;var w=Math.sqrt(o*o-A*A);roots[0]=-w,roots[1]=w;var E=Math.abs(s-l);if(E<1e-4)return 0;if(E>=PI2$2-1e-4){s=0,l=PI2$2;var C=v?1:-1;return x>=roots[0]+r&&x<=roots[1]+r?C:0}if(s>l){var R=s;s=l,l=R}s<0&&(s+=PI2$2,l+=PI2$2);for(var $=0,V=0;V<2;V++){var z=roots[V];if(z+r>x){var F=Math.atan2(A,z),C=v?1:-1;F<0&&(F=PI2$2+F),(F>=s&&F<=l||F+PI2$2>=s&&F+PI2$2<=l)&&(F>Math.PI/2&&F<Math.PI*1.5&&(C=-C),$+=C)}}return $}function containPath(r,t,o,s,l){for(var v=r.data,x=r.len(),A=0,w=0,E=0,C=0,R=0,$,V,z=0;z<x;){var F=v[z++],B=z===1;switch(F===CMD$1.M&&z>1&&(o||(A+=windingLine(w,E,C,R,s,l))),B&&(w=v[z],E=v[z+1],C=w,R=E),F){case CMD$1.M:C=v[z++],R=v[z++],w=C,E=R;break;case CMD$1.L:if(o){if(containStroke$4(w,E,v[z],v[z+1],t,s,l))return!0}else A+=windingLine(w,E,v[z],v[z+1],s,l)||0;w=v[z++],E=v[z++];break;case CMD$1.C:if(o){if(containStroke$3(w,E,v[z++],v[z++],v[z++],v[z++],v[z],v[z+1],t,s,l))return!0}else A+=windingCubic(w,E,v[z++],v[z++],v[z++],v[z++],v[z],v[z+1],s,l)||0;w=v[z++],E=v[z++];break;case CMD$1.Q:if(o){if(containStroke$2(w,E,v[z++],v[z++],v[z],v[z+1],t,s,l))return!0}else A+=windingQuadratic(w,E,v[z++],v[z++],v[z],v[z+1],s,l)||0;w=v[z++],E=v[z++];break;case CMD$1.A:var W=v[z++],Y=v[z++],Z=v[z++],X=v[z++],ae=v[z++],ie=v[z++];z+=1;var oe=!!(1-v[z++]);$=Math.cos(ae)*Z+W,V=Math.sin(ae)*X+Y,B?(C=$,R=V):A+=windingLine(w,E,$,V,s,l);var le=(s-W)*X/Z+W;if(o){if(containStroke$1(W,Y,X,ae,ae+ie,oe,t,le,l))return!0}else A+=windingArc(W,Y,X,ae,ae+ie,oe,le,l);w=Math.cos(ae+ie)*Z+W,E=Math.sin(ae+ie)*X+Y;break;case CMD$1.R:C=w=v[z++],R=E=v[z++];var ve=v[z++],xe=v[z++];if($=C+ve,V=R+xe,o){if(containStroke$4(C,R,$,R,t,s,l)||containStroke$4($,R,$,V,t,s,l)||containStroke$4($,V,C,V,t,s,l)||containStroke$4(C,V,C,R,t,s,l))return!0}else A+=windingLine($,R,$,V,s,l),A+=windingLine(C,V,C,R,s,l);break;case CMD$1.Z:if(o){if(containStroke$4(w,E,C,R,t,s,l))return!0}else A+=windingLine(w,E,C,R,s,l);w=C,E=R;break}}return!o&&!isAroundEqual$1(E,R)&&(A+=windingLine(w,E,C,R,s,l)||0),A!==0}function contain$2(r,t,o){return containPath(r,0,!1,t,o)}function containStroke(r,t,o,s){return containPath(r,t,!0,o,s)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.update=function(){var o=this;r.prototype.update.call(this);var s=this.style;if(s.decal){var l=this._decalEl=this._decalEl||new t;l.buildPath===t.prototype.buildPath&&(l.buildPath=function(w){o.buildPath(w,o.shape)}),l.silent=!0;var v=l.style;for(var x in s)v[x]!==s[x]&&(v[x]=s[x]);v.fill=s.fill?s.decal:null,v.decal=null,v.shadowColor=null,s.strokeFirst&&(v.stroke=null);for(var A=0;A<pathCopyParams.length;++A)l[pathCopyParams[A]]=this[pathCopyParams[A]];l.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(o){var s=keys(o);this.shape=this.getDefaultShape();var l=this.getDefaultStyle();l&&this.useStyle(l);for(var v=0;v<s.length;v++){var x=s[v],A=o[x];x==="style"?this.style?extend(this.style,A):this.useStyle(A):x==="shape"?extend(this.shape,A):r.prototype.attrKV.call(this,x,A)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var o=this.style.fill;if(o!=="none"){if(isString(o)){var s=lum(o,0);return s>.5?DARK_LABEL_COLOR:s>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(o)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(o){var s=this.style.fill;if(isString(s)){var l=this.__zr,v=!!(l&&l.isDarkMode()),x=lum(o,0)<DARK_MODE_THRESHOLD;if(v===x)return s}},t.prototype.buildPath=function(o,s,l){},t.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},t.prototype.getUpdatedPathProxy=function(o){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,o),this.path},t.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},t.prototype.hasStroke=function(){var o=this.style,s=o.stroke;return!(s==null||s==="none"||!(o.lineWidth>0))},t.prototype.hasFill=function(){var o=this.style,s=o.fill;return s!=null&&s!=="none"},t.prototype.getBoundingRect=function(){var o=this._rect,s=this.style,l=!o;if(l){var v=!1;this.path||(v=!0,this.createPathProxy());var x=this.path;(v||this.__dirty&SHAPE_CHANGED_BIT)&&(x.beginPath(),this.buildPath(x,this.shape,!1),this.pathUpdated()),o=x.getBoundingRect()}if(this._rect=o,this.hasStroke()&&this.path&&this.path.len()>0){var A=this._rectStroke||(this._rectStroke=o.clone());if(this.__dirty||l){A.copy(o);var w=s.strokeNoScale?this.getLineScale():1,E=s.lineWidth;if(!this.hasFill()){var C=this.strokeContainThreshold;E=Math.max(E,C??4)}w>1e-10&&(A.width+=E/w,A.height+=E/w,A.x-=E/w/2,A.y-=E/w/2)}return A}return o},t.prototype.contain=function(o,s){var l=this.transformCoordToLocal(o,s),v=this.getBoundingRect(),x=this.style;if(o=l[0],s=l[1],v.contain(o,s)){var A=this.path;if(this.hasStroke()){var w=x.lineWidth,E=x.strokeNoScale?this.getLineScale():1;if(E>1e-10&&(this.hasFill()||(w=Math.max(w,this.strokeContainThreshold)),containStroke(A,w/E,o,s)))return!0}if(this.hasFill())return contain$2(A,o,s)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(o){return this.animate("shape",o)},t.prototype.updateDuringAnimation=function(o){o==="style"?this.dirtyStyle():o==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(o,s){o==="shape"?this.setShape(s):r.prototype.attrKV.call(this,o,s)},t.prototype.setShape=function(o,s){var l=this.shape;return l||(l=this.shape={}),typeof o=="string"?l[o]=s:extend(l,o),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(o){return createObject(DEFAULT_PATH_STYLE,o)},t.prototype._innerSaveToNormal=function(o){r.prototype._innerSaveToNormal.call(this,o);var s=this._normalState;o.shape&&!s.shape&&(s.shape=extend({},this.shape))},t.prototype._applyStateObj=function(o,s,l,v,x,A){r.prototype._applyStateObj.call(this,o,s,l,v,x,A);var w=!(s&&v),E;if(s&&s.shape?x?v?E=s.shape:(E=extend({},l.shape),extend(E,s.shape)):(E=extend({},v?this.shape:l.shape),extend(E,s.shape)):w&&(E=l.shape),E)if(x){this.shape=extend({},this.shape);for(var C={},R=keys(E),$=0;$<R.length;$++){var V=R[$];typeof E[V]=="object"?this.shape[V]=E[V]:C[V]=E[V]}this._transitionState(o,{shape:C},A)}else this.shape=E,this.dirtyShape()},t.prototype._mergeStates=function(o){for(var s=r.prototype._mergeStates.call(this,o),l,v=0;v<o.length;v++){var x=o[v];x.shape&&(l=l||{},this._mergeStyle(l,x.shape))}return l&&(s.shape=l),s},t.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},t.prototype.isZeroArea=function(){return!1},t.extend=function(o){var s=function(v){__extends(x,v);function x(A){var w=v.call(this,A)||this;return o.init&&o.init.call(w,A),w}return x.prototype.getDefaultStyle=function(){return clone$3(o.style)},x.prototype.getDefaultShape=function(){return clone$3(o.shape)},x}(t);for(var l in o)typeof o[l]=="function"&&(s.prototype[l]=o[l]);return s},t.initDefaultProps=function(){var o=t.prototype;o.type="path",o.strokeContainThreshold=5,o.segmentIgnoreThreshold=0,o.subPixelOptimize=!1,o.autoBatch=!1,o.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),t}(Displayable$1);const Path$1=Path;var DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var o=this.style,s=o.stroke;return s!=null&&s!=="none"&&o.lineWidth>0},t.prototype.hasFill=function(){var o=this.style,s=o.fill;return s!=null&&s!=="none"},t.prototype.createStyle=function(o){return createObject(DEFAULT_TSPAN_STYLE,o)},t.prototype.setBoundingRect=function(o){this._rect=o},t.prototype.getBoundingRect=function(){var o=this.style;if(!this._rect){var s=o.text;s!=null?s+="":s="";var l=getBoundingRect(s,o.font,o.textAlign,o.textBaseline);if(l.x+=o.x||0,l.y+=o.y||0,this.hasStroke()){var v=o.lineWidth;l.x-=v/2,l.y-=v/2,l.width+=v,l.height+=v}this._rect=l}return this._rect},t.initDefaultProps=function(){var o=t.prototype;o.dirtyRectTolerance=10}(),t}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ZRImage=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(o){return createObject(DEFAULT_IMAGE_STYLE,o)},t.prototype._getSize=function(o){var s=this.style,l=s[o];if(l!=null)return l;var v=isImageLike(s.image)?s.image:this.__image;if(!v)return 0;var x=o==="width"?"height":"width",A=s[x];return A==null?v[o]:v[o]/v[x]*A},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},t.prototype.getBoundingRect=function(){var o=this.style;return this._rect||(this._rect=new BoundingRect$1(o.x||0,o.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2(r,t){var o=t.x,s=t.y,l=t.width,v=t.height,x=t.r,A,w,E,C;l<0&&(o=o+l,l=-l),v<0&&(s=s+v,v=-v),typeof x=="number"?A=w=E=C=x:x instanceof Array?x.length===1?A=w=E=C=x[0]:x.length===2?(A=E=x[0],w=C=x[1]):x.length===3?(A=x[0],w=C=x[1],E=x[2]):(A=x[0],w=x[1],E=x[2],C=x[3]):A=w=E=C=0;var R;A+w>l&&(R=A+w,A*=l/R,w*=l/R),E+C>l&&(R=E+C,E*=l/R,C*=l/R),w+E>v&&(R=w+E,w*=v/R,E*=v/R),A+C>v&&(R=A+C,A*=v/R,C*=v/R),r.moveTo(o+A,s),r.lineTo(o+l-w,s),w!==0&&r.arc(o+l-w,s+w,w,-Math.PI/2,0),r.lineTo(o+l,s+v-E),E!==0&&r.arc(o+l-E,s+v-E,E,0,Math.PI/2),r.lineTo(o+C,s+v),C!==0&&r.arc(o+C,s+v-C,C,Math.PI/2,Math.PI),r.lineTo(o,s+A),A!==0&&r.arc(o+A,s+A,A,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(r,t,o){if(t){var s=t.x1,l=t.x2,v=t.y1,x=t.y2;r.x1=s,r.x2=l,r.y1=v,r.y2=x;var A=o&&o.lineWidth;return A&&(round(s*2)===round(l*2)&&(r.x1=r.x2=subPixelOptimize$1(s,A,!0)),round(v*2)===round(x*2)&&(r.y1=r.y2=subPixelOptimize$1(v,A,!0))),r}}function subPixelOptimizeRect$1(r,t,o){if(t){var s=t.x,l=t.y,v=t.width,x=t.height;r.x=s,r.y=l,r.width=v,r.height=x;var A=o&&o.lineWidth;return A&&(r.x=subPixelOptimize$1(s,A,!0),r.y=subPixelOptimize$1(l,A,!0),r.width=Math.max(subPixelOptimize$1(s+v,A,!1)-r.x,v===0?0:1),r.height=Math.max(subPixelOptimize$1(l+x,A,!1)-r.y,x===0?0:1)),r}}function subPixelOptimize$1(r,t,o){if(!t)return r;var s=round(r*2);return(s+round(t))%2===0?s/2:(s+(o?1:-1))/2}var RectShape=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),subPixelOptimizeOutputShape$1={},Rect$1=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new RectShape},t.prototype.buildPath=function(o,s){var l,v,x,A;if(this.subPixelOptimize){var w=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,s,this.style);l=w.x,v=w.y,x=w.width,A=w.height,w.r=s.r,s=w}else l=s.x,v=s.y,x=s.width,A=s.height;s.r?buildPath$2(o,s):o.rect(l,v,x,A)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({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},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=DEFAULT_RICH_TEXT_COLOR,s.attr(o),s}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var o=0;o<this._children.length;o++){var s=this._children[o];s.zlevel=this.zlevel,s.z=this.z,s.z2=this.z2,s.culling=this.culling,s.cursor=this.cursor,s.invisible=this.invisible}},t.prototype.updateTransform=function(){var o=this.innerTransformable;o?(o.updateTransform(),o.transform&&(this.transform=o.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(o){var s=this.innerTransformable;return s?s.getLocalTransform(o):r.prototype.getLocalTransform.call(this,o)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(o){r.prototype.addSelfToZr.call(this,o);for(var s=0;s<this._children.length;s++)this._children[s].__zr=o},t.prototype.removeSelfFromZr=function(o){r.prototype.removeSelfFromZr.call(this,o);for(var s=0;s<this._children.length;s++)this._children[s].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var o=new BoundingRect$1(0,0,0,0),s=this._children,l=[],v=null,x=0;x<s.length;x++){var A=s[x],w=A.getBoundingRect(),E=A.getLocalTransform(l);E?(o.copy(w),o.applyTransform(E),v=v||o.clone(),v.union(o)):(v=v||w.clone(),v.union(w))}this._rect=v||o}return this._rect},t.prototype.setDefaultTextStyle=function(o){this._defaultStyle=o||DEFAULT_RICH_TEXT_COLOR},t.prototype.setTextContent=function(o){},t.prototype._mergeStyle=function(o,s){if(!s)return o;var l=s.rich,v=o.rich||l&&{};return extend(o,s),l&&v?(this._mergeRich(v,l),o.rich=v):v&&(o.rich=v),o},t.prototype._mergeRich=function(o,s){for(var l=keys(s),v=0;v<l.length;v++){var x=l[v];o[x]=o[x]||{},extend(o[x],s[x])}},t.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},t.prototype._getOrCreateChild=function(o){var s=this._children[this._childCursor];return(!s||!(s instanceof o))&&(s=new o),this._children[this._childCursor++]=s,s.__zr=this.__zr,s.parent=this,s},t.prototype._updatePlainTexts=function(){var o=this.style,s=o.font||DEFAULT_FONT,l=o.padding,v=getStyleText(o),x=parsePlainText(v,o),A=needDrawBackground(o),w=!!o.backgroundColor,E=x.outerHeight,C=x.outerWidth,R=x.contentWidth,$=x.lines,V=x.lineHeight,z=this._defaultStyle,F=o.x||0,B=o.y||0,W=o.align||z.align||"left",Y=o.verticalAlign||z.verticalAlign||"top",Z=F,X=adjustTextY(B,x.contentHeight,Y);if(A||l){var ae=adjustTextX(F,C,W),ie=adjustTextY(B,E,Y);A&&this._renderBackground(o,o,ae,ie,C,E)}X+=V/2,l&&(Z=getTextXForPadding(F,W,l),Y==="top"?X+=l[0]:Y==="bottom"&&(X-=l[2]));for(var oe=0,le=!1,ve=getFill("fill"in o?o.fill:(le=!0,z.fill)),xe=getStroke("stroke"in o?o.stroke:!w&&(!z.autoStroke||le)?(oe=DEFAULT_STROKE_LINE_WIDTH,z.stroke):null),_e=o.textShadowBlur>0,Te=o.width!=null&&(o.overflow==="truncate"||o.overflow==="break"||o.overflow==="breakAll"),Ee=x.calculatedLineHeight,Ce=0;Ce<$.length;Ce++){var Pe=this._getOrCreateChild(TSpan$1),Me=Pe.createStyle();Pe.useStyle(Me),Me.text=$[Ce],Me.x=Z,Me.y=X,W&&(Me.textAlign=W),Me.textBaseline="middle",Me.opacity=o.opacity,Me.strokeFirst=!0,_e&&(Me.shadowBlur=o.textShadowBlur||0,Me.shadowColor=o.textShadowColor||"transparent",Me.shadowOffsetX=o.textShadowOffsetX||0,Me.shadowOffsetY=o.textShadowOffsetY||0),Me.stroke=xe,Me.fill=ve,xe&&(Me.lineWidth=o.lineWidth||oe,Me.lineDash=o.lineDash,Me.lineDashOffset=o.lineDashOffset||0),Me.font=s,setSeparateFont(Me,o),X+=V,Te&&Pe.setBoundingRect(new BoundingRect$1(adjustTextX(Me.x,o.width,Me.textAlign),adjustTextY(Me.y,Ee,Me.textBaseline),R,Ee))}},t.prototype._updateRichTexts=function(){var o=this.style,s=getStyleText(o),l=parseRichText(s,o),v=l.width,x=l.outerWidth,A=l.outerHeight,w=o.padding,E=o.x||0,C=o.y||0,R=this._defaultStyle,$=o.align||R.align,V=o.verticalAlign||R.verticalAlign,z=adjustTextX(E,x,$),F=adjustTextY(C,A,V),B=z,W=F;w&&(B+=w[3],W+=w[0]);var Y=B+v;needDrawBackground(o)&&this._renderBackground(o,o,z,F,x,A);for(var Z=!!o.backgroundColor,X=0;X<l.lines.length;X++){for(var ae=l.lines[X],ie=ae.tokens,oe=ie.length,le=ae.lineHeight,ve=ae.width,xe=0,_e=B,Te=Y,Ee=oe-1,Ce=void 0;xe<oe&&(Ce=ie[xe],!Ce.align||Ce.align==="left");)this._placeToken(Ce,o,le,W,_e,"left",Z),ve-=Ce.width,_e+=Ce.width,xe++;for(;Ee>=0&&(Ce=ie[Ee],Ce.align==="right");)this._placeToken(Ce,o,le,W,Te,"right",Z),ve-=Ce.width,Te-=Ce.width,Ee--;for(_e+=(v-(_e-B)-(Y-Te)-ve)/2;xe<=Ee;)Ce=ie[xe],this._placeToken(Ce,o,le,W,_e+Ce.width/2,"center",Z),_e+=Ce.width,xe++;W+=le}},t.prototype._placeToken=function(o,s,l,v,x,A,w){var E=s.rich[o.styleName]||{};E.text=o.text;var C=o.verticalAlign,R=v+l/2;C==="top"?R=v+o.height/2:C==="bottom"&&(R=v+l-o.height/2);var $=!o.isLineHolder&&needDrawBackground(E);$&&this._renderBackground(E,s,A==="right"?x-o.width:A==="center"?x-o.width/2:x,R-o.height/2,o.width,o.height);var V=!!E.backgroundColor,z=o.textPadding;z&&(x=getTextXForPadding(x,A,z),R-=o.height/2-z[0]-o.innerHeight/2);var F=this._getOrCreateChild(TSpan$1),B=F.createStyle();F.useStyle(B);var W=this._defaultStyle,Y=!1,Z=0,X=getFill("fill"in E?E.fill:"fill"in s?s.fill:(Y=!0,W.fill)),ae=getStroke("stroke"in E?E.stroke:"stroke"in s?s.stroke:!V&&!w&&(!W.autoStroke||Y)?(Z=DEFAULT_STROKE_LINE_WIDTH,W.stroke):null),ie=E.textShadowBlur>0||s.textShadowBlur>0;B.text=o.text,B.x=x,B.y=R,ie&&(B.shadowBlur=E.textShadowBlur||s.textShadowBlur||0,B.shadowColor=E.textShadowColor||s.textShadowColor||"transparent",B.shadowOffsetX=E.textShadowOffsetX||s.textShadowOffsetX||0,B.shadowOffsetY=E.textShadowOffsetY||s.textShadowOffsetY||0),B.textAlign=A,B.textBaseline="middle",B.font=o.font||DEFAULT_FONT,B.opacity=retrieve3(E.opacity,s.opacity,1),setSeparateFont(B,E),ae&&(B.lineWidth=retrieve3(E.lineWidth,s.lineWidth,Z),B.lineDash=retrieve2(E.lineDash,s.lineDash),B.lineDashOffset=s.lineDashOffset||0,B.stroke=ae),X&&(B.fill=X);var oe=o.contentWidth,le=o.contentHeight;F.setBoundingRect(new BoundingRect$1(adjustTextX(B.x,oe,B.textAlign),adjustTextY(B.y,le,B.textBaseline),oe,le))},t.prototype._renderBackground=function(o,s,l,v,x,A){var w=o.backgroundColor,E=o.borderWidth,C=o.borderColor,R=w&&w.image,$=w&&!R,V=o.borderRadius,z=this,F,B;if($||o.lineHeight||E&&C){F=this._getOrCreateChild(Rect$2),F.useStyle(F.createStyle()),F.style.fill=null;var W=F.shape;W.x=l,W.y=v,W.width=x,W.height=A,W.r=V,F.dirtyShape()}if($){var Y=F.style;Y.fill=w||null,Y.fillOpacity=retrieve2(o.fillOpacity,1)}else if(R){B=this._getOrCreateChild(ZRImage$1),B.onload=function(){z.dirtyStyle()};var Z=B.style;Z.image=w.image,Z.x=l,Z.y=v,Z.width=x,Z.height=A}if(E&&C){var Y=F.style;Y.lineWidth=E,Y.stroke=C,Y.strokeOpacity=retrieve2(o.strokeOpacity,1),Y.lineDash=o.borderDash,Y.lineDashOffset=o.borderDashOffset||0,F.strokeContainThreshold=0,F.hasFill()&&F.hasStroke()&&(Y.strokeFirst=!0,Y.lineWidth*=2)}var X=(F||B).style;X.shadowBlur=o.shadowBlur||0,X.shadowColor=o.shadowColor||"transparent",X.shadowOffsetX=o.shadowOffsetX||0,X.shadowOffsetY=o.shadowOffsetY||0,X.opacity=retrieve3(o.opacity,s.opacity,1)},t.makeFont=function(o){var s="";return hasSeparateFont(o)&&(s=[o.fontStyle,o.fontWeight,parseFontSize(o.fontSize),o.fontFamily||"sans-serif"].join(" ")),s&&trim$1(s)||o.textFont||o.font},t}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?DEFAULT_FONT_SIZE+"px":r+"px"}function setSeparateFont(r,t){for(var o=0;o<FONT_PARTS.length;o++){var s=FONT_PARTS[o],l=t[s];l!=null&&(r[s]=l)}}function hasSeparateFont(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function normalizeTextStyle(r){return normalizeStyle(r),each$c(r.rich,normalizeStyle),r}function normalizeStyle(r){if(r){r.font=ZRText.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||VALID_TEXT_ALIGN[t]?t:"left";var o=r.verticalAlign;o==="center"&&(o="middle"),r.verticalAlign=o==null||VALID_TEXT_VERTICAL_ALIGN[o]?o:"top";var s=r.padding;s&&(r.padding=normalizeCssArray$1(r.padding))}}function getStroke(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function getFill(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function getTextXForPadding(r,t,o){return t==="right"?r-o[1]:t==="center"?r+o[3]/2-o[1]/2:r+o[3]}function getStyleText(r){var t=r.text;return t!=null&&(t+=""),t}function needDrawBackground(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const ZRText$1=ZRText;var getECData=makeInner(),setCommonECData=function(r,t,o,s){if(s){var l=getECData(s);l.dataIndex=o,l.dataType=t,l.seriesIndex=r,s.type==="group"&&s.traverse(function(v){var x=getECData(v);x.seriesIndex=r,x.dataIndex=o,x.dataType=t})}},_highlightNextDigit=1,_highlightKeyMap={},getSavedStates=makeInner(),getComponentStates=makeInner(),HOVER_STATE_NORMAL=0,HOVER_STATE_BLUR=1,HOVER_STATE_EMPHASIS=2,SPECIAL_STATES=["emphasis","blur","select"],DISPLAY_STATES=["normal","emphasis","blur","select"],Z2_EMPHASIS_LIFT=10,Z2_SELECT_LIFT=9,HIGHLIGHT_ACTION_TYPE="highlight",DOWNPLAY_ACTION_TYPE="downplay",SELECT_ACTION_TYPE="select",UNSELECT_ACTION_TYPE="unselect",TOGGLE_SELECT_ACTION_TYPE="toggleSelect";function hasFillOrStroke(r){return r!=null&&r!=="none"}var liftedColorCache=new LRU$1(100);function liftColor(r){if(isString(r)){var t=liftedColorCache.get(r);return t||(t=lift(r,-.1),liftedColorCache.put(r,t)),t}else if(isGradientObject(r)){var o=extend({},r);return o.colorStops=map$2(r.colorStops,function(s){return{offset:s.offset,color:lift(s.color,-.1)}}),o}return r}function doChangeHoverState(r,t,o){r.onHoverStateChange&&(r.hoverState||0)!==o&&r.onHoverStateChange(t),r.hoverState=o}function singleEnterEmphasis(r){doChangeHoverState(r,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis(r){r.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState(r,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur(r){doChangeHoverState(r,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur(r){r.hoverState===HOVER_STATE_BLUR&&doChangeHoverState(r,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect(r){r.selected=!0}function singleLeaveSelect(r){r.selected=!1}function updateElementState(r,t,o){t(r,o)}function traverseUpdateState(r,t,o){updateElementState(r,t,o),r.isGroup&&r.traverse(function(s){updateElementState(s,t,o)})}function setStatesFlag(r,t){switch(t){case"emphasis":r.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":r.hoverState=HOVER_STATE_NORMAL;break;case"blur":r.hoverState=HOVER_STATE_BLUR;break;case"select":r.selected=!0}}function getFromStateStyle(r,t,o,s){for(var l=r.style,v={},x=0;x<t.length;x++){var A=t[x],w=l[A];v[A]=w??(s&&s[A])}for(var x=0;x<r.animators.length;x++){var E=r.animators[x];E.__fromStateTransition&&E.__fromStateTransition.indexOf(o)<0&&E.targetName==="style"&&E.saveTo(v,t)}return v}function createEmphasisDefaultState(r,t,o,s){var l=o&&indexOf(o,"select")>=0,v=!1;if(r instanceof Path$1){var x=getSavedStates(r),A=l&&x.selectFill||x.normalFill,w=l&&x.selectStroke||x.normalStroke;if(hasFillOrStroke(A)||hasFillOrStroke(w)){s=s||{};var E=s.style||{};E.fill==="inherit"?(v=!0,s=extend({},s),E=extend({},E),E.fill=A):!hasFillOrStroke(E.fill)&&hasFillOrStroke(A)?(v=!0,s=extend({},s),E=extend({},E),E.fill=liftColor(A)):!hasFillOrStroke(E.stroke)&&hasFillOrStroke(w)&&(v||(s=extend({},s),E=extend({},E)),E.stroke=liftColor(w)),s.style=E}}if(s&&s.z2==null){v||(s=extend({},s));var C=r.z2EmphasisLift;s.z2=r.z2+(C??Z2_EMPHASIS_LIFT)}return s}function createSelectDefaultState(r,t,o){if(o&&o.z2==null){o=extend({},o);var s=r.z2SelectLift;o.z2=r.z2+(s??Z2_SELECT_LIFT)}return o}function createBlurDefaultState(r,t,o){var s=indexOf(r.currentStates,t)>=0,l=r.style.opacity,v=s?null:getFromStateStyle(r,["opacity"],t,{opacity:1});o=o||{};var x=o.style||{};return x.opacity==null&&(o=extend({},o),x=extend({opacity:s?l:v.opacity*.1},x),o.style=x),o}function elementStateProxy(r,t){var o=this.states[r];if(this.style){if(r==="emphasis")return createEmphasisDefaultState(this,r,t,o);if(r==="blur")return createBlurDefaultState(this,r,o);if(r==="select")return createSelectDefaultState(this,r,o)}return o}function setDefaultStateProxy(r){r.stateProxy=elementStateProxy;var t=r.getTextContent(),o=r.getTextGuideLine();t&&(t.stateProxy=elementStateProxy),o&&(o.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(r,t){!shouldSilent(r,t)&&!r.__highByOuter&&traverseUpdateState(r,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(r,t){!shouldSilent(r,t)&&!r.__highByOuter&&traverseUpdateState(r,singleLeaveEmphasis)}function enterEmphasis(r,t){r.__highByOuter|=1<<(t||0),traverseUpdateState(r,singleEnterEmphasis)}function leaveEmphasis(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&traverseUpdateState(r,singleLeaveEmphasis)}function enterBlur(r){traverseUpdateState(r,singleEnterBlur)}function leaveBlur(r){traverseUpdateState(r,singleLeaveBlur)}function enterSelect(r){traverseUpdateState(r,singleEnterSelect)}function leaveSelect(r){traverseUpdateState(r,singleLeaveSelect)}function shouldSilent(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function allLeaveBlur(r){var t=r.getModel(),o=[],s=[];t.eachComponent(function(l,v){var x=getComponentStates(v),A=l==="series",w=A?r.getViewOfSeriesModel(v):r.getViewOfComponentModel(v);!A&&s.push(w),x.isBlured&&(w.group.traverse(function(E){singleLeaveBlur(E)}),A&&o.push(v)),x.isBlured=!1}),each$c(s,function(l){l&&l.toggleBlurSeries&&l.toggleBlurSeries(o,!1,t)})}function blurSeries(r,t,o,s){var l=s.getModel();o=o||"coordinateSystem";function v(E,C){for(var R=0;R<C.length;R++){var $=E.getItemGraphicEl(C[R]);$&&leaveBlur($)}}if(r!=null&&!(!t||t==="none")){var x=l.getSeriesByIndex(r),A=x.coordinateSystem;A&&A.master&&(A=A.master);var w=[];l.eachSeries(function(E){var C=x===E,R=E.coordinateSystem;R&&R.master&&(R=R.master);var $=R&&A?R===A:C;if(!(o==="series"&&!C||o==="coordinateSystem"&&!$||t==="series"&&C)){var V=s.getViewOfSeriesModel(E);if(V.group.traverse(function(B){singleEnterBlur(B)}),isArrayLike(t))v(E.getData(),t);else if(isObject$3(t))for(var z=keys(t),F=0;F<z.length;F++)v(E.getData(z[F]),t[z[F]]);w.push(E),getComponentStates(E).isBlured=!0}}),l.eachComponent(function(E,C){if(E!=="series"){var R=s.getViewOfComponentModel(C);R&&R.toggleBlurSeries&&R.toggleBlurSeries(w,!0,l)}})}}function blurComponent(r,t,o){if(!(r==null||t==null)){var s=o.getModel().getComponent(r,t);if(s){getComponentStates(s).isBlured=!0;var l=o.getViewOfComponentModel(s);!l||!l.focusBlurEnabled||l.group.traverse(function(v){singleEnterBlur(v)})}}}function blurSeriesFromHighlightPayload(r,t,o){var s=r.seriesIndex,l=r.getData(t.dataType);if(l){var v=queryDataIndex(l,t);v=(isArray$1(v)?v[0]:v)||0;var x=l.getItemGraphicEl(v);if(!x)for(var A=l.count(),w=0;!x&&w<A;)x=l.getItemGraphicEl(w++);if(x){var E=getECData(x);blurSeries(s,E.focus,E.blurScope,o)}else{var C=r.get(["emphasis","focus"]),R=r.get(["emphasis","blurScope"]);C!=null&&blurSeries(s,C,R,o)}}}function findComponentHighDownDispatchers(r,t,o,s){var l={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||o==null)return l;var v=s.getModel().getComponent(r,t);if(!v)return l;var x=s.getViewOfComponentModel(v);if(!x||!x.findHighDownDispatchers)return l;for(var A=x.findHighDownDispatchers(o),w,E=0;E<A.length;E++)if(getECData(A[E]).focus==="self"){w=!0;break}return{focusSelf:w,dispatchers:A}}function handleGlobalMouseOverForHighDown(r,t,o){var s=getECData(r),l=findComponentHighDownDispatchers(s.componentMainType,s.componentIndex,s.componentHighDownName,o),v=l.dispatchers,x=l.focusSelf;v?(x&&blurComponent(s.componentMainType,s.componentIndex,o),each$c(v,function(A){return enterEmphasisWhenMouseOver(A,t)})):(blurSeries(s.seriesIndex,s.focus,s.blurScope,o),s.focus==="self"&&blurComponent(s.componentMainType,s.componentIndex,o),enterEmphasisWhenMouseOver(r,t))}function handleGlobalMouseOutForHighDown(r,t,o){allLeaveBlur(o);var s=getECData(r),l=findComponentHighDownDispatchers(s.componentMainType,s.componentIndex,s.componentHighDownName,o).dispatchers;l?each$c(l,function(v){return leaveEmphasisWhenMouseOut(v,t)}):leaveEmphasisWhenMouseOut(r,t)}function toggleSelectionFromPayload(r,t,o){if(isSelectChangePayload(t)){var s=t.dataType,l=r.getData(s),v=queryDataIndex(l,t);isArray$1(v)||(v=[v]),r[t.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":t.type===SELECT_ACTION_TYPE?"select":"unselect"](v,s)}}function updateSeriesElementSelection(r){var t=r.getAllData();each$c(t,function(o){var s=o.data,l=o.type;s.eachItemGraphicEl(function(v,x){r.isSelected(x,l)?enterSelect(v):leaveSelect(v)})})}function getAllSelectedIndices(r){var t=[];return r.eachSeries(function(o){var s=o.getAllData();each$c(s,function(l){l.data;var v=l.type,x=o.getSelectedDataIndices();if(x.length>0){var A={dataIndex:x,seriesIndex:o.seriesIndex};v!=null&&(A.dataType=v),t.push(A)}})}),t}function enableHoverEmphasis(r,t,o){setAsHighDownDispatcher(r,!0),traverseUpdateState(r,setDefaultStateProxy),enableHoverFocus(r,t,o)}function disableHoverEmphasis(r){setAsHighDownDispatcher(r,!1)}function toggleHoverEmphasis(r,t,o,s){s?disableHoverEmphasis(r):enableHoverEmphasis(r,t,o)}function enableHoverFocus(r,t,o){var s=getECData(r);t!=null?(s.focus=t,s.blurScope=o):s.focus&&(s.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(r,t,o,s){o=o||"itemStyle";for(var l=0;l<OTHER_STATES.length;l++){var v=OTHER_STATES[l],x=t.getModel([v,o]),A=r.ensureState(v);A.style=s?s(x):x[defaultStyleGetterMap[o]]()}}function setAsHighDownDispatcher(r,t){var o=t===!1,s=r;r.highDownSilentOnTouch&&(s.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!o||s.__highDownDispatcher)&&(s.__highByOuter=s.__highByOuter||0,s.__highDownDispatcher=!o)}function isHighDownDispatcher(r){return!!(r&&r.__highDownDispatcher)}function getHighlightDigit(r){var t=_highlightKeyMap[r];return t==null&&_highlightNextDigit<=32&&(t=_highlightKeyMap[r]=_highlightNextDigit++),t}function isSelectChangePayload(r){var t=r.type;return t===SELECT_ACTION_TYPE||t===UNSELECT_ACTION_TYPE||t===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload(r){var t=r.type;return t===HIGHLIGHT_ACTION_TYPE||t===DOWNPLAY_ACTION_TYPE}function savePathStates(r){var t=getSavedStates(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var o=r.states.select||{};t.selectFill=o.style&&o.style.fill||null,t.selectStroke=o.style&&o.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath(r,t){if(t){var o=r.data,s=r.len(),l,v,x,A,w,E,C=CMD.M,R=CMD.C,$=CMD.L,V=CMD.R,z=CMD.A,F=CMD.Q;for(x=0,A=0;x<s;){switch(l=o[x++],A=x,v=0,l){case C:v=1;break;case $:v=1;break;case R:v=3;break;case F:v=2;break;case z:var B=t[4],W=t[5],Y=mathSqrt$2(t[0]*t[0]+t[1]*t[1]),Z=mathSqrt$2(t[2]*t[2]+t[3]*t[3]),X=mathAtan2(-t[1]/Z,t[0]/Y);o[x]*=Y,o[x++]+=B,o[x]*=Z,o[x++]+=W,o[x++]*=Y,o[x++]*=Z,o[x++]+=X,o[x++]+=X,x+=2,A=x;break;case V:E[0]=o[x++],E[1]=o[x++],applyTransform$1(E,E,t),o[A++]=E[0],o[A++]=E[1],E[0]+=o[x++],E[1]+=o[x++],applyTransform$1(E,E,t),o[A++]=E[0],o[A++]=E[1]}for(w=0;w<v;w++){var ae=points[w];ae[0]=o[x++],ae[1]=o[x++],applyTransform$1(ae,ae,t),o[A++]=ae[0],o[A++]=ae[1]}}r.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vRatio(r,t){return(r[0]*t[0]+r[1]*t[1])/(vMag(r)*vMag(t))}function vAngle(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(vRatio(r,t))}function processArc(r,t,o,s,l,v,x,A,w,E,C){var R=w*(PI$3/180),$=mathCos$1(R)*(r-o)/2+mathSin$1(R)*(t-s)/2,V=-1*mathSin$1(R)*(r-o)/2+mathCos$1(R)*(t-s)/2,z=$*$/(x*x)+V*V/(A*A);z>1&&(x*=mathSqrt$1(z),A*=mathSqrt$1(z));var F=(l===v?-1:1)*mathSqrt$1((x*x*(A*A)-x*x*(V*V)-A*A*($*$))/(x*x*(V*V)+A*A*($*$)))||0,B=F*x*V/A,W=F*-A*$/x,Y=(r+o)/2+mathCos$1(R)*B-mathSin$1(R)*W,Z=(t+s)/2+mathSin$1(R)*B+mathCos$1(R)*W,X=vAngle([1,0],[($-B)/x,(V-W)/A]),ae=[($-B)/x,(V-W)/A],ie=[(-1*$-B)/x,(-1*V-W)/A],oe=vAngle(ae,ie);if(vRatio(ae,ie)<=-1&&(oe=PI$3),vRatio(ae,ie)>=1&&(oe=0),oe<0){var le=Math.round(oe/PI$3*1e6)/1e6;oe=PI$3*2+le%2*PI$3}C.addData(E,Y,Z,x,A,X,oe,R,v)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(r){var t=new PathProxy$1;if(!r)return t;var o=0,s=0,l=o,v=s,x,A=PathProxy$1.CMD,w=r.match(commandReg);if(!w)return t;for(var E=0;E<w.length;E++){for(var C=w[E],R=C.charAt(0),$=void 0,V=C.match(numberReg)||[],z=V.length,F=0;F<z;F++)V[F]=parseFloat(V[F]);for(var B=0;B<z;){var W=void 0,Y=void 0,Z=void 0,X=void 0,ae=void 0,ie=void 0,oe=void 0,le=o,ve=s,xe=void 0,_e=void 0;switch(R){case"l":o+=V[B++],s+=V[B++],$=A.L,t.addData($,o,s);break;case"L":o=V[B++],s=V[B++],$=A.L,t.addData($,o,s);break;case"m":o+=V[B++],s+=V[B++],$=A.M,t.addData($,o,s),l=o,v=s,R="l";break;case"M":o=V[B++],s=V[B++],$=A.M,t.addData($,o,s),l=o,v=s,R="L";break;case"h":o+=V[B++],$=A.L,t.addData($,o,s);break;case"H":o=V[B++],$=A.L,t.addData($,o,s);break;case"v":s+=V[B++],$=A.L,t.addData($,o,s);break;case"V":s=V[B++],$=A.L,t.addData($,o,s);break;case"C":$=A.C,t.addData($,V[B++],V[B++],V[B++],V[B++],V[B++],V[B++]),o=V[B-2],s=V[B-1];break;case"c":$=A.C,t.addData($,V[B++]+o,V[B++]+s,V[B++]+o,V[B++]+s,V[B++]+o,V[B++]+s),o+=V[B-2],s+=V[B-1];break;case"S":W=o,Y=s,xe=t.len(),_e=t.data,x===A.C&&(W+=o-_e[xe-4],Y+=s-_e[xe-3]),$=A.C,le=V[B++],ve=V[B++],o=V[B++],s=V[B++],t.addData($,W,Y,le,ve,o,s);break;case"s":W=o,Y=s,xe=t.len(),_e=t.data,x===A.C&&(W+=o-_e[xe-4],Y+=s-_e[xe-3]),$=A.C,le=o+V[B++],ve=s+V[B++],o+=V[B++],s+=V[B++],t.addData($,W,Y,le,ve,o,s);break;case"Q":le=V[B++],ve=V[B++],o=V[B++],s=V[B++],$=A.Q,t.addData($,le,ve,o,s);break;case"q":le=V[B++]+o,ve=V[B++]+s,o+=V[B++],s+=V[B++],$=A.Q,t.addData($,le,ve,o,s);break;case"T":W=o,Y=s,xe=t.len(),_e=t.data,x===A.Q&&(W+=o-_e[xe-4],Y+=s-_e[xe-3]),o=V[B++],s=V[B++],$=A.Q,t.addData($,W,Y,o,s);break;case"t":W=o,Y=s,xe=t.len(),_e=t.data,x===A.Q&&(W+=o-_e[xe-4],Y+=s-_e[xe-3]),o+=V[B++],s+=V[B++],$=A.Q,t.addData($,W,Y,o,s);break;case"A":Z=V[B++],X=V[B++],ae=V[B++],ie=V[B++],oe=V[B++],le=o,ve=s,o=V[B++],s=V[B++],$=A.A,processArc(le,ve,o,s,ie,oe,Z,X,ae,$,t);break;case"a":Z=V[B++],X=V[B++],ae=V[B++],ie=V[B++],oe=V[B++],le=o,ve=s,o+=V[B++],s+=V[B++],$=A.A,processArc(le,ve,o,s,ie,oe,Z,X,ae,$,t);break}}(R==="z"||R==="Z")&&($=A.Z,t.addData($),o=l,s=v),x=$}return t.toStatic(),t}var SVGPath=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(o){},t}(Path$1);function isPathProxy(r){return r.setData!=null}function createPathOptions(r,t){var o=createPathProxyFromString(r),s=extend({},t);return s.buildPath=function(l){if(isPathProxy(l)){l.setData(o.data);var v=l.getContext();v&&l.rebuildPath(v,1)}else{var v=l;o.rebuildPath(v,1)}},s.applyTransform=function(l){transformPath(o,l),this.dirtyShape()},s}function createFromString(r,t){return new SVGPath(createPathOptions(r,t))}function extendFromString(r,t){var o=createPathOptions(r,t),s=function(l){__extends(v,l);function v(x){var A=l.call(this,x)||this;return A.applyTransform=o.applyTransform,A.buildPath=o.buildPath,A}return v}(SVGPath);return s}function mergePath$1(r,t){for(var o=[],s=r.length,l=0;l<s;l++){var v=r[l];o.push(v.getUpdatedPathProxy(!0))}var x=new Path$1(t);return x.createPathProxy(),x.buildPath=function(A){if(isPathProxy(A)){A.appendPath(o);var w=A.getContext();w&&A.rebuildPath(w,1)}},x}var CircleShape=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Circle=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new CircleShape},t.prototype.buildPath=function(o,s){o.moveTo(s.cx+s.r,s.cy),o.arc(s.cx,s.cy,s.r,0,Math.PI*2)},t}(Path$1);Circle.prototype.type="circle";const Circle$1=Circle;var EllipseShape=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Ellipse=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new EllipseShape},t.prototype.buildPath=function(o,s){var l=.5522848,v=s.cx,x=s.cy,A=s.rx,w=s.ry,E=A*l,C=w*l;o.moveTo(v-A,x),o.bezierCurveTo(v-A,x-C,v-E,x-w,v,x-w),o.bezierCurveTo(v+E,x-w,v+A,x-C,v+A,x),o.bezierCurveTo(v+A,x+C,v+E,x+w,v,x+w),o.bezierCurveTo(v-E,x+w,v-A,x+C,v-A,x),o.closePath()},t}(Path$1);Ellipse.prototype.type="ellipse";const Ellipse$1=Ellipse;var PI$2=Math.PI,PI2$1=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$5=Math.max,mathMin$5=Math.min,e=1e-4;function intersect(r,t,o,s,l,v,x,A){var w=o-r,E=s-t,C=x-l,R=A-v,$=R*w-C*E;if(!($*$<e))return $=(C*(t-v)-R*(r-l))/$,[r+$*w,t+$*E]}function computeCornerTangents(r,t,o,s,l,v,x){var A=r-o,w=t-s,E=(x?v:-v)/mathSqrt(A*A+w*w),C=E*w,R=-E*A,$=r+C,V=t+R,z=o+C,F=s+R,B=($+z)/2,W=(V+F)/2,Y=z-$,Z=F-V,X=Y*Y+Z*Z,ae=l-v,ie=$*F-z*V,oe=(Z<0?-1:1)*mathSqrt(mathMax$5(0,ae*ae*X-ie*ie)),le=(ie*Z-Y*oe)/X,ve=(-ie*Y-Z*oe)/X,xe=(ie*Z+Y*oe)/X,_e=(-ie*Y+Z*oe)/X,Te=le-B,Ee=ve-W,Ce=xe-B,Pe=_e-W;return Te*Te+Ee*Ee>Ce*Ce+Pe*Pe&&(le=xe,ve=_e),{cx:le,cy:ve,x0:-C,y0:-R,x1:le*(l/ae-1),y1:ve*(l/ae-1)}}function normalizeCornerRadius(r){var t;if(isArray$1(r)){var o=r.length;if(!o)return r;o===1?t=[r[0],r[0],0,0]:o===2?t=[r[0],r[0],r[1],r[1]]:o===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function buildPath$1(r,t){var o,s=mathMax$5(t.r,0),l=mathMax$5(t.r0||0,0),v=s>0,x=l>0;if(!(!v&&!x)){if(v||(s=l,l=0),l>s){var A=s;s=l,l=A}var w=t.startAngle,E=t.endAngle;if(!(isNaN(w)||isNaN(E))){var C=t.cx,R=t.cy,$=!!t.clockwise,V=mathAbs(E-w),z=V>PI2$1&&V%PI2$1;if(z>e&&(V=z),!(s>e))r.moveTo(C,R);else if(V>PI2$1-e)r.moveTo(C+s*mathCos(w),R+s*mathSin(w)),r.arc(C,R,s,w,E,!$),l>e&&(r.moveTo(C+l*mathCos(E),R+l*mathSin(E)),r.arc(C,R,l,E,w,$));else{var F=void 0,B=void 0,W=void 0,Y=void 0,Z=void 0,X=void 0,ae=void 0,ie=void 0,oe=void 0,le=void 0,ve=void 0,xe=void 0,_e=void 0,Te=void 0,Ee=void 0,Ce=void 0,Pe=s*mathCos(w),Me=s*mathSin(w),Fe=l*mathCos(E),De=l*mathSin(E),Re=V>e;if(Re){var Ne=t.cornerRadius;Ne&&(o=normalizeCornerRadius(Ne),F=o[0],B=o[1],W=o[2],Y=o[3]);var Ze=mathAbs(s-l)/2;if(Z=mathMin$5(Ze,W),X=mathMin$5(Ze,Y),ae=mathMin$5(Ze,F),ie=mathMin$5(Ze,B),ve=oe=mathMax$5(Z,X),xe=le=mathMax$5(ae,ie),(oe>e||le>e)&&(_e=s*mathCos(E),Te=s*mathSin(E),Ee=l*mathCos(w),Ce=l*mathSin(w),V<PI$2)){var je=intersect(Pe,Me,Ee,Ce,_e,Te,Fe,De);if(je){var Qe=Pe-je[0],ct=Me-je[1],mt=_e-je[0],ht=Te-je[1],xt=1/mathSin(mathACos((Qe*mt+ct*ht)/(mathSqrt(Qe*Qe+ct*ct)*mathSqrt(mt*mt+ht*ht)))/2),yt=mathSqrt(je[0]*je[0]+je[1]*je[1]);ve=mathMin$5(oe,(s-yt)/(xt+1)),xe=mathMin$5(le,(l-yt)/(xt-1))}}}if(!Re)r.moveTo(C+Pe,R+Me);else if(ve>e){var $e=mathMin$5(W,ve),Ge=mathMin$5(Y,ve),ke=computeCornerTangents(Ee,Ce,Pe,Me,s,$e,$),Ye=computeCornerTangents(_e,Te,Fe,De,s,Ge,$);r.moveTo(C+ke.cx+ke.x0,R+ke.cy+ke.y0),ve<oe&&$e===Ge?r.arc(C+ke.cx,R+ke.cy,ve,mathATan2(ke.y0,ke.x0),mathATan2(Ye.y0,Ye.x0),!$):($e>0&&r.arc(C+ke.cx,R+ke.cy,$e,mathATan2(ke.y0,ke.x0),mathATan2(ke.y1,ke.x1),!$),r.arc(C,R,s,mathATan2(ke.cy+ke.y1,ke.cx+ke.x1),mathATan2(Ye.cy+Ye.y1,Ye.cx+Ye.x1),!$),Ge>0&&r.arc(C+Ye.cx,R+Ye.cy,Ge,mathATan2(Ye.y1,Ye.x1),mathATan2(Ye.y0,Ye.x0),!$))}else r.moveTo(C+Pe,R+Me),r.arc(C,R,s,w,E,!$);if(!(l>e)||!Re)r.lineTo(C+Fe,R+De);else if(xe>e){var $e=mathMin$5(F,xe),Ge=mathMin$5(B,xe),ke=computeCornerTangents(Fe,De,_e,Te,l,-Ge,$),Ye=computeCornerTangents(Pe,Me,Ee,Ce,l,-$e,$);r.lineTo(C+ke.cx+ke.x0,R+ke.cy+ke.y0),xe<le&&$e===Ge?r.arc(C+ke.cx,R+ke.cy,xe,mathATan2(ke.y0,ke.x0),mathATan2(Ye.y0,Ye.x0),!$):(Ge>0&&r.arc(C+ke.cx,R+ke.cy,Ge,mathATan2(ke.y0,ke.x0),mathATan2(ke.y1,ke.x1),!$),r.arc(C,R,l,mathATan2(ke.cy+ke.y1,ke.cx+ke.x1),mathATan2(Ye.cy+Ye.y1,Ye.cx+Ye.x1),$),$e>0&&r.arc(C+Ye.cx,R+Ye.cy,$e,mathATan2(Ye.y1,Ye.x1),mathATan2(Ye.y0,Ye.x0),!$))}else r.lineTo(C+Fe,R+De),r.arc(C,R,l,E,w,$)}r.closePath()}}}var SectorShape=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Sector=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new SectorShape},t.prototype.buildPath=function(o,s){buildPath$1(o,s)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ring=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new RingShape},t.prototype.buildPath=function(o,s){var l=s.cx,v=s.cy,x=Math.PI*2;o.moveTo(l+s.r,v),o.arc(l,v,s.r,0,x,!1),o.moveTo(l+s.r0,v),o.arc(l,v,s.r0,0,x,!0)},t}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(r,t,o,s){var l=[],v=[],x=[],A=[],w,E,C,R;if(s){C=[1/0,1/0],R=[-1/0,-1/0];for(var $=0,V=r.length;$<V;$++)min$1(C,C,r[$]),max$1(R,R,r[$]);min$1(C,C,s[0]),max$1(R,R,s[1])}for(var $=0,V=r.length;$<V;$++){var z=r[$];if(o)w=r[$?$-1:V-1],E=r[($+1)%V];else if($===0||$===V-1){l.push(clone$2(r[$]));continue}else w=r[$-1],E=r[$+1];sub(v,E,w),scale$2(v,v,t);var F=distance(z,w),B=distance(z,E),W=F+B;W!==0&&(F/=W,B/=W),scale$2(x,v,-F),scale$2(A,v,B);var Y=add([],z,x),Z=add([],z,A);s&&(max$1(Y,Y,C),min$1(Y,Y,R),max$1(Z,Z,C),min$1(Z,Z,R)),l.push(Y),l.push(Z)}return o&&l.push(l.shift()),l}function buildPath(r,t,o){var s=t.smooth,l=t.points;if(l&&l.length>=2){if(s){var v=smoothBezier(l,s,o,t.smoothConstraint);r.moveTo(l[0][0],l[0][1]);for(var x=l.length,A=0;A<(o?x:x-1);A++){var w=v[A*2],E=v[A*2+1],C=l[(A+1)%x];r.bezierCurveTo(w[0],w[1],E[0],E[1],C[0],C[1])}}else{r.moveTo(l[0][0],l[0][1]);for(var A=1,R=l.length;A<R;A++)r.lineTo(l[A][0],l[A][1])}o&&r.closePath()}}var PolygonShape=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Polygon=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultShape=function(){return new PolygonShape},t.prototype.buildPath=function(o,s){buildPath(o,s,!0)},t}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Polyline=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PolylineShape},t.prototype.buildPath=function(o,s){buildPath(o,s,!1)},t}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Line=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LineShape},t.prototype.buildPath=function(o,s){var l,v,x,A;if(this.subPixelOptimize){var w=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,s,this.style);l=w.x1,v=w.y1,x=w.x2,A=w.y2}else l=s.x1,v=s.y1,x=s.x2,A=s.y2;var E=s.percent;E!==0&&(o.moveTo(l,v),E<1&&(x=l*(1-E)+x*E,A=v*(1-E)+A*E),o.lineTo(x,A))},t.prototype.pointAt=function(o){var s=this.shape;return[s.x1*(1-o)+s.x2*o,s.y1*(1-o)+s.y2*o]},t}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function someVectorAt(r,t,o){var s=r.cpx2,l=r.cpy2;return s!=null||l!=null?[(o?cubicDerivativeAt:cubicAt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(o?cubicDerivativeAt:cubicAt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(o?quadraticDerivativeAt:quadraticAt)(r.x1,r.cpx1,r.x2,t),(o?quadraticDerivativeAt:quadraticAt)(r.y1,r.cpy1,r.y2,t)]}var BezierCurve=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new BezierCurveShape},t.prototype.buildPath=function(o,s){var l=s.x1,v=s.y1,x=s.x2,A=s.y2,w=s.cpx1,E=s.cpy1,C=s.cpx2,R=s.cpy2,$=s.percent;$!==0&&(o.moveTo(l,v),C==null||R==null?($<1&&(quadraticSubdivide(l,w,x,$,out),w=out[1],x=out[2],quadraticSubdivide(v,E,A,$,out),E=out[1],A=out[2]),o.quadraticCurveTo(w,E,x,A)):($<1&&(cubicSubdivide(l,w,C,x,$,out),w=out[1],C=out[2],x=out[3],cubicSubdivide(v,E,R,A,$,out),E=out[1],R=out[2],A=out[3]),o.bezierCurveTo(w,E,C,R,x,A)))},t.prototype.pointAt=function(o){return someVectorAt(this.shape,o,!1)},t.prototype.tangentAt=function(o){var s=someVectorAt(this.shape,o,!0);return normalize$1(s,s)},t}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Arc=function(r){__extends(t,r);function t(o){return r.call(this,o)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ArcShape},t.prototype.buildPath=function(o,s){var l=s.cx,v=s.cy,x=Math.max(s.r,0),A=s.startAngle,w=s.endAngle,E=s.clockwise,C=Math.cos(A),R=Math.sin(A);o.moveTo(C*x+l,R*x+v),o.arc(l,v,x,A,w,!E)},t}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="compound",o}return t.prototype._updatePathDirty=function(){for(var o=this.shape.paths,s=this.shapeChanged(),l=0;l<o.length;l++)s=s||o[l].shapeChanged();s&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var o=this.shape.paths||[],s=this.getGlobalScale(),l=0;l<o.length;l++)o[l].path||o[l].createPathProxy(),o[l].path.setScale(s[0],s[1],o[l].segmentIgnoreThreshold)},t.prototype.buildPath=function(o,s){for(var l=s.paths||[],v=0;v<l.length;v++)l[v].buildPath(o,l[v].shape,!0)},t.prototype.afterBrush=function(){for(var o=this.shape.paths||[],s=0;s<o.length;s++)o[s].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},t}(Path$1);const CompoundPath$1=CompoundPath;var Gradient=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,o){this.colorStops.push({offset:t,color:o})},r}();const Gradient$1=Gradient;var LinearGradient=function(r){__extends(t,r);function t(o,s,l,v,x,A){var w=r.call(this,x)||this;return w.x=o??0,w.y=s??0,w.x2=l??1,w.y2=v??0,w.type="linear",w.global=A||!1,w}return t}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function(r){__extends(t,r);function t(o,s,l,v,x){var A=r.call(this,v)||this;return A.x=o??.5,A.y=s??.5,A.r=l??.5,A.type="radial",A.global=x||!1,A}return t}(Gradient$1);const RadialGradient$1=RadialGradient;var extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function r(t,o){this._corners=[],this._axes=[],this._origin=[0,0];for(var s=0;s<4;s++)this._corners[s]=new Point$1;for(var s=0;s<2;s++)this._axes[s]=new Point$1;t&&this.fromBoundingRect(t,o)}return r.prototype.fromBoundingRect=function(t,o){var s=this._corners,l=this._axes,v=t.x,x=t.y,A=v+t.width,w=x+t.height;if(s[0].set(v,x),s[1].set(A,x),s[2].set(A,w),s[3].set(v,w),o)for(var E=0;E<4;E++)s[E].transform(o);Point$1.sub(l[0],s[1],s[0]),Point$1.sub(l[1],s[3],s[0]),l[0].normalize(),l[1].normalize();for(var E=0;E<2;E++)this._origin[E]=l[E].dot(s[0])},r.prototype.intersect=function(t,o){var s=!0,l=!o;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,t,minTv,maxTv,l,1)&&(s=!1,l)||!this._intersectCheckOneSide(t,this,minTv,maxTv,l,-1)&&(s=!1,l)||l||Point$1.copy(o,s?minTv:maxTv),s},r.prototype._intersectCheckOneSide=function(t,o,s,l,v,x){for(var A=!0,w=0;w<2;w++){var E=this._axes[w];if(this._getProjMinMaxOnAxis(w,t._corners,extent),this._getProjMinMaxOnAxis(w,o._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(A=!1,v)return A;var C=Math.abs(extent2[0]-extent[1]),R=Math.abs(extent[0]-extent2[1]);Math.min(C,R)>l.len()&&(C<R?Point$1.scale(l,E,-C*x):Point$1.scale(l,E,R*x))}else if(s){var C=Math.abs(extent2[0]-extent[1]),R=Math.abs(extent[0]-extent2[1]);Math.min(C,R)<s.len()&&(C<R?Point$1.scale(s,E,C*x):Point$1.scale(s,E,-R*x))}}return A},r.prototype._getProjMinMaxOnAxis=function(t,o,s){for(var l=this._axes[t],v=this._origin,x=o[0].dot(l)+v[t],A=x,w=x,E=1;E<o.length;E++){var C=o[E].dot(l)+v[t];A=Math.min(C,A),w=Math.max(C,w)}s[0]=A,s[1]=w},r}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.notClear=!0,o.incremental=!0,o._displayables=[],o._temporaryDisplayables=[],o._cursor=0,o}return t.prototype.traverse=function(o,s){o.call(s,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(o,s){s?this._temporaryDisplayables.push(o):this._displayables.push(o),this.markRedraw()},t.prototype.addDisplayables=function(o,s){s=s||!1;for(var l=0;l<o.length;l++)this.addDisplayable(o[l],s)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(o){for(var s=this._cursor;s<this._displayables.length;s++)o&&o(this._displayables[s]);for(var s=0;s<this._temporaryDisplayables.length;s++)o&&o(this._temporaryDisplayables[s])},t.prototype.update=function(){this.updateTransform();for(var o=this._cursor;o<this._displayables.length;o++){var s=this._displayables[o];s.parent=this,s.update(),s.parent=null}for(var o=0;o<this._temporaryDisplayables.length;o++){var s=this._temporaryDisplayables[o];s.parent=this,s.update(),s.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var o=new BoundingRect$1(1/0,1/0,-1/0,-1/0),s=0;s<this._displayables.length;s++){var l=this._displayables[s],v=l.getBoundingRect().clone();l.needLocalTransform()&&v.applyTransform(l.getLocalTransform(m$2)),o.union(v)}this._rect=o}return this._rect},t.prototype.contain=function(o,s){var l=this.transformCoordToLocal(o,s),v=this.getBoundingRect();if(v.contain(l[0],l[1]))for(var x=0;x<this._displayables.length;x++){var A=this._displayables[x];if(A.contain(o,s))return!0}return!1},t}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig(r,t,o,s,l){var v;if(t&&t.ecModel){var x=t.ecModel.getUpdatePayload();v=x&&x.animation}var A=t&&t.isAnimationEnabled(),w=r==="update";if(A){var E=void 0,C=void 0,R=void 0;s?(E=retrieve2(s.duration,200),C=retrieve2(s.easing,"cubicOut"),R=0):(E=t.getShallow(w?"animationDurationUpdate":"animationDuration"),C=t.getShallow(w?"animationEasingUpdate":"animationEasing"),R=t.getShallow(w?"animationDelayUpdate":"animationDelay")),v&&(v.duration!=null&&(E=v.duration),v.easing!=null&&(C=v.easing),v.delay!=null&&(R=v.delay)),isFunction(R)&&(R=R(o,l)),isFunction(E)&&(E=E(o));var $={duration:E||0,delay:R,easing:C};return $}else return null}function animateOrSetProps(r,t,o,s,l,v,x){var A=!1,w;isFunction(l)?(x=v,v=l,l=null):isObject$3(l)&&(v=l.cb,x=l.during,A=l.isFrom,w=l.removeOpt,l=l.dataIndex);var E=r==="leave";E||t.stopAnimation("leave");var C=getAnimationConfig(r,s,l,E?w||{}:null,s&&s.getAnimationDelayParams?s.getAnimationDelayParams(t,l):null);if(C&&C.duration>0){var R=C.duration,$=C.delay,V=C.easing,z={duration:R,delay:$||0,easing:V,done:v,force:!!v||!!x,setToFinal:!E,scope:r,during:x};A?t.animateFrom(o,z):t.animateTo(o,z)}else t.stopAnimation(),!A&&t.attr(o),x&&x(1),v&&v()}function updateProps$1(r,t,o,s,l,v){animateOrSetProps("update",r,t,o,s,l,v)}function initProps(r,t,o,s,l,v){animateOrSetProps("enter",r,t,o,s,l,v)}function isElementRemoved(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var o=r.animators[t];if(o.scope==="leave")return!0}return!1}function removeElement(r,t,o,s,l,v){isElementRemoved(r)||animateOrSetProps("leave",r,t,o,s,l,v)}function fadeOutDisplayable(r,t,o,s){r.removeTextContent(),r.removeTextGuideLine(),removeElement(r,{style:{opacity:0}},t,o,s)}function removeElementWithFadeOut(r,t,o){function s(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(l){l.isGroup||fadeOutDisplayable(l,t,o,s)}):fadeOutDisplayable(r,t,o,s)}function saveOldStyle(r){transitionStore(r).oldStyle=r.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape(r){return Path$1.extend(r)}var extendPathFromString=extendFromString;function extendPath(r,t){return extendPathFromString(r,t)}function registerShape(r,t){_customShapeMap[r]=t}function getShapeClass(r){if(_customShapeMap.hasOwnProperty(r))return _customShapeMap[r]}function makePath(r,t,o,s){var l=createFromString(r,t);return o&&(s==="center"&&(o=centerGraphic(o,l.getBoundingRect())),resizePath(l,o)),l}function makeImage(r,t,o){var s=new ZRImage$1({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(l){if(o==="center"){var v={width:l.width,height:l.height};s.setStyle(centerGraphic(t,v))}}});return s}function centerGraphic(r,t){var o=t.width/t.height,s=r.height*o,l;s<=r.width?l=r.height:(s=r.width,l=s/o);var v=r.x+r.width/2,x=r.y+r.height/2;return{x:v-s/2,y:x-l/2,width:s,height:l}}var mergePath=mergePath$1;function resizePath(r,t){if(r.applyTransform){var o=r.getBoundingRect(),s=o.calculateTransform(t);r.applyTransform(s)}}function subPixelOptimizeLine(r,t){return subPixelOptimizeLine$1(r,r,{lineWidth:t}),r}function subPixelOptimizeRect(r){return subPixelOptimizeRect$1(r.shape,r.shape,r.style),r}var subPixelOptimize=subPixelOptimize$1;function getTransform$1(r,t){for(var o=identity([]);r&&r!==t;)mul(o,r.getLocalTransform(),o),r=r.parent;return o}function applyTransform(r,t,o){return t&&!isArrayLike(t)&&(t=Transformable$1.getLocalTransform(t)),o&&(t=invert([],t)),applyTransform$1([],r,t)}function transformDirection(r,t,o){var s=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),l=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),v=[r==="left"?-s:r==="right"?s:0,r==="top"?-l:r==="bottom"?l:0];return v=applyTransform(v,t,o),Math.abs(v[0])>Math.abs(v[1])?v[0]>0?"right":"left":v[1]>0?"bottom":"top"}function isNotGroup(r){return!r.isGroup}function isPath(r){return r.shape!=null}function groupTransition(r,t,o){if(!r||!t)return;function s(x){var A={};return x.traverse(function(w){isNotGroup(w)&&w.anid&&(A[w.anid]=w)}),A}function l(x){var A={x:x.x,y:x.y,rotation:x.rotation};return isPath(x)&&(A.shape=extend({},x.shape)),A}var v=s(r);t.traverse(function(x){if(isNotGroup(x)&&x.anid){var A=v[x.anid];if(A){var w=l(x);x.attr(l(A)),updateProps$1(x,w,o,getECData(x).dataIndex)}}})}function clipPointsByRect(r,t){return map$2(r,function(o){var s=o[0];s=mathMax$4(s,t.x),s=mathMin$4(s,t.x+t.width);var l=o[1];return l=mathMax$4(l,t.y),l=mathMin$4(l,t.y+t.height),[s,l]})}function clipRectByRect(r,t){var o=mathMax$4(r.x,t.x),s=mathMin$4(r.x+r.width,t.x+t.width),l=mathMax$4(r.y,t.y),v=mathMin$4(r.y+r.height,t.y+t.height);if(s>=o&&v>=l)return{x:o,y:l,width:s-o,height:v-l}}function createIcon(r,t,o){var s=extend({rectHover:!0},t),l=s.style={strokeNoScale:!0};if(o=o||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(l.image=r.slice(8),defaults(l,o),new ZRImage$1(s)):makePath(r.replace("path://",""),s,o,"center")}function linePolygonIntersect(r,t,o,s,l){for(var v=0,x=l[l.length-1];v<l.length;v++){var A=l[v];if(lineLineIntersect(r,t,o,s,A[0],A[1],x[0],x[1]))return!0;x=A}}function lineLineIntersect(r,t,o,s,l,v,x,A){var w=o-r,E=s-t,C=x-l,R=A-v,$=crossProduct2d(C,R,w,E);if(nearZero($))return!1;var V=r-l,z=t-v,F=crossProduct2d(V,z,w,E)/$;if(F<0||F>1)return!1;var B=crossProduct2d(V,z,C,R)/$;return!(B<0||B>1)}function crossProduct2d(r,t,o,s){return r*s-o*t}function nearZero(r){return r<=1e-6&&r>=-1e-6}function setTooltipConfig(r){var t=r.itemTooltipOption,o=r.componentModel,s=r.itemName,l=isString(t)?{formatter:t}:t,v=o.mainType,x=o.componentIndex,A={componentType:v,name:s,$vars:["name"]};A[v+"Index"]=x;var w=r.formatterParamsExtra;w&&each$c(keys(w),function(C){hasOwn(A,C)||(A[C]=w[C],A.$vars.push(C))});var E=getECData(r.el);E.componentMainType=v,E.componentIndex=x,E.tooltipConfig={name:s,option:defaults({content:s,formatterParams:A},l)}}function traverseElement(r,t){var o;r.isGroup&&(o=t(r)),o||r.traverse(t)}function traverseElements(r,t){if(r)if(isArray$1(r))for(var o=0;o<r.length;o++)traverseElement(r[o],t);else traverseElement(r,t)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$1);registerShape("rect",Rect$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText(r,t){for(var o=0;o<SPECIAL_STATES.length;o++){var s=SPECIAL_STATES[o],l=t[s],v=r.ensureState(s);v.style=v.style||{},v.style.text=l}var x=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(x,!0)}function getLabelText(r,t,o){var s=r.labelFetcher,l=r.labelDataIndex,v=r.labelDimIndex,x=t.normal,A;s&&(A=s.getFormattedLabel(l,"normal",null,v,x&&x.get("formatter"),o!=null?{interpolatedValue:o}:null)),A==null&&(A=isFunction(r.defaultText)?r.defaultText(l,r,o):r.defaultText);for(var w={normal:A},E=0;E<SPECIAL_STATES.length;E++){var C=SPECIAL_STATES[E],R=t[C];w[C]=retrieve2(s?s.getFormattedLabel(l,C,null,v,R&&R.get("formatter")):null,A)}return w}function setLabelStyle(r,t,o,s){o=o||EMPTY_OBJ;for(var l=r instanceof ZRText$1,v=!1,x=0;x<DISPLAY_STATES.length;x++){var A=t[DISPLAY_STATES[x]];if(A&&A.getShallow("show")){v=!0;break}}var w=l?r:r.getTextContent();if(v){l||(w||(w=new ZRText$1,r.setTextContent(w)),r.stateProxy&&(w.stateProxy=r.stateProxy));var E=getLabelText(o,t),C=t.normal,R=!!C.getShallow("show"),$=createTextStyle$1(C,s&&s.normal,o,!1,!l);$.text=E.normal,l||r.setTextConfig(createTextConfig(C,o,!1));for(var x=0;x<SPECIAL_STATES.length;x++){var V=SPECIAL_STATES[x],A=t[V];if(A){var z=w.ensureState(V),F=!!retrieve2(A.getShallow("show"),R);if(F!==R&&(z.ignore=!F),z.style=createTextStyle$1(A,s&&s[V],o,!0,!l),z.style.text=E[V],!l){var B=r.ensureState(V);B.textConfig=createTextConfig(A,o,!0)}}}w.silent=!!C.getShallow("silent"),w.style.x!=null&&($.x=w.style.x),w.style.y!=null&&($.y=w.style.y),w.ignore=!R,w.useStyle($),w.dirty(),o.enableTextSetter&&(labelInner(w).setLabelText=function(W){var Y=getLabelText(o,t,W);setLabelText(w,Y)})}else w&&(w.ignore=!0);r.dirty()}function getLabelStatesModels(r,t){t=t||"label";for(var o={normal:r.getModel(t)},s=0;s<SPECIAL_STATES.length;s++){var l=SPECIAL_STATES[s];o[l]=r.getModel([l,t])}return o}function createTextStyle$1(r,t,o,s,l){var v={};return setTextStyleCommon(v,r,o,s,l),t&&extend(v,t),v}function createTextConfig(r,t,o){t=t||{};var s={},l,v=r.getShallow("rotate"),x=retrieve2(r.getShallow("distance"),o?null:5),A=r.getShallow("offset");return l=r.getShallow("position")||(o?null:"inside"),l==="outside"&&(l=t.defaultOutsidePosition||"top"),l!=null&&(s.position=l),A!=null&&(s.offset=A),v!=null&&(v*=Math.PI/180,s.rotation=v),x!=null&&(s.distance=x),s.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",s}function setTextStyleCommon(r,t,o,s,l){o=o||EMPTY_OBJ;var v=t.ecModel,x=v&&v.option.textStyle,A=getRichItemNames(t),w;if(A){w={};for(var E in A)if(A.hasOwnProperty(E)){var C=t.getModel(["rich",E]);setTokenTextStyle(w[E]={},C,x,o,s,l,!1,!0)}}w&&(r.rich=w);var R=t.get("overflow");R&&(r.overflow=R);var $=t.get("minMargin");$!=null&&(r.margin=$),setTokenTextStyle(r,t,x,o,s,l,!0,!1)}function getRichItemNames(r){for(var t;r&&r!==r.ecModel;){var o=(r.option||EMPTY_OBJ).rich;if(o){t=t||{};for(var s=keys(o),l=0;l<s.length;l++){var v=s[l];t[v]=1}}r=r.parentModel}return t}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle(r,t,o,s,l,v,x,A){o=!l&&o||EMPTY_OBJ;var w=s&&s.inheritColor,E=t.getShallow("color"),C=t.getShallow("textBorderColor"),R=retrieve2(t.getShallow("opacity"),o.opacity);(E==="inherit"||E==="auto")&&(w?E=w:E=null),(C==="inherit"||C==="auto")&&(w?C=w:C=null),v||(E=E||o.color,C=C||o.textBorderColor),E!=null&&(r.fill=E),C!=null&&(r.stroke=C);var $=retrieve2(t.getShallow("textBorderWidth"),o.textBorderWidth);$!=null&&(r.lineWidth=$);var V=retrieve2(t.getShallow("textBorderType"),o.textBorderType);V!=null&&(r.lineDash=V);var z=retrieve2(t.getShallow("textBorderDashOffset"),o.textBorderDashOffset);z!=null&&(r.lineDashOffset=z),!l&&R==null&&!A&&(R=s&&s.defaultOpacity),R!=null&&(r.opacity=R),!l&&!v&&r.fill==null&&s.inheritColor&&(r.fill=s.inheritColor);for(var F=0;F<TEXT_PROPS_WITH_GLOBAL.length;F++){var B=TEXT_PROPS_WITH_GLOBAL[F],W=retrieve2(t.getShallow(B),o[B]);W!=null&&(r[B]=W)}for(var F=0;F<TEXT_PROPS_SELF.length;F++){var B=TEXT_PROPS_SELF[F],W=t.getShallow(B);W!=null&&(r[B]=W)}if(r.verticalAlign==null){var Y=t.getShallow("baseline");Y!=null&&(r.verticalAlign=Y)}if(!x||!s.disableBox){for(var F=0;F<TEXT_PROPS_BOX.length;F++){var B=TEXT_PROPS_BOX[F],W=t.getShallow(B);W!=null&&(r[B]=W)}var Z=t.getShallow("borderType");Z!=null&&(r.borderDash=Z),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&w&&(r.backgroundColor=w),(r.borderColor==="auto"||r.borderColor==="inherit")&&w&&(r.borderColor=w)}}function getFont(r,t){var o=t&&t.getModel("textStyle");return trim$1([r.fontStyle||o&&o.getShallow("fontStyle")||"",r.fontWeight||o&&o.getShallow("fontWeight")||"",(r.fontSize||o&&o.getShallow("fontSize")||12)+"px",r.fontFamily||o&&o.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation(r,t,o,s){if(r){var l=labelInner(r);l.prevValue=l.value,l.value=o;var v=t.normal;l.valueAnimation=v.get("valueAnimation"),l.valueAnimation&&(l.precision=v.get("precision"),l.defaultInterpolatedText=s,l.statesModels=t)}}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function r(){}return r.prototype.getTextColor=function(t){var o=this.ecModel;return this.getShallow("color")||(!t&&o?o.get(PATH_COLOR):null)},r.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var o={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},s=0;s<textStyleParams.length;s++)o[textStyleParams[s]]=this.getShallow(textStyleParams[s]);return tmpText.useStyle(o),tmpText.update(),tmpText.getBoundingRect()},r}();const TextStyleMixin$1=TextStyleMixin;var LINE_STYLE_KEY_MAP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],getLineStyle=makeStyleMapper(LINE_STYLE_KEY_MAP),LineStyleMixin=function(){function r(){}return r.prototype.getLineStyle=function(t){return getLineStyle(this,t)},r}(),ITEM_STYLE_KEY_MAP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],getItemStyle=makeStyleMapper(ITEM_STYLE_KEY_MAP),ItemStyleMixin=function(){function r(){}return r.prototype.getItemStyle=function(t,o){return getItemStyle(this,t,o)},r}(),Model=function(){function r(t,o,s){this.parentModel=o,this.ecModel=s,this.option=t}return r.prototype.init=function(t,o,s){},r.prototype.mergeOption=function(t,o){merge(this.option,t,!0)},r.prototype.get=function(t,o){return t==null?this.option:this._doGet(this.parsePath(t),!o&&this.parentModel)},r.prototype.getShallow=function(t,o){var s=this.option,l=s==null?s:s[t];if(l==null&&!o){var v=this.parentModel;v&&(l=v.getShallow(t))}return l},r.prototype.getModel=function(t,o){var s=t!=null,l=s?this.parsePath(t):null,v=s?this._doGet(l):this.option;return o=o||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(l)),new r(v,o,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(clone$3(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!env$1.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,o){var s=this.option;if(!t)return s;for(var l=0;l<t.length&&!(t[l]&&(s=s&&typeof s=="object"?s[t[l]]:null,s==null));l++);return s==null&&o&&(s=o._doGet(this.resolveParentPath(t),o.parentModel)),s},r}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);const Model$1=Model;var base=Math.round(Math.random()*10);function getUID(r){return[r||"",base++].join("_")}function enableSubTypeDefaulter(r){var t={};r.registerSubTypeDefaulter=function(o,s){var l=parseClassType(o);t[l.main]=s},r.determineSubType=function(o,s){var l=s.type;if(!l){var v=parseClassType(o).main;r.hasSubTypes(o)&&t[v]&&(l=t[v](s))}return l}}function enableTopologicalTravel(r,t){r.topologicalTravel=function(v,x,A,w){if(!v.length)return;var E=o(x),C=E.graph,R=E.noEntryList,$={};for(each$c(v,function(Y){$[Y]=!0});R.length;){var V=R.pop(),z=C[V],F=!!$[V];F&&(A.call(w,V,z.originalDeps.slice()),delete $[V]),each$c(z.successor,F?W:B)}each$c($,function(){var Y="";throw new Error(Y)});function B(Y){C[Y].entryCount--,C[Y].entryCount===0&&R.push(Y)}function W(Y){$[Y]=!0,B(Y)}};function o(v){var x={},A=[];return each$c(v,function(w){var E=s(x,w),C=E.originalDeps=t(w),R=l(C,v);E.entryCount=R.length,E.entryCount===0&&A.push(w),each$c(R,function($){indexOf(E.predecessor,$)<0&&E.predecessor.push($);var V=s(x,$);indexOf(V.successor,$)<0&&V.successor.push(w)})}),{graph:x,noEntryList:A}}function s(v,x){return v[x]||(v[x]={predecessor:[],successor:[]}),v[x]}function l(v,x){var A=[];return each$c(v,function(w){indexOf(x,w)>=0&&A.push(w)}),A}}function inheritDefaultOption(r,t){return merge(merge({},r,!0),t,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(r,t){r=r.toUpperCase(),localeModels[r]=new Model$1(t),localeStorage[r]=t}function createLocaleObject(r){if(isString(r)){var t=localeStorage[r.toUpperCase()]||{};return r===LOCALE_ZH||r===LOCALE_EN?clone$3(t):merge(clone$3(t),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3(r),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(r){return localeModels[r]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(r,t){return r+="","0000".substr(0,t-r.length)+r}function getPrimaryTimeUnit(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function isPrimaryTimeUnit(r){return r===getPrimaryTimeUnit(r)}function getDefaultFormatPrecisionOfInterval(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1(r,t,o,s){var l=parseDate(r),v=l[fullYearGetterName(o)](),x=l[monthGetterName(o)]()+1,A=Math.floor((x-1)/3)+1,w=l[dateGetterName(o)](),E=l["get"+(o?"UTC":"")+"Day"](),C=l[hoursGetterName(o)](),R=(C-1)%12+1,$=l[minutesGetterName(o)](),V=l[secondsGetterName(o)](),z=l[millisecondsGetterName(o)](),F=s instanceof Model$1?s:getLocaleModel(s||SYSTEM_LANG)||getDefaultLocaleModel(),B=F.getModel("time"),W=B.get("month"),Y=B.get("monthAbbr"),Z=B.get("dayOfWeek"),X=B.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,v+"").replace(/{yy}/g,v%100+"").replace(/{Q}/g,A+"").replace(/{MMMM}/g,W[x-1]).replace(/{MMM}/g,Y[x-1]).replace(/{MM}/g,pad(x,2)).replace(/{M}/g,x+"").replace(/{dd}/g,pad(w,2)).replace(/{d}/g,w+"").replace(/{eeee}/g,Z[E]).replace(/{ee}/g,X[E]).replace(/{e}/g,E+"").replace(/{HH}/g,pad(C,2)).replace(/{H}/g,C+"").replace(/{hh}/g,pad(R+"",2)).replace(/{h}/g,R+"").replace(/{mm}/g,pad($,2)).replace(/{m}/g,$+"").replace(/{ss}/g,pad(V,2)).replace(/{s}/g,V+"").replace(/{SSS}/g,pad(z,3)).replace(/{S}/g,z+"")}function leveledFormat(r,t,o,s,l){var v=null;if(isString(o))v=o;else if(isFunction(o))v=o(r.value,t,{level:r.level});else{var x=extend({},defaultLeveledFormatter);if(r.level>0)for(var A=0;A<primaryTimeUnits.length;++A)x[primaryTimeUnits[A]]="{primary|"+x[primaryTimeUnits[A]]+"}";var w=o?o.inherit===!1?o:defaults(o,x):x,E=getUnitFromValue(r.value,l);if(w[E])v=w[E];else if(w.inherit){for(var C=timeUnits.indexOf(E),A=C-1;A>=0;--A)if(w[E]){v=w[E];break}v=v||x.none}if(isArray$1(v)){var R=r.level==null?0:r.level>=0?r.level:v.length+r.level;R=Math.min(R,v.length-1),v=v[R]}}return format$1(new Date(r.value),v,l,s)}function getUnitFromValue(r,t){var o=parseDate(r),s=o[monthGetterName(t)]()+1,l=o[dateGetterName(t)](),v=o[hoursGetterName(t)](),x=o[minutesGetterName(t)](),A=o[secondsGetterName(t)](),w=o[millisecondsGetterName(t)](),E=w===0,C=E&&A===0,R=C&&x===0,$=R&&v===0,V=$&&l===1,z=V&&s===1;return z?"year":V?"month":$?"day":R?"hour":C?"minute":E?"second":"millisecond"}function getUnitValue(r,t,o){var s=isNumber(r)?parseDate(r):r;switch(t=t||getUnitFromValue(r,o),t){case"year":return s[fullYearGetterName(o)]();case"half-year":return s[monthGetterName(o)]()>=6?1:0;case"quarter":return Math.floor((s[monthGetterName(o)]()+1)/4);case"month":return s[monthGetterName(o)]();case"day":return s[dateGetterName(o)]();case"half-day":return s[hoursGetterName(o)]()/24;case"hour":return s[hoursGetterName(o)]();case"minute":return s[minutesGetterName(o)]();case"second":return s[secondsGetterName(o)]();case"millisecond":return s[millisecondsGetterName(o)]()}}function fullYearGetterName(r){return r?"getUTCFullYear":"getFullYear"}function monthGetterName(r){return r?"getUTCMonth":"getMonth"}function dateGetterName(r){return r?"getUTCDate":"getDate"}function hoursGetterName(r){return r?"getUTCHours":"getHours"}function minutesGetterName(r){return r?"getUTCMinutes":"getMinutes"}function secondsGetterName(r){return r?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(r){return r?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(r){return r?"setUTCFullYear":"setFullYear"}function monthSetterName(r){return r?"setUTCMonth":"setMonth"}function dateSetterName(r){return r?"setUTCDate":"setDate"}function hoursSetterName(r){return r?"setUTCHours":"setHours"}function minutesSetterName(r){return r?"setUTCMinutes":"setMinutes"}function secondsSetterName(r){return r?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(r){return r?"setUTCMilliseconds":"setMilliseconds"}function getTextRect(r,t,o,s,l,v,x,A){var w=new ZRText$1({style:{text:r,font:t,align:o,verticalAlign:s,padding:l,rich:v,overflow:x?"truncate":null,lineHeight:A}});return w.getBoundingRect()}function addCommas(r){if(!isNumeric(r))return isString(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function toCamelCase(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(o,s){return s.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(r,t,o){var s="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(C){return C&&trim$1(C)?C:"-"}function v(C){return!!(C!=null&&!isNaN(C)&&isFinite(C))}var x=t==="time",A=r instanceof Date;if(x||A){var w=x?parseDate(r):r;if(isNaN(+w)){if(A)return"-"}else return format$1(w,s,o)}if(t==="ordinal")return isStringSafe(r)?l(r):isNumber(r)&&v(r)?r+"":"-";var E=numericToNumber(r);return v(E)?addCommas(E):isStringSafe(r)?l(r):typeof r=="boolean"?r+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(r,t){return"{"+r+(t??"")+"}"};function formatTpl(r,t,o){isArray$1(t)||(t=[t]);var s=t.length;if(!s)return"";for(var l=t[0].$vars||[],v=0;v<l.length;v++){var x=TPL_VAR_ALIAS[v];r=r.replace(wrapVar(x),wrapVar(x,0))}for(var A=0;A<s;A++)for(var w=0;w<l.length;w++){var E=t[A][l[w]];r=r.replace(wrapVar(TPL_VAR_ALIAS[w],A),o?encodeHTML(E):E)}return r}function getTooltipMarker(r,t){var o=isString(r)?{color:r,extraCssText:t}:r||{},s=o.color,l=o.type;t=o.extraCssText;var v=o.renderMode||"html";if(!s)return"";if(v==="html")return l==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(s)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(s)+";"+(t||"")+'"></span>';var x=o.markerId||"markerX";return{renderMode:v,content:"{"+x+"|} ",style:l==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}}function formatTime(r,t,o){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var s=parseDate(t),l=o?"getUTC":"get",v=s[l+"FullYear"](),x=s[l+"Month"]()+1,A=s[l+"Date"](),w=s[l+"Hours"](),E=s[l+"Minutes"](),C=s[l+"Seconds"](),R=s[l+"Milliseconds"]();return r=r.replace("MM",pad(x,2)).replace("M",x).replace("yyyy",v).replace("yy",pad(v%100+"",2)).replace("dd",pad(A,2)).replace("d",A).replace("hh",pad(w,2)).replace("h",w).replace("mm",pad(E,2)).replace("m",E).replace("ss",pad(C,2)).replace("s",C).replace("SSS",pad(R,3)),r}function capitalFirst(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function convertToColorString(r,t){return t=t||"transparent",isString(r)?r:isObject$3(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function windowOpen(r,t){if(t==="_blank"||t==="blank"){var o=window.open();o.opener=null,o.location.href=r}else window.open(r,t)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(r,t,o,s,l){var v=0,x=0;s==null&&(s=1/0),l==null&&(l=1/0);var A=0;t.eachChild(function(w,E){var C=w.getBoundingRect(),R=t.childAt(E+1),$=R&&R.getBoundingRect(),V,z;if(r==="horizontal"){var F=C.width+($?-$.x+C.x:0);V=v+F,V>s||w.newline?(v=0,V=F,x+=A+o,A=C.height):A=Math.max(A,C.height)}else{var B=C.height+($?-$.y+C.y:0);z=x+B,z>l||w.newline?(v+=A+o,x=0,z=B,A=C.width):A=Math.max(A,C.width)}w.newline||(w.x=v,w.y=x,w.markRedraw(),r==="horizontal"?v=V+o:x=z+o)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(r,t,o){o=normalizeCssArray(o||0);var s=t.width,l=t.height,v=parsePercent(r.left,s),x=parsePercent(r.top,l),A=parsePercent(r.right,s),w=parsePercent(r.bottom,l),E=parsePercent(r.width,s),C=parsePercent(r.height,l),R=o[2]+o[0],$=o[1]+o[3],V=r.aspect;switch(isNaN(E)&&(E=s-A-$-v),isNaN(C)&&(C=l-w-R-x),V!=null&&(isNaN(E)&&isNaN(C)&&(V>s/l?E=s*.8:C=l*.8),isNaN(E)&&(E=V*C),isNaN(C)&&(C=E/V)),isNaN(v)&&(v=s-A-E-$),isNaN(x)&&(x=l-w-C-R),r.left||r.right){case"center":v=s/2-E/2-o[3];break;case"right":v=s-E-$;break}switch(r.top||r.bottom){case"middle":case"center":x=l/2-C/2-o[0];break;case"bottom":x=l-C-R;break}v=v||0,x=x||0,isNaN(E)&&(E=s-$-v-(A||0)),isNaN(C)&&(C=l-R-x-(w||0));var z=new BoundingRect$1(v+o[3],x+o[0],E,C);return z.margin=o,z}function positionElement(r,t,o,s,l,v){var x=!l||!l.hv||l.hv[0],A=!l||!l.hv||l.hv[1],w=l&&l.boundingMode||"all";if(v=v||r,v.x=r.x,v.y=r.y,!x&&!A)return!1;var E;if(w==="raw")E=r.type==="group"?new BoundingRect$1(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(E=r.getBoundingRect(),r.needLocalTransform()){var C=r.getLocalTransform();E=E.clone(),E.applyTransform(C)}var R=getLayoutRect(defaults({width:E.width,height:E.height},t),o,s),$=x?R.x-E.x:0,V=A?R.y-E.y:0;return w==="raw"?(v.x=$,v.y=V):(v.x+=$,v.y+=V),v===r&&r.markRedraw(),!0}function fetchLayoutMode(r){var t=r.layoutMode||r.constructor.layoutMode;return isObject$3(t)?t:t?{type:t}:null}function mergeLayoutParam(r,t,o){var s=o&&o.ignoreSize;!isArray$1(s)&&(s=[s,s]);var l=x(HV_NAMES[0],0),v=x(HV_NAMES[1],1);E(HV_NAMES[0],r,l),E(HV_NAMES[1],r,v);function x(C,R){var $={},V=0,z={},F=0,B=2;if(each$b(C,function(Z){z[Z]=r[Z]}),each$b(C,function(Z){A(t,Z)&&($[Z]=z[Z]=t[Z]),w($,Z)&&V++,w(z,Z)&&F++}),s[R])return w(t,C[1])?z[C[2]]=null:w(t,C[2])&&(z[C[1]]=null),z;if(F===B||!V)return z;if(V>=B)return $;for(var W=0;W<C.length;W++){var Y=C[W];if(!A($,Y)&&A(r,Y)){$[Y]=r[Y];break}}return $}function A(C,R){return C.hasOwnProperty(R)}function w(C,R){return C[R]!=null&&C[R]!=="auto"}function E(C,R,$){each$b(C,function(V){R[V]=$[V]})}}function getLayoutParams(r){return copyLayoutParams({},r)}function copyLayoutParams(r,t){return t&&r&&each$b(LOCATION_PARAMS,function(o){t.hasOwnProperty(o)&&(r[o]=t[o])}),r}var inner$c=makeInner(),ComponentModel=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this,o,s,l)||this;return v.uid=getUID("ec_cpt_model"),v}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l)},t.prototype.mergeDefaultAndTheme=function(o,s){var l=fetchLayoutMode(this),v=l?getLayoutParams(o):{},x=s.getTheme();merge(o,x.get(this.mainType)),merge(o,this.getDefaultOption()),l&&mergeLayoutParam(o,v,l)},t.prototype.mergeOption=function(o,s){merge(this.option,o,!0);var l=fetchLayoutMode(this);l&&mergeLayoutParam(this.option,o,l)},t.prototype.optionUpdated=function(o,s){},t.prototype.getDefaultOption=function(){var o=this.constructor;if(!isExtendedClass(o))return o.defaultOption;var s=inner$c(this);if(!s.defaultOption){for(var l=[],v=o;v;){var x=v.prototype.defaultOption;x&&l.push(x),v=v.superClass}for(var A={},w=l.length-1;w>=0;w--)A=merge(A,l[w],!0);s.defaultOption=A}return s.defaultOption},t.prototype.getReferringComponents=function(o,s){var l=o+"Index",v=o+"Id";return queryReferringComponents(this.ecModel,o,{index:this.get(l,!0),id:this.get(v,!0)},s)},t.prototype.getBoxLayoutParams=function(){var o=this;return{left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(o){this.option.zlevel=o},t.protoInitialize=function(){var o=t.prototype;o.type="component",o.id="",o.name="",o.mainType="",o.subType="",o.componentIndex=0}(),t}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(r){var t=[];return each$c(ComponentModel.getClassesByMainType(r),function(o){t=t.concat(o.dependencies||o.prototype.dependencies||[])}),t=map$2(t,function(o){return parseClassType(o).main}),r!=="dataset"&&indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.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 VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(r){innerGlobalModel(r).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(r,t,o){var s={},l=querySeriesUpstreamDatasetModel(t);if(!l||!r)return s;var v=[],x=[],A=t.ecModel,w=innerGlobalModel(A).datasetMap,E=l.uid+"_"+o.seriesLayoutBy,C,R;r=r.slice(),each$c(r,function(F,B){var W=isObject$3(F)?F:r[B]={name:F};W.type==="ordinal"&&C==null&&(C=B,R=z(W)),s[W.name]=[]});var $=w.get(E)||w.set(E,{categoryWayDim:R,valueWayDim:0});each$c(r,function(F,B){var W=F.name,Y=z(F);if(C==null){var Z=$.valueWayDim;V(s[W],Z,Y),V(x,Z,Y),$.valueWayDim+=Y}else if(C===B)V(s[W],0,Y),V(v,0,Y);else{var Z=$.categoryWayDim;V(s[W],Z,Y),V(x,Z,Y),$.categoryWayDim+=Y}});function V(F,B,W){for(var Y=0;Y<W;Y++)F.push(B+Y)}function z(F){var B=F.dimsDef;return B?B.length:1}return v.length&&(s.itemName=v),x.length&&(s.seriesName=x),s}function makeSeriesEncodeForNameBased(r,t,o){var s={},l=querySeriesUpstreamDatasetModel(r);if(!l)return s;var v=t.sourceFormat,x=t.dimensionsDefine,A;(v===SOURCE_FORMAT_OBJECT_ROWS||v===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(x,function(C,R){(isObject$3(C)?C.name:C)==="name"&&(A=R)});var w=function(){for(var C={},R={},$=[],V=0,z=Math.min(5,o);V<z;V++){var F=doGuessOrdinal(t.data,v,t.seriesLayoutBy,x,t.startIndex,V);$.push(F);var B=F===BE_ORDINAL.Not;if(B&&C.v==null&&V!==A&&(C.v=V),(C.n==null||C.n===C.v||!B&&$[C.n]===BE_ORDINAL.Not)&&(C.n=V),W(C)&&$[C.n]!==BE_ORDINAL.Not)return C;B||(F===BE_ORDINAL.Might&&R.v==null&&V!==A&&(R.v=V),(R.n==null||R.n===R.v)&&(R.n=V))}function W(Y){return Y.v!=null&&Y.n!=null}return W(C)?C:W(R)?R:null}();if(w){s.value=[w.v];var E=A??w.n;s.itemName=[E],s.seriesName=[E]}return s}function querySeriesUpstreamDatasetModel(r){var t=r.get("data",!0);if(!t)return queryReferringComponents(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:queryReferringComponents(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal(r,t){return doGuessOrdinal(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function doGuessOrdinal(r,t,o,s,l,v){var x,A=5;if(isTypedArray(r))return BE_ORDINAL.Not;var w,E;if(s){var C=s[v];isObject$3(C)?(w=C.name,E=C.type):isString(C)&&(w=C)}if(E!=null)return E==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(t===SOURCE_FORMAT_ARRAY_ROWS){var R=r;if(o===SERIES_LAYOUT_BY_ROW){for(var $=R[v],V=0;V<($||[]).length&&V<A;V++)if((x=X($[l+V]))!=null)return x}else for(var V=0;V<R.length&&V<A;V++){var z=R[l+V];if(z&&(x=X(z[v]))!=null)return x}}else if(t===SOURCE_FORMAT_OBJECT_ROWS){var F=r;if(!w)return BE_ORDINAL.Not;for(var V=0;V<F.length&&V<A;V++){var B=F[V];if(B&&(x=X(B[w]))!=null)return x}}else if(t===SOURCE_FORMAT_KEYED_COLUMNS){var W=r;if(!w)return BE_ORDINAL.Not;var $=W[w];if(!$||isTypedArray($))return BE_ORDINAL.Not;for(var V=0;V<$.length&&V<A;V++)if((x=X($[V]))!=null)return x}else if(t===SOURCE_FORMAT_ORIGINAL)for(var Y=r,V=0;V<Y.length&&V<A;V++){var B=Y[V],Z=getDataItemValue(B);if(!isArray$1(Z))return BE_ORDINAL.Not;if((x=X(Z[v]))!=null)return x}function X(ae){var ie=isString(ae);if(ae!=null&&isFinite(ae)&&ae!=="")return ie?BE_ORDINAL.Might:BE_ORDINAL.Not;if(ie&&ae!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator(r,t){assert(internalOptionCreatorMap.get(r)==null&&t),internalOptionCreatorMap.set(r,t)}function concatInternalOptions(r,t,o){var s=internalOptionCreatorMap.get(t);if(!s)return o;var l=s(r);return l?o.concat(l):o}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function r(){}return r.prototype.getColorFromPalette=function(t,o,s){var l=normalizeToArray(this.get("color",!0)),v=this.get("colorLayer",!0);return getFromPalette(this,innerColor,l,v,t,o,s)},r.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},r}();function getNearestPalette(r,t){for(var o=r.length,s=0;s<o;s++)if(r[s].length>t)return r[s];return r[o-1]}function getFromPalette(r,t,o,s,l,v,x){v=v||r;var A=t(v),w=A.paletteIdx||0,E=A.paletteNameMap=A.paletteNameMap||{};if(E.hasOwnProperty(l))return E[l];var C=x==null||!s?o:getNearestPalette(s,x);if(C=C||o,!(!C||!C.length)){var R=C[w];return l&&(E[l]=R),A.paletteIdx=(w+1)%C.length,R}}function clearPalette(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(o,s,l,v,x,A){v=v||{},this.option=null,this._theme=new Model$1(v),this._locale=new Model$1(x),this._optionManager=A},t.prototype.setOption=function(o,s,l){var v=normalizeSetOptionInput(s);this._optionManager.setOption(o,l,v),this._resetOption(null,v)},t.prototype.resetOption=function(o,s){return this._resetOption(o,normalizeSetOptionInput(s))},t.prototype._resetOption=function(o,s){var l=!1,v=this._optionManager;if(!o||o==="recreate"){var x=v.mountOption(o==="recreate");!this.option||o==="recreate"?initBase(this,x):(this.restoreData(),this._mergeOption(x,s)),l=!0}if((o==="timeline"||o==="media")&&this.restoreData(),!o||o==="recreate"||o==="timeline"){var A=v.getTimelineOption(this);A&&(l=!0,this._mergeOption(A,s))}if(!o||o==="recreate"||o==="media"){var w=v.getMediaOption(this);w.length&&each$c(w,function(E){l=!0,this._mergeOption(E,s)},this)}return l},t.prototype.mergeOption=function(o){this._mergeOption(o,null)},t.prototype._mergeOption=function(o,s){var l=this.option,v=this._componentsMap,x=this._componentsCount,A=[],w=createHashMap(),E=s&&s.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(o,function(R,$){R!=null&&(ComponentModel$1.hasClass($)?$&&(A.push($),w.set($,!0)):l[$]=l[$]==null?clone$3(R):merge(l[$],R,!0))}),E&&E.each(function(R,$){ComponentModel$1.hasClass($)&&!w.get($)&&(A.push($),w.set($,!0))}),ComponentModel$1.topologicalTravel(A,ComponentModel$1.getAllClassMainTypes(),C,this);function C(R){var $=concatInternalOptions(this,R,normalizeToArray(o[R])),V=v.get(R),z=V?E&&E.get(R)?"replaceMerge":"normalMerge":"replaceAll",F=mappingToExists(V,$,z);setComponentTypeToKeyInfo(F,R,ComponentModel$1),l[R]=null,v.set(R,null),x.set(R,0);var B=[],W=[],Y=0,Z;each$c(F,function(X,ae){var ie=X.existing,oe=X.newOption;if(!oe)ie&&(ie.mergeOption({},this),ie.optionUpdated({},!1));else{var le=R==="series",ve=ComponentModel$1.getClass(R,X.keyInfo.subType,!le);if(!ve)return;if(R==="tooltip"){if(Z)return;Z=!0}if(ie&&ie.constructor===ve)ie.name=X.keyInfo.name,ie.mergeOption(oe,this),ie.optionUpdated(oe,!1);else{var xe=extend({componentIndex:ae},X.keyInfo);ie=new ve(oe,this,this,xe),extend(ie,xe),X.brandNew&&(ie.__requireNewView=!0),ie.init(oe,this,this),ie.optionUpdated(null,!0)}}ie?(B.push(ie.option),W.push(ie),Y++):(B.push(void 0),W.push(void 0))},this),l[R]=B,v.set(R,W),x.set(R,Y),R==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},t.prototype.getOption=function(){var o=clone$3(this.option);return each$c(o,function(s,l){if(ComponentModel$1.hasClass(l)){for(var v=normalizeToArray(s),x=v.length,A=!1,w=x-1;w>=0;w--)v[w]&&!isComponentIdInternal(v[w])?A=!0:(v[w]=null,!A&&x--);v.length=x,o[l]=v}}),delete o[OPTION_INNER_KEY],o},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(o){this._payload=o},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(o,s){var l=this._componentsMap.get(o);if(l){var v=l[s||0];if(v)return v;if(s==null){for(var x=0;x<l.length;x++)if(l[x])return l[x]}}},t.prototype.queryComponents=function(o){var s=o.mainType;if(!s)return[];var l=o.index,v=o.id,x=o.name,A=this._componentsMap.get(s);if(!A||!A.length)return[];var w;return l!=null?(w=[],each$c(normalizeToArray(l),function(E){A[E]&&w.push(A[E])})):v!=null?w=queryByIdOrName("id",v,A):x!=null?w=queryByIdOrName("name",x,A):w=filter(A,function(E){return!!E}),filterBySubType(w,o)},t.prototype.findComponents=function(o){var s=o.query,l=o.mainType,v=A(s),x=v?this.queryComponents(v):filter(this._componentsMap.get(l),function(E){return!!E});return w(filterBySubType(x,o));function A(E){var C=l+"Index",R=l+"Id",$=l+"Name";return E&&(E[C]!=null||E[R]!=null||E[$]!=null)?{mainType:l,index:E[C],id:E[R],name:E[$]}:null}function w(E){return o.filter?filter(E,o.filter):E}},t.prototype.eachComponent=function(o,s,l){var v=this._componentsMap;if(isFunction(o)){var x=s,A=o;v.each(function(R,$){for(var V=0;R&&V<R.length;V++){var z=R[V];z&&A.call(x,$,z,z.componentIndex)}})}else for(var w=isString(o)?v.get(o):isObject$3(o)?this.findComponents(o):null,E=0;w&&E<w.length;E++){var C=w[E];C&&s.call(l,C,C.componentIndex)}},t.prototype.getSeriesByName=function(o){var s=convertOptionIdName(o,null);return filter(this._componentsMap.get("series"),function(l){return!!l&&s!=null&&l.name===s})},t.prototype.getSeriesByIndex=function(o){return this._componentsMap.get("series")[o]},t.prototype.getSeriesByType=function(o){return filter(this._componentsMap.get("series"),function(s){return!!s&&s.subType===o})},t.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(o){return!!o})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(o,s){assertSeriesInitialized(this),each$c(this._seriesIndices,function(l){var v=this._componentsMap.get("series")[l];o.call(s,v,l)},this)},t.prototype.eachRawSeries=function(o,s){each$c(this._componentsMap.get("series"),function(l){l&&o.call(s,l,l.componentIndex)})},t.prototype.eachSeriesByType=function(o,s,l){assertSeriesInitialized(this),each$c(this._seriesIndices,function(v){var x=this._componentsMap.get("series")[v];x.subType===o&&s.call(l,x,v)},this)},t.prototype.eachRawSeriesByType=function(o,s,l){return each$c(this.getSeriesByType(o),s,l)},t.prototype.isSeriesFiltered=function(o){return assertSeriesInitialized(this),this._seriesIndicesMap.get(o.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(o,s){assertSeriesInitialized(this);var l=[];each$c(this._seriesIndices,function(v){var x=this._componentsMap.get("series")[v];o.call(s,x,v)&&l.push(v)},this),this._seriesIndices=l,this._seriesIndicesMap=createHashMap(l)},t.prototype.restoreData=function(o){reCreateSeriesIndices(this);var s=this._componentsMap,l=[];s.each(function(v,x){ComponentModel$1.hasClass(x)&&l.push(x)}),ComponentModel$1.topologicalTravel(l,ComponentModel$1.getAllClassMainTypes(),function(v){each$c(s.get(v),function(x){x&&(v!=="series"||!isNotTargetSeries(x,o))&&x.restoreData()})})},t.internalField=function(){reCreateSeriesIndices=function(o){var s=o._seriesIndices=[];each$c(o._componentsMap.get("series"),function(l){l&&s.push(l.componentIndex)}),o._seriesIndicesMap=createHashMap(s)},assertSeriesInitialized=function(o){},initBase=function(o,s){o.option={},o.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,o._componentsMap=createHashMap({series:[]}),o._componentsCount=createHashMap();var l=s.aria;isObject$3(l)&&l.enabled==null&&(l.enabled=!0),mergeTheme(s,o._theme.option),merge(s,globalDefault,!1),o._mergeOption(s,null)}}(),t}(Model$1);function isNotTargetSeries(r,t){if(t){var o=t.seriesIndex,s=t.seriesId,l=t.seriesName;return o!=null&&r.componentIndex!==o||s!=null&&r.id!==s||l!=null&&r.name!==l}}function mergeTheme(r,t){var o=r.color&&!r.colorLayer;each$c(t,function(s,l){l==="colorLayer"&&o||ComponentModel$1.hasClass(l)||(typeof s=="object"?r[l]=r[l]?merge(r[l],s,!1):clone$3(s):r[l]==null&&(r[l]=s))})}function queryByIdOrName(r,t,o){if(isArray$1(t)){var s=createHashMap();return each$c(t,function(v){if(v!=null){var x=convertOptionIdName(v,null);x!=null&&s.set(v,!0)}}),filter(o,function(v){return v&&s.get(v[r])})}else{var l=convertOptionIdName(t,null);return filter(o,function(v){return v&&l!=null&&v[r]===l})}}function filterBySubType(r,t){return t.hasOwnProperty("subType")?filter(r,function(o){return o&&o.subType===t.subType}):r}function normalizeSetOptionInput(r){var t=createHashMap();return r&&each$c(normalizeToArray(r.replaceMerge),function(o){t.set(o,!0)}),{replaceMergeMainTypeMap:t}}mixin(GlobalModel,PaletteMixin);const GlobalModel$1=GlobalModel;var availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function r(t){each$c(availableMethods,function(o){this[o]=bind$1(t[o],t)},this)}return r}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,o){var s=[];each$c(coordinateSystemCreators,function(l,v){var x=l.create(t,o);s=s.concat(x||[])}),this._coordinateSystems=s},r.prototype.update=function(t,o){each$c(this._coordinateSystems,function(s){s.update&&s.update(t,o)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,o){coordinateSystemCreators[t]=o},r.get=function(t){return coordinateSystemCreators[t]},r}();const CoordinateSystem=CoordinateSystemManager;var QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,o,s){t&&(each$c(normalizeToArray(t.series),function(x){x&&x.data&&isTypedArray(x.data)&&setAsPrimitive(x.data)}),each$c(normalizeToArray(t.dataset),function(x){x&&x.source&&isTypedArray(x.source)&&setAsPrimitive(x.source)})),t=clone$3(t);var l=this._optionBackup,v=parseRawOption(t,o,!l);this._newBaseOption=v.baseOption,l?(v.timelineOptions.length&&(l.timelineOptions=v.timelineOptions),v.mediaList.length&&(l.mediaList=v.mediaList),v.mediaDefault&&(l.mediaDefault=v.mediaDefault)):this._optionBackup=v},r.prototype.mountOption=function(t){var o=this._optionBackup;return this._timelineOptions=o.timelineOptions,this._mediaList=o.mediaList,this._mediaDefault=o.mediaDefault,this._currentMediaIndices=[],clone$3(t?o.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var o,s=this._timelineOptions;if(s.length){var l=t.getComponent("timeline");l&&(o=clone$3(s[l.getCurrentIndex()]))}return o},r.prototype.getMediaOption=function(t){var o=this._api.getWidth(),s=this._api.getHeight(),l=this._mediaList,v=this._mediaDefault,x=[],A=[];if(!l.length&&!v)return A;for(var w=0,E=l.length;w<E;w++)applyMediaQuery(l[w].query,o,s)&&x.push(w);return!x.length&&v&&(x=[-1]),x.length&&!indicesEquals(x,this._currentMediaIndices)&&(A=map$2(x,function(C){return clone$3(C===-1?v.option:l[C].option)})),this._currentMediaIndices=x,A},r}();function parseRawOption(r,t,o){var s=[],l,v,x=r.baseOption,A=r.timeline,w=r.options,E=r.media,C=!!r.media,R=!!(w||A||x&&x.timeline);x?(v=x,v.timeline||(v.timeline=A)):((R||C)&&(r.options=r.media=null),v=r),C&&isArray$1(E)&&each$c(E,function(V){V&&V.option&&(V.query?s.push(V):l||(l=V))}),$(v),each$c(w,function(V){return $(V)}),each$c(s,function(V){return $(V.option)});function $(V){each$c(t,function(z){z(V,o)})}return{baseOption:v,timelineOptions:w||[],mediaDefault:l,mediaList:s}}function applyMediaQuery(r,t,o){var s={width:t,height:o,aspectratio:t/o},l=!0;return each$c(r,function(v,x){var A=x.match(QUERY_REG);if(!(!A||!A[1]||!A[2])){var w=A[1],E=A[2].toLowerCase();compare(s[E],v,w)||(l=!1)}}),l}function compare(r,t,o){return o==="min"?r>=t:o==="max"?r<=t:r===t}function indicesEquals(r,t){return r.join(",")===t.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(r){var t=r&&r.itemStyle;if(t)for(var o=0,s=POSSIBLE_STYLES.length;o<s;o++){var l=POSSIBLE_STYLES[o],v=t.normal,x=t.emphasis;v&&v[l]&&(r[l]=r[l]||{},r[l].normal?merge(r[l].normal,v[l]):r[l].normal=v[l],v[l]=null),x&&x[l]&&(r[l]=r[l]||{},r[l].emphasis?merge(r[l].emphasis,x[l]):r[l].emphasis=x[l],x[l]=null)}}function convertNormalEmphasis(r,t,o){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var s=r[t].normal,l=r[t].emphasis;s&&(o?(r[t].normal=r[t].emphasis=null,defaults(r[t],s)):r[t]=s),l&&(r.emphasis=r.emphasis||{},r.emphasis[t]=l,l.focus&&(r.emphasis.focus=l.focus),l.blurScope&&(r.emphasis.blurScope=l.blurScope))}}function removeEC3NormalStatus(r){convertNormalEmphasis(r,"itemStyle"),convertNormalEmphasis(r,"lineStyle"),convertNormalEmphasis(r,"areaStyle"),convertNormalEmphasis(r,"label"),convertNormalEmphasis(r,"labelLine"),convertNormalEmphasis(r,"upperLabel"),convertNormalEmphasis(r,"edgeLabel")}function compatTextStyle(r,t){var o=isObject$2(r)&&r[t],s=isObject$2(o)&&o.textStyle;if(s)for(var l=0,v=TEXT_STYLE_OPTIONS.length;l<v;l++){var x=TEXT_STYLE_OPTIONS[l];s.hasOwnProperty(x)&&(o[x]=s[x])}}function compatEC3CommonStyles(r){r&&(removeEC3NormalStatus(r),compatTextStyle(r,"label"),r.emphasis&&compatTextStyle(r.emphasis,"label"))}function processSeries(r){if(isObject$2(r)){compatEC2ItemStyle(r),removeEC3NormalStatus(r),compatTextStyle(r,"label"),compatTextStyle(r,"upperLabel"),compatTextStyle(r,"edgeLabel"),r.emphasis&&(compatTextStyle(r.emphasis,"label"),compatTextStyle(r.emphasis,"upperLabel"),compatTextStyle(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(compatEC2ItemStyle(t),compatEC3CommonStyles(t));var o=r.markLine;o&&(compatEC2ItemStyle(o),compatEC3CommonStyles(o));var s=r.markArea;s&&compatEC3CommonStyles(s);var l=r.data;if(r.type==="graph"){l=l||r.nodes;var v=r.links||r.edges;if(v&&!isTypedArray(v))for(var x=0;x<v.length;x++)compatEC3CommonStyles(v[x]);each$c(r.categories,function(E){removeEC3NormalStatus(E)})}if(l&&!isTypedArray(l))for(var x=0;x<l.length;x++)compatEC3CommonStyles(l[x]);if(t=r.markPoint,t&&t.data)for(var A=t.data,x=0;x<A.length;x++)compatEC3CommonStyles(A[x]);if(o=r.markLine,o&&o.data)for(var w=o.data,x=0;x<w.length;x++)isArray$1(w[x])?(compatEC3CommonStyles(w[x][0]),compatEC3CommonStyles(w[x][1])):compatEC3CommonStyles(w[x]);r.type==="gauge"?(compatTextStyle(r,"axisLabel"),compatTextStyle(r,"title"),compatTextStyle(r,"detail")):r.type==="treemap"?(convertNormalEmphasis(r.breadcrumb,"itemStyle"),each$c(r.levels,function(E){removeEC3NormalStatus(E)})):r.type==="tree"&&removeEC3NormalStatus(r.leaves)}}function toArr(r){return isArray$1(r)?r:r?[r]:[]}function toObj(r){return(isArray$1(r)?r[0]:r)||{}}function globalCompatStyle(r,t){each$a(toArr(r.series),function(s){isObject$2(s)&&processSeries(s)});var o=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&o.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(o,function(s){each$a(toArr(r[s]),function(l){l&&(compatTextStyle(l,"axisLabel"),compatTextStyle(l.axisPointer,"label"))})}),each$a(toArr(r.parallel),function(s){var l=s&&s.parallelAxisDefault;compatTextStyle(l,"axisLabel"),compatTextStyle(l&&l.axisPointer,"label")}),each$a(toArr(r.calendar),function(s){convertNormalEmphasis(s,"itemStyle"),compatTextStyle(s,"dayLabel"),compatTextStyle(s,"monthLabel"),compatTextStyle(s,"yearLabel")}),each$a(toArr(r.radar),function(s){compatTextStyle(s,"name"),s.name&&s.axisName==null&&(s.axisName=s.name,delete s.name),s.nameGap!=null&&s.axisNameGap==null&&(s.axisNameGap=s.nameGap,delete s.nameGap)}),each$a(toArr(r.geo),function(s){isObject$2(s)&&(compatEC3CommonStyles(s),each$a(toArr(s.regions),function(l){compatEC3CommonStyles(l)}))}),each$a(toArr(r.timeline),function(s){compatEC3CommonStyles(s),convertNormalEmphasis(s,"label"),convertNormalEmphasis(s,"itemStyle"),convertNormalEmphasis(s,"controlStyle",!0);var l=s.data;isArray$1(l)&&each$c(l,function(v){isObject$3(v)&&(convertNormalEmphasis(v,"label"),convertNormalEmphasis(v,"itemStyle"))})}),each$a(toArr(r.toolbox),function(s){convertNormalEmphasis(s,"iconStyle"),each$a(s.feature,function(l){convertNormalEmphasis(l,"iconStyle")})}),compatTextStyle(toObj(r.axisPointer),"label"),compatTextStyle(toObj(r.tooltip).axisPointer,"label")}function get(r,t){for(var o=t.split(","),s=r,l=0;l<o.length&&(s=s&&s[o[l]],s!=null);l++);return s}function set(r,t,o,s){for(var l=t.split(","),v=r,x,A=0;A<l.length-1;A++)x=l[A],v[x]==null&&(v[x]={}),v=v[x];(s||v[l[A]]==null)&&(v[l[A]]=o)}function compatLayoutProperties(r){r&&each$c(LAYOUT_PROPERTIES,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var LAYOUT_PROPERTIES=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],COMPATITABLE_COMPONENTS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],BAR_ITEM_STYLE_MAP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function compatBarItemStyle(r){var t=r&&r.itemStyle;if(t)for(var o=0;o<BAR_ITEM_STYLE_MAP.length;o++){var s=BAR_ITEM_STYLE_MAP[o][1],l=BAR_ITEM_STYLE_MAP[o][0];t[s]!=null&&(t[l]=t[s])}}function compatPieLabel(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function compatSunburstState(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function compatGraphFocus(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function traverseTree(r,t){if(r)for(var o=0;o<r.length;o++)t(r[o]),r[o]&&traverseTree(r[o].children,t)}function globalBackwardCompat(r,t){globalCompatStyle(r,t),r.series=normalizeToArray(r.series),each$c(r.series,function(o){if(isObject$3(o)){var s=o.type;if(s==="line")o.clipOverflow!=null&&(o.clip=o.clipOverflow);else if(s==="pie"||s==="gauge"){o.clockWise!=null&&(o.clockwise=o.clockWise),compatPieLabel(o.label);var l=o.data;if(l&&!isTypedArray(l))for(var v=0;v<l.length;v++)compatPieLabel(l[v]);o.hoverOffset!=null&&(o.emphasis=o.emphasis||{},(o.emphasis.scaleSize=null)&&(o.emphasis.scaleSize=o.hoverOffset))}else if(s==="gauge"){var x=get(o,"pointer.color");x!=null&&set(o,"itemStyle.color",x)}else if(s==="bar"){compatBarItemStyle(o),compatBarItemStyle(o.backgroundStyle),compatBarItemStyle(o.emphasis);var l=o.data;if(l&&!isTypedArray(l))for(var v=0;v<l.length;v++)typeof l[v]=="object"&&(compatBarItemStyle(l[v]),compatBarItemStyle(l[v]&&l[v].emphasis))}else if(s==="sunburst"){var A=o.highlightPolicy;A&&(o.emphasis=o.emphasis||{},o.emphasis.focus||(o.emphasis.focus=A)),compatSunburstState(o),traverseTree(o.data,compatSunburstState)}else s==="graph"||s==="sankey"?compatGraphFocus(o):s==="map"&&(o.mapType&&!o.map&&(o.map=o.mapType),o.mapLocation&&defaults(o,o.mapLocation));o.hoverAnimation!=null&&(o.emphasis=o.emphasis||{},o.emphasis&&o.emphasis.scale==null&&(o.emphasis.scale=o.hoverAnimation)),compatLayoutProperties(o)}}),r.dataRange&&(r.visualMap=r.dataRange),each$c(COMPATITABLE_COMPONENTS,function(o){var s=r[o];s&&(isArray$1(s)||(s=[s]),each$c(s,function(l){compatLayoutProperties(l)}))})}function dataStack$1(r){var t=createHashMap();r.eachSeries(function(o){var s=o.get("stack");if(s){var l=t.get(s)||t.set(s,[]),v=o.getData(),x={stackResultDimension:v.getCalculationInfo("stackResultDimension"),stackedOverDimension:v.getCalculationInfo("stackedOverDimension"),stackedDimension:v.getCalculationInfo("stackedDimension"),stackedByDimension:v.getCalculationInfo("stackedByDimension"),isStackedByIndex:v.getCalculationInfo("isStackedByIndex"),data:v,seriesModel:o};if(!x.stackedDimension||!(x.isStackedByIndex||x.stackedByDimension))return;l.length&&v.setCalculationInfo("stackedOnSeries",l[l.length-1].seriesModel),l.push(x)}}),t.each(calculateStack)}function calculateStack(r){each$c(r,function(t,o){var s=[],l=[NaN,NaN],v=[t.stackResultDimension,t.stackedOverDimension],x=t.data,A=t.isStackedByIndex,w=t.seriesModel.get("stackStrategy")||"samesign";x.modify(v,function(E,C,R){var $=x.get(t.stackedDimension,R);if(isNaN($))return l;var V,z;A?z=x.getRawIndex(R):V=x.get(t.stackedByDimension,R);for(var F=NaN,B=o-1;B>=0;B--){var W=r[B];if(A||(z=W.data.rawIndexOf(W.stackedByDimension,V)),z>=0){var Y=W.data.getByRawIndex(W.stackResultDimension,z);if(w==="all"||w==="positive"&&Y>0||w==="negative"&&Y<0||w==="samesign"&&$>=0&&Y>0||w==="samesign"&&$<=0&&Y<0){$=addSafe($,Y),F=Y;break}}}return s[0]=$,s[1]=F,s})})}var SourceImpl=function(){function r(t){this.data=t.data||(t.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var o=this.dimensionsDefine=t.dimensionsDefine;if(o)for(var s=0;s<o.length;s++){var l=o[s];l.type==null&&guessOrdinal(this,s)===BE_ORDINAL.Must&&(l.type="ordinal")}}return r}();function isSourceInstance(r){return r instanceof SourceImpl}function createSource(r,t,o){o=o||detectSourceFormat(r);var s=t.seriesLayoutBy,l=determineSourceDimensions(r,o,s,t.sourceHeader,t.dimensions),v=new SourceImpl({data:r,sourceFormat:o,seriesLayoutBy:s,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:clone$3(t)});return v}function createSourceFromSeriesDataOption(r){return new SourceImpl({data:r,sourceFormat:isTypedArray(r)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow(r){return new SourceImpl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:clone$3(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function detectSourceFormat(r){var t=SOURCE_FORMAT_UNKNOWN;if(isTypedArray(r))t=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1(r)){r.length===0&&(t=SOURCE_FORMAT_ARRAY_ROWS);for(var o=0,s=r.length;o<s;o++){var l=r[o];if(l!=null){if(isArray$1(l)){t=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(l)){t=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3(r)){for(var v in r)if(hasOwn(r,v)&&isArrayLike(r[v])){t=SOURCE_FORMAT_KEYED_COLUMNS;break}}return t}function determineSourceDimensions(r,t,o,s,l){var v,x;if(!r)return{dimensionsDefine:normalizeDimensionsOption(l),startIndex:x,dimensionsDetectedCount:v};if(t===SOURCE_FORMAT_ARRAY_ROWS){var A=r;s==="auto"||s==null?arrayRowsTravelFirst(function(E){E!=null&&E!=="-"&&(isString(E)?x==null&&(x=1):x=0)},o,A,10):x=isNumber(s)?s:s?1:0,!l&&x===1&&(l=[],arrayRowsTravelFirst(function(E,C){l[C]=E!=null?E+"":""},o,A,1/0)),v=l?l.length:o===SERIES_LAYOUT_BY_ROW?A.length:A[0]?A[0].length:null}else if(t===SOURCE_FORMAT_OBJECT_ROWS)l||(l=objectRowsCollectDimensions(r));else if(t===SOURCE_FORMAT_KEYED_COLUMNS)l||(l=[],each$c(r,function(E,C){l.push(C)}));else if(t===SOURCE_FORMAT_ORIGINAL){var w=getDataItemValue(r[0]);v=isArray$1(w)&&w.length||1}return{startIndex:x,dimensionsDefine:normalizeDimensionsOption(l),dimensionsDetectedCount:v}}function objectRowsCollectDimensions(r){for(var t=0,o;t<r.length&&!(o=r[t++]););if(o)return keys(o)}function normalizeDimensionsOption(r){if(r){var t=createHashMap();return map$2(r,function(o,s){o=isObject$3(o)?o:{name:o};var l={name:o.name,displayName:o.displayName,type:o.type};if(l.name==null)return l;l.name+="",l.displayName==null&&(l.displayName=l.name);var v=t.get(l.name);return v?l.name+="-"+v.count++:t.set(l.name,{count:1}),l})}}function arrayRowsTravelFirst(r,t,o,s){if(t===SERIES_LAYOUT_BY_ROW)for(var l=0;l<o.length&&l<s;l++)r(o[l]?o[l][0]:null,l);else for(var v=o[0]||[],l=0;l<v.length&&l<s;l++)r(v[l],l)}function shouldRetrieveDataByName(r){var t=r.sourceFormat;return t===SOURCE_FORMAT_OBJECT_ROWS||t===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function r(t,o){var s=isSourceInstance(t)?t:createSourceFromSeriesDataOption(t);this._source=s;var l=this._data=s.data;s.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=o,this._data=l),mountMethods(this,l,s)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,o){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;mountMethods=function(x,A,w){var E=w.sourceFormat,C=w.seriesLayoutBy,R=w.startIndex,$=w.dimensionsDefine,V=providerMethods[getMethodMapKey(E,C)];if(extend(x,V),E===SOURCE_FORMAT_TYPED_ARRAY)x.getItem=o,x.count=l,x.fillStorage=s;else{var z=getRawSourceItemGetter(E,C);x.getItem=bind$1(z,null,A,R,$);var F=getRawSourceDataCounter(E,C);x.count=bind$1(F,null,A,R,$)}};var o=function(x,A){x=x-this._offset,A=A||[];for(var w=this._data,E=this._dimSize,C=E*x,R=0;R<E;R++)A[R]=w[C+R];return A},s=function(x,A,w,E){for(var C=this._data,R=this._dimSize,$=0;$<R;$++){for(var V=E[$],z=V[0]==null?1/0:V[0],F=V[1]==null?-1/0:V[1],B=A-x,W=w[$],Y=0;Y<B;Y++){var Z=C[Y*R+$];W[x+Y]=Z,Z<z&&(z=Z),Z>F&&(F=Z)}V[0]=z,V[1]=F}},l=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(t={},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:v},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:v},t[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(x){var A=this._data;each$c(x,function(w,E){for(var C=A[E]||(A[E]=[]),R=0;R<(w||[]).length;R++)C.push(w[R])})}},t[SOURCE_FORMAT_ORIGINAL]={appendData:v},t[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(x){this._data=x},clean:function(){this._offset+=this.count(),this._data=null}},t);function v(x){for(var A=0;A<x.length;A++)this._data.push(x[A])}}(),r}(),getItemSimply=function(r,t,o,s){return r[s]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(r,t,o,s){return r[s+t]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(r,t,o,s,l){s+=t;for(var v=l||[],x=r,A=0;A<x.length;A++){var w=x[A];v[A]=w?w[s]:null}return v},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(r,t,o,s,l){for(var v=l||[],x=0;x<o.length;x++){var A=o[x].name,w=r[A];v[x]=w?w[s]:null}return v},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter(r,t){var o=rawSourceItemGetterMap[getMethodMapKey(r,t)];return o}var countSimply=function(r,t,o){return r.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(r,t,o){return Math.max(0,r.length-t)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(r,t,o){var s=r[0];return s?Math.max(0,s.length-t):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function(r,t,o){var s=o[0].name,l=r[s];return l?l.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter(r,t){var o=rawSourceDataCounterMap[getMethodMapKey(r,t)];return o}var getRawValueSimply=function(r,t,o){return r[t]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function(r,t,o){return r[o]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function(r,t,o){var s=getDataItemValue(r);return s instanceof Array?s[t]:s},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter(r){var t=rawSourceValueGetterMap[r];return t}function getMethodMapKey(r,t){return r===SOURCE_FORMAT_ARRAY_ROWS?r+"_"+t:r}function retrieveRawValue(r,t,o){if(r){var s=r.getRawDataItem(t);if(s!=null){var l=r.getStore(),v=l.getSource().sourceFormat;if(o!=null){var x=r.getDimensionIndex(o),A=l.getDimensionProperty(x);return getRawSourceValueGetter(v)(s,x,A)}else{var w=s;return v===SOURCE_FORMAT_ORIGINAL&&(w=getDataItemValue(s)),w}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function r(){}return r.prototype.getDataParams=function(t,o){var s=this.getData(o),l=this.getRawValue(t,o),v=s.getRawIndex(t),x=s.getName(t),A=s.getRawDataItem(t),w=s.getItemVisual(t,"style"),E=w&&w[s.getItemVisual(t,"drawType")||"fill"],C=w&&w.stroke,R=this.mainType,$=R==="series",V=s.userOutput&&s.userOutput.get();return{componentType:R,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:$?this.subType:null,seriesIndex:this.seriesIndex,seriesId:$?this.id:null,seriesName:$?this.name:null,name:x,dataIndex:v,data:A,dataType:o,value:l,color:E,borderColor:C,dimensionNames:V?V.fullDimensions:null,encode:V?V.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,o,s,l,v,x){o=o||"normal";var A=this.getData(s),w=this.getDataParams(t,s);if(x&&(w.value=x.interpolatedValue),l!=null&&isArray$1(w.value)&&(w.value=w.value[l]),!v){var E=A.getItemModel(t);v=E.get(o==="normal"?["label","formatter"]:[o,"label","formatter"])}if(isFunction(v))return w.status=o,w.dimensionIndex=l,v(w);if(isString(v)){var C=formatTpl(v,w);return C.replace(DIMENSION_LABEL_REG,function(R,$){var V=$.length,z=$;z.charAt(0)==="["&&z.charAt(V-1)==="]"&&(z=+z.slice(1,V-1));var F=retrieveRawValue(A,t,z);if(x&&isArray$1(x.interpolatedValue)){var B=A.getDimensionIndex(z);B>=0&&(F=x.interpolatedValue[B])}return F!=null?F+"":""})}},r.prototype.getRawValue=function(t,o){return retrieveRawValue(this.getData(o),t)},r.prototype.formatTooltip=function(t,o,s){},r}();function normalizeTooltipFormatResult(r){var t,o;return isObject$3(r)?r.type&&(o=r):t=r,{text:t,frag:o}}function createTask(r){return new Task(r)}var Task=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var o=this._upstream,s=t&&t.skip;if(this._dirty&&o){var l=this.context;l.data=l.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var v;this._plan&&!s&&(v=this._plan(this.context));var x=C(this._modBy),A=this._modDataCount||0,w=C(t&&t.modBy),E=t&&t.modDataCount||0;(x!==w||A!==E)&&(v="reset");function C(Y){return!(Y>=1)&&(Y=1),Y}var R;(this._dirty||v==="reset")&&(this._dirty=!1,R=this._doReset(s)),this._modBy=w,this._modDataCount=E;var $=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var V=this._dueIndex,z=Math.min($!=null?this._dueIndex+$:1/0,this._dueEnd);if(!s&&(R||V<z)){var F=this._progress;if(isArray$1(F))for(var B=0;B<F.length;B++)this._doProgress(F[B],V,z,w,E);else this._doProgress(F,V,z,w,E)}this._dueIndex=z;var W=this._settedOutputEnd!=null?this._settedOutputEnd:z;this._outputDueEnd=W}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,o,s,l,v){iterator.reset(o,s,l,v),this._callingProgress=t,this._callingProgress({start:o,end:s,count:s-o,next:iterator.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var o,s;!t&&this._reset&&(o=this._reset(this.context),o&&o.progress&&(s=o.forceFirstProgress,o=o.progress),isArray$1(o)&&!o.length&&(o=null)),this._progress=o,this._modBy=this._modDataCount=null;var l=this._downstream;return l&&l.dirty(),s},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),iterator=function(){var r,t,o,s,l,v={reset:function(w,E,C,R){t=w,r=E,o=C,s=R,l=Math.ceil(s/o),v.next=o>1&&s>0?A:x}};return v;function x(){return t<r?t++:null}function A(){var w=t%l*o+Math.ceil(t/l),E=t>=r?null:w<s?w:t;return t++,E}}();function parseDataValue(r,t){var o=t&&t.type;return o==="ordinal"?r:(o==="time"&&!isNumber(r)&&r!=null&&r!=="-"&&(r=+parseDate(r)),r==null||r===""?NaN:+r)}createHashMap({number:function(r){return parseFloat(r)},time:function(r){return+parseDate(r)},trim:function(r){return isString(r)?trim$1(r):r}});var SortOrderComparator=function(){function r(t,o){var s=t==="desc";this._resultLT=s?1:-1,o==null&&(o=s?"min":"max"),this._incomparable=o==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,o){var s=isNumber(t)?t:numericToNumber(t),l=isNumber(o)?o:numericToNumber(o),v=isNaN(s),x=isNaN(l);if(v&&(s=this._incomparable),x&&(l=this._incomparable),v&&x){var A=isString(t),w=isString(o);A&&(s=w?t:0),w&&(l=A?o:0)}return s<l?this._resultLT:s>l?-this._resultLT:0},r}(),ExternalSource=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,o){},r.prototype.retrieveValueFromItem=function(t,o){},r.prototype.convertValue=function(t,o){return parseDataValue(t,o)},r}();function createExternalSource(r,t){var o=new ExternalSource,s=r.data,l=o.sourceFormat=r.sourceFormat,v=r.startIndex,x="";r.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(x);var A=[],w={},E=r.dimensionsDefine;if(E)each$c(E,function(F,B){var W=F.name,Y={index:B,name:W,displayName:F.displayName};if(A.push(Y),W!=null){var Z="";hasOwn(w,W)&&throwError(Z),w[W]=Y}});else for(var C=0;C<r.dimensionsDetectedCount;C++)A.push({index:C});var R=getRawSourceItemGetter(l,SERIES_LAYOUT_BY_COLUMN);t.__isBuiltIn&&(o.getRawDataItem=function(F){return R(s,v,A,F)},o.getRawData=bind$1(getRawData,null,r)),o.cloneRawData=bind$1(cloneRawData,null,r);var $=getRawSourceDataCounter(l,SERIES_LAYOUT_BY_COLUMN);o.count=bind$1($,null,s,v,A);var V=getRawSourceValueGetter(l);o.retrieveValue=function(F,B){var W=R(s,v,A,F);return z(W,B)};var z=o.retrieveValueFromItem=function(F,B){if(F!=null){var W=A[B];if(W)return V(F,B,W.name)}};return o.getDimensionInfo=bind$1(getDimensionInfo,null,A,w),o.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,A),o}function getRawData(r){var t=r.sourceFormat;if(!isSupportedSourceFormat(t)){var o="";throwError(o)}return r.data}function cloneRawData(r){var t=r.sourceFormat,o=r.data;if(!isSupportedSourceFormat(t)){var s="";throwError(s)}if(t===SOURCE_FORMAT_ARRAY_ROWS){for(var l=[],v=0,x=o.length;v<x;v++)l.push(o[v].slice());return l}else if(t===SOURCE_FORMAT_OBJECT_ROWS){for(var l=[],v=0,x=o.length;v<x;v++)l.push(extend({},o[v]));return l}}function getDimensionInfo(r,t,o){if(o!=null){if(isNumber(o)||!isNaN(o)&&!hasOwn(t,o))return r[o];if(hasOwn(t,o))return t[o]}}function cloneAllDimensionInfo(r){return clone$3(r)}var externalTransformMap=createHashMap();function registerExternalTransform(r){r=clone$3(r);var t=r.type,o="";t||throwError(o);var s=t.split(":");s.length!==2&&throwError(o);var l=!1;s[0]==="echarts"&&(t=s[1],l=!0),r.__isBuiltIn=l,externalTransformMap.set(t,r)}function applyDataTransform(r,t,o){var s=normalizeToArray(r),l=s.length,v="";l||throwError(v);for(var x=0,A=l;x<A;x++){var w=s[x];t=applySingleDataTransform(w,t),x!==A-1&&(t.length=Math.max(t.length,1))}return t}function applySingleDataTransform(r,t,o,s){var l="";t.length||throwError(l),isObject$3(r)||throwError(l);var v=r.type,x=externalTransformMap.get(v);x||throwError(l);var A=map$2(t,function(E){return createExternalSource(E,x)}),w=normalizeToArray(x.transform({upstream:A[0],upstreamList:A,config:clone$3(r.config)}));return map$2(w,function(E,C){var R="";isObject$3(E)||throwError(R),E.data||throwError(R);var $=detectSourceFormat(E.data);isSupportedSourceFormat($)||throwError(R);var V,z=t[0];if(z&&C===0&&!E.dimensions){var F=z.startIndex;F&&(E.data=z.data.slice(0,F).concat(E.data)),V={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:F,dimensions:z.metaRawOption.dimensions}}else V={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:E.dimensions};return createSource(E.data,V,null)})}function isSupportedSourceFormat(r){return r===SOURCE_FORMAT_ARRAY_ROWS||r===SOURCE_FORMAT_OBJECT_ROWS}var UNDEFINED="undefined",CtorUint32Array=typeof Uint32Array===UNDEFINED?Array:Uint32Array,CtorUint16Array=typeof Uint16Array===UNDEFINED?Array:Uint16Array,CtorInt32Array$1=typeof Int32Array===UNDEFINED?Array:Int32Array,CtorFloat64Array=typeof Float64Array===UNDEFINED?Array:Float64Array,dataCtors={float:CtorFloat64Array,int:CtorInt32Array$1,ordinal:Array,number:Array,time:CtorFloat64Array},defaultDimValueGetters;function getIndicesCtor(r){return r>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function prepareStore(r,t,o,s,l){var v=dataCtors[o||"float"];if(l){var x=r[t],A=x&&x.length;if(A!==s){for(var w=new v(s),E=0;E<A;E++)w[E]=x[E];r[t]=w}}else r[t]=new v(s)}var DataStore=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return r.prototype.initData=function(t,o,s){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var l=t.getSource(),v=this.defaultDimValueGetter=defaultDimValueGetters[l.sourceFormat];this._dimValueGetter=s||v,this._rawExtent=[],shouldRetrieveDataByName(l),this._dimensions=map$2(o,function(x){return{type:x.type,property:x.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,o){var s=this._calcDimNameToIdx,l=this._dimensions,v=s.get(t);if(v!=null){if(l[v].type===o)return v}else v=l.length;return l[v]={type:o},s.set(t,v),this._chunks[v]=new dataCtors[o||"float"](this._rawCount),this._rawExtent[v]=getInitialExtent(),v},r.prototype.collectOrdinalMeta=function(t,o){var s=this._chunks[t],l=this._dimensions[t],v=this._rawExtent,x=l.ordinalOffset||0,A=s.length;x===0&&(v[t]=getInitialExtent());for(var w=v[t],E=x;E<A;E++){var C=s[E]=o.parseAndCollect(s[E]);isNaN(C)||(w[0]=Math.min(C,w[0]),w[1]=Math.max(C,w[1]))}l.ordinalMeta=o,l.ordinalOffset=A,l.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var o=this._dimensions[t],s=o.ordinalMeta;return s},r.prototype.getDimensionProperty=function(t){var o=this._dimensions[t];return o&&o.property},r.prototype.appendData=function(t){var o=this._provider,s=this.count();o.appendData(t);var l=o.count();return o.persistent||(l+=s),s<l&&this._initDataFromProvider(s,l,!0),[s,l]},r.prototype.appendValues=function(t,o){for(var s=this._chunks,l=this._dimensions,v=l.length,x=this._rawExtent,A=this.count(),w=A+Math.max(t.length,o||0),E=0;E<v;E++){var C=l[E];prepareStore(s,E,C.type,w,!0)}for(var R=[],$=A;$<w;$++)for(var V=$-A,z=0;z<v;z++){var C=l[z],F=defaultDimValueGetters.arrayRows.call(this,t[V]||R,C.property,V,z);s[z][$]=F;var B=x[z];F<B[0]&&(B[0]=F),F>B[1]&&(B[1]=F)}return this._rawCount=this._count=w,{start:A,end:w}},r.prototype._initDataFromProvider=function(t,o,s){for(var l=this._provider,v=this._chunks,x=this._dimensions,A=x.length,w=this._rawExtent,E=map$2(x,function(Y){return Y.property}),C=0;C<A;C++){var R=x[C];w[C]||(w[C]=getInitialExtent()),prepareStore(v,C,R.type,o,s)}if(l.fillStorage)l.fillStorage(t,o,v,w);else for(var $=[],V=t;V<o;V++){$=l.getItem(V,$);for(var z=0;z<A;z++){var F=v[z],B=this._dimValueGetter($,E[z],V,z);F[V]=B;var W=w[z];B<W[0]&&(W[0]=B),B>W[1]&&(W[1]=B)}}!l.persistent&&l.clean&&l.clean(),this._rawCount=this._count=o,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,o){if(!(o>=0&&o<this._count))return NaN;var s=this._chunks[t];return s?s[this.getRawIndex(o)]:NaN},r.prototype.getValues=function(t,o){var s=[],l=[];if(o==null){o=t,t=[];for(var v=0;v<this._dimensions.length;v++)l.push(v)}else l=t;for(var v=0,x=l.length;v<x;v++)s.push(this.get(l[v],o));return s},r.prototype.getByRawIndex=function(t,o){if(!(o>=0&&o<this._rawCount))return NaN;var s=this._chunks[t];return s?s[o]:NaN},r.prototype.getSum=function(t){var o=this._chunks[t],s=0;if(o)for(var l=0,v=this.count();l<v;l++){var x=this.get(t,l);isNaN(x)||(s+=x)}return s},r.prototype.getMedian=function(t){var o=[];this.each([t],function(v){isNaN(v)||o.push(v)});var s=o.sort(function(v,x){return v-x}),l=this.count();return l===0?0:l%2===1?s[(l-1)/2]:(s[l/2]+s[l/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var o=this._indices,s=o[t];if(s!=null&&s<this._count&&s===t)return t;for(var l=0,v=this._count-1;l<=v;){var x=(l+v)/2|0;if(o[x]<t)l=x+1;else if(o[x]>t)v=x-1;else return x}return-1},r.prototype.indicesOfNearest=function(t,o,s){var l=this._chunks,v=l[t],x=[];if(!v)return x;s==null&&(s=1/0);for(var A=1/0,w=-1,E=0,C=0,R=this.count();C<R;C++){var $=this.getRawIndex(C),V=o-v[$],z=Math.abs(V);z<=s&&((z<A||z===A&&V>=0&&w<0)&&(A=z,w=V,E=0),V===w&&(x[E++]=C))}return x.length=E,x},r.prototype.getIndices=function(){var t,o=this._indices;if(o){var s=o.constructor,l=this._count;if(s===Array){t=new s(l);for(var v=0;v<l;v++)t[v]=o[v]}else t=new s(o.buffer,0,l)}else{var s=getIndicesCtor(this._rawCount);t=new s(this.count());for(var v=0;v<t.length;v++)t[v]=v}return t},r.prototype.filter=function(t,o){if(!this._count)return this;for(var s=this.clone(),l=s.count(),v=getIndicesCtor(s._rawCount),x=new v(l),A=[],w=t.length,E=0,C=t[0],R=s._chunks,$=0;$<l;$++){var V=void 0,z=s.getRawIndex($);if(w===0)V=o($);else if(w===1){var F=R[C][z];V=o(F,$)}else{for(var B=0;B<w;B++)A[B]=R[t[B]][z];A[B]=$,V=o.apply(null,A)}V&&(x[E++]=z)}return E<l&&(s._indices=x),s._count=E,s._extent=[],s._updateGetRawIdx(),s},r.prototype.selectRange=function(t){var o=this.clone(),s=o._count;if(!s)return this;var l=keys(t),v=l.length;if(!v)return this;var x=o.count(),A=getIndicesCtor(o._rawCount),w=new A(x),E=0,C=l[0],R=t[C][0],$=t[C][1],V=o._chunks,z=!1;if(!o._indices){var F=0;if(v===1){for(var B=V[l[0]],W=0;W<s;W++){var Y=B[W];(Y>=R&&Y<=$||isNaN(Y))&&(w[E++]=F),F++}z=!0}else if(v===2){for(var B=V[l[0]],Z=V[l[1]],X=t[l[1]][0],ae=t[l[1]][1],W=0;W<s;W++){var Y=B[W],ie=Z[W];(Y>=R&&Y<=$||isNaN(Y))&&(ie>=X&&ie<=ae||isNaN(ie))&&(w[E++]=F),F++}z=!0}}if(!z)if(v===1)for(var W=0;W<x;W++){var oe=o.getRawIndex(W),Y=V[l[0]][oe];(Y>=R&&Y<=$||isNaN(Y))&&(w[E++]=oe)}else for(var W=0;W<x;W++){for(var le=!0,oe=o.getRawIndex(W),ve=0;ve<v;ve++){var xe=l[ve],Y=V[xe][oe];(Y<t[xe][0]||Y>t[xe][1])&&(le=!1)}le&&(w[E++]=o.getRawIndex(W))}return E<x&&(o._indices=w),o._count=E,o._extent=[],o._updateGetRawIdx(),o},r.prototype.map=function(t,o){var s=this.clone(t);return this._updateDims(s,t,o),s},r.prototype.modify=function(t,o){this._updateDims(this,t,o)},r.prototype._updateDims=function(t,o,s){for(var l=t._chunks,v=[],x=o.length,A=t.count(),w=[],E=t._rawExtent,C=0;C<o.length;C++)E[o[C]]=getInitialExtent();for(var R=0;R<A;R++){for(var $=t.getRawIndex(R),V=0;V<x;V++)w[V]=l[o[V]][$];w[x]=R;var z=s&&s.apply(null,w);if(z!=null){typeof z!="object"&&(v[0]=z,z=v);for(var C=0;C<z.length;C++){var F=o[C],B=z[C],W=E[F],Y=l[F];Y&&(Y[$]=B),B<W[0]&&(W[0]=B),B>W[1]&&(W[1]=B)}}}},r.prototype.lttbDownSample=function(t,o){var s=this.clone([t],!0),l=s._chunks,v=l[t],x=this.count(),A=0,w=Math.floor(1/o),E=this.getRawIndex(0),C,R,$,V=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(x/w)+2)*2,x));V[A++]=E;for(var z=1;z<x-1;z+=w){for(var F=Math.min(z+w,x-1),B=Math.min(z+w*2,x),W=(B+F)/2,Y=0,Z=F;Z<B;Z++){var X=this.getRawIndex(Z),ae=v[X];isNaN(ae)||(Y+=ae)}Y/=B-F;var ie=z,oe=Math.min(z+w,x),le=z-1,ve=v[E];C=-1,$=ie;for(var xe=-1,_e=0,Z=ie;Z<oe;Z++){var X=this.getRawIndex(Z),ae=v[X];if(isNaN(ae)){_e++,xe<0&&(xe=X);continue}R=Math.abs((le-W)*(ae-ve)-(le-Z)*(Y-ve)),R>C&&(C=R,$=X)}_e>0&&_e<oe-ie&&(V[A++]=Math.min(xe,$),$=Math.max(xe,$)),V[A++]=$,E=$}return V[A++]=this.getRawIndex(x-1),s._count=A,s._indices=V,s.getRawIndex=this._getRawIdx,s},r.prototype.downSample=function(t,o,s,l){for(var v=this.clone([t],!0),x=v._chunks,A=[],w=Math.floor(1/o),E=x[t],C=this.count(),R=v._rawExtent[t]=getInitialExtent(),$=new(getIndicesCtor(this._rawCount))(Math.ceil(C/w)),V=0,z=0;z<C;z+=w){w>C-z&&(w=C-z,A.length=w);for(var F=0;F<w;F++){var B=this.getRawIndex(z+F);A[F]=E[B]}var W=s(A),Y=this.getRawIndex(Math.min(z+l(A,W)||0,C-1));E[Y]=W,W<R[0]&&(R[0]=W),W>R[1]&&(R[1]=W),$[V++]=Y}return v._count=V,v._indices=$,v._updateGetRawIdx(),v},r.prototype.each=function(t,o){if(this._count)for(var s=t.length,l=this._chunks,v=0,x=this.count();v<x;v++){var A=this.getRawIndex(v);switch(s){case 0:o(v);break;case 1:o(l[t[0]][A],v);break;case 2:o(l[t[0]][A],l[t[1]][A],v);break;default:for(var w=0,E=[];w<s;w++)E[w]=l[t[w]][A];E[w]=v,o.apply(null,E)}}},r.prototype.getDataExtent=function(t){var o=this._chunks[t],s=getInitialExtent();if(!o)return s;var l=this.count(),v=!this._indices,x;if(v)return this._rawExtent[t].slice();if(x=this._extent[t],x)return x.slice();x=s;for(var A=x[0],w=x[1],E=0;E<l;E++){var C=this.getRawIndex(E),R=o[C];R<A&&(A=R),R>w&&(w=R)}return x=[A,w],this._extent[t]=x,x},r.prototype.getRawDataItem=function(t){var o=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(o);for(var s=[],l=this._chunks,v=0;v<l.length;v++)s.push(l[v][o]);return s},r.prototype.clone=function(t,o){var s=new r,l=this._chunks,v=t&&reduce(t,function(A,w){return A[w]=!0,A},{});if(v)for(var x=0;x<l.length;x++)s._chunks[x]=v[x]?cloneChunk(l[x]):l[x];else s._chunks=l;return this._copyCommonProps(s),o||(s._indices=this._cloneIndices()),s._updateGetRawIdx(),s},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=clone$3(this._extent),t._rawExtent=clone$3(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,o=void 0;if(t===Array){var s=this._indices.length;o=new t(s);for(var l=0;l<s;l++)o[l]=this._indices[l]}else o=new t(this._indices);return o}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(o,s,l,v){return parseDataValue(o[v],this._dimensions[v])}defaultDimValueGetters={arrayRows:t,objectRows:function(o,s,l,v){return parseDataValue(o[s],this._dimensions[v])},keyedColumns:t,original:function(o,s,l,v){var x=o&&(o.value==null?o:o.value);return parseDataValue(x instanceof Array?x[v]:x,this._dimensions[v])},typedArray:function(o,s,l,v){return o[v]}}}(),r}();const DataStore$1=DataStore;var SourceManager=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,o){this._sourceList=t,this._upstreamSignList=o,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,o=this._getUpstreamSourceManagers(),s=!!o.length,l,v;if(isSeries(t)){var x=t,A=void 0,w=void 0,E=void 0;if(s){var C=o[0];C.prepareSource(),E=C.getSource(),A=E.data,w=E.sourceFormat,v=[C._getVersionSign()]}else A=x.get("data",!0),w=isTypedArray(A)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,v=[];var R=this._getSourceMetaRawOption()||{},$=E&&E.metaRawOption||{},V=retrieve2(R.seriesLayoutBy,$.seriesLayoutBy)||null,z=retrieve2(R.sourceHeader,$.sourceHeader),F=retrieve2(R.dimensions,$.dimensions),B=V!==$.seriesLayoutBy||!!z!=!!$.sourceHeader||F;l=B?[createSource(A,{seriesLayoutBy:V,sourceHeader:z,dimensions:F},w)]:[]}else{var W=t;if(s){var Y=this._applyTransform(o);l=Y.sourceList,v=Y.upstreamSignList}else{var Z=W.get("source",!0);l=[createSource(Z,this._getSourceMetaRawOption(),null)],v=[]}}this._setLocalSource(l,v)},r.prototype._applyTransform=function(t){var o=this._sourceHost,s=o.get("transform",!0),l=o.get("fromTransformResult",!0);if(l!=null){var v="";t.length!==1&&doThrow(v)}var x,A=[],w=[];return each$c(t,function(E){E.prepareSource();var C=E.getSource(l||0),R="";l!=null&&!C&&doThrow(R),A.push(C),w.push(E._getVersionSign())}),s?x=applyDataTransform(s,A,{datasetIndex:o.componentIndex}):l!=null&&(x=[cloneSourceShallow(A[0])]),{sourceList:x,upstreamSignList:w}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),o=0;o<t.length;o++){var s=t[o];if(s._isDirty()||this._upstreamSignList[o]!==s._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var o=this._sourceList[t];if(!o){var s=this._getUpstreamSourceManagers();return s[0]&&s[0].getSource(t)}return o},r.prototype.getSharedDataStore=function(t){var o=t.makeStoreSchema();return this._innerGetDataStore(o.dimensions,t.source,o.hash)},r.prototype._innerGetDataStore=function(t,o,s){var l=0,v=this._storeList,x=v[l];x||(x=v[l]={});var A=x[s];if(!A){var w=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&w?A=w._innerGetDataStore(t,o,s):(A=new DataStore$1,A.initData(new DefaultDataProvider(o,t.length),t)),x[s]=A}return A},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(isSeries(t)){var o=querySeriesUpstreamDatasetModel(t);return o?[o.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(t),function(s){return s.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,o,s,l;if(isSeries(t))o=t.get("seriesLayoutBy",!0),s=t.get("sourceHeader",!0),l=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var v=t;o=v.get("seriesLayoutBy",!0),s=v.get("sourceHeader",!0),l=v.get("dimensions",!0)}return{seriesLayoutBy:o,sourceHeader:s,dimensions:l}},r}();function isSeries(r){return r.mainType==="series"}function doThrow(r){throw new Error(r)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle(r,t){var o=r.color||"#6e7079",s=r.fontSize||12,l=r.fontWeight||"400",v=r.color||"#464646",x=r.fontSize||14,A=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+encodeHTML(s+"")+"px;color:"+encodeHTML(o)+";font-weight:"+encodeHTML(l+""),valueStyle:"font-size:"+encodeHTML(x+"")+"px;color:"+encodeHTML(v)+";font-weight:"+encodeHTML(A+"")}:{nameStyle:{fontSize:s,fill:o,fontWeight:l},valueStyle:{fontSize:x,fill:v,fontWeight:A}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
`,`
`,`
`];function createTooltipMarkup(r,t){return t.type=r,t}function isSectionFragment(r){return r.type==="section"}function getBuilder(r){return isSectionFragment(r)?buildSection:buildNameValue}function getBlockGapLevel(r){if(isSectionFragment(r)){var t=0,o=r.blocks.length,s=o>1||o>0&&!r.noHeader;return each$c(r.blocks,function(l){var v=getBlockGapLevel(l);v>=t&&(t=v+ +(s&&(!v||isSectionFragment(l)&&!l.noHeader)))}),t}return 0}function buildSection(r,t,o,s){var l=t.noHeader,v=getGap(getBlockGapLevel(t)),x=[],A=t.blocks||[];assert(!A||isArray$1(A)),A=A||[];var w=r.orderMode;if(t.sortBlocks&&w){A=A.slice();var E={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(E,w)){var C=new SortOrderComparator(E[w],null);A.sort(function(z,F){return C.evaluate(z.sortParam,F.sortParam)})}else w==="seriesDesc"&&A.reverse()}each$c(A,function(z,F){var B=t.valueFormatter,W=getBuilder(z)(B?extend(extend({},r),{valueFormatter:B}):r,z,F>0?v.html:0,s);W!=null&&x.push(W)});var R=r.renderMode==="richText"?x.join(v.richText):wrapBlockHTML(x.join(""),l?o:v.html);if(l)return R;var $=makeValueReadable(t.header,"ordinal",r.useUTC),V=getTooltipTextStyle(s,r.renderMode).nameStyle;return r.renderMode==="richText"?wrapInlineNameRichText(r,$,V)+v.richText+R:wrapBlockHTML('<div style="'+V+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML($)+"</div>"+R,o)}function buildNameValue(r,t,o,s){var l=r.renderMode,v=t.noName,x=t.noValue,A=!t.markerType,w=t.name,E=r.useUTC,C=t.valueFormatter||r.valueFormatter||function(X){return X=isArray$1(X)?X:[X],map$2(X,function(ae,ie){return makeValueReadable(ae,isArray$1(V)?V[ie]:V,E)})};if(!(v&&x)){var R=A?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",l),$=v?"":makeValueReadable(w,"ordinal",E),V=t.valueType,z=x?[]:C(t.value),F=!A||!v,B=!A&&v,W=getTooltipTextStyle(s,l),Y=W.nameStyle,Z=W.valueStyle;return l==="richText"?(A?"":R)+(v?"":wrapInlineNameRichText(r,$,Y))+(x?"":wrapInlineValueRichText(r,z,F,B,Z)):wrapBlockHTML((A?"":R)+(v?"":wrapInlineNameHTML($,!A,Y))+(x?"":wrapInlineValueHTML(z,F,B,Z)),o)}}function buildTooltipMarkup(r,t,o,s,l,v){if(r){var x=getBuilder(r),A={useUTC:l,renderMode:o,orderMode:s,markupStyleCreator:t,valueFormatter:r.valueFormatter};return x(A,r,0,v)}}function getGap(r){return{html:HTML_GAPS[r],richText:RICH_TEXT_GAPS[r]}}function wrapBlockHTML(r,t){var o='<div style="clear:both"></div>',s="margin: "+t+"px 0 0";return'<div style="'+s+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+r+o+"</div>"}function wrapInlineNameHTML(r,t,o){var s=t?"margin-left:2px":"";return'<span style="'+o+";"+s+'">'+encodeHTML(r)+"</span>"}function wrapInlineValueHTML(r,t,o,s){var l=o?"10px":"20px",v=t?"float:right;margin-left:"+l:"";return r=isArray$1(r)?r:[r],'<span style="'+v+";"+s+'">'+map$2(r,function(x){return encodeHTML(x)}).join("&nbsp;&nbsp;")+"</span>"}function wrapInlineNameRichText(r,t,o){return r.markupStyleCreator.wrapRichTextStyle(t,o)}function wrapInlineValueRichText(r,t,o,s,l){var v=[l],x=s?10:20;return o&&v.push({padding:[0,0,0,x],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(isArray$1(t)?t.join(" "):t,v)}function retrieveVisualColorForTooltipMarker(r,t){var o=r.getData().getItemVisual(t,"style"),s=o[r.visualDrawType];return convertToColorString(s)}function getPaddingFromTooltipModel(r,t){var o=r.get("padding");return o??(t==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function r(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,o,s){var l=s==="richText"?this._generateStyleName():null,v=getTooltipMarker({color:o,type:t,renderMode:s,markerId:l});return isString(v)?v:(this.richTextStyles[l]=v.style,v.content)},r.prototype.wrapRichTextStyle=function(t,o){var s={};isArray$1(o)?each$c(o,function(v){return extend(s,v)}):extend(s,o);var l=this._generateStyleName();return this.richTextStyles[l]=s,"{"+l+"|"+t+"}"},r}();function defaultSeriesFormatTooltip(r){var t=r.series,o=r.dataIndex,s=r.multipleSeries,l=t.getData(),v=l.mapDimensionsAll("defaultedTooltip"),x=v.length,A=t.getRawValue(o),w=isArray$1(A),E=retrieveVisualColorForTooltipMarker(t,o),C,R,$,V;if(x>1||w&&!x){var z=formatTooltipArrayValue(A,t,o,v,E);C=z.inlineValues,R=z.inlineValueTypes,$=z.blocks,V=z.inlineValues[0]}else if(x){var F=l.getDimensionInfo(v[0]);V=C=retrieveRawValue(l,o,v[0]),R=F.type}else V=C=w?A[0]:A;var B=isNameSpecified(t),W=B&&t.name||"",Y=l.getName(o),Z=s?W:Y;return createTooltipMarkup("section",{header:W,noHeader:s||!B,sortParam:V,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:E,name:Z,noName:!trim$1(Z),value:C,valueType:R})].concat($||[])})}function formatTooltipArrayValue(r,t,o,s,l){var v=t.getData(),x=reduce(r,function(R,$,V){var z=v.getDimensionInfo(V);return R=R||z&&z.tooltip!==!1&&z.displayName!=null},!1),A=[],w=[],E=[];s.length?each$c(s,function(R){C(retrieveRawValue(v,o,R),R)}):each$c(r,C);function C(R,$){var V=v.getDimensionInfo($);!V||V.otherDims.tooltip===!1||(x?E.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:l,name:V.displayName,value:R,valueType:V.type})):(A.push(R),w.push(V.type)))}return{inlineValues:A,inlineValueTypes:w,blocks:E}}var inner$b=makeInner();function getSelectionKey(r,t){return r.getName(t)||r.getId(t)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o._selectedDataIndicesMap={},o}return t.prototype.init=function(o,s,l){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(o,l);var v=inner$b(this).sourceManager=new SourceManager(this);v.prepareSource();var x=this.getInitialData(o,l);wrapData(x,this),this.dataTask.context.data=x,inner$b(this).dataBeforeProcessed=x,autoSeriesName(this),this._initSelectedMapFromData(x)},t.prototype.mergeDefaultAndTheme=function(o,s){var l=fetchLayoutMode(this),v=l?getLayoutParams(o):{},x=this.subType;ComponentModel$1.hasClass(x)&&(x+="Series"),merge(o,s.getTheme().get(this.subType)),merge(o,this.getDefaultOption()),defaultEmphasis(o,"label",["show"]),this.fillDataTextStyle(o.data),l&&mergeLayoutParam(o,v,l)},t.prototype.mergeOption=function(o,s){o=merge(this.option,o,!0),this.fillDataTextStyle(o.data);var l=fetchLayoutMode(this);l&&mergeLayoutParam(this.option,o,l);var v=inner$b(this).sourceManager;v.dirty(),v.prepareSource();var x=this.getInitialData(o,s);wrapData(x,this),this.dataTask.dirty(),this.dataTask.context.data=x,inner$b(this).dataBeforeProcessed=x,autoSeriesName(this),this._initSelectedMapFromData(x)},t.prototype.fillDataTextStyle=function(o){if(o&&!isTypedArray(o))for(var s=["show"],l=0;l<o.length;l++)o[l]&&o[l].label&&defaultEmphasis(o[l],"label",s)},t.prototype.getInitialData=function(o,s){},t.prototype.appendData=function(o){var s=this.getRawData();s.appendData(o.data)},t.prototype.getData=function(o){var s=getCurrentTask(this);if(s){var l=s.context.data;return o==null?l:l.getLinkedData(o)}else return inner$b(this).data},t.prototype.getAllData=function(){var o=this.getData();return o&&o.getLinkedDataAll?o.getLinkedDataAll():[{data:o}]},t.prototype.setData=function(o){var s=getCurrentTask(this);if(s){var l=s.context;l.outputData=o,s!==this.dataTask&&(l.data=o)}inner$b(this).data=o},t.prototype.getEncode=function(){var o=this.get("encode",!0);if(o)return createHashMap(o)},t.prototype.getSourceManager=function(){return inner$b(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var o=this.get("colorBy");return o||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var o=this.coordinateSystem;return o&&o.getBaseAxis&&o.getBaseAxis()},t.prototype.formatTooltip=function(o,s,l){return defaultSeriesFormatTooltip({series:this,dataIndex:o,multipleSeries:s})},t.prototype.isAnimationEnabled=function(){var o=this.ecModel;if(env$1.node&&!(o&&o.ssr))return!1;var s=this.getShallow("animation");return s&&this.getData().count()>this.getShallow("animationThreshold")&&(s=!1),!!s},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(o,s,l){var v=this.ecModel,x=PaletteMixin.prototype.getColorFromPalette.call(this,o,s,l);return x||(x=v.getColorFromPalette(o,s,l)),x},t.prototype.coordDimToDataDim=function(o){return this.getRawData().mapDimensionsAll(o)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(o,s){this._innerSelect(this.getData(s),o)},t.prototype.unselect=function(o,s){var l=this.option.selectedMap;if(l){var v=this.option.selectedMode,x=this.getData(s);if(v==="series"||l==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var A=0;A<o.length;A++){var w=o[A],E=getSelectionKey(x,w);l[E]=!1,this._selectedDataIndicesMap[E]=-1}}},t.prototype.toggleSelect=function(o,s){for(var l=[],v=0;v<o.length;v++)l[0]=o[v],this.isSelected(o[v],s)?this.unselect(l,s):this.select(l,s)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var o=this._selectedDataIndicesMap,s=keys(o),l=[],v=0;v<s.length;v++){var x=o[s[v]];x>=0&&l.push(x)}return l},t.prototype.isSelected=function(o,s){var l=this.option.selectedMap;if(!l)return!1;var v=this.getData(s);return(l==="all"||l[getSelectionKey(v,o)])&&!v.getItemModel(o).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var o=this.option.universalTransition;return o?o===!0?!0:o&&o.enabled:!1},t.prototype._innerSelect=function(o,s){var l,v,x=this.option,A=x.selectedMode,w=s.length;if(!(!A||!w)){if(A==="series")x.selectedMap="all";else if(A==="multiple"){isObject$3(x.selectedMap)||(x.selectedMap={});for(var E=x.selectedMap,C=0;C<w;C++){var R=s[C],$=getSelectionKey(o,R);E[$]=!0,this._selectedDataIndicesMap[$]=o.getRawIndex(R)}}else if(A==="single"||A===!0){var V=s[w-1],$=getSelectionKey(o,V);x.selectedMap=(l={},l[$]=!0,l),this._selectedDataIndicesMap=(v={},v[$]=o.getRawIndex(V),v)}}},t.prototype._initSelectedMapFromData=function(o){if(!this.option.selectedMap){var s=[];o.hasItemOption&&o.each(function(l){var v=o.getRawDataItem(l);v&&v.selected&&s.push(l)}),s.length>0&&this._innerSelect(o,s)}},t.registerClass=function(o){return ComponentModel$1.registerClass(o)},t.protoInitialize=function(){var o=t.prototype;o.type="series.__base__",o.seriesIndex=0,o.ignoreStyleOnData=!1,o.hasSymbolVisual=!1,o.defaultSymbol="circle",o.visualStyleAccessPath="itemStyle",o.visualDrawType="fill"}(),t}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(r){var t=r.name;isNameSpecified(r)||(r.name=getSeriesAutoName(r)||t)}function getSeriesAutoName(r){var t=r.getRawData(),o=t.mapDimensionsAll("seriesName"),s=[];return each$c(o,function(l){var v=t.getDimensionInfo(l);v.displayName&&s.push(v.displayName)}),s.join(" ")}function dataTaskCount(r){return r.model.getRawData().count()}function dataTaskReset(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wrapData(r,t){each$c(concatArray(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(o){r.wrapMethod(o,curry$1(onDataChange,t))})}function onDataChange(r,t){var o=getCurrentTask(r);return o&&o.setOutputEnd((t||this).count()),t}function getCurrentTask(r){var t=(r.ecModel||{}).scheduler,o=t&&t.getPipeline(r.uid);if(o){var s=o.currentTask;if(s){var l=s.agentStubMap;l&&(s=l.get(r.uid))}return s}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function r(){this.group=new Group$3,this.uid=getUID("viewComponent")}return r.prototype.init=function(t,o){},r.prototype.render=function(t,o,s,l){},r.prototype.dispose=function(t,o){},r.prototype.updateView=function(t,o,s,l){},r.prototype.updateLayout=function(t,o,s,l){},r.prototype.updateVisual=function(t,o,s,l){},r.prototype.toggleBlurSeries=function(t,o,s){},r.prototype.eachRendered=function(t){var o=this.group;o&&o.traverse(t)},r}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var r=makeInner();return function(t){var o=r(t),s=t.pipelineContext,l=!!o.large,v=!!o.progressiveRender,x=o.large=!!(s&&s.large),A=o.progressiveRender=!!(s&&s.progressiveRender);return(l!==x||v!==A)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function r(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return r.prototype.init=function(t,o){},r.prototype.render=function(t,o,s,l){},r.prototype.highlight=function(t,o,s,l){var v=t.getData(l&&l.dataType);v&&toggleHighlight(v,l,"emphasis")},r.prototype.downplay=function(t,o,s,l){var v=t.getData(l&&l.dataType);v&&toggleHighlight(v,l,"normal")},r.prototype.remove=function(t,o){this.group.removeAll()},r.prototype.dispose=function(t,o){},r.prototype.updateView=function(t,o,s,l){this.render(t,o,s,l)},r.prototype.updateLayout=function(t,o,s,l){this.render(t,o,s,l)},r.prototype.updateVisual=function(t,o,s,l){this.render(t,o,s,l)},r.prototype.eachRendered=function(t){traverseElements(this.group,t)},r.markUpdateMethod=function(t,o){inner$a(t).updateMethod=o},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function elSetState(r,t,o){r&&isHighDownDispatcher(r)&&(t==="emphasis"?enterEmphasis:leaveEmphasis)(r,o)}function toggleHighlight(r,t,o){var s=queryDataIndex(r,t),l=t&&t.highlightKey!=null?getHighlightDigit(t.highlightKey):null;s!=null?each$c(normalizeToArray(s),function(v){elSetState(r.getItemGraphicEl(v),o,l)}):r.eachItemGraphicEl(function(v){elSetState(v,o,l)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(r){return renderPlanner(r.model)}function renderTaskReset(r){var t=r.model,o=r.ecModel,s=r.api,l=r.payload,v=t.pipelineContext.progressiveRender,x=r.view,A=l&&inner$a(l).updateMethod,w=v?"incrementalPrepareRender":A&&x[A]?A:"render";return w!=="render"&&x[w](t,o,s,l),progressMethodMap[w]}var progressMethodMap={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(r,t,o){var s,l=0,v=0,x=null,A,w,E,C;t=t||0;function R(){v=new Date().getTime(),x=null,r.apply(w,E||[])}var $=function(){for(var V=[],z=0;z<arguments.length;z++)V[z]=arguments[z];s=new Date().getTime(),w=this,E=V;var F=C||t,B=C||o;C=null,A=s-(B?l:v)-F,clearTimeout(x),B?x=setTimeout(R,F):A>=0?R():x=setTimeout(R,-A),l=s};return $.clear=function(){x&&(clearTimeout(x),x=null)},$.debounceNextCall=function(V){C=V},$}function createOrUpdate(r,t,o,s){var l=r[t];if(l){var v=l[ORIGIN_METHOD]||l,x=l[THROTTLE_TYPE],A=l[RATE];if(A!==o||x!==s){if(o==null||!s)return r[t]=v;l=r[t]=throttle(v,o,s==="debounce"),l[ORIGIN_METHOD]=v,l[THROTTLE_TYPE]=s,l[RATE]=o}return l}}function clear$1(r,t){var o=r[t];o&&o[ORIGIN_METHOD]&&(o.clear&&o.clear(),r[t]=o[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(r,t){var o=r.visualStyleMapper||defaultStyleMappers[t];return o||(console.warn("Unknown style type '"+t+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(r,t){var o=r.visualDrawType||defaultColorKey[t];return o||(console.warn("Unknown style type '"+t+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var o=r.getData(),s=r.visualStyleAccessPath||"itemStyle",l=r.getModel(s),v=getStyleMapper(r,s),x=v(l),A=l.getShallow("decal");A&&(o.setVisual("decal",A),A.dirty=!0);var w=getDefaultColorKey(r,s),E=x[w],C=isFunction(E)?E:null,R=x.fill==="auto"||x.stroke==="auto";if(!x[w]||C||R){var $=r.getColorFromPalette(r.name,null,t.getSeriesCount());x[w]||(x[w]=$,o.setVisual("colorFromPalette",!0)),x.fill=x.fill==="auto"||isFunction(x.fill)?$:x.fill,x.stroke=x.stroke==="auto"||isFunction(x.stroke)?$:x.stroke}if(o.setVisual("style",x),o.setVisual("drawType",w),!t.isSeriesFiltered(r)&&C)return o.setVisual("colorFromPalette",!1),{dataEach:function(V,z){var F=r.getDataParams(z),B=extend({},x);B[w]=C(F),V.setItemVisual(z,"style",B)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var o=r.getData(),s=r.visualStyleAccessPath||"itemStyle",l=getStyleMapper(r,s),v=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(x,A){var w=x.getRawDataItem(A);if(w&&w[s]){sharedModel.option=w[s];var E=l(sharedModel),C=x.ensureUniqueItemVisual(A,"style");extend(C,E),sharedModel.option.decal&&(x.setItemVisual(A,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),v in E&&x.setItemVisual(A,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(r){var t=createHashMap();r.eachSeries(function(o){var s=o.getColorBy();if(!o.isColorBySeries()){var l=o.type+"-"+s,v=t.get(l);v||(v={},t.set(l,v)),inner$9(o).scope=v}}),r.eachSeries(function(o){if(!(o.isColorBySeries()||r.isSeriesFiltered(o))){var s=o.getRawData(),l={},v=o.getData(),x=inner$9(o).scope,A=o.visualStyleAccessPath||"itemStyle",w=getDefaultColorKey(o,A);v.each(function(E){var C=v.getRawIndex(E);l[C]=E}),s.each(function(E){var C=l[E],R=v.getItemVisual(C,"colorFromPalette");if(R){var $=v.ensureUniqueItemVisual(C,"style"),V=s.getName(E)||E+"",z=s.count();$[w]=o.getColorFromPalette(V,x,z)}})}})}},PI$1=Math.PI;function defaultLoading(r,t){t=t||{},defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var o=new Group$3,s=new Rect$2({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});o.add(s);var l=new ZRText$1({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),v=new Rect$2({style:{fill:"none"},textContent:l,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});o.add(v);var x;return t.showSpinner&&(x=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),x.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),x.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),o.add(x)),o.resize=function(){var A=l.getBoundingRect().width,w=t.showSpinner?t.spinnerRadius:0,E=(r.getWidth()-w*2-(t.showSpinner&&A?10:0)-A)/2-(t.showSpinner&&A?0:5+A/2)+(t.showSpinner?0:A/2)+(A?0:w),C=r.getHeight()/2;t.showSpinner&&x.setShape({cx:E,cy:C}),v.setShape({x:E-w,y:C-w,width:w*2,height:w*2}),s.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},o.resize(),o}var Scheduler=function(){function r(t,o,s,l){this._stageTaskMap=createHashMap(),this.ecInstance=t,this.api=o,s=this._dataProcessorHandlers=s.slice(),l=this._visualHandlers=l.slice(),this._allHandlers=s.concat(l)}return r.prototype.restoreData=function(t,o){t.restoreData(o),this._stageTaskMap.each(function(s){var l=s.overallTask;l&&l.dirty()})},r.prototype.getPerformArgs=function(t,o){if(t.__pipeline){var s=this._pipelineMap.get(t.__pipeline.id),l=s.context,v=!o&&s.progressiveEnabled&&(!l||l.progressiveRender)&&t.__idxInPipeline>s.blockIndex,x=v?s.step:null,A=l&&l.modDataCount,w=A!=null?Math.ceil(A/x):null;return{step:x,modBy:w,modDataCount:A}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,o){var s=this._pipelineMap.get(t.uid),l=t.getData(),v=l.count(),x=s.progressiveEnabled&&o.incrementalPrepareRender&&v>=s.threshold,A=t.get("large")&&v>=t.get("largeThreshold"),w=t.get("progressiveChunkMode")==="mod"?v:null;t.pipelineContext=s.context={progressiveRender:x,modDataCount:w,large:A}},r.prototype.restorePipelines=function(t){var o=this,s=o._pipelineMap=createHashMap();t.eachSeries(function(l){var v=l.getProgressive(),x=l.uid;s.set(x,{id:x,head:null,tail:null,threshold:l.getProgressiveThreshold(),progressiveEnabled:v&&!(l.preventIncremental&&l.preventIncremental()),blockIndex:-1,step:Math.round(v||700),count:0}),o._pipe(l,l.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,o=this.api.getModel(),s=this.api;each$c(this._allHandlers,function(l){var v=t.get(l.uid)||t.set(l.uid,{}),x="";assert(!(l.reset&&l.overallReset),x),l.reset&&this._createSeriesStageTask(l,v,o,s),l.overallReset&&this._createOverallStageTask(l,v,o,s)},this)},r.prototype.prepareView=function(t,o,s,l){var v=t.renderTask,x=v.context;x.model=o,x.ecModel=s,x.api=l,v.__block=!t.incrementalPrepareRender,this._pipe(o,v)},r.prototype.performDataProcessorTasks=function(t,o){this._performStageTasks(this._dataProcessorHandlers,t,o,{block:!0})},r.prototype.performVisualTasks=function(t,o,s){this._performStageTasks(this._visualHandlers,t,o,s)},r.prototype._performStageTasks=function(t,o,s,l){l=l||{};var v=!1,x=this;each$c(t,function(w,E){if(!(l.visualType&&l.visualType!==w.visualType)){var C=x._stageTaskMap.get(w.uid),R=C.seriesTaskMap,$=C.overallTask;if($){var V,z=$.agentStubMap;z.each(function(B){A(l,B)&&(B.dirty(),V=!0)}),V&&$.dirty(),x.updatePayload($,s);var F=x.getPerformArgs($,l.block);z.each(function(B){B.perform(F)}),$.perform(F)&&(v=!0)}else R&&R.each(function(B,W){A(l,B)&&B.dirty();var Y=x.getPerformArgs(B,l.block);Y.skip=!w.performRawSeries&&o.isSeriesFiltered(B.context.model),x.updatePayload(B,s),B.perform(Y)&&(v=!0)})}});function A(w,E){return w.setDirty&&(!w.dirtyMap||w.dirtyMap.get(E.__pipeline.id))}this.unfinished=v||this.unfinished},r.prototype.performSeriesTasks=function(t){var o;t.eachSeries(function(s){o=s.dataTask.perform()||o}),this.unfinished=o||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var o=t.tail;do{if(o.__block){t.blockIndex=o.__idxInPipeline;break}o=o.getUpstream()}while(o)})},r.prototype.updatePayload=function(t,o){o!=="remain"&&(t.context.payload=o)},r.prototype._createSeriesStageTask=function(t,o,s,l){var v=this,x=o.seriesTaskMap,A=o.seriesTaskMap=createHashMap(),w=t.seriesType,E=t.getTargetSeries;t.createOnAllSeries?s.eachRawSeries(C):w?s.eachRawSeriesByType(w,C):E&&E(s,l).each(C);function C(R){var $=R.uid,V=A.set($,x&&x.get($)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));V.context={model:R,ecModel:s,api:l,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:v},v._pipe(R,V)}},r.prototype._createOverallStageTask=function(t,o,s,l){var v=this,x=o.overallTask=o.overallTask||createTask({reset:overallTaskReset});x.context={ecModel:s,api:l,overallReset:t.overallReset,scheduler:v};var A=x.agentStubMap,w=x.agentStubMap=createHashMap(),E=t.seriesType,C=t.getTargetSeries,R=!0,$=!1,V="";assert(!t.createOnAllSeries,V),E?s.eachRawSeriesByType(E,z):C?C(s,l).each(z):(R=!1,each$c(s.getSeries(),z));function z(F){var B=F.uid,W=w.set(B,A&&A.get(B)||($=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));W.context={model:F,overallProgress:R},W.agent=x,W.__block=R,v._pipe(F,W)}$&&x.dirty()},r.prototype._pipe=function(t,o){var s=t.uid,l=this._pipelineMap.get(s);!l.head&&(l.head=o),l.tail&&l.tail.pipe(o),l.tail=o,o.__idxInPipeline=l.count++,o.__pipeline=l},r.wrapStageHandler=function(t,o){return isFunction(t)&&(t={overallReset:t,seriesType:detectSeriseType(t)}),t.uid=getUID("stageHandler"),o&&(t.visualType=o),t},r}();function overallTaskReset(r){r.overallReset(r.ecModel,r.api,r.payload)}function stubReset(r){return r.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function seriesTaskReset(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=normalizeToArray(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?map$2(t,function(o,s){return makeSeriesTaskProgress(s)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(r){return function(t,o){var s=o.data,l=o.resetDefines[r];if(l&&l.dataEach)for(var v=t.start;v<t.end;v++)l.dataEach(s,v);else l&&l.progress&&l.progress(t,s)}}function seriesTaskCount(r){return r.data.count()}function detectSeriseType(r){seriesType=null;try{r(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function(r){seriesType=r};ecModelMock.eachComponent=function(r){r.mainType==="series"&&r.subType&&(seriesType=r.subType)};function mockMethods(r,t){for(var o in t.prototype)r[o]=noop}const Scheduler$1=Scheduler;var colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]};var contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;const darkTheme=theme;var ECEventProcessor=function(){function r(){}return r.prototype.normalizeQuery=function(t){var o={},s={},l={};if(isString(t)){var v=parseClassType(t);o.mainType=v.main||null,o.subType=v.sub||null}else{var x=["Index","Name","Id"],A={name:1,dataIndex:1,dataType:1};each$c(t,function(w,E){for(var C=!1,R=0;R<x.length;R++){var $=x[R],V=E.lastIndexOf($);if(V>0&&V===E.length-$.length){var z=E.slice(0,V);z!=="data"&&(o.mainType=z,o[$.toLowerCase()]=w,C=!0)}}A.hasOwnProperty(E)&&(s[E]=w,C=!0),C||(l[E]=w)})}return{cptQuery:o,dataQuery:s,otherQuery:l}},r.prototype.filter=function(t,o){var s=this.eventInfo;if(!s)return!0;var l=s.targetEl,v=s.packedEvent,x=s.model,A=s.view;if(!x||!A)return!0;var w=o.cptQuery,E=o.dataQuery;return C(w,x,"mainType")&&C(w,x,"subType")&&C(w,x,"index","componentIndex")&&C(w,x,"name")&&C(w,x,"id")&&C(E,v,"name")&&C(E,v,"dataIndex")&&C(E,v,"dataType")&&(!A.filterForExposedEvent||A.filterForExposedEvent(t,o.otherQuery,l,v));function C(R,$,V,z){return R[V]==null||$[z||V]===R[V]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var o=r.getData();if(r.legendIcon&&o.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var s={},l={},v=!1,x=0;x<SYMBOL_PROPS_WITH_CB.length;x++){var A=SYMBOL_PROPS_WITH_CB[x],w=r.get(A);isFunction(w)?(v=!0,l[A]=w):s[A]=w}if(s.symbol=s.symbol||r.defaultSymbol,o.setVisual(extend({legendIcon:r.legendIcon||s.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},s)),t.isSeriesFiltered(r))return;var E=keys(l);function C(R,$){for(var V=r.getRawValue($),z=r.getDataParams($),F=0;F<E.length;F++){var B=E[F];R.setItemVisual($,B,l[B](V,z))}}return{dataEach:v?C:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var o=r.getData();function s(l,v){for(var x=l.getItemModel(v),A=0;A<SYMBOL_PROPS.length;A++){var w=SYMBOL_PROPS[A],E=x.getShallow(w,!0);E!=null&&l.setItemVisual(v,w,E)}}return{dataEach:o.hasItemOption?s:null}}};function getItemVisualFromData(r,t,o){switch(o){case"color":var s=r.getItemVisual(t,"style");return s[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,o)}}function getVisualFromData(r,t){switch(t){case"color":var o=r.getVisual("style");return o[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function setItemVisualFromData(r,t,o,s){switch(o){case"color":var l=r.ensureUniqueItemVisual(t,"style");l[r.getVisual("drawType")]=s,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,o,s);break}}function createLegacyDataSelectAction(r,t){function o(s,l){var v=[];return s.eachComponent({mainType:"series",subType:r,query:l},function(x){v.push(x.seriesIndex)}),v}each$c([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(s){t(s[0],function(l,v,x){l=extend({},l),x.dispatchAction(extend(l,{type:s[1],seriesIndex:o(v,l)}))})})}function handleSeriesLegacySelectEvents(r,t,o,s,l){var v=r+t;o.isSilent(v)||s.eachComponent({mainType:"series",subType:"pie"},function(x){for(var A=x.seriesIndex,w=x.option.selectedMap,E=l.selected,C=0;C<E.length;C++)if(E[C].seriesIndex===A){var R=x.getData(),$=queryDataIndex(R,l.fromActionPayload);o.trigger(v,{type:v,seriesId:x.id,name:isArray$1($)?R.getName($[0]):R.getName($),selected:isString(w)?w:extend({},w)})}})}function handleLegacySelectEvents(r,t,o){r.on("selectchanged",function(s){var l=o.getModel();s.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",t,l,s),handleSeriesLegacySelectEvents("pie","selectchanged",t,l,s)):s.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",t,l,s),handleSeriesLegacySelectEvents("pie","selected",t,l,s)):s.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",t,l,s),handleSeriesLegacySelectEvents("pie","unselected",t,l,s))})}function findEventDispatcher(r,t,o){for(var s;r&&!(t(r)&&(s=r,o));)r=r.__hostTarget||r.parent;return s}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function r(){this._id="__ec_inner_"+wmUniqueIndex++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,o){var s=this._guard(t);return supportDefineProperty?Object.defineProperty(s,this._id,{value:o,enumerable:!1,configurable:!0}):s[this._id]=o,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const WeakMap$2=WeakMap$1;var Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var o=t.cx,s=t.cy,l=t.width/2,v=t.height/2;r.moveTo(o,s-v),r.lineTo(o+l,s+v),r.lineTo(o-l,s+v),r.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var o=t.cx,s=t.cy,l=t.width/2,v=t.height/2;r.moveTo(o,s-v),r.lineTo(o+l,s),r.lineTo(o,s+v),r.lineTo(o-l,s),r.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var o=t.x,s=t.y,l=t.width/5*3,v=Math.max(l,t.height),x=l/2,A=x*x/(v-x),w=s-v+x+A,E=Math.asin(A/x),C=Math.cos(E)*x,R=Math.sin(E),$=Math.cos(E),V=x*.6,z=x*.7;r.moveTo(o-C,w+A),r.arc(o,w,x,Math.PI-E,Math.PI*2+E),r.bezierCurveTo(o+C-R*V,w+A+$*V,o,s-z,o,s),r.bezierCurveTo(o,s-z,o-C+R*V,w+A+$*V,o-C,w+A),r.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var o=t.height,s=t.width,l=t.x,v=t.y,x=s/3*2;r.moveTo(l,v),r.lineTo(l+x,v+o),r.lineTo(l,v+o/4*3),r.lineTo(l-x,v+o),r.lineTo(l,v),r.closePath()}}),symbolCtors={line:Line$1,rect:Rect$2,roundRect:Rect$2,square:Rect$2,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function(r,t,o,s,l){l.x1=r,l.y1=t+s/2,l.x2=r+o,l.y2=t+s/2},rect:function(r,t,o,s,l){l.x=r,l.y=t,l.width=o,l.height=s},roundRect:function(r,t,o,s,l){l.x=r,l.y=t,l.width=o,l.height=s,l.r=Math.min(o,s)/4},square:function(r,t,o,s,l){var v=Math.min(o,s);l.x=r,l.y=t,l.width=v,l.height=v},circle:function(r,t,o,s,l){l.cx=r+o/2,l.cy=t+s/2,l.r=Math.min(o,s)/2},diamond:function(r,t,o,s,l){l.cx=r+o/2,l.cy=t+s/2,l.width=o,l.height=s},pin:function(r,t,o,s,l){l.x=r+o/2,l.y=t+s/2,l.width=o,l.height=s},arrow:function(r,t,o,s,l){l.x=r+o/2,l.y=t+s/2,l.width=o,l.height=s},triangle:function(r,t,o,s,l){l.cx=r+o/2,l.cy=t+s/2,l.width=o,l.height=s}},symbolBuildProxies={};each$c(symbolCtors,function(r,t){symbolBuildProxies[t]=new r});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,o){var s=calculateTextPosition(r,t,o),l=this.shape;return l&&l.symbolType==="pin"&&t.position==="inside"&&(s.y=o.y+o.height*.4),s},buildPath:function(r,t,o){var s=t.symbolType;if(s!=="none"){var l=symbolBuildProxies[s];l||(s="rect",l=symbolBuildProxies[s]),symbolShapeMakers[s](t.x,t.y,t.width,t.height,l.shape),l.buildPath(r,l.shape,o)}}});function symbolPathSetColor(r,t){if(this.type!=="image"){var o=this.style;this.__isEmptyBrush?(o.stroke=r,o.fill=t||"#fff",o.lineWidth=2):this.shape.symbolType==="line"?o.stroke=r:o.fill=r,this.markRedraw()}}function createSymbol(r,t,o,s,l,v,x){var A=r.indexOf("empty")===0;A&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var w;return r.indexOf("image://")===0?w=makeImage(r.slice(8),new BoundingRect$1(t,o,s,l),x?"center":"cover"):r.indexOf("path://")===0?w=makePath(r.slice(7),{},new BoundingRect$1(t,o,s,l),x?"center":"cover"):w=new SymbolClz$1({shape:{symbolType:r,x:t,y:o,width:s,height:l}}),w.__isEmptyBrush=A,w.setColor=symbolPathSetColor,v&&w.setColor(v),w}function normalizeSymbolSize(r){return isArray$1(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function normalizeSymbolOffset(r,t){if(r!=null)return isArray$1(r)||(r=[r,r]),[parsePercent(r[0],t[0])||0,parsePercent(retrieve2(r[1],r[0]),t[1])||0]}function isSafeNum(r){return isFinite(r)}function createLinearGradient(r,t,o){var s=t.x==null?0:t.x,l=t.x2==null?1:t.x2,v=t.y==null?0:t.y,x=t.y2==null?0:t.y2;t.global||(s=s*o.width+o.x,l=l*o.width+o.x,v=v*o.height+o.y,x=x*o.height+o.y),s=isSafeNum(s)?s:0,l=isSafeNum(l)?l:1,v=isSafeNum(v)?v:0,x=isSafeNum(x)?x:0;var A=r.createLinearGradient(s,v,l,x);return A}function createRadialGradient(r,t,o){var s=o.width,l=o.height,v=Math.min(s,l),x=t.x==null?.5:t.x,A=t.y==null?.5:t.y,w=t.r==null?.5:t.r;t.global||(x=x*s+o.x,A=A*l+o.y,w=w*v),x=isSafeNum(x)?x:.5,A=isSafeNum(A)?A:.5,w=w>=0&&isSafeNum(w)?w:.5;var E=r.createRadialGradient(x,A,0,x,A,w);return E}function getCanvasGradient(r,t,o){for(var s=t.type==="radial"?createRadialGradient(r,t,o):createLinearGradient(r,t,o),l=t.colorStops,v=0;v<l.length;v++)s.addColorStop(l[v].offset,l[v].color);return s}function isClipPathChanged(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var o=0;o<r.length;o++)if(r[o]!==t[o])return!0;return!1}function parseInt10(r){return parseInt(r,10)}function getSize$1(r,t,o){var s=["width","height"][t],l=["clientWidth","clientHeight"][t],v=["paddingLeft","paddingTop"][t],x=["paddingRight","paddingBottom"][t];if(o[s]!=null&&o[s]!=="auto")return parseFloat(o[s]);var A=document.defaultView.getComputedStyle(r);return(r[l]||parseInt10(A[s])||parseInt10(r.style[s]))-(parseInt10(A[v])||0)-(parseInt10(A[x])||0)|0}function normalizeLineDash(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:isNumber(r)?[r]:isArray$1(r)?r:null}function getLineDash(r){var t=r.style,o=t.lineDash&&t.lineWidth>0&&normalizeLineDash(t.lineDash,t.lineWidth),s=t.lineDashOffset;if(o){var l=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;l&&l!==1&&(o=map$2(o,function(v){return v/l}),s/=l)}return[o,s]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function isValidStrokeFillStyle(r){return typeof r=="string"&&r!=="none"}function styleHasFill(r){var t=r.fill;return t!=null&&t!=="none"}function doFillPath(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var o=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=o}else r.fill()}function doStrokePath(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var o=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=o}else r.stroke()}function createCanvasPattern(r,t,o){var s=createOrUpdateImage(t.image,t.__image,o);if(isImageReady(s)){var l=r.createPattern(s,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&l&&l.setTransform){var v=new DOMMatrix;v.translateSelf(t.x||0,t.y||0),v.rotateSelf(0,0,(t.rotation||0)*RADIAN_TO_DEGREE),v.scaleSelf(t.scaleX||1,t.scaleY||1),l.setTransform(v)}return l}}function brushPath(r,t,o,s){var l,v=styleHasStroke(o),x=styleHasFill(o),A=o.strokePercent,w=A<1,E=!t.path;(!t.silent||w)&&E&&t.createPathProxy();var C=t.path||pathProxyForDraw,R=t.__dirty;if(!s){var $=o.fill,V=o.stroke,z=x&&!!$.colorStops,F=v&&!!V.colorStops,B=x&&!!$.image,W=v&&!!V.image,Y=void 0,Z=void 0,X=void 0,ae=void 0,ie=void 0;(z||F)&&(ie=t.getBoundingRect()),z&&(Y=R?getCanvasGradient(r,$,ie):t.__canvasFillGradient,t.__canvasFillGradient=Y),F&&(Z=R?getCanvasGradient(r,V,ie):t.__canvasStrokeGradient,t.__canvasStrokeGradient=Z),B&&(X=R||!t.__canvasFillPattern?createCanvasPattern(r,$,t):t.__canvasFillPattern,t.__canvasFillPattern=X),W&&(ae=R||!t.__canvasStrokePattern?createCanvasPattern(r,V,t):t.__canvasStrokePattern,t.__canvasStrokePattern=X),z?r.fillStyle=Y:B&&(X?r.fillStyle=X:x=!1),F?r.strokeStyle=Z:W&&(ae?r.strokeStyle=ae:v=!1)}var oe=t.getGlobalScale();C.setScale(oe[0],oe[1],t.segmentIgnoreThreshold);var le,ve;r.setLineDash&&o.lineDash&&(l=getLineDash(t),le=l[0],ve=l[1]);var xe=!0;(E||R&SHAPE_CHANGED_BIT)&&(C.setDPR(r.dpr),w?C.setContext(null):(C.setContext(r),xe=!1),C.reset(),t.buildPath(C,t.shape,s),C.toStatic(),t.pathUpdated()),xe&&C.rebuildPath(r,w?A:1),le&&(r.setLineDash(le),r.lineDashOffset=ve),s||(o.strokeFirst?(v&&doStrokePath(r,o),x&&doFillPath(r,o)):(x&&doFillPath(r,o),v&&doStrokePath(r,o))),le&&r.setLineDash([])}function brushImage(r,t,o){var s=t.__image=createOrUpdateImage(o.image,t.__image,t,t.onload);if(!(!s||!isImageReady(s))){var l=o.x||0,v=o.y||0,x=t.getWidth(),A=t.getHeight(),w=s.width/s.height;if(x==null&&A!=null?x=A*w:A==null&&x!=null?A=x/w:x==null&&A==null&&(x=s.width,A=s.height),o.sWidth&&o.sHeight){var E=o.sx||0,C=o.sy||0;r.drawImage(s,E,C,o.sWidth,o.sHeight,l,v,x,A)}else if(o.sx&&o.sy){var E=o.sx,C=o.sy,R=x-E,$=A-C;r.drawImage(s,E,C,R,$,l,v,x,A)}else r.drawImage(s,l,v,x,A)}}function brushText(r,t,o){var s,l=o.text;if(l!=null&&(l+=""),l){r.font=o.font||DEFAULT_FONT,r.textAlign=o.textAlign,r.textBaseline=o.textBaseline;var v=void 0,x=void 0;r.setLineDash&&o.lineDash&&(s=getLineDash(t),v=s[0],x=s[1]),v&&(r.setLineDash(v),r.lineDashOffset=x),o.strokeFirst?(styleHasStroke(o)&&r.strokeText(l,o.x,o.y),styleHasFill(o)&&r.fillText(l,o.x,o.y)):(styleHasFill(o)&&r.fillText(l,o.x,o.y),styleHasStroke(o)&&r.strokeText(l,o.x,o.y)),v&&r.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(r,t,o,s,l){var v=!1;if(!s&&(o=o||{},t===o))return!1;if(s||t.opacity!==o.opacity){flushPathDrawn(r,l),v=!0;var x=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(x)?DEFAULT_COMMON_STYLE.opacity:x}(s||t.blend!==o.blend)&&(v||(flushPathDrawn(r,l),v=!0),r.globalCompositeOperation=t.blend||DEFAULT_COMMON_STYLE.blend);for(var A=0;A<SHADOW_NUMBER_PROPS.length;A++){var w=SHADOW_NUMBER_PROPS[A];(s||t[w]!==o[w])&&(v||(flushPathDrawn(r,l),v=!0),r[w]=r.dpr*(t[w]||0))}return(s||t.shadowColor!==o.shadowColor)&&(v||(flushPathDrawn(r,l),v=!0),r.shadowColor=t.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),v}function bindPathAndTextCommonStyle(r,t,o,s,l){var v=getStyle(t,l.inHover),x=s?null:o&&getStyle(o,l.inHover)||{};if(v===x)return!1;var A=bindCommonProps(r,v,x,s,l);if((s||v.fill!==x.fill)&&(A||(flushPathDrawn(r,l),A=!0),isValidStrokeFillStyle(v.fill)&&(r.fillStyle=v.fill)),(s||v.stroke!==x.stroke)&&(A||(flushPathDrawn(r,l),A=!0),isValidStrokeFillStyle(v.stroke)&&(r.strokeStyle=v.stroke)),(s||v.opacity!==x.opacity)&&(A||(flushPathDrawn(r,l),A=!0),r.globalAlpha=v.opacity==null?1:v.opacity),t.hasStroke()){var w=v.lineWidth,E=w/(v.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==E&&(A||(flushPathDrawn(r,l),A=!0),r.lineWidth=E)}for(var C=0;C<STROKE_PROPS.length;C++){var R=STROKE_PROPS[C],$=R[0];(s||v[$]!==x[$])&&(A||(flushPathDrawn(r,l),A=!0),r[$]=v[$]||R[1])}return A}function bindImageStyle(r,t,o,s,l){return bindCommonProps(r,getStyle(t,l.inHover),o&&getStyle(o,l.inHover),s,l)}function setContextTransform(r,t){var o=t.transform,s=r.dpr||1;o?r.setTransform(s*o[0],s*o[1],s*o[2],s*o[3],s*o[4],s*o[5]):r.setTransform(s,0,0,s,0,0)}function updateClipStatus(r,t,o){for(var s=!1,l=0;l<r.length;l++){var v=r[l];s=s||v.isZeroArea(),setContextTransform(t,v),t.beginPath(),v.buildPath(t,v.shape),t.clip()}o.allClipped=s}function isTransformChanged(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch(r){var t=styleHasFill(r),o=styleHasStroke(r);return!(r.lineDash||!(+t^+o)||t&&typeof r.fill!="string"||o&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function flushPathDrawn(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function getStyle(r,t){return t&&r.__hoverStyle||r.style}function brushSingle(r,t){brush(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush(r,t,o,s){var l=t.transform;if(!t.shouldBePainted(o.viewWidth,o.viewHeight,!1,!1)){t.__dirty&=~REDRAW_BIT,t.__isRendered=!1;return}var v=t.__clipPaths,x=o.prevElClipPaths,A=!1,w=!1;if((!x||isClipPathChanged(v,x))&&(x&&x.length&&(flushPathDrawn(r,o),r.restore(),w=A=!0,o.prevElClipPaths=null,o.allClipped=!1,o.prevEl=null),v&&v.length&&(flushPathDrawn(r,o),r.save(),updateClipStatus(v,r,o),A=!0),o.prevElClipPaths=v),o.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var E=o.prevEl;E||(w=A=!0);var C=t instanceof Path$1&&t.autoBatch&&canPathBatch(t.style);A||isTransformChanged(l,E.transform)?(flushPathDrawn(r,o),setContextTransform(r,t)):C||flushPathDrawn(r,o);var R=getStyle(t,o.inHover);t instanceof Path$1?(o.lastDrawType!==DRAW_TYPE_PATH&&(w=!0,o.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(r,t,E,w,o),(!C||!o.batchFill&&!o.batchStroke)&&r.beginPath(),brushPath(r,t,R,C),C&&(o.batchFill=R.fill||"",o.batchStroke=R.stroke||"")):t instanceof TSpan$1?(o.lastDrawType!==DRAW_TYPE_TEXT&&(w=!0,o.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(r,t,E,w,o),brushText(r,t,R)):t instanceof ZRImage$1?(o.lastDrawType!==DRAW_TYPE_IMAGE&&(w=!0,o.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(r,t,E,w,o),brushImage(r,t,R)):t.getTemporalDisplayables&&(o.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(w=!0,o.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(r,t,o)),C&&s&&flushPathDrawn(r,o),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),o.prevEl=t,t.__dirty=0,t.__isRendered=!0}function brushIncremental(r,t,o){var s=t.getDisplayables(),l=t.getTemporalDisplayables();r.save();var v={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:o.viewWidth,viewHeight:o.viewHeight,inHover:o.inHover},x,A;for(x=t.getCursor(),A=s.length;x<A;x++){var w=s[x];w.beforeBrush&&w.beforeBrush(),w.innerBeforeBrush(),brush(r,w,v,x===A-1),w.innerAfterBrush(),w.afterBrush&&w.afterBrush(),v.prevEl=w}for(var E=0,C=l.length;E<C;E++){var w=l[E];w.beforeBrush&&w.beforeBrush(),w.innerBeforeBrush(),brush(r,w,v,E===C-1),w.innerAfterBrush(),w.afterBrush&&w.afterBrush(),v.prevEl=w}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal(r,t){if(r==="none")return null;var o=t.getDevicePixelRatio(),s=t.getZr(),l=s.painter.type==="svg";r.dirty&&decalMap.delete(r);var v=decalMap.get(r);if(v)return v;var x=defaults(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});x.backgroundColor==="none"&&(x.backgroundColor=null);var A={repeat:"repeat"};return w(A),A.rotation=x.rotation,A.scaleX=A.scaleY=l?1:1/o,decalMap.set(r,A),r.dirty=!1,A;function w(E){for(var C=[o],R=!0,$=0;$<decalKeys.length;++$){var V=x[decalKeys[$]];if(V!=null&&!isArray$1(V)&&!isString(V)&&!isNumber(V)&&typeof V!="boolean"){R=!1;break}C.push(V)}var z;if(R){z=C.join(",")+(l?"-svg":"");var F=decalCache.get(z);F&&(l?E.svgElement=F:E.image=F)}var B=normalizeDashArrayX(x.dashArrayX),W=normalizeDashArrayY(x.dashArrayY),Y=normalizeSymbolArray(x.symbol),Z=getLineBlockLengthX(B),X=getLineBlockLengthY(W),ae=!l&&platformApi.createCanvas(),ie=l&&{tag:"g",attrs:{},key:"dcl",children:[]},oe=ve(),le;ae&&(ae.width=oe.width*o,ae.height=oe.height*o,le=ae.getContext("2d")),xe(),R&&decalCache.put(z,ae||ie),E.image=ae,E.svgElement=ie,E.svgWidth=oe.width,E.svgHeight=oe.height;function ve(){for(var _e=1,Te=0,Ee=Z.length;Te<Ee;++Te)_e=getLeastCommonMultiple(_e,Z[Te]);for(var Ce=1,Te=0,Ee=Y.length;Te<Ee;++Te)Ce=getLeastCommonMultiple(Ce,Y[Te].length);_e*=Ce;var Pe=X*Z.length*Y.length;return{width:Math.max(1,Math.min(_e,x.maxTileWidth)),height:Math.max(1,Math.min(Pe,x.maxTileHeight))}}function xe(){le&&(le.clearRect(0,0,ae.width,ae.height),x.backgroundColor&&(le.fillStyle=x.backgroundColor,le.fillRect(0,0,ae.width,ae.height)));for(var _e=0,Te=0;Te<W.length;++Te)_e+=W[Te];if(_e<=0)return;for(var Ee=-X,Ce=0,Pe=0,Me=0;Ee<oe.height;){if(Ce%2===0){for(var Fe=Pe/2%Y.length,De=0,Re=0,Ne=0;De<oe.width*2;){for(var Ze=0,Te=0;Te<B[Me].length;++Te)Ze+=B[Me][Te];if(Ze<=0)break;if(Re%2===0){var je=(1-x.symbolSize)*.5,Qe=De+B[Me][Re]*je,ct=Ee+W[Ce]*je,mt=B[Me][Re]*x.symbolSize,ht=W[Ce]*x.symbolSize,xt=Ne/2%Y[Fe].length;yt(Qe,ct,mt,ht,Y[Fe][xt])}De+=B[Me][Re],++Ne,++Re,Re===B[Me].length&&(Re=0)}++Me,Me===B.length&&(Me=0)}Ee+=W[Ce],++Pe,++Ce,Ce===W.length&&(Ce=0)}function yt($e,Ge,ke,Ye,bt){var gt=l?1:o,At=createSymbol(bt,$e*gt,Ge*gt,ke*gt,Ye*gt,x.color,x.symbolKeepAspect);if(l){var vt=s.painter.renderOneToVNode(At);vt&&ie.children.push(vt)}else brushSingle(le,At)}}}}function normalizeSymbolArray(r){if(!r||r.length===0)return[["rect"]];if(isString(r))return[[r]];for(var t=!0,o=0;o<r.length;++o)if(!isString(r[o])){t=!1;break}if(t)return normalizeSymbolArray([r]);for(var s=[],o=0;o<r.length;++o)isString(r[o])?s.push([r[o]]):s.push(r[o]);return s}function normalizeDashArrayX(r){if(!r||r.length===0)return[[0,0]];if(isNumber(r)){var t=Math.ceil(r);return[[t,t]]}for(var o=!0,s=0;s<r.length;++s)if(!isNumber(r[s])){o=!1;break}if(o)return normalizeDashArrayX([r]);for(var l=[],s=0;s<r.length;++s)if(isNumber(r[s])){var t=Math.ceil(r[s]);l.push([t,t])}else{var t=map$2(r[s],function(A){return Math.ceil(A)});t.length%2===1?l.push(t.concat(t)):l.push(t)}return l}function normalizeDashArrayY(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(isNumber(r)){var t=Math.ceil(r);return[t,t]}var o=map$2(r,function(s){return Math.ceil(s)});return r.length%2?o.concat(o):o}function getLineBlockLengthX(r){return map$2(r,function(t){return getLineBlockLengthY(t)})}function getLineBlockLengthY(r){for(var t=0,o=0;o<r.length;++o)t+=r[o];return r.length%2===1?t*2:t}function decalVisual(r,t){r.eachRawSeries(function(o){if(!r.isSeriesFiltered(o)){var s=o.getData();s.hasItemVisual()&&s.each(function(x){var A=s.getItemVisual(x,"decal");if(A){var w=s.ensureUniqueItemVisual(x,"style");w.decal=createOrUpdatePatternFromDecal(A,t)}});var l=s.getVisual("decal");if(l){var v=s.getVisual("style");v.decal=createOrUpdatePatternFromDecal(l,t)}}})}var lifecycle=new Eventful$1;const lifecycle$1=lifecycle;var implsStore={};function registerImpl(r,t){implsStore[r]=t}function getImpl(r){return implsStore[r]}var version="5.4.2",dependencies={zrender:"5.4.3"},TEST_FRAME_REMAIN_TIME=1,PRIORITY_PROCESSOR_SERIES_FILTER=800,PRIORITY_PROCESSOR_DATASTACK=900,PRIORITY_PROCESSOR_FILTER=1e3,PRIORITY_PROCESSOR_DEFAULT=2e3,PRIORITY_PROCESSOR_STATISTIC=5e3,PRIORITY_VISUAL_LAYOUT=1e3,PRIORITY_VISUAL_PROGRESSIVE_LAYOUT=1100,PRIORITY_VISUAL_GLOBAL=2e3,PRIORITY_VISUAL_CHART=3e3,PRIORITY_VISUAL_COMPONENT=4e3,PRIORITY_VISUAL_CHART_DATA_CUSTOM=4500,PRIORITY_VISUAL_POST_CHART_LAYOUT=4600,PRIORITY_VISUAL_BRUSH=5e3,PRIORITY_VISUAL_ARIA=6e3,PRIORITY_VISUAL_DECAL=7e3,PRIORITY={PROCESSOR:{FILTER:PRIORITY_PROCESSOR_FILTER,SERIES_FILTER:PRIORITY_PROCESSOR_SERIES_FILTER,STATISTIC:PRIORITY_PROCESSOR_STATISTIC},VISUAL:{LAYOUT:PRIORITY_VISUAL_LAYOUT,PROGRESSIVE_LAYOUT:PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,GLOBAL:PRIORITY_VISUAL_GLOBAL,CHART:PRIORITY_VISUAL_CHART,POST_CHART_LAYOUT:PRIORITY_VISUAL_POST_CHART_LAYOUT,COMPONENT:PRIORITY_VISUAL_COMPONENT,BRUSH:PRIORITY_VISUAL_BRUSH,CHART_ITEM:PRIORITY_VISUAL_CHART_DATA_CUSTOM,ARIA:PRIORITY_VISUAL_ARIA,DECAL:PRIORITY_VISUAL_DECAL}},IN_MAIN_PROCESS_KEY="__flagInMainProcess",PENDING_UPDATE="__pendingUpdate",STATUS_NEEDS_UPDATE_KEY="__needsUpdateStatus",ACTION_REG=/^[a-zA-Z0-9_]+$/,CONNECT_STATUS_KEY="__connectUpdateStatus",CONNECT_STATUS_PENDING=0,CONNECT_STATUS_UPDATING=1,CONNECT_STATUS_UPDATED=2;function createRegisterEventWithLowercaseECharts(r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,r,t)}}function createRegisterEventWithLowercaseMessageCenter(r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return toLowercaseNameAndCallEventful(this,r,t)}}function toLowercaseNameAndCallEventful(r,t,o){return o[0]=o[0]&&o[0].toLowerCase(),Eventful$1.prototype[t].apply(r,o)}var MessageCenter=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare$1,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render$2,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this,new ECEventProcessor)||this;v._chartsViews=[],v._chartsMap={},v._componentsViews=[],v._componentsMap={},v._pendingActions=[],l=l||{},isString(s)&&(s=themeStorage[s]),v._dom=o;var x="canvas",A="auto",w=!1,E=v._zr=init$1(o,{renderer:l.renderer||x,devicePixelRatio:l.devicePixelRatio,width:l.width,height:l.height,ssr:l.ssr,useDirtyRect:retrieve2(l.useDirtyRect,w),useCoarsePointer:retrieve2(l.useCoarsePointer,A),pointerSize:l.pointerSize});v._ssr=l.ssr,v._throttledZrFlush=throttle(bind$1(E.flush,E),17),s=clone$3(s),s&&globalBackwardCompat(s,!0),v._theme=s,v._locale=createLocaleObject(l.locale||SYSTEM_LANG),v._coordSysMgr=new CoordinateSystem;var C=v._api=createExtensionAPI(v);function R($,V){return $.__prio-V.__prio}return sort(visualFuncs,R),sort(dataProcessorFuncs,R),v._scheduler=new Scheduler$1(v,C,dataProcessorFuncs,visualFuncs),v._messageCenter=new MessageCenter,v._initEvents(),v.resize=bind$1(v.resize,v),E.animation.on("frame",v._onframe,v),bindRenderedEvent(E,v),bindMouseEvent(E,v),setAsPrimitive(v),v}return t.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var o=this._scheduler;if(this[PENDING_UPDATE]){var s=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare$1(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(w){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,w}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,s),triggerUpdatedEvent.call(this,s)}else if(o.unfinished){var l=TEST_FRAME_REMAIN_TIME,v=this._model,x=this._api;o.unfinished=!1;do{var A=+new Date;o.performSeriesTasks(v),o.performDataProcessorTasks(v),updateStreamModes(this,v),o.performVisualTasks(v),renderSeries(this,this._model,x,"remain",{}),l-=+new Date-A}while(l>0&&o.unfinished);o.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(o,s,l){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var v,x,A;if(isObject$3(s)&&(l=s.lazyUpdate,v=s.silent,x=s.replaceMerge,A=s.transition,s=s.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||s){var w=new OptionManager$1(this._api),E=this._theme,C=this._model=new GlobalModel$1;C.scheduler=this._scheduler,C.ssr=this._ssr,C.init(null,null,null,E,this._locale,w)}this._model.setOption(o,{replaceMerge:x},optionPreprocessorFuncs);var R={seriesTransition:A,optionChanged:!0};if(l)this[PENDING_UPDATE]={silent:v,updateParams:R},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,R)}catch($){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,$}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,v),triggerUpdatedEvent.call(this,v)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(o){return this.renderToCanvas(o)},t.prototype.renderToCanvas=function(o){o=o||{};var s=this._zr.painter;return s.getRenderedCanvas({backgroundColor:o.backgroundColor||this._model.get("backgroundColor"),pixelRatio:o.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(o){o=o||{};var s=this._zr.painter;return s.renderToString({useViewBox:o.useViewBox})},t.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var o=this._zr,s=o.storage.getDisplayList();return each$c(s,function(l){l.stopAnimation(null,!0)}),o.painter.toDataURL()}},t.prototype.getDataURL=function(o){if(this._disposed){this.id;return}o=o||{};var s=o.excludeComponents,l=this._model,v=[],x=this;each$c(s,function(w){l.eachComponent({mainType:w},function(E){var C=x._componentsMap[E.__viewId];C.group.ignore||(v.push(C),C.group.ignore=!0)})});var A=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(o).toDataURL("image/"+(o&&o.type||"png"));return each$c(v,function(w){w.group.ignore=!1}),A},t.prototype.getConnectedDataURL=function(o){if(this._disposed){this.id;return}var s=o.type==="svg",l=this.group,v=Math.min,x=Math.max,A=1/0;if(connectedGroups[l]){var w=A,E=A,C=-A,R=-A,$=[],V=o&&o.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(Z,X){if(Z.group===l){var ae=s?Z.getZr().painter.getSvgDom().innerHTML:Z.renderToCanvas(clone$3(o)),ie=Z.getDom().getBoundingClientRect();w=v(ie.left,w),E=v(ie.top,E),C=x(ie.right,C),R=x(ie.bottom,R),$.push({dom:ae,left:ie.left,top:ie.top})}}),w*=V,E*=V,C*=V,R*=V;var z=C-w,F=R-E,B=platformApi.createCanvas(),W=init$1(B,{renderer:s?"svg":"canvas"});if(W.resize({width:z,height:F}),s){var Y="";return each$c($,function(Z){var X=Z.left-w,ae=Z.top-E;Y+='<g transform="translate('+X+","+ae+')">'+Z.dom+"</g>"}),W.painter.getSvgRoot().innerHTML=Y,o.connectedBackgroundColor&&W.painter.setBackgroundColor(o.connectedBackgroundColor),W.refreshImmediately(),W.painter.toDataURL()}else return o.connectedBackgroundColor&&W.add(new Rect$2({shape:{x:0,y:0,width:z,height:F},style:{fill:o.connectedBackgroundColor}})),each$c($,function(Z){var X=new ZRImage$1({style:{x:Z.left*V-w,y:Z.top*V-E,image:Z.dom}});W.add(X)}),W.refreshImmediately(),B.toDataURL("image/"+(o&&o.type||"png"))}else return this.getDataURL(o)},t.prototype.convertToPixel=function(o,s){return doConvertPixel(this,"convertToPixel",o,s)},t.prototype.convertFromPixel=function(o,s){return doConvertPixel(this,"convertFromPixel",o,s)},t.prototype.containPixel=function(o,s){if(this._disposed){this.id;return}var l=this._model,v,x=parseFinder$1(l,o);return each$c(x,function(A,w){w.indexOf("Models")>=0&&each$c(A,function(E){var C=E.coordinateSystem;if(C&&C.containPoint)v=v||!!C.containPoint(s);else if(w==="seriesModels"){var R=this._chartsMap[E.__viewId];R&&R.containPoint&&(v=v||R.containPoint(s,E))}},this)},this),!!v},t.prototype.getVisual=function(o,s){var l=this._model,v=parseFinder$1(l,o,{defaultMainType:"series"}),x=v.seriesModel,A=x.getData(),w=v.hasOwnProperty("dataIndexInside")?v.dataIndexInside:v.hasOwnProperty("dataIndex")?A.indexOfRawIndex(v.dataIndex):null;return w!=null?getItemVisualFromData(A,w,s):getVisualFromData(A,s)},t.prototype.getViewOfComponentModel=function(o){return this._componentsMap[o.__viewId]},t.prototype.getViewOfSeriesModel=function(o){return this._chartsMap[o.__viewId]},t.prototype._initEvents=function(){var o=this;each$c(MOUSE_EVENT_NAMES,function(s){var l=function(v){var x=o.getModel(),A=v.target,w,E=s==="globalout";if(E?w={}:A&&findEventDispatcher(A,function(z){var F=getECData(z);if(F&&F.dataIndex!=null){var B=F.dataModel||x.getSeriesByIndex(F.seriesIndex);return w=B&&B.getDataParams(F.dataIndex,F.dataType)||{},!0}else if(F.eventData)return w=extend({},F.eventData),!0},!0),w){var C=w.componentType,R=w.componentIndex;(C==="markLine"||C==="markPoint"||C==="markArea")&&(C="series",R=w.seriesIndex);var $=C&&R!=null&&x.getComponent(C,R),V=$&&o[$.mainType==="series"?"_chartsMap":"_componentsMap"][$.__viewId];w.event=v,w.type=s,o._$eventProcessor.eventInfo={targetEl:A,packedEvent:w,model:$,view:V},o.trigger(s,w)}};l.zrEventfulCallAtLast=!0,o._zr.on(s,l,o)}),each$c(eventActionMap,function(s,l){o._messageCenter.on(l,function(v){this.trigger(l,v)},o)}),each$c(["selectchanged"],function(s){o._messageCenter.on(s,function(l){this.trigger(s,l)},o)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var o=this.getDom();o&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var s=this,l=s._api,v=s._model;each$c(s._componentsViews,function(x){x.dispose(v,l)}),each$c(s._chartsViews,function(x){x.dispose(v,l)}),s._zr.dispose(),s._dom=s._model=s._chartsMap=s._componentsMap=s._chartsViews=s._componentsViews=s._scheduler=s._api=s._zr=s._throttledZrFlush=s._theme=s._coordSysMgr=s._messageCenter=null,delete instances[s.id]},t.prototype.resize=function(o){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(o);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!s){var l=s.resetOption("media"),v=o&&o.silent;this[PENDING_UPDATE]&&(v==null&&(v=this[PENDING_UPDATE].silent),l=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{l&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},o&&o.animation)})}catch(x){throw this[IN_MAIN_PROCESS_KEY]=!1,x}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,v),triggerUpdatedEvent.call(this,v)}}},t.prototype.showLoading=function(o,s){if(this._disposed){this.id;return}if(isObject$3(o)&&(s=o,o=""),o=o||"default",this.hideLoading(),!!loadingEffects[o]){var l=loadingEffects[o](this._api,s),v=this._zr;this._loadingFX=l,v.add(l)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(o){var s=extend({},o);return s.type=eventActionMap[o.type],s},t.prototype.dispatchAction=function(o,s){if(this._disposed){this.id;return}if(isObject$3(s)||(s={silent:!!s}),!!actions[o.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(o);return}var l=s.silent;doDispatchAction.call(this,o,l);var v=s.flush;v?this._zr.flush():v!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,l),triggerUpdatedEvent.call(this,l)}},t.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(o){if(this._disposed){this.id;return}var s=o.seriesIndex,l=this.getModel(),v=l.getSeriesByIndex(s);v.appendData(o),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){prepare$1=function(R){var $=R._scheduler;$.restorePipelines(R._model),$.prepareStageTasks(),prepareView(R,!0),prepareView(R,!1),$.plan()},prepareView=function(R,$){for(var V=R._model,z=R._scheduler,F=$?R._componentsViews:R._chartsViews,B=$?R._componentsMap:R._chartsMap,W=R._zr,Y=R._api,Z=0;Z<F.length;Z++)F[Z].__alive=!1;$?V.eachComponent(function(ie,oe){ie!=="series"&&X(oe)}):V.eachSeries(X);function X(ie){var oe=ie.__requireNewView;ie.__requireNewView=!1;var le="_ec_"+ie.id+"_"+ie.type,ve=!oe&&B[le];if(!ve){var xe=parseClassType(ie.type),_e=$?ComponentView$1.getClass(xe.main,xe.sub):ChartView$1.getClass(xe.sub);ve=new _e,ve.init(V,Y),B[le]=ve,F.push(ve),W.add(ve.group)}ie.__viewId=ve.__id=le,ve.__alive=!0,ve.__model=ie,ve.group.__ecComponentInfo={mainType:ie.mainType,index:ie.componentIndex},!$&&z.prepareView(ve,ie,V,Y)}for(var Z=0;Z<F.length;){var ae=F[Z];ae.__alive?Z++:(!$&&ae.renderTask.dispose(),W.remove(ae.group),ae.dispose(V,Y),F.splice(Z,1),B[ae.__id]===ae&&delete B[ae.__id],ae.__id=ae.group.__ecComponentInfo=null)}},updateDirectly=function(R,$,V,z,F){var B=R._model;if(B.setUpdatePayload(V),!z){each$c([].concat(R._componentsViews).concat(R._chartsViews),ae);return}var W={};W[z+"Id"]=V[z+"Id"],W[z+"Index"]=V[z+"Index"],W[z+"Name"]=V[z+"Name"];var Y={mainType:z,query:W};F&&(Y.subType=F);var Z=V.excludeSeriesId,X;Z!=null&&(X=createHashMap(),each$c(normalizeToArray(Z),function(ie){var oe=convertOptionIdName(ie,null);oe!=null&&X.set(oe,!0)})),B&&B.eachComponent(Y,function(ie){var oe=X&&X.get(ie.id)!=null;if(!oe)if(isHighDownPayload(V))if(ie instanceof SeriesModel$1)V.type===HIGHLIGHT_ACTION_TYPE&&!V.notBlur&&!ie.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(ie,V,R._api);else{var le=findComponentHighDownDispatchers(ie.mainType,ie.componentIndex,V.name,R._api),ve=le.focusSelf,xe=le.dispatchers;V.type===HIGHLIGHT_ACTION_TYPE&&ve&&!V.notBlur&&blurComponent(ie.mainType,ie.componentIndex,R._api),xe&&each$c(xe,function(_e){V.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(_e):leaveEmphasis(_e)})}else isSelectChangePayload(V)&&ie instanceof SeriesModel$1&&(toggleSelectionFromPayload(ie,V,R._api),updateSeriesElementSelection(ie),markStatusToUpdate(R))},R),B&&B.eachComponent(Y,function(ie){var oe=X&&X.get(ie.id)!=null;oe||ae(R[z==="series"?"_chartsMap":"_componentsMap"][ie.__viewId])},R);function ae(ie){ie&&ie.__alive&&ie[$]&&ie[$](ie.__model,B,R._api,V)}},updateMethods={prepareAndUpdate:function(R){prepare$1(this),updateMethods.update.call(this,R,{optionChanged:R.newOption!=null})},update:function(R,$){var V=this._model,z=this._api,F=this._zr,B=this._coordSysMgr,W=this._scheduler;if(V){V.setUpdatePayload(R),W.restoreData(V,R),W.performSeriesTasks(V),B.create(V,z),W.performDataProcessorTasks(V,R),updateStreamModes(this,V),B.update(V,z),o(V),W.performVisualTasks(V,R),render$2(this,V,z,R,$);var Y=V.get("backgroundColor")||"transparent",Z=V.get("darkMode");F.setBackgroundColor(Y),Z!=null&&Z!=="auto"&&F.setDarkMode(Z),lifecycle$1.trigger("afterupdate",V,z)}},updateTransform:function(R){var $=this,V=this._model,z=this._api;if(V){V.setUpdatePayload(R);var F=[];V.eachComponent(function(W,Y){if(W!=="series"){var Z=$.getViewOfComponentModel(Y);if(Z&&Z.__alive)if(Z.updateTransform){var X=Z.updateTransform(Y,V,z,R);X&&X.update&&F.push(Z)}else F.push(Z)}});var B=createHashMap();V.eachSeries(function(W){var Y=$._chartsMap[W.__viewId];if(Y.updateTransform){var Z=Y.updateTransform(W,V,z,R);Z&&Z.update&&B.set(W.uid,1)}else B.set(W.uid,1)}),o(V),this._scheduler.performVisualTasks(V,R,{setDirty:!0,dirtyMap:B}),renderSeries(this,V,z,R,{},B),lifecycle$1.trigger("afterupdate",V,z)}},updateView:function(R){var $=this._model;$&&($.setUpdatePayload(R),ChartView$1.markUpdateMethod(R,"updateView"),o($),this._scheduler.performVisualTasks($,R,{setDirty:!0}),render$2(this,$,this._api,R,{}),lifecycle$1.trigger("afterupdate",$,this._api))},updateVisual:function(R){var $=this,V=this._model;V&&(V.setUpdatePayload(R),V.eachSeries(function(z){z.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(R,"updateVisual"),o(V),this._scheduler.performVisualTasks(V,R,{visualType:"visual",setDirty:!0}),V.eachComponent(function(z,F){if(z!=="series"){var B=$.getViewOfComponentModel(F);B&&B.__alive&&B.updateVisual(F,V,$._api,R)}}),V.eachSeries(function(z){var F=$._chartsMap[z.__viewId];F.updateVisual(z,V,$._api,R)}),lifecycle$1.trigger("afterupdate",V,this._api))},updateLayout:function(R){updateMethods.update.call(this,R)}},doConvertPixel=function(R,$,V,z){if(R._disposed){R.id;return}for(var F=R._model,B=R._coordSysMgr.getCoordinateSystems(),W,Y=parseFinder$1(F,V),Z=0;Z<B.length;Z++){var X=B[Z];if(X[$]&&(W=X[$](F,Y,z))!=null)return W}},updateStreamModes=function(R,$){var V=R._chartsMap,z=R._scheduler;$.eachSeries(function(F){z.updateStreamModes(F,V[F.__viewId])})},doDispatchAction=function(R,$){var V=this,z=this.getModel(),F=R.type,B=R.escapeConnect,W=actions[F],Y=W.actionInfo,Z=(Y.update||"update").split(":"),X=Z.pop(),ae=Z[0]!=null&&parseClassType(Z[0]);this[IN_MAIN_PROCESS_KEY]=!0;var ie=[R],oe=!1;R.batch&&(oe=!0,ie=map$2(R.batch,function(Ce){return Ce=defaults(extend({},Ce),R),Ce.batch=null,Ce}));var le=[],ve,xe=isSelectChangePayload(R),_e=isHighDownPayload(R);if(_e&&allLeaveBlur(this._api),each$c(ie,function(Ce){if(ve=W.action(Ce,V._model,V._api),ve=ve||extend({},Ce),ve.type=Y.event||ve.type,le.push(ve),_e){var Pe=preParseFinder(R),Me=Pe.queryOptionMap,Fe=Pe.mainTypeSpecified,De=Fe?Me.keys()[0]:"series";updateDirectly(V,X,Ce,De),markStatusToUpdate(V)}else xe?(updateDirectly(V,X,Ce,"series"),markStatusToUpdate(V)):ae&&updateDirectly(V,X,Ce,ae.main,ae.sub)}),X!=="none"&&!_e&&!xe&&!ae)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,R),this[PENDING_UPDATE]=null):updateMethods[X].call(this,R)}catch(Ce){throw this[IN_MAIN_PROCESS_KEY]=!1,Ce}if(oe?ve={type:Y.event||F,escapeConnect:B,batch:le}:ve=le[0],this[IN_MAIN_PROCESS_KEY]=!1,!$){var Te=this._messageCenter;if(Te.trigger(ve.type,ve),xe){var Ee={type:"selectchanged",escapeConnect:B,selected:getAllSelectedIndices(z),isFromClick:R.isFromClick||!1,fromAction:R.type,fromActionPayload:R};Te.trigger(Ee.type,Ee)}}},flushPendingActions=function(R){for(var $=this._pendingActions;$.length;){var V=$.shift();doDispatchAction.call(this,V,R)}},triggerUpdatedEvent=function(R){!R&&this.trigger("updated")},bindRenderedEvent=function(R,$){R.on("rendered",function(V){$.trigger("rendered",V),R.animation.isFinished()&&!$[PENDING_UPDATE]&&!$._scheduler.unfinished&&!$._pendingActions.length&&$.trigger("finished")})},bindMouseEvent=function(R,$){R.on("mouseover",function(V){var z=V.target,F=findEventDispatcher(z,isHighDownDispatcher);F&&(handleGlobalMouseOverForHighDown(F,V,$._api),markStatusToUpdate($))}).on("mouseout",function(V){var z=V.target,F=findEventDispatcher(z,isHighDownDispatcher);F&&(handleGlobalMouseOutForHighDown(F,V,$._api),markStatusToUpdate($))}).on("click",function(V){var z=V.target,F=findEventDispatcher(z,function(Y){return getECData(Y).dataIndex!=null},!0);if(F){var B=F.selected?"unselect":"select",W=getECData(F);$._api.dispatchAction({type:B,dataType:W.dataType,dataIndexInside:W.dataIndex,seriesIndex:W.seriesIndex,isFromClick:!0})}})};function o(R){R.clearColorPalette(),R.eachSeries(function($){$.clearColorPalette()})}function s(R){var $=[],V=[],z=!1;if(R.eachComponent(function(Y,Z){var X=Z.get("zlevel")||0,ae=Z.get("z")||0,ie=Z.getZLevelKey();z=z||!!ie,(Y==="series"?V:$).push({zlevel:X,z:ae,idx:Z.componentIndex,type:Y,key:ie})}),z){var F=$.concat(V),B,W;sort(F,function(Y,Z){return Y.zlevel===Z.zlevel?Y.z-Z.z:Y.zlevel-Z.zlevel}),each$c(F,function(Y){var Z=R.getComponent(Y.type,Y.idx),X=Y.zlevel,ae=Y.key;B!=null&&(X=Math.max(B,X)),ae?(X===B&&ae!==W&&X++,W=ae):W&&(X===B&&X++,W=""),B=X,Z.setZLevel(X)})}}render$2=function(R,$,V,z,F){s($),renderComponents(R,$,V,z,F),each$c(R._chartsViews,function(B){B.__alive=!1}),renderSeries(R,$,V,z,F),each$c(R._chartsViews,function(B){B.__alive||B.remove($,V)})},renderComponents=function(R,$,V,z,F,B){each$c(B||R._componentsViews,function(W){var Y=W.__model;E(Y,W),W.render(Y,$,V,z),A(Y,W),C(Y,W)})},renderSeries=function(R,$,V,z,F,B){var W=R._scheduler;F=extend(F||{},{updatedSeries:$.getSeries()}),lifecycle$1.trigger("series:beforeupdate",$,V,F);var Y=!1;$.eachSeries(function(Z){var X=R._chartsMap[Z.__viewId];X.__alive=!0;var ae=X.renderTask;W.updatePayload(ae,z),E(Z,X),B&&B.get(Z.uid)&&ae.dirty(),ae.perform(W.getPerformArgs(ae))&&(Y=!0),X.group.silent=!!Z.get("silent"),x(Z,X),updateSeriesElementSelection(Z)}),W.unfinished=Y||W.unfinished,lifecycle$1.trigger("series:layoutlabels",$,V,F),lifecycle$1.trigger("series:transition",$,V,F),$.eachSeries(function(Z){var X=R._chartsMap[Z.__viewId];A(Z,X),C(Z,X)}),v(R,$),lifecycle$1.trigger("series:afterupdate",$,V,F)},markStatusToUpdate=function(R){R[STATUS_NEEDS_UPDATE_KEY]=!0,R.getZr().wakeUp()},applyChangedStates=function(R){R[STATUS_NEEDS_UPDATE_KEY]&&(R.getZr().storage.traverse(function($){isElementRemoved($)||l($)}),R[STATUS_NEEDS_UPDATE_KEY]=!1)};function l(R){for(var $=[],V=R.currentStates,z=0;z<V.length;z++){var F=V[z];F==="emphasis"||F==="blur"||F==="select"||$.push(F)}R.selected&&R.states.select&&$.push("select"),R.hoverState===HOVER_STATE_EMPHASIS&&R.states.emphasis?$.push("emphasis"):R.hoverState===HOVER_STATE_BLUR&&R.states.blur&&$.push("blur"),R.useStates($)}function v(R,$){var V=R._zr,z=V.storage,F=0;z.traverse(function(B){B.isGroup||F++}),F>$.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&$.eachSeries(function(B){if(!B.preventUsingHoverLayer){var W=R._chartsMap[B.__viewId];W.__alive&&W.eachRendered(function(Y){Y.states.emphasis&&(Y.states.emphasis.hoverLayer=!0)})}})}function x(R,$){var V=R.get("blendMode")||null;$.eachRendered(function(z){z.isGroup||(z.style.blend=V)})}function A(R,$){if(!R.preventAutoZ){var V=R.get("z")||0,z=R.get("zlevel")||0;$.eachRendered(function(F){return w(F,V,z,-1/0),!0})}}function w(R,$,V,z){var F=R.getTextContent(),B=R.getTextGuideLine(),W=R.isGroup;if(W)for(var Y=R.childrenRef(),Z=0;Z<Y.length;Z++)z=Math.max(w(Y[Z],$,V,z),z);else R.z=$,R.zlevel=V,z=Math.max(R.z2,z);if(F&&(F.z=$,F.zlevel=V,isFinite(z)&&(F.z2=z+2)),B){var X=R.textGuideLineConfig;B.z=$,B.zlevel=V,isFinite(z)&&(B.z2=z+(X&&X.showAbove?1:-1))}return z}function E(R,$){$.eachRendered(function(V){if(!isElementRemoved(V)){var z=V.getTextContent(),F=V.getTextGuideLine();V.stateTransition&&(V.stateTransition=null),z&&z.stateTransition&&(z.stateTransition=null),F&&F.stateTransition&&(F.stateTransition=null),V.hasState()?(V.prevStates=V.currentStates,V.clearStates()):V.prevStates&&(V.prevStates=null)}})}function C(R,$){var V=R.getModel("stateAnimation"),z=R.isAnimationEnabled(),F=V.get("duration"),B=F>0?{duration:F,delay:V.get("delay"),easing:V.get("easing")}:null;$.eachRendered(function(W){if(W.states&&W.states.emphasis){if(isElementRemoved(W))return;if(W instanceof Path$1&&savePathStates(W),W.__dirty){var Y=W.prevStates;Y&&W.useStates(Y)}if(z){W.stateTransition=B;var Z=W.getTextContent(),X=W.getTextGuideLine();Z&&(Z.stateTransition=B),X&&(X.stateTransition=B)}W.__dirty&&l(W)}})}createExtensionAPI=function(R){return new(function($){__extends(V,$);function V(){return $!==null&&$.apply(this,arguments)||this}return V.prototype.getCoordinateSystems=function(){return R._coordSysMgr.getCoordinateSystems()},V.prototype.getComponentByElement=function(z){for(;z;){var F=z.__ecComponentInfo;if(F!=null)return R._model.getComponent(F.mainType,F.index);z=z.parent}},V.prototype.enterEmphasis=function(z,F){enterEmphasis(z,F),markStatusToUpdate(R)},V.prototype.leaveEmphasis=function(z,F){leaveEmphasis(z,F),markStatusToUpdate(R)},V.prototype.enterBlur=function(z){enterBlur(z),markStatusToUpdate(R)},V.prototype.leaveBlur=function(z){leaveBlur(z),markStatusToUpdate(R)},V.prototype.enterSelect=function(z){enterSelect(z),markStatusToUpdate(R)},V.prototype.leaveSelect=function(z){leaveSelect(z),markStatusToUpdate(R)},V.prototype.getModel=function(){return R.getModel()},V.prototype.getViewOfComponentModel=function(z){return R.getViewOfComponentModel(z)},V.prototype.getViewOfSeriesModel=function(z){return R.getViewOfSeriesModel(z)},V}(ExtensionAPI$1))(R)},enableConnect=function(R){function $(V,z){for(var F=0;F<V.length;F++){var B=V[F];B[CONNECT_STATUS_KEY]=z}}each$c(eventActionMap,function(V,z){R._messageCenter.on(z,function(F){if(connectedGroups[R.group]&&R[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(F&&F.escapeConnect)return;var B=R.makeActionFromEvent(F),W=[];each$c(instances,function(Y){Y!==R&&Y.group===R.group&&W.push(Y)}),$(W,CONNECT_STATUS_PENDING),each$c(W,function(Y){Y[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&Y.dispatchAction(B)}),$(W,CONNECT_STATUS_UPDATED)}})})}}(),t}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function(r,t,o){var s=this;function l(){for(var v=[],x=0;x<arguments.length;x++)v[x]=arguments[x];t&&t.apply&&t.apply(this,v),s.off(r,l)}this.on.call(this,r,l,o)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning(r){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init(r,t,o){var s=!(o&&o.ssr);if(s){var l=getInstanceByDom(r);if(l)return l}var v=new ECharts(r,t,o);return v.id="ec_"+idBase++,instances[v.id]=v,s&&setAttribute(r,DOM_ATTRIBUTE_KEY,v.id),enableConnect(v),lifecycle$1.trigger("afterinit",v),v}function connect(r){if(isArray$1(r)){var t=r;r=null,each$c(t,function(o){o.group!=null&&(r=o.group)}),r=r||"g_"+groupIdBase++,each$c(t,function(o){o.group=r})}return connectedGroups[r]=!0,r}function disConnect(r){connectedGroups[r]=!1}var disconnect=disConnect;function dispose(r){isString(r)?r=instances[r]:r instanceof ECharts||(r=getInstanceByDom(r)),r instanceof ECharts&&!r.isDisposed()&&r.dispose()}function getInstanceByDom(r){return instances[getAttribute(r,DOM_ATTRIBUTE_KEY)]}function getInstanceById(r){return instances[r]}function registerTheme(r,t){themeStorage[r]=t}function registerPreprocessor(r){indexOf(optionPreprocessorFuncs,r)<0&&optionPreprocessorFuncs.push(r)}function registerProcessor(r,t){normalizeRegister(dataProcessorFuncs,r,t,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit(r){registerUpdateLifecycle("afterinit",r)}function registerPostUpdate(r){registerUpdateLifecycle("afterupdate",r)}function registerUpdateLifecycle(r,t){lifecycle$1.on(r,t)}function registerAction(r,t,o){isFunction(t)&&(o=t,t="");var s=isObject$3(r)?r.type:[r,r={event:t}][0];r.event=(r.event||s).toLowerCase(),t=r.event,!eventActionMap[t]&&(assert(ACTION_REG.test(s)&&ACTION_REG.test(t)),actions[s]||(actions[s]={action:o,actionInfo:r}),eventActionMap[t]=s)}function registerCoordinateSystem(r,t){CoordinateSystem.register(r,t)}function getCoordinateSystemDimensions(r){var t=CoordinateSystem.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function registerLayout(r,t){normalizeRegister(visualFuncs,r,t,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual(r,t){normalizeRegister(visualFuncs,r,t,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister(r,t,o,s,l){if((isFunction(t)||isObject$3(t))&&(o=t,t=s),!(indexOf(registeredTasks,o)>=0)){registeredTasks.push(o);var v=Scheduler$1.wrapStageHandler(o,l);v.__prio=t,v.__raw=o,r.push(v)}}function registerLoading(r,t){loadingEffects[r]=t}function setCanvasCreator(r){setPlatformAPI({createCanvas:r})}function registerMap(r,t,o){var s=getImpl("registerMap");s&&s(r,t,o)}function getMap(r){var t=getImpl("getMap");return t&&t(r)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength(r){return r==null?0:r.length||1}function defaultKeyGetter(r){return r}var DataDiffer=function(){function r(t,o,s,l,v,x){this._old=t,this._new=o,this._oldKeyGetter=s||defaultKeyGetter,this._newKeyGetter=l||defaultKeyGetter,this.context=v,this._diffModeMultiple=x==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,o=this._new,s={},l=new Array(t.length),v=new Array(o.length);this._initIndexMap(t,null,l,"_oldKeyGetter"),this._initIndexMap(o,s,v,"_newKeyGetter");for(var x=0;x<t.length;x++){var A=l[x],w=s[A],E=dataIndexMapValueLength(w);if(E>1){var C=w.shift();w.length===1&&(s[A]=w[0]),this._update&&this._update(C,x)}else E===1?(s[A]=null,this._update&&this._update(w,x)):this._remove&&this._remove(x)}this._performRestAdd(v,s)},r.prototype._executeMultiple=function(){var t=this._old,o=this._new,s={},l={},v=[],x=[];this._initIndexMap(t,s,v,"_oldKeyGetter"),this._initIndexMap(o,l,x,"_newKeyGetter");for(var A=0;A<v.length;A++){var w=v[A],E=s[w],C=l[w],R=dataIndexMapValueLength(E),$=dataIndexMapValueLength(C);if(R>1&&$===1)this._updateManyToOne&&this._updateManyToOne(C,E),l[w]=null;else if(R===1&&$>1)this._updateOneToMany&&this._updateOneToMany(C,E),l[w]=null;else if(R===1&&$===1)this._update&&this._update(C,E),l[w]=null;else if(R>1&&$>1)this._updateManyToMany&&this._updateManyToMany(C,E),l[w]=null;else if(R>1)for(var V=0;V<R;V++)this._remove&&this._remove(E[V]);else this._remove&&this._remove(E)}this._performRestAdd(x,l)},r.prototype._performRestAdd=function(t,o){for(var s=0;s<t.length;s++){var l=t[s],v=o[l],x=dataIndexMapValueLength(v);if(x>1)for(var A=0;A<x;A++)this._add&&this._add(v[A]);else x===1&&this._add&&this._add(v);o[l]=null}},r.prototype._initIndexMap=function(t,o,s,l){for(var v=this._diffModeMultiple,x=0;x<t.length;x++){var A="_ec_"+this[l](t[x],x);if(v||(s[x]=A),!!o){var w=o[A],E=dataIndexMapValueLength(w);E===0?(o[A]=x,v&&s.push(A)):E===1?o[A]=[w,x]:w.push(x)}}},r}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function r(t,o){this._encode=t,this._schema=o}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function summarizeDimensions(r,t){var o={},s=o.encode={},l=createHashMap(),v=[],x=[],A={};each$c(r.dimensions,function($){var V=r.getDimensionInfo($),z=V.coordDim;if(z){var F=V.coordDimIndex;getOrCreateEncodeArr(s,z)[F]=$,V.isExtraCoord||(l.set(z,1),mayLabelDimType(V.type)&&(v[0]=$),getOrCreateEncodeArr(A,z)[F]=r.getDimensionIndex(V.name)),V.defaultTooltip&&x.push($)}VISUAL_DIMENSIONS.each(function(B,W){var Y=getOrCreateEncodeArr(s,W),Z=V.otherDims[W];Z!=null&&Z!==!1&&(Y[Z]=V.name)})});var w=[],E={};l.each(function($,V){var z=s[V];E[V]=z[0],w=w.concat(z)}),o.dataDimsOnCoord=w,o.dataDimIndicesOnCoord=map$2(w,function($){return r.getDimensionInfo($).storeDimIndex}),o.encodeFirstDimNotExtra=E;var C=s.label;C&&C.length&&(v=C.slice());var R=s.tooltip;return R&&R.length?x=R.slice():x.length||(x=v.slice()),s.defaultedLabel=v,s.defaultedTooltip=x,o.userOutput=new DimensionUserOuput(A,t),o}function getOrCreateEncodeArr(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function getDimensionTypeByAxis(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function mayLabelDimType(r){return!(r==="ordinal"||r==="time")}var SeriesDimensionDefine=function(){function r(t){this.otherDims={},t!=null&&extend(this,t)}return r}();const SeriesDimensionDefine$1=SeriesDimensionDefine;var inner$8=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return retrieve2(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var o=this.source.dimensionsDefine;if(o)return o[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,o=shouldRetrieveDataByName(this.source),s=!shouldOmitUnusedDimensions(t),l="",v=[],x=0,A=0;x<t;x++){var w=void 0,E=void 0,C=void 0,R=this.dimensions[A];if(R&&R.storeDimIndex===x)w=o?R.name:null,E=R.type,C=R.ordinalMeta,A++;else{var $=this.getSourceDimension(x);$&&(w=o?$.name:null,E=$.type)}v.push({property:w,type:E,ordinalMeta:C}),o&&w!=null&&(!R||!R.isCalculationCoord)&&(l+=s?w.replace(/\`/g,"`1").replace(/\$/g,"`2"):w),l+="$",l+=dimTypeShort[E]||"f",C&&(l+=C.uid),l+="$"}var V=this.source,z=[V.seriesLayoutBy,V.startIndex,l].join("$$");return{dimensions:v,hash:z}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],o=0,s=0;o<this._fullDimCount;o++){var l=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)v.isCalculationCoord||(l=v.name),s++;else{var x=this.getSourceDimension(o);x&&(l=x.name)}t.push(l)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function isSeriesDataSchema(r){return r instanceof SeriesDataSchema}function createDimNameMap(r){for(var t=createHashMap(),o=0;o<(r||[]).length;o++){var s=r[o],l=isObject$3(s)?s.name:s;l!=null&&t.get(l)==null&&t.set(l,o)}return t}function ensureSourceDimNameMap(r){var t=inner$8(r);return t.dimNameMap||(t.dimNameMap=createDimNameMap(r.dimensionsDefine))}function shouldOmitUnusedDimensions(r){return r>30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function r(t,o){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,l=!1;isSeriesDataSchema(t)?(s=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(l=!0,s=t),s=s||["x","y"];for(var v={},x=[],A={},w=!1,E={},C=0;C<s.length;C++){var R=s[C],$=isString(R)?new SeriesDimensionDefine$1({name:R}):R instanceof SeriesDimensionDefine$1?R:new SeriesDimensionDefine$1(R),V=$.name;$.type=$.type||"float",$.coordDim||($.coordDim=V,$.coordDimIndex=0);var z=$.otherDims=$.otherDims||{};x.push(V),v[V]=$,E[V]!=null&&(w=!0),$.createInvertedIndices&&(A[V]=[]),z.itemName===0&&(this._nameDimIdx=C),z.itemId===0&&(this._idDimIdx=C),l&&($.storeDimIndex=C)}if(this.dimensions=x,this._dimInfos=v,this._initGetDimensionInfo(w),this.hostModel=o,this._invertedIndicesMap=A,this._dimOmitted){var F=this._dimIdxToName=createHashMap();each$c(x,function(B){F.set(v[B].storeDimIndex,B)})}}return r.prototype.getDimension=function(t){var o=this._recognizeDimIndex(t);if(o==null)return t;if(o=t,!this._dimOmitted)return this.dimensions[o];var s=this._dimIdxToName.get(o);if(s!=null)return s;var l=this._schema.getSourceDimension(o);if(l)return l.name},r.prototype.getDimensionIndex=function(t){var o=this._recognizeDimIndex(t);if(o!=null)return o;if(t==null)return-1;var s=this._getDimInfo(t);return s?s.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(isNumber(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var o=this.getDimensionIndex(t);return o},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var o=this._dimInfos;this._getDimInfo=t?function(s){return o.hasOwnProperty(s)?o[s]:void 0}:function(s){return o[s]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,o){var s=this._dimSummary;if(o==null)return s.encodeFirstDimNotExtra[t];var l=s.encode[t];return l?l[o]:null},r.prototype.mapDimensionsAll=function(t){var o=this._dimSummary,s=o.encode[t];return(s||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,o,s){var l=this,v;if(t instanceof DataStore$1&&(v=t),!v){var x=this.dimensions,A=isSourceInstance(t)||isArrayLike(t)?new DefaultDataProvider(t,x.length):t;v=new DataStore$1;var w=map$1(x,function(E){return{type:l._dimInfos[E].type,property:E}});v.initData(A,w,s)}this._store=v,this._nameList=(o||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,v.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var o=this._store.appendData(t);this._doInit(o[0],o[1])},r.prototype.appendValues=function(t,o){var s=this._store.appendValues(t,o.length),l=s.start,v=s.end,x=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),o)for(var A=l;A<v;A++){var w=A-l;this._nameList[A]=o[w],x&&makeIdFromName(this,A)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,o=this.dimensions,s=0;s<o.length;s++){var l=this._dimInfos[o[s]];l.ordinalMeta&&t.collectOrdinalMeta(l.storeDimIndex,l.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!t.fillStorage},r.prototype._doInit=function(t,o){if(!(t>=o)){var s=this._store,l=s.getProvider();this._updateOrdinalMeta();var v=this._nameList,x=this._idList,A=l.getSource().sourceFormat,w=A===SOURCE_FORMAT_ORIGINAL;if(w&&!l.pure)for(var E=[],C=t;C<o;C++){var R=l.getItem(C,E);if(!this.hasItemOption&&isDataItemOption(R)&&(this.hasItemOption=!0),R){var $=R.name;v[C]==null&&$!=null&&(v[C]=convertOptionIdName($,null));var V=R.id;x[C]==null&&V!=null&&(x[C]=convertOptionIdName(V,null))}}if(this._shouldMakeIdFromName())for(var C=t;C<o;C++)makeIdFromName(this,C);prepareInvertedIndex(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,o){o=this.getDimension(o),this._approximateExtent[o]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,o){isObject$1(t)?extend(this._calculationInfo,t):this._calculationInfo[t]=o},r.prototype.getName=function(t){var o=this.getRawIndex(t),s=this._nameList[o];return s==null&&this._nameDimIdx!=null&&(s=getIdNameFromStore(this,this._nameDimIdx,o)),s==null&&(s=""),s},r.prototype._getCategory=function(t,o){var s=this._store.get(t,o),l=this._store.getOrdinalMeta(t);return l?l.categories[s]:s},r.prototype.getId=function(t){return getId(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,o){var s=this._store,l=this._dimInfos[t];if(l)return s.get(l.storeDimIndex,o)},r.prototype.getByRawIndex=function(t,o){var s=this._store,l=this._dimInfos[t];if(l)return s.getByRawIndex(l.storeDimIndex,o)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,o){var s=this,l=this._store;return isArray$1(t)?l.getValues(map$1(t,function(v){return s._getStoreDimIndex(v)}),o):l.getValues(t)},r.prototype.hasValue=function(t){for(var o=this._dimSummary.dataDimIndicesOnCoord,s=0,l=o.length;s<l;s++)if(isNaN(this._store.get(o[s],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var o=0,s=this._store.count();o<s;o++)if(this.getName(o)===t)return o;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,o){var s=t&&this._invertedIndicesMap[t],l=s[o];return l==null||isNaN(l)?INDEX_NOT_FOUND:l},r.prototype.indicesOfNearest=function(t,o,s){return this._store.indicesOfNearest(this._getStoreDimIndex(t),o,s)},r.prototype.each=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]);var l=s||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.each(v,l?bind$1(o,l):o)},r.prototype.filterSelf=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]);var l=s||this,v=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);return this._store=this._store.filter(v,l?bind$1(o,l):o),this},r.prototype.selectRange=function(t){var o=this,s={},l=keys(t);return each$c(l,function(v){var x=o._getStoreDimIndex(v);s[x]=t[v]}),this._store=this._store.selectRange(s),this},r.prototype.mapArray=function(t,o,s){isFunction(t)&&(s=o,o=t,t=[]),s=s||this;var l=[];return this.each(t,function(){l.push(o&&o.apply(this,arguments))},s),l},r.prototype.map=function(t,o,s,l){var v=s||l||this,x=map$1(normalizeDimensions(t),this._getStoreDimIndex,this),A=cloneListForMapAndSample(this);return A._store=this._store.map(x,v?bind$1(o,v):o),A},r.prototype.modify=function(t,o,s,l){var v=s||l||this,x=map$1(normalizeDimensions(t),this._getStoreDimIndex,this);this._store.modify(x,v?bind$1(o,v):o)},r.prototype.downSample=function(t,o,s,l){var v=cloneListForMapAndSample(this);return v._store=this._store.downSample(this._getStoreDimIndex(t),o,s,l),v},r.prototype.lttbDownSample=function(t,o){var s=cloneListForMapAndSample(this);return s._store=this._store.lttbDownSample(this._getStoreDimIndex(t),o),s},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var o=this.hostModel,s=this.getRawDataItem(t);return new Model$1(s,o,o&&o.ecModel)},r.prototype.diff=function(t){var o=this;return new DataDiffer$1(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(s){return getId(t,s)},function(s){return getId(o,s)})},r.prototype.getVisual=function(t){var o=this._visual;return o&&o[t]},r.prototype.setVisual=function(t,o){this._visual=this._visual||{},isObject$1(t)?extend(this._visual,t):this._visual[t]=o},r.prototype.getItemVisual=function(t,o){var s=this._itemVisuals[t],l=s&&s[o];return l??this.getVisual(o)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,o){var s=this._itemVisuals,l=s[t];l||(l=s[t]={});var v=l[o];return v==null&&(v=this.getVisual(o),isArray$1(v)?v=v.slice():isObject$1(v)&&(v=extend({},v)),l[o]=v),v},r.prototype.setItemVisual=function(t,o,s){var l=this._itemVisuals[t]||{};this._itemVisuals[t]=l,isObject$1(o)?extend(l,o):l[o]=s},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,o){isObject$1(t)?extend(this._layout,t):this._layout[t]=o},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,o,s){this._itemLayouts[t]=s?extend(this._itemLayouts[t]||{},o):o},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,o){var s=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(s,this.dataType,t,o),this._graphicEls[t]=o},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,o){each$c(this._graphicEls,function(s,l){s&&t&&t.call(o,s,l)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,o){var s=this[t];isFunction(s)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var l=s.apply(this,arguments);return o.apply(this,[l].concat(slice(arguments)))})},r.internalField=function(){prepareInvertedIndex=function(t){var o=t._invertedIndicesMap;each$c(o,function(s,l){var v=t._dimInfos[l],x=v.ordinalMeta,A=t._store;if(x){s=o[l]=new CtorInt32Array(x.categories.length);for(var w=0;w<s.length;w++)s[w]=INDEX_NOT_FOUND;for(var w=0;w<A.count();w++)s[A.get(v.storeDimIndex,w)]=w}})},getIdNameFromStore=function(t,o,s){return convertOptionIdName(t._getCategory(o,s),null)},getId=function(t,o){var s=t._idList[o];return s==null&&t._idDimIdx!=null&&(s=getIdNameFromStore(t,t._idDimIdx,o)),s==null&&(s=ID_PREFIX+o),s},normalizeDimensions=function(t){return isArray$1(t)||(t=t!=null?[t]:[]),t},cloneListForMapAndSample=function(t){var o=new r(t._schema?t._schema:map$1(t.dimensions,t._getDimInfo,t),t.hostModel);return transferProperties(o,t),o},transferProperties=function(t,o){each$c(TRANSFERABLE_PROPERTIES.concat(o.__wrappedMethods||[]),function(s){o.hasOwnProperty(s)&&(t[s]=o[s])}),t.__wrappedMethods=o.__wrappedMethods,each$c(CLONE_PROPERTIES,function(s){t[s]=clone$3(o[s])}),t._calculationInfo=extend({},o._calculationInfo)},makeIdFromName=function(t,o){var s=t._nameList,l=t._idList,v=t._nameDimIdx,x=t._idDimIdx,A=s[o],w=l[o];if(A==null&&v!=null&&(s[o]=A=getIdNameFromStore(t,v,o)),w==null&&x!=null&&(l[o]=w=getIdNameFromStore(t,x,o)),w==null&&A!=null){var E=t._nameRepeatCount,C=E[A]=(E[A]||0)+1;w=A,C>1&&(w+="__ec__"+C),l[o]=w}}}(),r}();const SeriesData$1=SeriesData;function createDimensions(r,t){return prepareSeriesDataSchema(r,t).dimensions}function prepareSeriesDataSchema(r,t){isSourceInstance(r)||(r=createSourceFromSeriesDataOption(r)),t=t||{};var o=t.coordDimensions||[],s=t.dimensionsDefine||r.dimensionsDefine||[],l=createHashMap(),v=[],x=getDimCount(r,o,s,t.dimensionsCount),A=t.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(x),w=s===r.dimensionsDefine,E=w?ensureSourceDimNameMap(r):createDimNameMap(s),C=t.encodeDefine;!C&&t.encodeDefaulter&&(C=t.encodeDefaulter(r,x));for(var R=createHashMap(C),$=new CtorInt32Array$1(x),V=0;V<$.length;V++)$[V]=-1;function z(ve){var xe=$[ve];if(xe<0){var _e=s[ve],Te=isObject$3(_e)?_e:{name:_e},Ee=new SeriesDimensionDefine$1,Ce=Te.name;Ce!=null&&E.get(Ce)!=null&&(Ee.name=Ee.displayName=Ce),Te.type!=null&&(Ee.type=Te.type),Te.displayName!=null&&(Ee.displayName=Te.displayName);var Pe=v.length;return $[ve]=Pe,Ee.storeDimIndex=ve,v.push(Ee),Ee}return v[xe]}if(!A)for(var V=0;V<x;V++)z(V);R.each(function(ve,xe){var _e=normalizeToArray(ve).slice();if(_e.length===1&&!isString(_e[0])&&_e[0]<0){R.set(xe,!1);return}var Te=R.set(xe,[]);each$c(_e,function(Ee,Ce){var Pe=isString(Ee)?E.get(Ee):Ee;Pe!=null&&Pe<x&&(Te[Ce]=Pe,B(z(Pe),xe,Ce))})});var F=0;each$c(o,function(ve){var xe,_e,Te,Ee;if(isString(ve))xe=ve,Ee={};else{Ee=ve,xe=Ee.name;var Ce=Ee.ordinalMeta;Ee.ordinalMeta=null,Ee=extend({},Ee),Ee.ordinalMeta=Ce,_e=Ee.dimsDef,Te=Ee.otherDims,Ee.name=Ee.coordDim=Ee.coordDimIndex=Ee.dimsDef=Ee.otherDims=null}var Pe=R.get(xe);if(Pe!==!1){if(Pe=normalizeToArray(Pe),!Pe.length)for(var Me=0;Me<(_e&&_e.length||1);Me++){for(;F<x&&z(F).coordDim!=null;)F++;F<x&&Pe.push(F++)}each$c(Pe,function(Fe,De){var Re=z(Fe);if(w&&Ee.type!=null&&(Re.type=Ee.type),B(defaults(Re,Ee),xe,De),Re.name==null&&_e){var Ne=_e[De];!isObject$3(Ne)&&(Ne={name:Ne}),Re.name=Re.displayName=Ne.name,Re.defaultTooltip=Ne.defaultTooltip}Te&&defaults(Re.otherDims,Te)})}});function B(ve,xe,_e){VISUAL_DIMENSIONS.get(xe)!=null?ve.otherDims[xe]=_e:(ve.coordDim=xe,ve.coordDimIndex=_e,l.set(xe,!0))}var W=t.generateCoord,Y=t.generateCoordCount,Z=Y!=null;Y=W?Y||1:0;var X=W||"value";function ae(ve){ve.name==null&&(ve.name=ve.coordDim)}if(A)each$c(v,function(ve){ae(ve)}),v.sort(function(ve,xe){return ve.storeDimIndex-xe.storeDimIndex});else for(var ie=0;ie<x;ie++){var oe=z(ie),le=oe.coordDim;le==null&&(oe.coordDim=genCoordDimName(X,l,Z),oe.coordDimIndex=0,(!W||Y<=0)&&(oe.isExtraCoord=!0),Y--),ae(oe),oe.type==null&&(guessOrdinal(r,ie)===BE_ORDINAL.Must||oe.isExtraCoord&&(oe.otherDims.itemName!=null||oe.otherDims.seriesName!=null))&&(oe.type="ordinal")}return removeDuplication(v),new SeriesDataSchema({source:r,dimensions:v,fullDimensionCount:x,dimensionOmitted:A})}function removeDuplication(r){for(var t=createHashMap(),o=0;o<r.length;o++){var s=r[o],l=s.name,v=t.get(l)||0;v>0&&(s.name=l+(v-1)),v++,t.set(l,v)}}function getDimCount(r,t,o,s){var l=Math.max(r.dimensionsDetectedCount||1,t.length,o.length,s||0);return each$c(t,function(v){var x;isObject$3(v)&&(x=v.dimsDef)&&(l=Math.max(l,x.length))}),l}function genCoordDimName(r,t,o){if(o||t.hasKey(r)){for(var s=0;t.hasKey(r+s);)s++;r+=s}return t.set(r,!0),r}var CoordSysInfo=function(){function r(t){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=t}return r}();function getCoordSysInfoBySeries(r){var t=r.get("coordinateSystem"),o=new CoordSysInfo(t),s=fetchers[t];if(s)return s(r,o,o.axisMap,o.categoryAxisMap),o}var fetchers={cartesian2d:function(r,t,o,s){var l=r.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],v=r.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["x","y"],o.set("x",l),o.set("y",v),isCategory(l)&&(s.set("x",l),t.firstCategoryDimIndex=0),isCategory(v)&&(s.set("y",v),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,o,s){var l=r.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["single"],o.set("single",l),isCategory(l)&&(s.set("single",l),t.firstCategoryDimIndex=0)},polar:function(r,t,o,s){var l=r.getReferringComponents("polar",SINGLE_REFERRING).models[0],v=l.findAxisModel("radiusAxis"),x=l.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],o.set("radius",v),o.set("angle",x),isCategory(v)&&(s.set("radius",v),t.firstCategoryDimIndex=0),isCategory(x)&&(s.set("angle",x),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,o,s){t.coordSysDims=["lng","lat"]},parallel:function(r,t,o,s){var l=r.ecModel,v=l.getComponent("parallel",r.get("parallelIndex")),x=t.coordSysDims=v.dimensions.slice();each$c(v.parallelAxisIndex,function(A,w){var E=l.getComponent("parallelAxis",A),C=x[w];o.set(C,E),isCategory(E)&&(s.set(C,E),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=w))})}};function isCategory(r){return r.get("type")==="category"}function enableDataStack(r,t,o){o=o||{};var s=o.byIndex,l=o.stackedCoordDimension,v,x,A;isLegacyDimensionsInput(t)?v=t:(x=t.schema,v=x.dimensions,A=t.store);var w=!!(r&&r.get("stack")),E,C,R,$;if(each$c(v,function(Y,Z){isString(Y)&&(v[Z]=Y={name:Y}),w&&!Y.isExtraCoord&&(!s&&!E&&Y.ordinalMeta&&(E=Y),!C&&Y.type!=="ordinal"&&Y.type!=="time"&&(!l||l===Y.coordDim)&&(C=Y))}),C&&!s&&!E&&(s=!0),C){R="__\0ecstackresult_"+r.id,$="__\0ecstackedover_"+r.id,E&&(E.createInvertedIndices=!0);var V=C.coordDim,z=C.type,F=0;each$c(v,function(Y){Y.coordDim===V&&F++});var B={name:R,coordDim:V,coordDimIndex:F,type:z,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:v.length},W={name:$,coordDim:$,coordDimIndex:F+1,type:z,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:v.length+1};x?(A&&(B.storeDimIndex=A.ensureCalculationDimension($,z),W.storeDimIndex=A.ensureCalculationDimension(R,z)),x.appendCalculationDimension(B),x.appendCalculationDimension(W)):(v.push(B),v.push(W))}return{stackedDimension:C&&C.name,stackedByDimension:E&&E.name,isStackedByIndex:s,stackedOverDimension:$,stackResultDimension:R}}function isLegacyDimensionsInput(r){return!isSeriesDataSchema(r.schema)}function isDimensionStacked(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function getStackedDimension(r,t){return isDimensionStacked(r,t)?r.getCalculationInfo("stackResultDimension"):t}function getCoordSysDimDefs(r,t){var o=r.get("coordinateSystem"),s=CoordinateSystem.get(o),l;return t&&t.coordSysDims&&(l=map$2(t.coordSysDims,function(v){var x={name:v},A=t.axisMap.get(v);if(A){var w=A.get("type");x.type=getDimensionTypeByAxis(w)}return x})),l||(l=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),l}function injectOrdinalMeta(r,t,o){var s,l;return o&&each$c(r,function(v,x){var A=v.coordDim,w=o.categoryAxisMap.get(A);w&&(s==null&&(s=x),v.ordinalMeta=w.getOrdinalMeta(),t&&(v.createInvertedIndices=!0)),v.otherDims.itemName!=null&&(l=!0)}),!l&&s!=null&&(r[s].otherDims.itemName=0),s}function createSeriesData(r,t,o){o=o||{};var s=t.getSourceManager(),l,v=!1;r?(v=!0,l=createSourceFromSeriesDataOption(r)):(l=s.getSource(),v=l.sourceFormat===SOURCE_FORMAT_ORIGINAL);var x=getCoordSysInfoBySeries(t),A=getCoordSysDimDefs(t,x),w=o.useEncodeDefaulter,E=isFunction(w)?w:w?curry$1(makeSeriesEncodeForAxisCoordSys,A,t):null,C={coordDimensions:A,generateCoord:o.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:E,canOmitUnusedDimensions:!v},R=prepareSeriesDataSchema(l,C),$=injectOrdinalMeta(R.dimensions,o.createInvertedIndices,x),V=v?null:s.getSharedDataStore(R),z=enableDataStack(t,{schema:R,store:V}),F=new SeriesData$1(R,t);F.setCalculationInfo(z);var B=$!=null&&isNeedCompleteOrdinalData(l)?function(W,Y,Z,X){return X===$?Z:this.defaultDimValueGetter(W,Y,Z,X)}:null;return F.hasItemOption=!1,F.initData(v?l:V,null,B),F}function isNeedCompleteOrdinalData(r){if(r.sourceFormat===SOURCE_FORMAT_ORIGINAL){var t=firstDataNotNull(r.data||[]);return!isArray$1(getDataItemValue(t))}}function firstDataNotNull(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Scale=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var o=this._extent;t[0]<o[0]&&(o[0]=t[0]),t[1]>o[1]&&(o[1]=t[1])},r.prototype.unionExtentFromData=function(t,o){this.unionExtent(t.getApproximateExtent(o))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,o){var s=this._extent;isNaN(t)||(s[0]=t),isNaN(o)||(s[1]=o)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++uidBase}return r.createByAxisModel=function(t){var o=t.option,s=o.data,l=s&&map$2(s,getName);return new r({categories:l,needCollect:!l,deduplication:o.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var o,s=this._needCollect;if(!isString(t)&&!s)return t;if(s&&!this._deduplication)return o=this.categories.length,this.categories[o]=t,o;var l=this._getOrCreateMap();return o=l.get(t),o==null&&(s?(o=this.categories.length,this.categories[o]=t,l.set(t,o)):o=NaN),o},r.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},r}();function getName(r){return isObject$3(r)&&r.value!=null?r.value:r+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(r){return r.type==="interval"||r.type==="log"}function intervalScaleNiceTicks(r,t,o,s){var l={},v=r[1]-r[0],x=l.interval=nice(v/t,!0);o!=null&&x<o&&(x=l.interval=o),s!=null&&x>s&&(x=l.interval=s);var A=l.intervalPrecision=getIntervalPrecision(x),w=l.niceTickExtent=[round$1(Math.ceil(r[0]/x)*x,A),round$1(Math.floor(r[1]/x)*x,A)];return fixExtent(w,r),l}function increaseInterval(r){var t=Math.pow(10,quantityExponent(r)),o=r/t;return o?o===2?o=3:o===3?o=5:o*=2:o=1,round$1(o*t)}function getIntervalPrecision(r){return getPrecision(r)+2}function clamp(r,t,o){r[t]=Math.max(Math.min(r[t],o[1]),o[0])}function fixExtent(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),clamp(r,0,t),clamp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function contain$1(r,t){return r>=t[0]&&r<=t[1]}function normalize(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function scale(r,t){return r*(t[1]-t[0])+t[0]}var OrdinalScale=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;s.type="ordinal";var l=s.getSetting("ordinalMeta");return l||(l=new OrdinalMeta$1({})),isArray$1(l)&&(l=new OrdinalMeta$1({categories:map$2(l,function(v){return isObject$3(v)?v.value:v})})),s._ordinalMeta=l,s._extent=s.getSetting("extent")||[0,l.categories.length-1],s}return t.prototype.parse=function(o){return o==null?NaN:isString(o)?this._ordinalMeta.getOrdinal(o):Math.round(o)},t.prototype.contain=function(o){return o=this.parse(o),contain$1(o,this._extent)&&this._ordinalMeta.categories[o]!=null},t.prototype.normalize=function(o){return o=this._getTickNumber(this.parse(o)),normalize(o,this._extent)},t.prototype.scale=function(o){return o=Math.round(scale(o,this._extent)),this.getRawOrdinalNumber(o)},t.prototype.getTicks=function(){for(var o=[],s=this._extent,l=s[0];l<=s[1];)o.push({value:l}),l++;return o},t.prototype.getMinorTicks=function(o){},t.prototype.setSortInfo=function(o){if(o==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var s=o.ordinalNumbers,l=this._ordinalNumbersByTick=[],v=this._ticksByOrdinalNumber=[],x=0,A=this._ordinalMeta.categories.length,w=Math.min(A,s.length);x<w;++x){var E=s[x];l[x]=E,v[E]=x}for(var C=0;x<A;++x){for(;v[C]!=null;)C++;l.push(C),v[C]=x}},t.prototype._getTickNumber=function(o){var s=this._ticksByOrdinalNumber;return s&&o>=0&&o<s.length?s[o]:o},t.prototype.getRawOrdinalNumber=function(o){var s=this._ordinalNumbersByTick;return s&&o>=0&&o<s.length?s[o]:o},t.prototype.getLabel=function(o){if(!this.isBlank()){var s=this.getRawOrdinalNumber(o.value),l=this._ordinalMeta.categories[s];return l==null?"":l+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(o,s){this.unionExtent(o.getApproximateExtent(s))},t.prototype.isInExtentRange=function(o){return o=this._getTickNumber(o),this._extent[0]<=o&&this._extent[1]>=o},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="interval",o._interval=0,o._intervalPrecision=2,o}return t.prototype.parse=function(o){return o},t.prototype.contain=function(o){return contain$1(o,this._extent)},t.prototype.normalize=function(o){return normalize(o,this._extent)},t.prototype.scale=function(o){return scale(o,this._extent)},t.prototype.setExtent=function(o,s){var l=this._extent;isNaN(o)||(l[0]=parseFloat(o)),isNaN(s)||(l[1]=parseFloat(s))},t.prototype.unionExtent=function(o){var s=this._extent;o[0]<s[0]&&(s[0]=o[0]),o[1]>s[1]&&(s[1]=o[1]),this.setExtent(s[0],s[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(o){this._interval=o,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(o)},t.prototype.getTicks=function(o){var s=this._interval,l=this._extent,v=this._niceExtent,x=this._intervalPrecision,A=[];if(!s)return A;var w=1e4;l[0]<v[0]&&(o?A.push({value:roundNumber(v[0]-s,x)}):A.push({value:l[0]}));for(var E=v[0];E<=v[1]&&(A.push({value:E}),E=roundNumber(E+s,x),E!==A[A.length-1].value);)if(A.length>w)return[];var C=A.length?A[A.length-1].value:v[1];return l[1]>C&&(o?A.push({value:roundNumber(C+s,x)}):A.push({value:l[1]})),A},t.prototype.getMinorTicks=function(o){for(var s=this.getTicks(!0),l=[],v=this.getExtent(),x=1;x<s.length;x++){for(var A=s[x],w=s[x-1],E=0,C=[],R=A.value-w.value,$=R/o;E<o-1;){var V=roundNumber(w.value+(E+1)*$);V>v[0]&&V<v[1]&&C.push(V),E++}l.push(C)}return l},t.prototype.getLabel=function(o,s){if(o==null)return"";var l=s&&s.precision;l==null?l=getPrecision(o.value)||0:l==="auto"&&(l=this._intervalPrecision);var v=roundNumber(o.value,l,!0);return addCommas(v)},t.prototype.calcNiceTicks=function(o,s,l){o=o||5;var v=this._extent,x=v[1]-v[0];if(isFinite(x)){x<0&&(x=-x,v.reverse());var A=intervalScaleNiceTicks(v,o,s,l);this._intervalPrecision=A.intervalPrecision,this._interval=A.interval,this._niceExtent=A.niceTickExtent}},t.prototype.calcNiceExtent=function(o){var s=this._extent;if(s[0]===s[1])if(s[0]!==0){var l=Math.abs(s[0]);o.fixMax||(s[1]+=l/2),s[0]-=l/2}else s[1]=1;var v=s[1]-s[0];isFinite(v)||(s[0]=0,s[1]=1),this.calcNiceTicks(o.splitNumber,o.minInterval,o.maxInterval);var x=this._interval;o.fixMin||(s[0]=roundNumber(Math.floor(s[0]/x)*x)),o.fixMax||(s[1]=roundNumber(Math.ceil(s[1]/x)*x))},t.prototype.setNiceExtent=function(o,s){this._niceExtent=[o,s]},t.type="interval",t}(Scale$1);Scale$1.registerClass(IntervalScale);const IntervalScale$1=IntervalScale;var supportFloat32Array=typeof Float32Array<"u",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array(r){return isArray$1(r)?supportFloat32Array?new Float32Array(r):r:new Float32ArrayCtor(r)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId(r){return r.get("stack")||STACK_PREFIX+r.seriesIndex}function getAxisKey(r){return r.dim+r.index}function prepareLayoutBarSeries(r,t){var o=[];return t.eachSeriesByType(r,function(s){isOnCartesian(s)&&o.push(s)}),o}function getValueAxesMinGaps(r){var t={};each$c(r,function(w){var E=w.coordinateSystem,C=E.getBaseAxis();if(!(C.type!=="time"&&C.type!=="value"))for(var R=w.getData(),$=C.dim+"_"+C.index,V=R.getDimensionIndex(R.mapDimension(C.dim)),z=R.getStore(),F=0,B=z.count();F<B;++F){var W=z.get(V,F);t[$]?t[$].push(W):t[$]=[W]}});var o={};for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];if(l){l.sort(function(w,E){return w-E});for(var v=null,x=1;x<l.length;++x){var A=l[x]-l[x-1];A>0&&(v=v===null?A:Math.min(v,A))}o[s]=v}}return o}function makeColumnLayout(r){var t=getValueAxesMinGaps(r),o=[];return each$c(r,function(s){var l=s.coordinateSystem,v=l.getBaseAxis(),x=v.getExtent(),A;if(v.type==="category")A=v.getBandWidth();else if(v.type==="value"||v.type==="time"){var w=v.dim+"_"+v.index,E=t[w],C=Math.abs(x[1]-x[0]),R=v.scale.getExtent(),$=Math.abs(R[1]-R[0]);A=E?C/$*E:C}else{var V=s.getData();A=Math.abs(x[1]-x[0])/V.count()}var z=parsePercent(s.get("barWidth"),A),F=parsePercent(s.get("barMaxWidth"),A),B=parsePercent(s.get("barMinWidth")||(isInLargeMode(s)?.5:1),A),W=s.get("barGap"),Y=s.get("barCategoryGap");o.push({bandWidth:A,barWidth:z,barMaxWidth:F,barMinWidth:B,barGap:W,barCategoryGap:Y,axisKey:getAxisKey(v),stackId:getSeriesStackId(s)})}),doCalBarWidthAndOffset(o)}function doCalBarWidthAndOffset(r){var t={};each$c(r,function(s,l){var v=s.axisKey,x=s.bandWidth,A=t[v]||{bandWidth:x,remainedWidth:x,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},w=A.stacks;t[v]=A;var E=s.stackId;w[E]||A.autoWidthCount++,w[E]=w[E]||{width:0,maxWidth:0};var C=s.barWidth;C&&!w[E].width&&(w[E].width=C,C=Math.min(A.remainedWidth,C),A.remainedWidth-=C);var R=s.barMaxWidth;R&&(w[E].maxWidth=R);var $=s.barMinWidth;$&&(w[E].minWidth=$);var V=s.barGap;V!=null&&(A.gap=V);var z=s.barCategoryGap;z!=null&&(A.categoryGap=z)});var o={};return each$c(t,function(s,l){o[l]={};var v=s.stacks,x=s.bandWidth,A=s.categoryGap;if(A==null){var w=keys(v).length;A=Math.max(35-w*4,15)+"%"}var E=parsePercent(A,x),C=parsePercent(s.gap,1),R=s.remainedWidth,$=s.autoWidthCount,V=(R-E)/($+($-1)*C);V=Math.max(V,0),each$c(v,function(W){var Y=W.maxWidth,Z=W.minWidth;if(W.width){var X=W.width;Y&&(X=Math.min(X,Y)),Z&&(X=Math.max(X,Z)),W.width=X,R-=X+C*X,$--}else{var X=V;Y&&Y<X&&(X=Math.min(Y,R)),Z&&Z>X&&(X=Z),X!==V&&(W.width=X,R-=X+C*X,$--)}}),V=(R-E)/($+($-1)*C),V=Math.max(V,0);var z=0,F;each$c(v,function(W,Y){W.width||(W.width=V),F=W,z+=W.width*(1+C)}),F&&(z-=F.width*C);var B=-z/2;each$c(v,function(W,Y){o[l][Y]=o[l][Y]||{bandWidth:x,offset:B,width:W.width},B+=W.width*(1+C)})}),o}function retrieveColumnLayout(r,t,o){if(r&&t){var s=r[getAxisKey(t)];return s!=null&&o!=null?s[getSeriesStackId(o)]:s}}function layout$2(r,t){var o=prepareLayoutBarSeries(r,t),s=makeColumnLayout(o);each$c(o,function(l){var v=l.getData(),x=l.coordinateSystem,A=x.getBaseAxis(),w=getSeriesStackId(l),E=s[getAxisKey(A)][w],C=E.offset,R=E.width;v.setLayout({bandWidth:E.bandWidth,offset:C,size:R})})}function createProgressiveLayout(r){return{seriesType:r,plan:createRenderPlanner(),reset:function(t){if(isOnCartesian(t)){var o=t.getData(),s=t.coordinateSystem,l=s.getBaseAxis(),v=s.getOtherAxis(l),x=o.getDimensionIndex(o.mapDimension(v.dim)),A=o.getDimensionIndex(o.mapDimension(l.dim)),w=t.get("showBackground",!0),E=o.mapDimension(v.dim),C=o.getCalculationInfo("stackResultDimension"),R=isDimensionStacked(o,E)&&!!o.getCalculationInfo("stackedOnSeries"),$=v.isHorizontal(),V=getValueAxisStart(l,v),z=isInLargeMode(t),F=t.get("barMinHeight")||0,B=C&&o.getDimensionIndex(C),W=o.getLayout("size"),Y=o.getLayout("offset");return{progress:function(Z,X){for(var ae=Z.count,ie=z&&createFloat32Array(ae*3),oe=z&&w&&createFloat32Array(ae*3),le=z&&createFloat32Array(ae),ve=s.master.getRect(),xe=$?ve.width:ve.height,_e,Te=X.getStore(),Ee=0;(_e=Z.next())!=null;){var Ce=Te.get(R?B:x,_e),Pe=Te.get(A,_e),Me=V,Fe=void 0;R&&(Fe=+Ce-Te.get(x,_e));var De=void 0,Re=void 0,Ne=void 0,Ze=void 0;if($){var je=s.dataToPoint([Ce,Pe]);if(R){var Qe=s.dataToPoint([Fe,Pe]);Me=Qe[0]}De=Me,Re=je[1]+Y,Ne=je[0]-Me,Ze=W,Math.abs(Ne)<F&&(Ne=(Ne<0?-1:1)*F)}else{var je=s.dataToPoint([Pe,Ce]);if(R){var Qe=s.dataToPoint([Pe,Fe]);Me=Qe[1]}De=je[0]+Y,Re=Me,Ne=W,Ze=je[1]-Me,Math.abs(Ze)<F&&(Ze=(Ze<=0?-1:1)*F)}z?(ie[Ee]=De,ie[Ee+1]=Re,ie[Ee+2]=$?Ne:Ze,oe&&(oe[Ee]=$?ve.x:De,oe[Ee+1]=$?Re:ve.y,oe[Ee+2]=xe),le[_e]=_e):X.setItemLayout(_e,{x:De,y:Re,width:Ne,height:Ze}),Ee+=3}z&&X.setLayout({largePoints:ie,largeDataIndices:le,largeBackgroundPoints:oe,valueAxisHorizontal:$})}}}}}}function isOnCartesian(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function isInLargeMode(r){return r.pipelineContext&&r.pipelineContext.large}function getValueAxisStart(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bisect=function(r,t,o,s){for(;o<s;){var l=o+s>>>1;r[l][1]<t?o=l+1:s=l}return o},TimeScale=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="time",s}return t.prototype.getLabel=function(o){var s=this.getSetting("useUTC");return format$1(o.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,s,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(o,s,l){var v=this.getSetting("useUTC"),x=this.getSetting("locale");return leveledFormat(o,s,l,x,v)},t.prototype.getTicks=function(){var o=this._interval,s=this._extent,l=[];if(!o)return l;l.push({value:s[0],level:0});var v=this.getSetting("useUTC"),x=getIntervalTicks(this._minLevelUnit,this._approxInterval,v,s);return l=l.concat(x),l.push({value:s[1],level:0}),l},t.prototype.calcNiceExtent=function(o){var s=this._extent;if(s[0]===s[1]&&(s[0]-=ONE_DAY,s[1]+=ONE_DAY),s[1]===-1/0&&s[0]===1/0){var l=new Date;s[1]=+new Date(l.getFullYear(),l.getMonth(),l.getDate()),s[0]=s[1]-ONE_DAY}this.calcNiceTicks(o.splitNumber,o.minInterval,o.maxInterval)},t.prototype.calcNiceTicks=function(o,s,l){o=o||10;var v=this._extent,x=v[1]-v[0];this._approxInterval=x/o,s!=null&&this._approxInterval<s&&(this._approxInterval=s),l!=null&&this._approxInterval>l&&(this._approxInterval=l);var A=scaleIntervals.length,w=Math.min(bisect(scaleIntervals,this._approxInterval,0,A),A-1);this._interval=scaleIntervals[w][1],this._minLevelUnit=scaleIntervals[Math.max(w-1,0)][0]},t.prototype.parse=function(o){return isNumber(o)?o:+parseDate(o)},t.prototype.contain=function(o){return contain$1(this.parse(o),this._extent)},t.prototype.normalize=function(o){return normalize(this.parse(o),this._extent)},t.prototype.scale=function(o){return scale(o,this._extent)},t.type="time",t}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(r,t,o,s){var l=parseDate(t),v=parseDate(o),x=function(z){return getUnitValue(l,z,s)===getUnitValue(v,z,s)},A=function(){return x("year")},w=function(){return A()&&x("month")},E=function(){return w()&&x("day")},C=function(){return E()&&x("hour")},R=function(){return C()&&x("minute")},$=function(){return R()&&x("second")},V=function(){return $()&&x("millisecond")};switch(r){case"year":return A();case"month":return w();case"day":return E();case"hour":return C();case"minute":return R();case"second":return $();case"millisecond":return V()}}function getDateInterval(r,t){return r/=ONE_DAY,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function getMonthInterval(r){var t=30*ONE_DAY;return r/=t,r>6?6:r>3?3:r>2?2:1}function getHourInterval(r){return r/=ONE_HOUR,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function getMinutesAndSecondsInterval(r,t){return r/=t?ONE_MINUTE:ONE_SECOND,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function getMillisecondsInterval(r){return nice(r,!0)}function getFirstTimestampOfUnit(r,t,o){var s=new Date(r);switch(getPrimaryTimeUnit(t)){case"year":case"month":s[monthSetterName(o)](0);case"day":s[dateSetterName(o)](1);case"hour":s[hoursSetterName(o)](0);case"minute":s[minutesSetterName(o)](0);case"second":s[secondsSetterName(o)](0),s[millisecondsSetterName(o)](0)}return s.getTime()}function getIntervalTicks(r,t,o,s){var l=1e4,v=timeUnits,x=0;function A(xe,_e,Te,Ee,Ce,Pe,Me){for(var Fe=new Date(_e),De=_e,Re=Fe[Ee]();De<Te&&De<=s[1];)Me.push({value:De}),Re+=xe,Fe[Ce](Re),De=Fe.getTime();Me.push({value:De,notAdd:!0})}function w(xe,_e,Te){var Ee=[],Ce=!_e.length;if(!isUnitValueSame(getPrimaryTimeUnit(xe),s[0],s[1],o)){Ce&&(_e=[{value:getFirstTimestampOfUnit(new Date(s[0]),xe,o)},{value:s[1]}]);for(var Pe=0;Pe<_e.length-1;Pe++){var Me=_e[Pe].value,Fe=_e[Pe+1].value;if(Me!==Fe){var De=void 0,Re=void 0,Ne=void 0,Ze=!1;switch(xe){case"year":De=Math.max(1,Math.round(t/ONE_DAY/365)),Re=fullYearGetterName(o),Ne=fullYearSetterName(o);break;case"half-year":case"quarter":case"month":De=getMonthInterval(t),Re=monthGetterName(o),Ne=monthSetterName(o);break;case"week":case"half-week":case"day":De=getDateInterval(t),Re=dateGetterName(o),Ne=dateSetterName(o),Ze=!0;break;case"half-day":case"quarter-day":case"hour":De=getHourInterval(t),Re=hoursGetterName(o),Ne=hoursSetterName(o);break;case"minute":De=getMinutesAndSecondsInterval(t,!0),Re=minutesGetterName(o),Ne=minutesSetterName(o);break;case"second":De=getMinutesAndSecondsInterval(t,!1),Re=secondsGetterName(o),Ne=secondsSetterName(o);break;case"millisecond":De=getMillisecondsInterval(t),Re=millisecondsGetterName(o),Ne=millisecondsSetterName(o);break}A(De,Me,Fe,Re,Ne,Ze,Ee),xe==="year"&&Te.length>1&&Pe===0&&Te.unshift({value:Te[0].value-De})}}for(var Pe=0;Pe<Ee.length;Pe++)Te.push(Ee[Pe]);return Ee}}for(var E=[],C=[],R=0,$=0,V=0;V<v.length&&x++<l;++V){var z=getPrimaryTimeUnit(v[V]);if(isPrimaryTimeUnit(v[V])){w(v[V],E[E.length-1]||[],C);var F=v[V+1]?getPrimaryTimeUnit(v[V+1]):null;if(z!==F){if(C.length){$=R,C.sort(function(xe,_e){return xe.value-_e.value});for(var B=[],W=0;W<C.length;++W){var Y=C[W].value;(W===0||C[W-1].value!==Y)&&(B.push(C[W]),Y>=s[0]&&Y<=s[1]&&R++)}var Z=(s[1]-s[0])/t;if(R>Z*1.5&&$>Z/1.5||(E.push(B),R>Z||r===v[V]))break}C=[]}}}for(var X=filter(map$2(E,function(xe){return filter(xe,function(_e){return _e.value>=s[0]&&_e.value<=s[1]&&!_e.notAdd})}),function(xe){return xe.length>0}),ae=[],ie=X.length-1,V=0;V<X.length;++V)for(var oe=X[V],le=0;le<oe.length;++le)ae.push({value:oe[le].value,level:ie-V});ae.sort(function(xe,_e){return xe.value-_e.value});for(var ve=[],V=0;V<ae.length;++V)(V===0||ae[V].value!==ae[V-1].value)&&ve.push(ae[V]);return ve}Scale$1.registerClass(TimeScale);const TimeScale$1=TimeScale;var scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="log",o.base=10,o._originalScale=new IntervalScale$1,o._interval=0,o}return t.prototype.getTicks=function(o){var s=this._originalScale,l=this._extent,v=s.getExtent(),x=intervalScaleProto.getTicks.call(this,o);return map$2(x,function(A){var w=A.value,E=round$1(mathPow$1(this.base,w));return E=w===l[0]&&this._fixMin?fixRoundingError(E,v[0]):E,E=w===l[1]&&this._fixMax?fixRoundingError(E,v[1]):E,{value:E}},this)},t.prototype.setExtent=function(o,s){var l=mathLog$1(this.base);o=mathLog$1(Math.max(0,o))/l,s=mathLog$1(Math.max(0,s))/l,intervalScaleProto.setExtent.call(this,o,s)},t.prototype.getExtent=function(){var o=this.base,s=scaleProto.getExtent.call(this);s[0]=mathPow$1(o,s[0]),s[1]=mathPow$1(o,s[1]);var l=this._originalScale,v=l.getExtent();return this._fixMin&&(s[0]=fixRoundingError(s[0],v[0])),this._fixMax&&(s[1]=fixRoundingError(s[1],v[1])),s},t.prototype.unionExtent=function(o){this._originalScale.unionExtent(o);var s=this.base;o[0]=mathLog$1(o[0])/mathLog$1(s),o[1]=mathLog$1(o[1])/mathLog$1(s),scaleProto.unionExtent.call(this,o)},t.prototype.unionExtentFromData=function(o,s){this.unionExtent(o.getApproximateExtent(s))},t.prototype.calcNiceTicks=function(o){o=o||10;var s=this._extent,l=s[1]-s[0];if(!(l===1/0||l<=0)){var v=quantity(l),x=o/l*v;for(x<=.5&&(v*=10);!isNaN(v)&&Math.abs(v)<1&&Math.abs(v)>0;)v*=10;var A=[round$1(mathCeil(s[0]/v)*v),round$1(mathFloor(s[1]/v)*v)];this._interval=v,this._niceExtent=A}},t.prototype.calcNiceExtent=function(o){intervalScaleProto.calcNiceExtent.call(this,o),this._fixMin=o.fixMin,this._fixMax=o.fixMax},t.prototype.parse=function(o){return o},t.prototype.contain=function(o){return o=mathLog$1(o)/mathLog$1(this.base),contain$1(o,this._extent)},t.prototype.normalize=function(o){return o=mathLog$1(o)/mathLog$1(this.base),normalize(o,this._extent)},t.prototype.scale=function(o){return o=scale(o,this._extent),mathPow$1(this.base,o)},t.type="log",t}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(r,t){return roundingErrorFix(r,getPrecision(t))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function r(t,o,s){this._prepareParams(t,o,s)}return r.prototype._prepareParams=function(t,o,s){s[1]<s[0]&&(s=[NaN,NaN]),this._dataMin=s[0],this._dataMax=s[1];var l=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&o.getNeedCrossZero&&o.getNeedCrossZero();var v=this._modelMinRaw=o.get("min",!0);isFunction(v)?this._modelMinNum=parseAxisModelMinMax(t,v({min:s[0],max:s[1]})):v!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(t,v));var x=this._modelMaxRaw=o.get("max",!0);if(isFunction(x)?this._modelMaxNum=parseAxisModelMinMax(t,x({min:s[0],max:s[1]})):x!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(t,x)),l)this._axisDataLen=o.getCategories().length;else{var A=o.get("boundaryGap"),w=isArray$1(A)?A:[A||0,A||0];typeof w[0]=="boolean"||typeof w[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(w[0],1),parsePercent$1(w[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,o=this._dataMin,s=this._dataMax,l=this._axisDataLen,v=this._boundaryGapInner,x=t?null:s-o||Math.abs(o),A=this._modelMinRaw==="dataMin"?o:this._modelMinNum,w=this._modelMaxRaw==="dataMax"?s:this._modelMaxNum,E=A!=null,C=w!=null;A==null&&(A=t?l?0:NaN:o-v[0]*x),w==null&&(w=t?l?l-1:NaN:s+v[1]*x),(A==null||!isFinite(A))&&(A=NaN),(w==null||!isFinite(w))&&(w=NaN);var R=eqNaN(A)||eqNaN(w)||t&&!l;this._needCrossZero&&(A>0&&w>0&&!E&&(A=0),A<0&&w<0&&!C&&(w=0));var $=this._determinedMin,V=this._determinedMax;return $!=null&&(A=$,E=!0),V!=null&&(w=V,C=!0),{min:A,max:w,minFixed:E,maxFixed:C,isBlank:R}},r.prototype.modifyDataMinMax=function(t,o){this[DATA_MIN_MAX_ATTR[t]]=o},r.prototype.setDeterminedMinMax=function(t,o){var s=DETERMINED_MIN_MAX_ATTR[t];this[s]=o},r.prototype.freeze=function(){this.frozen=!0},r}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(r,t,o){var s=r.rawExtentInfo;return s||(s=new ScaleRawExtentInfo(r,t,o),r.rawExtentInfo=s,s)}function parseAxisModelMinMax(r,t){return t==null?null:eqNaN(t)?NaN:r.parse(t)}function getScaleExtent(r,t){var o=r.type,s=ensureScaleRawExtentInfo(r,t,r.getExtent()).calculate();r.setBlank(s.isBlank);var l=s.min,v=s.max,x=t.ecModel;if(x&&o==="time"){var A=prepareLayoutBarSeries("bar",x),w=!1;if(each$c(A,function(R){w=w||R.getBaseAxis()===t.axis}),w){var E=makeColumnLayout(A),C=adjustScaleForOverflow(l,v,t,E);l=C.min,v=C.max}}return{extent:[l,v],fixMin:s.minFixed,fixMax:s.maxFixed}}function adjustScaleForOverflow(r,t,o,s){var l=o.axis.getExtent(),v=l[1]-l[0],x=retrieveColumnLayout(s,o.axis);if(x===void 0)return{min:r,max:t};var A=1/0;each$c(x,function(V){A=Math.min(V.offset,A)});var w=-1/0;each$c(x,function(V){w=Math.max(V.offset+V.width,w)}),A=Math.abs(A),w=Math.abs(w);var E=A+w,C=t-r,R=1-(A+w)/v,$=C/R-C;return t+=$*(w/E),r-=$*(A/E),{min:r,max:t}}function niceScaleExtent(r,t){var o=t,s=getScaleExtent(r,o),l=s.extent,v=o.get("splitNumber");r instanceof LogScale$1&&(r.base=o.get("logBase"));var x=r.type,A=o.get("interval"),w=x==="interval"||x==="time";r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:v,fixMin:s.fixMin,fixMax:s.fixMax,minInterval:w?o.get("minInterval"):null,maxInterval:w?o.get("maxInterval"):null}),A!=null&&r.setInterval&&r.setInterval(A)}function createScaleByModel(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new OrdinalScale$1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Scale$1.getClass(t)||IntervalScale$1)}}function ifAxisCrossZero(r){var t=r.scale.getExtent(),o=t[0],s=t[1];return!(o>0&&s>0||o<0&&s<0)}function makeLabelFormatter(r){var t=r.getLabelModel().get("formatter"),o=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(s){return function(l,v){return r.scale.getFormattedLabel(l,v,s)}}(t):isString(t)?function(s){return function(l){var v=r.scale.getLabel(l),x=s.replace("{value}",v??"");return x}}(t):isFunction(t)?function(s){return function(l,v){return o!=null&&(v=l.value-o),s(getAxisRawValue(r,l),v,l.level!=null?{level:l.level}:null)}}(t):function(s){return r.scale.getLabel(s)}}function getAxisRawValue(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function estimateLabelUnionRect(r){var t=r.model,o=r.scale;if(!(!t.get(["axisLabel","show"])||o.isBlank())){var s,l,v=o.getExtent();o instanceof OrdinalScale$1?l=o.count():(s=o.getTicks(),l=s.length);var x=r.getLabelModel(),A=makeLabelFormatter(r),w,E=1;l>40&&(E=Math.ceil(l/40));for(var C=0;C<l;C+=E){var R=s?s[C]:{value:v[0]+C},$=A(R,C),V=x.getTextRect($),z=rotateTextRect(V,x.get("rotate")||0);w?w.union(z):w=z}return w}}function rotateTextRect(r,t){var o=t*Math.PI/180,s=r.width,l=r.height,v=s*Math.abs(Math.cos(o))+Math.abs(l*Math.sin(o)),x=s*Math.abs(Math.sin(o))+Math.abs(l*Math.cos(o)),A=new BoundingRect$1(r.x,r.y,v,x);return A}function getOptionCategoryInterval(r){var t=r.get("interval");return t??"auto"}function shouldShowAllLabels(r){return r.type==="category"&&getOptionCategoryInterval(r.getLabelModel())===0}function getDataDimensionsOnAxis(r,t){var o={};return each$c(r.mapDimensionsAll(t),function(s){o[getStackedDimension(r,s)]=!0}),keys(o)}function unionAxisExtentFromData(r,t,o){t&&each$c(getDataDimensionsOnAxis(t,o),function(s){var l=t.getApproximateExtent(s);l[0]<r[0]&&(r[0]=l[0]),l[1]>r[1]&&(r[1]=l[1])})}var AxisModelCommonMixin=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function createList(r){return createSeriesData(null,r)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale(r,t){var o=t;t instanceof Model$1||(o=new Model$1(t));var s=createScaleByModel(o);return s.setExtent(r[0],r[1]),niceScaleExtent(s,o),s}function mixinAxisModelCommonMethods(r){mixin(r,AxisModelCommonMixin)}function createTextStyle(r,t){return t=t||{},createTextStyle$1(r,null,null,t.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function(r){ComponentModel$1.registerClass(r)},registerComponentView:function(r){ComponentView$1.registerClass(r)},registerSeriesModel:function(r){SeriesModel$1.registerClass(r)},registerChartView:function(r){ChartView$1.registerClass(r)},registerSubTypeDefaulter:function(r,t){ComponentModel$1.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){registerPainter(r,t)}};function use$1(r){if(isArray$1(r)){each$c(r,function(t){use$1(t)});return}indexOf(extensions,r)>=0||(extensions.push(r),isFunction(r)&&(r={install:r}),r.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual(r,t){return Math.abs(r-t)<EPSILON}function contain(r,t,o){var s=0,l=r[0];if(!l)return!1;for(var v=1;v<r.length;v++){var x=r[v];s+=windingLine(l[0],l[1],x[0],x[1],t,o),l=x}var A=r[0];return(!isAroundEqual(l[0],A[0])||!isAroundEqual(l[1],A[1]))&&(s+=windingLine(l[0],l[1],A[0],A[1],t,o)),s!==0}var TMP_TRANSFORM=[];function transformPoints(r,t){for(var o=0;o<r.length;o++)applyTransform$1(r[o],r[o],t)}function updateBBoxFromPoints(r,t,o,s){for(var l=0;l<r.length;l++){var v=r[l];s&&(v=s.project(v)),v&&isFinite(v[0])&&isFinite(v[1])&&(min$1(t,t,v),max$1(o,o,v))}}function centroid(r){for(var t=0,o=0,s=0,l=r.length,v=r[l-1][0],x=r[l-1][1],A=0;A<l;A++){var w=r[A][0],E=r[A][1],C=v*E-w*x;t+=C,o+=(v+w)*C,s+=(x+E)*C,v=w,x=E}return t?[o/t/3,s/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Region=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),GeoJSONPolygonGeometry=function(){function r(t,o){this.type="polygon",this.exterior=t,this.interiors=o}return r}(),GeoJSONLineStringGeometry=function(){function r(t){this.type="linestring",this.points=t}return r}(),GeoJSONRegion=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this,o)||this;return v.type="geoJSON",v.geometries=s,v._center=l&&[l[0],l[1]],v}return t.prototype.calcCenter=function(){for(var o=this.geometries,s,l=0,v=0;v<o.length;v++){var x=o[v],A=x.exterior,w=A&&A.length;w>l&&(s=x,l=w)}if(s)return centroid(s.exterior);var E=this.getBoundingRect();return[E.x+E.width/2,E.y+E.height/2]},t.prototype.getBoundingRect=function(o){var s=this._rect;if(s&&!o)return s;var l=[1/0,1/0],v=[-1/0,-1/0],x=this.geometries;return each$c(x,function(A){A.type==="polygon"?updateBBoxFromPoints(A.exterior,l,v,o):each$c(A.points,function(w){updateBBoxFromPoints(w,l,v,o)})}),isFinite(l[0])&&isFinite(l[1])&&isFinite(v[0])&&isFinite(v[1])||(l[0]=l[1]=v[0]=v[1]=0),s=new BoundingRect$1(l[0],l[1],v[0]-l[0],v[1]-l[1]),o||(this._rect=s),s},t.prototype.contain=function(o){var s=this.getBoundingRect(),l=this.geometries;if(!s.contain(o[0],o[1]))return!1;e:for(var v=0,x=l.length;v<x;v++){var A=l[v];if(A.type==="polygon"){var w=A.exterior,E=A.interiors;if(contain(w,o[0],o[1])){for(var C=0;C<(E?E.length:0);C++)if(contain(E[C],o[0],o[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(o,s,l,v){var x=this.getBoundingRect(),A=x.width/x.height;l?v||(v=l/A):l=A*v;for(var w=new BoundingRect$1(o,s,l,v),E=x.calculateTransform(w),C=this.geometries,R=0;R<C.length;R++){var $=C[R];$.type==="polygon"?(transformPoints($.exterior,E),each$c($.interiors,function(V){transformPoints(V,E)})):each$c($.points,function(V){transformPoints(V,E)})}x=this._rect,x.copy(w),this._center=[x.x+x.width/2,x.y+x.height/2]},t.prototype.cloneShallow=function(o){o==null&&(o=this.name);var s=new t(o,this.geometries,this._center);return s._rect=this._rect,s.transformTo=null,s},t}(Region);(function(r){__extends(t,r);function t(o,s){var l=r.call(this,o)||this;return l.type="geoSVG",l._elOnlyForCalculate=s,l}return t.prototype.calcCenter=function(){for(var o=this._elOnlyForCalculate,s=o.getBoundingRect(),l=[s.x+s.width/2,s.y+s.height/2],v=identity(TMP_TRANSFORM),x=o;x&&!x.isGeoSVGGraphicRoot;)mul(v,x.getLocalTransform(),v),x=x.parent;return invert(v,v),applyTransform$1(l,l,v),l},t})(Region);function decode(r){if(!r.UTF8Encoding)return r;var t=r,o=t.UTF8Scale;o==null&&(o=1024);var s=t.features;return each$c(s,function(l){var v=l.geometry,x=v.encodeOffsets,A=v.coordinates;if(x)switch(v.type){case"LineString":v.coordinates=decodeRing(A,x,o);break;case"Polygon":decodeRings(A,x,o);break;case"MultiLineString":decodeRings(A,x,o);break;case"MultiPolygon":each$c(A,function(w,E){return decodeRings(w,x[E],o)})}}),t.UTF8Encoding=!1,t}function decodeRings(r,t,o){for(var s=0;s<r.length;s++)r[s]=decodeRing(r[s],t[s],o)}function decodeRing(r,t,o){for(var s=[],l=t[0],v=t[1],x=0;x<r.length;x+=2){var A=r.charCodeAt(x)-64,w=r.charCodeAt(x+1)-64;A=A>>1^-(A&1),w=w>>1^-(w&1),A+=l,w+=v,l=A,v=w,s.push([A/o,w/o])}return s}function parseGeoJSON(r,t){return r=decode(r),map$2(filter(r.features,function(o){return o.geometry&&o.properties&&o.geometry.coordinates.length>0}),function(o){var s=o.properties,l=o.geometry,v=[];switch(l.type){case"Polygon":var x=l.coordinates;v.push(new GeoJSONPolygonGeometry(x[0],x.slice(1)));break;case"MultiPolygon":each$c(l.coordinates,function(w){w[0]&&v.push(new GeoJSONPolygonGeometry(w[0],w.slice(1)))});break;case"LineString":v.push(new GeoJSONLineStringGeometry([l.coordinates]));break;case"MultiLineString":v.push(new GeoJSONLineStringGeometry(l.coordinates))}var A=new GeoJSONRegion(s[t||"name"],v,s.cp);return A.properties=s,A})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels(r){return r.type==="category"?makeCategoryLabels(r):makeRealNumberLabels(r)}function createAxisTicks(r,t){return r.type==="category"?makeCategoryTicks(r,t):{ticks:map$2(r.scale.getTicks(),function(o){return o.value})}}function makeCategoryLabels(r){var t=r.getLabelModel(),o=makeCategoryLabelsActually(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o}function makeCategoryLabelsActually(r,t){var o=getListCache(r,"labels"),s=getOptionCategoryInterval(t),l=listCacheGet(o,s);if(l)return l;var v,x;return isFunction(s)?v=makeLabelsByCustomizedCategoryInterval(r,s):(x=s==="auto"?makeAutoCategoryInterval(r):s,v=makeLabelsByNumericCategoryInterval(r,x)),listCacheSet(o,s,{labels:v,labelCategoryInterval:x})}function makeCategoryTicks(r,t){var o=getListCache(r,"ticks"),s=getOptionCategoryInterval(t),l=listCacheGet(o,s);if(l)return l;var v,x;if((!t.get("show")||r.scale.isBlank())&&(v=[]),isFunction(s))v=makeLabelsByCustomizedCategoryInterval(r,s,!0);else if(s==="auto"){var A=makeCategoryLabelsActually(r,r.getLabelModel());x=A.labelCategoryInterval,v=map$2(A.labels,function(w){return w.tickValue})}else x=s,v=makeLabelsByNumericCategoryInterval(r,x,!0);return listCacheSet(o,s,{ticks:v,tickCategoryInterval:x})}function makeRealNumberLabels(r){var t=r.scale.getTicks(),o=makeLabelFormatter(r);return{labels:map$2(t,function(s,l){return{level:s.level,formattedLabel:o(s,l),rawLabel:r.scale.getLabel(s),tickValue:s.value}})}}function getListCache(r,t){return inner$7(r)[t]||(inner$7(r)[t]=[])}function listCacheGet(r,t){for(var o=0;o<r.length;o++)if(r[o].key===t)return r[o].value}function listCacheSet(r,t,o){return r.push({key:t,value:o}),o}function makeAutoCategoryInterval(r){var t=inner$7(r).autoInterval;return t??(inner$7(r).autoInterval=r.calculateCategoryInterval())}function calculateCategoryInterval(r){var t=fetchAutoCategoryIntervalCalculationParams(r),o=makeLabelFormatter(r),s=(t.axisRotate-t.labelRotate)/180*Math.PI,l=r.scale,v=l.getExtent(),x=l.count();if(v[1]-v[0]<1)return 0;var A=1;x>40&&(A=Math.max(1,Math.floor(x/40)));for(var w=v[0],E=r.dataToCoord(w+1)-r.dataToCoord(w),C=Math.abs(E*Math.cos(s)),R=Math.abs(E*Math.sin(s)),$=0,V=0;w<=v[1];w+=A){var z=0,F=0,B=getBoundingRect(o({value:w}),t.font,"center","top");z=B.width*1.3,F=B.height*1.3,$=Math.max($,z,7),V=Math.max(V,F,7)}var W=$/C,Y=V/R;isNaN(W)&&(W=1/0),isNaN(Y)&&(Y=1/0);var Z=Math.max(0,Math.floor(Math.min(W,Y))),X=inner$7(r.model),ae=r.getExtent(),ie=X.lastAutoInterval,oe=X.lastTickCount;return ie!=null&&oe!=null&&Math.abs(ie-Z)<=1&&Math.abs(oe-x)<=1&&ie>Z&&X.axisExtent0===ae[0]&&X.axisExtent1===ae[1]?Z=ie:(X.lastTickCount=x,X.lastAutoInterval=Z,X.axisExtent0=ae[0],X.axisExtent1=ae[1]),Z}function fetchAutoCategoryIntervalCalculationParams(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function makeLabelsByNumericCategoryInterval(r,t,o){var s=makeLabelFormatter(r),l=r.scale,v=l.getExtent(),x=r.getLabelModel(),A=[],w=Math.max((t||0)+1,1),E=v[0],C=l.count();E!==0&&w>1&&C/w>2&&(E=Math.round(Math.ceil(E/w)*w));var R=shouldShowAllLabels(r),$=x.get("showMinLabel")||R,V=x.get("showMaxLabel")||R;$&&E!==v[0]&&F(v[0]);for(var z=E;z<=v[1];z+=w)F(z);V&&z-w!==v[1]&&F(v[1]);function F(B){var W={value:B};A.push(o?B:{formattedLabel:s(W),rawLabel:l.getLabel(W),tickValue:B})}return A}function makeLabelsByCustomizedCategoryInterval(r,t,o){var s=r.scale,l=makeLabelFormatter(r),v=[];return each$c(s.getTicks(),function(x){var A=s.getLabel(x),w=x.value;t(x.value,A)&&v.push(o?w:{formattedLabel:l(x),rawLabel:A,tickValue:w})}),v}var NORMALIZED_EXTENT=[0,1],Axis=function(){function r(t,o,s){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=o,this._extent=s||[0,0]}return r.prototype.contain=function(t){var o=this._extent,s=Math.min(o[0],o[1]),l=Math.max(o[0],o[1]);return t>=s&&t<=l},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return getPixelPrecision(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,o){var s=this._extent;s[0]=t,s[1]=o},r.prototype.dataToCoord=function(t,o){var s=this._extent,l=this.scale;return t=l.normalize(t),this.onBand&&l.type==="ordinal"&&(s=s.slice(),fixExtentWithBands(s,l.count())),linearMap$2(t,NORMALIZED_EXTENT,s,o)},r.prototype.coordToData=function(t,o){var s=this._extent,l=this.scale;this.onBand&&l.type==="ordinal"&&(s=s.slice(),fixExtentWithBands(s,l.count()));var v=linearMap$2(t,s,NORMALIZED_EXTENT,o);return this.scale.scale(v)},r.prototype.pointToData=function(t,o){},r.prototype.getTicksCoords=function(t){t=t||{};var o=t.tickModel||this.getTickModel(),s=createAxisTicks(this,o),l=s.ticks,v=map$2(l,function(A){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(A):A),tickValue:A}},this),x=o.get("alignWithLabel");return fixOnBandTicksCoords(this,v,x,t.clamp),v},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),o=t.get("splitNumber");o>0&&o<100||(o=5);var s=this.scale.getMinorTicks(o),l=map$2(s,function(v){return map$2(v,function(x){return{coord:this.dataToCoord(x),tickValue:x}},this)},this);return l},r.prototype.getViewLabels=function(){return createAxisLabels(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,o=this.scale.getExtent(),s=o[1]-o[0]+(this.onBand?1:0);s===0&&(s=1);var l=Math.abs(t[1]-t[0]);return Math.abs(l)/s},r.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},r}();function fixExtentWithBands(r,t){var o=r[1]-r[0],s=t,l=o/s/2;r[0]+=l,r[1]-=l}function fixOnBandTicksCoords(r,t,o,s){var l=t.length;if(!r.onBand||o||!l)return;var v=r.getExtent(),x,A;if(l===1)t[0].coord=v[0],x=t[1]={coord:v[0]};else{var w=t[l-1].tickValue-t[0].tickValue,E=(t[l-1].coord-t[0].coord)/w;each$c(t,function(V){V.coord-=E/2});var C=r.scale.getExtent();A=1+C[1]-t[l-1].tickValue,x={coord:t[l-1].coord+E*A},t.push(x)}var R=v[0]>v[1];$(t[0].coord,v[0])&&(s?t[0].coord=v[0]:t.shift()),s&&$(v[0],t[0].coord)&&t.unshift({coord:v[0]}),$(v[1],x.coord)&&(s?x.coord=v[1]:t.pop()),s&&$(x.coord,v[1])&&t.push({coord:v[1]});function $(V,z){return V=round$1(V),z=round$1(z),R?V>z:V<z}}const Axis$1=Axis;function extendComponentModel(r){var t=ComponentModel$1.extend(r);return ComponentModel$1.registerClass(t),t}function extendComponentView(r){var t=ComponentView$1.extend(r);return ComponentView$1.registerClass(t),t}function extendSeriesModel(r){var t=SeriesModel$1.extend(r);return SeriesModel$1.registerClass(t),t}function extendChartView(r){var t=ChartView$1.extend(r);return ChartView$1.registerClass(t),t}PathProxy$1.CMD;function projectPointToLine(r,t,o,s,l,v,x,A){var w=l-r,E=v-t,C=o-r,R=s-t,$=Math.sqrt(C*C+R*R);C/=$,R/=$;var V=w*C+E*R,z=V/$;A&&(z=Math.min(Math.max(z,0),1)),z*=$;var F=x[0]=r+z*C,B=x[1]=t+z*R;return Math.sqrt((F-l)*(F-l)+(B-v)*(B-v))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle(r,t){if(t<=180&&t>0){t=t/180*Math.PI,pt0.fromArray(r[0]),pt1.fromArray(r[1]),pt2.fromArray(r[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var o=dir.len(),s=dir2.len();if(!(o<.001||s<.001)){dir.scale(1/o),dir2.scale(1/s);var l=dir.dot(dir2),v=Math.cos(t);if(v<l){var x=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,x/Math.tan(Math.PI-t));var A=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(A))return;A<0?Point$1.copy(tmpProjPoint,pt1):A>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(r[1])}}}}function limitSurfaceAngle(r,t,o){if(o<=180&&o>0){o=o/180*Math.PI,pt0.fromArray(r[0]),pt1.fromArray(r[1]),pt2.fromArray(r[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var s=dir.len(),l=dir2.len();if(!(s<.001||l<.001)){dir.scale(1/s),dir2.scale(1/l);var v=dir.dot(t),x=Math.cos(o);if(v<x){var A=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var w=Math.PI/2,E=Math.acos(dir2.dot(t)),C=w+E-o;if(C>=w)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,A/Math.tan(Math.PI/2-C));var R=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(R))return;R<0?Point$1.copy(tmpProjPoint,pt1):R>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(r[1])}}}}function setLabelLineState(r,t,o,s){var l=o==="normal",v=l?r:r.ensureState(o);v.ignore=t;var x=s.get("smooth");x&&x===!0&&(x=.3),v.shape=v.shape||{},x>0&&(v.shape.smooth=x);var A=s.getModel("lineStyle").getLineStyle();l?r.useStyle(A):v.style=A}function buildLabelLinePath(r,t){var o=t.smooth,s=t.points;if(s)if(r.moveTo(s[0][0],s[0][1]),o>0&&s.length>=3){var l=dist$1(s[0],s[1]),v=dist$1(s[1],s[2]);if(!l||!v){r.lineTo(s[1][0],s[1][1]),r.lineTo(s[2][0],s[2][1]);return}var x=Math.min(l,v)*o,A=lerp$1([],s[1],s[0],x/l),w=lerp$1([],s[1],s[2],x/v),E=lerp$1([],A,w,.5);r.bezierCurveTo(A[0],A[1],A[0],A[1],E[0],E[1]),r.bezierCurveTo(w[0],w[1],w[0],w[1],s[2][0],s[2][1])}else for(var C=1;C<s.length;C++)r.lineTo(s[C][0],s[C][1])}function setLabelLineStyle(r,t,o){var s=r.getTextGuideLine(),l=r.getTextContent();if(!l){s&&r.removeTextGuideLine();return}for(var v=t.normal,x=v.get("show"),A=l.ignore,w=0;w<DISPLAY_STATES.length;w++){var E=DISPLAY_STATES[w],C=t[E],R=E==="normal";if(C){var $=C.get("show"),V=R?A:retrieve2(l.states[E]&&l.states[E].ignore,A);if(V||!retrieve2($,x)){var z=R?s:s&&s.states[E];z&&(z.ignore=!0);continue}s||(s=new Polyline$1,r.setTextGuideLine(s),!R&&(A||!x)&&setLabelLineState(s,!0,"normal",t.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),setLabelLineState(s,!1,E,C)}}if(s){defaults(s.style,o),s.style.fill=null;var F=v.get("showAbove"),B=r.textGuideLineConfig=r.textGuideLineConfig||{};B.showAbove=F||!1,s.buildPath=buildLabelLinePath}}function getLabelLineStatesModels(r,t){t=t||"labelLine";for(var o={normal:r.getModel(t)},s=0;s<SPECIAL_STATES.length;s++){var l=SPECIAL_STATES[s];o[l]=r.getModel([l,t])}return o}function prepareLayoutList(r){for(var t=[],o=0;o<r.length;o++){var s=r[o];if(!s.defaultAttr.ignore){var l=s.label,v=l.getComputedTransform(),x=l.getBoundingRect(),A=!v||v[1]<1e-5&&v[2]<1e-5,w=l.style.margin||0,E=x.clone();E.applyTransform(v),E.x-=w/2,E.y-=w/2,E.width+=w,E.height+=w;var C=A?new OrientedBoundingRect$1(x,v):null;t.push({label:l,labelLine:s.labelLine,rect:E,localRect:x,obb:C,priority:s.priority,defaultAttr:s.defaultAttr,layoutOption:s.computedLayoutOption,axisAligned:A,transform:v})}}return t}function shiftLayout(r,t,o,s,l,v){var x=r.length;if(x<2)return;r.sort(function(le,ve){return le.rect[t]-ve.rect[t]});for(var A=0,w,E=!1,C=0,R=0;R<x;R++){var $=r[R],V=$.rect;w=V[t]-A,w<0&&(V[t]-=w,$.label[t]-=w,E=!0);var z=Math.max(-w,0);C+=z,A=V[t]+V[o]}C>0&&v&&ae(-C/x,0,x);var F=r[0],B=r[x-1],W,Y;Z(),W<0&&ie(-W,.8),Y<0&&ie(Y,.8),Z(),X(W,Y,1),X(Y,W,-1),Z(),W<0&&oe(-W),Y<0&&oe(Y);function Z(){W=F.rect[t]-s,Y=l-B.rect[t]-B.rect[o]}function X(le,ve,xe){if(le<0){var _e=Math.min(ve,-le);if(_e>0){ae(_e*xe,0,x);var Te=_e+le;Te<0&&ie(-Te*xe,1)}else ie(-le*xe,1)}}function ae(le,ve,xe){le!==0&&(E=!0);for(var _e=ve;_e<xe;_e++){var Te=r[_e],Ee=Te.rect;Ee[t]+=le,Te.label[t]+=le}}function ie(le,ve){for(var xe=[],_e=0,Te=1;Te<x;Te++){var Ee=r[Te-1].rect,Ce=Math.max(r[Te].rect[t]-Ee[t]-Ee[o],0);xe.push(Ce),_e+=Ce}if(_e){var Pe=Math.min(Math.abs(le)/_e,ve);if(le>0)for(var Te=0;Te<x-1;Te++){var Me=xe[Te]*Pe;ae(Me,0,Te+1)}else for(var Te=x-1;Te>0;Te--){var Me=xe[Te-1]*Pe;ae(-Me,Te,x)}}}function oe(le){var ve=le<0?-1:1;le=Math.abs(le);for(var xe=Math.ceil(le/(x-1)),_e=0;_e<x-1;_e++)if(ve>0?ae(xe,0,_e+1):ae(-xe,x-_e-1,x),le-=xe,le<=0)return}return E}function shiftLayoutOnY(r,t,o,s){return shiftLayout(r,"y","height",t,o,s)}function hideOverlap(r){var t=[];r.sort(function(F,B){return B.priority-F.priority});var o=new BoundingRect$1(0,0,0,0);function s(F){if(!F.ignore){var B=F.ensureState("emphasis");B.ignore==null&&(B.ignore=!1)}F.ignore=!0}for(var l=0;l<r.length;l++){var v=r[l],x=v.axisAligned,A=v.localRect,w=v.transform,E=v.label,C=v.labelLine;o.copy(v.rect),o.width-=.1,o.height-=.1,o.x+=.05,o.y+=.05;for(var R=v.obb,$=!1,V=0;V<t.length;V++){var z=t[V];if(o.intersect(z.rect)){if(x&&z.axisAligned){$=!0;break}if(z.obb||(z.obb=new OrientedBoundingRect$1(z.localRect,z.transform)),R||(R=new OrientedBoundingRect$1(A,w)),R.intersect(z.obb)){$=!0;break}}}$?(s(E),C&&s(C)):(E.attr("ignore",v.defaultAttr.ignore),C&&C.attr("ignore",v.defaultAttr.labelGuideIgnore),t.push(v))}}const echarts=Object.freeze(Object.defineProperty({__proto__:null,Axis:Axis$1,ChartView:ChartView$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,List:SeriesData$1,Model:Model$1,PRIORITY,SeriesModel:SeriesModel$1,color,connect,dataTool,dependencies,disConnect,disconnect,dispose,env:env$1,extendChartView,extendComponentModel,extendComponentView,extendSeriesModel,format,getCoordinateSystemDimensions,getInstanceByDom,getInstanceById,getMap,graphic,helper,init,innerDrawElementOnCanvas:brushSingle,matrix,number,parseGeoJSON,parseGeoJson:parseGeoJSON,registerAction,registerCoordinateSystem,registerLayout,registerLoading,registerLocale,registerMap,registerPostInit,registerPostUpdate,registerPreprocessor,registerProcessor,registerTheme,registerTransform,registerUpdateLifecycle,registerVisual,setCanvasCreator,setPlatformAPI,throttle,time,use:use$1,util,vector,version,zrUtil:util$1,zrender},Symbol.toStringTag,{value:"Module"}));function createDom(r,t,o){var s=platformApi.createCanvas(),l=t.getWidth(),v=t.getHeight(),x=s.style;return x&&(x.position="absolute",x.left="0",x.top="0",x.width=l+"px",x.height=v+"px",s.setAttribute("data-zr-dom-id",r)),s.width=l*o,s.height=v*o,s}var Layer=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this)||this;v.motionBlur=!1,v.lastFrameAlpha=.7,v.dpr=1,v.virtual=!1,v.config={},v.incremental=!1,v.zlevel=0,v.maxRepaintRectCount=5,v.__dirty=!0,v.__firstTimePaint=!0,v.__used=!1,v.__drawIndex=0,v.__startIndex=0,v.__endIndex=0,v.__prevStartIndex=null,v.__prevEndIndex=null;var x;l=l||devicePixelRatio,typeof o=="string"?x=createDom(o,s,l):isObject$3(o)&&(x=o,o=x.id),v.id=o,v.dom=x;var A=x.style;return A&&(disableUserSelect(x),x.onselectstart=function(){return!1},A.padding="0",A.margin="0",A.borderWidth="0"),v.painter=s,v.dpr=l,v}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var o=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,o),this.ctxBack=this.domBack.getContext("2d"),o!==1&&this.ctxBack.scale(o,o)},t.prototype.createRepaintRects=function(o,s,l,v){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var x=[],A=this.maxRepaintRectCount,w=!1,E=new BoundingRect$1(0,0,0,0);function C(Y){if(!(!Y.isFinite()||Y.isZero()))if(x.length===0){var Z=new BoundingRect$1(0,0,0,0);Z.copy(Y),x.push(Z)}else{for(var X=!1,ae=1/0,ie=0,oe=0;oe<x.length;++oe){var le=x[oe];if(le.intersect(Y)){var ve=new BoundingRect$1(0,0,0,0);ve.copy(le),ve.union(Y),x[oe]=ve,X=!0;break}else if(w){E.copy(Y),E.union(le);var xe=Y.width*Y.height,_e=le.width*le.height,Te=E.width*E.height,Ee=Te-xe-_e;Ee<ae&&(ae=Ee,ie=oe)}}if(w&&(x[ie].union(Y),X=!0),!X){var Z=new BoundingRect$1(0,0,0,0);Z.copy(Y),x.push(Z)}w||(w=x.length>=A)}}for(var R=this.__startIndex;R<this.__endIndex;++R){var $=o[R];if($){var V=$.shouldBePainted(l,v,!0,!0),z=$.__isRendered&&($.__dirty&REDRAW_BIT||!V)?$.getPrevPaintRect():null;z&&C(z);var F=V&&($.__dirty&REDRAW_BIT||!$.__isRendered)?$.getPaintRect():null;F&&C(F)}}for(var R=this.__prevStartIndex;R<this.__prevEndIndex;++R){var $=s[R],V=$.shouldBePainted(l,v,!0,!0);if($&&(!V||!$.__zr)&&$.__isRendered){var z=$.getPrevPaintRect();z&&C(z)}}var B;do{B=!1;for(var R=0;R<x.length;){if(x[R].isZero()){x.splice(R,1);continue}for(var W=R+1;W<x.length;)x[R].intersect(x[W])?(B=!0,x[R].union(x[W]),x.splice(W,1)):W++;R++}}while(B);return this._paintRects=x,x},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(o,s){var l=this.dpr,v=this.dom,x=v.style,A=this.domBack;x&&(x.width=o+"px",x.height=s+"px"),v.width=o*l,v.height=s*l,A&&(A.width=o*l,A.height=s*l,l!==1&&this.ctxBack.scale(l,l))},t.prototype.clear=function(o,s,l){var v=this.dom,x=this.ctx,A=v.width,w=v.height;s=s||this.clearColor;var E=this.motionBlur&&!o,C=this.lastFrameAlpha,R=this.dpr,$=this;E&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(v,0,0,A/R,w/R));var V=this.domBack;function z(F,B,W,Y){if(x.clearRect(F,B,W,Y),s&&s!=="transparent"){var Z=void 0;if(isGradientObject(s)){var X=s.global||s.__width===W&&s.__height===Y;Z=X&&s.__canvasGradient||getCanvasGradient(x,s,{x:0,y:0,width:W,height:Y}),s.__canvasGradient=Z,s.__width=W,s.__height=Y}else isImagePatternObject(s)&&(s.scaleX=s.scaleX||R,s.scaleY=s.scaleY||R,Z=createCanvasPattern(x,s,{dirty:function(){$.setUnpainted(),$.__painter.refresh()}}));x.save(),x.fillStyle=Z||s,x.fillRect(F,B,W,Y),x.restore()}E&&(x.save(),x.globalAlpha=C,x.drawImage(V,F,B,W,Y),x.restore())}!l||E?z(0,0,A,w):l.length&&each$c(l,function(F){z(F.x*R,F.y*R,F.width*R,F.height*R)})},t}(Eventful$1);const Layer$1=Layer;var HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function createRoot(r,t){var o=document.createElement("div");return o.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",o}var CanvasPainter=function(){function r(t,o,s,l){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var v=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=s=extend({},s||{}),this.dpr=s.devicePixelRatio||devicePixelRatio,this._singleCanvas=v,this.root=t;var x=t.style;x&&(disableUserSelect(t),t.innerHTML=""),this.storage=o;var A=this._zlevelList;this._prevDisplayList=[];var w=this._layers;if(v){var C=t,R=C.width,$=C.height;s.width!=null&&(R=s.width),s.height!=null&&($=s.height),this.dpr=s.devicePixelRatio||1,C.width=R*this.dpr,C.height=$*this.dpr,this._width=R,this._height=$;var V=new Layer$1(C,this,this.dpr);V.__builtin__=!0,V.initContext(),w[CANVAS_ZLEVEL]=V,V.zlevel=CANVAS_ZLEVEL,A.push(CANVAS_ZLEVEL),this._domRoot=t}else{this._width=getSize$1(t,0,s),this._height=getSize$1(t,1,s);var E=this._domRoot=createRoot(this._width,this._height);t.appendChild(E)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var o=this.storage.getDisplayList(!0),s=this._prevDisplayList,l=this._zlevelList;this._redrawId=Math.random(),this._paintList(o,s,t,this._redrawId);for(var v=0;v<l.length;v++){var x=l[v],A=this._layers[x];if(!A.__builtin__&&A.refresh){var w=v===0?this._backgroundColor:null;A.refresh(w)}}return this._opts.useDirtyRect&&(this._prevDisplayList=o.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var o=t.length,s=this._hoverlayer;if(s&&s.clear(),!!o){for(var l={inHover:!0,viewWidth:this._width,viewHeight:this._height},v,x=0;x<o;x++){var A=t[x];A.__inHover&&(s||(s=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),v||(v=s.ctx,v.save()),brush(v,A,l,x===o-1))}v&&v.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},r.prototype.paintOne=function(t,o){brushSingle(t,o)},r.prototype._paintList=function(t,o,s,l){if(this._redrawId===l){s=s||!1,this._updateLayerStatus(t);var v=this._doPaintList(t,o,s),x=v.finished,A=v.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),A&&this._paintHoverList(t),x)this.eachLayer(function(E){E.afterBrush&&E.afterBrush()});else{var w=this;requestAnimationFrame$1(function(){w._paintList(t,o,s,l)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(CANVAS_ZLEVEL).ctx,o=this._domRoot.width,s=this._domRoot.height;t.clearRect(0,0,o,s),this.eachBuiltinLayer(function(l){l.virtual&&t.drawImage(l.dom,0,0,o,s)})},r.prototype._doPaintList=function(t,o,s){for(var l=this,v=[],x=this._opts.useDirtyRect,A=0;A<this._zlevelList.length;A++){var w=this._zlevelList[A],E=this._layers[w];E.__builtin__&&E!==this._hoverlayer&&(E.__dirty||s)&&v.push(E)}for(var C=!0,R=!1,$=function(F){var B=v[F],W=B.ctx,Y=x&&B.createRepaintRects(t,o,V._width,V._height),Z=s?B.__startIndex:B.__drawIndex,X=!s&&B.incremental&&Date.now,ae=X&&Date.now(),ie=B.zlevel===V._zlevelList[0]?V._backgroundColor:null;if(B.__startIndex===B.__endIndex)B.clear(!1,ie,Y);else if(Z===B.__startIndex){var oe=t[Z];(!oe.incremental||!oe.notClear||s)&&B.clear(!1,ie,Y)}Z===-1&&(console.error("For some unknown reason. drawIndex is -1"),Z=B.__startIndex);var le,ve=function(Ee){var Ce={inHover:!1,allClipped:!1,prevEl:null,viewWidth:l._width,viewHeight:l._height};for(le=Z;le<B.__endIndex;le++){var Pe=t[le];if(Pe.__inHover&&(R=!0),l._doPaintEl(Pe,B,x,Ee,Ce,le===B.__endIndex-1),X){var Me=Date.now()-ae;if(Me>15)break}}Ce.prevElClipPaths&&W.restore()};if(Y)if(Y.length===0)le=B.__endIndex;else for(var xe=V.dpr,_e=0;_e<Y.length;++_e){var Te=Y[_e];W.save(),W.beginPath(),W.rect(Te.x*xe,Te.y*xe,Te.width*xe,Te.height*xe),W.clip(),ve(Te),W.restore()}else W.save(),ve(),W.restore();B.__drawIndex=le,B.__drawIndex<B.__endIndex&&(C=!1)},V=this,z=0;z<v.length;z++)$(z);return env$1.wxa&&each$c(this._layers,function(F){F&&F.ctx&&F.ctx.draw&&F.ctx.draw()}),{finished:C,needsRefreshHover:R}},r.prototype._doPaintEl=function(t,o,s,l,v,x){var A=o.ctx;if(s){var w=t.getPaintRect();(!l||w&&w.intersect(l))&&(brush(A,t,v,x),t.setPrevPaintRect(w))}else brush(A,t,v,x)},r.prototype.getLayer=function(t,o){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CANVAS_ZLEVEL);var s=this._layers[t];return s||(s=new Layer$1("zr_"+t,this,this.dpr),s.zlevel=t,s.__builtin__=!0,this._layerConfig[t]?merge(s,this._layerConfig[t],!0):this._layerConfig[t-EL_AFTER_INCREMENTAL_INC]&&merge(s,this._layerConfig[t-EL_AFTER_INCREMENTAL_INC],!0),o&&(s.virtual=o),this.insertLayer(t,s),s.initContext()),s},r.prototype.insertLayer=function(t,o){var s=this._layers,l=this._zlevelList,v=l.length,x=this._domRoot,A=null,w=-1;if(!s[t]&&isLayerValid(o)){if(v>0&&t>l[0]){for(w=0;w<v-1&&!(l[w]<t&&l[w+1]>t);w++);A=s[l[w]]}if(l.splice(w+1,0,t),s[t]=o,!o.virtual)if(A){var E=A.dom;E.nextSibling?x.insertBefore(o.dom,E.nextSibling):x.appendChild(o.dom)}else x.firstChild?x.insertBefore(o.dom,x.firstChild):x.appendChild(o.dom);o.__painter=this}},r.prototype.eachLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var v=s[l];t.call(o,this._layers[v],v)}},r.prototype.eachBuiltinLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var v=s[l],x=this._layers[v];x.__builtin__&&t.call(o,x,v)}},r.prototype.eachOtherLayer=function(t,o){for(var s=this._zlevelList,l=0;l<s.length;l++){var v=s[l],x=this._layers[v];x.__builtin__||t.call(o,x,v)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(R,$){R.__dirty=R.__used=!1});function o(R){v&&(v.__endIndex!==R&&(v.__dirty=!0),v.__endIndex=R)}if(this._singleCanvas)for(var s=1;s<t.length;s++){var l=t[s];if(l.zlevel!==t[s-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var v=null,x=0,A,w;for(w=0;w<t.length;w++){var l=t[w],E=l.zlevel,C=void 0;A!==E&&(A=E,x=0),l.incremental?(C=this.getLayer(E+INCREMENTAL_INC,this._needsManuallyCompositing),C.incremental=!0,x=1):C=this.getLayer(E+(x>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),C.__builtin__||logError("ZLevel "+E+" has been used by unkown layer "+C.id),C!==v&&(C.__used=!0,C.__startIndex!==w&&(C.__dirty=!0),C.__startIndex=w,C.incremental?C.__drawIndex=-1:C.__drawIndex=w,o(w),v=C),l.__dirty&REDRAW_BIT&&!l.__inHover&&(C.__dirty=!0,C.incremental&&C.__drawIndex<0&&(C.__drawIndex=w))}o(w),this.eachBuiltinLayer(function(R,$){!R.__used&&R.getElementCount()>0&&(R.__dirty=!0,R.__startIndex=R.__endIndex=R.__drawIndex=0),R.__dirty&&R.__drawIndex<0&&(R.__drawIndex=R.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,each$c(this._layers,function(o){o.setUnpainted()})},r.prototype.configLayer=function(t,o){if(o){var s=this._layerConfig;s[t]?merge(s[t],o,!0):s[t]=o;for(var l=0;l<this._zlevelList.length;l++){var v=this._zlevelList[l];if(v===t||v===t+EL_AFTER_INCREMENTAL_INC){var x=this._layers[v];merge(x,s[t],!0)}}}},r.prototype.delLayer=function(t){var o=this._layers,s=this._zlevelList,l=o[t];l&&(l.dom.parentNode.removeChild(l.dom),delete o[t],s.splice(indexOf(s,t),1))},r.prototype.resize=function(t,o){if(this._domRoot.style){var s=this._domRoot;s.style.display="none";var l=this._opts,v=this.root;if(t!=null&&(l.width=t),o!=null&&(l.height=o),t=getSize$1(v,0,l),o=getSize$1(v,1,l),s.style.display="",this._width!==t||o!==this._height){s.style.width=t+"px",s.style.height=o+"px";for(var x in this._layers)this._layers.hasOwnProperty(x)&&this._layers[x].resize(t,o);this.refresh(!0)}this._width=t,this._height=o}else{if(t==null||o==null)return;this._width=t,this._height=o,this.getLayer(CANVAS_ZLEVEL).resize(t,o)}return this},r.prototype.clearLayer=function(t){var o=this._layers[t];o&&o.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var o=new Layer$1("image",this,t.pixelRatio||this.dpr);o.initContext(),o.clear(!1,t.backgroundColor||this._backgroundColor);var s=o.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var l=o.dom.width,v=o.dom.height;this.eachLayer(function(R){R.__builtin__?s.drawImage(R.dom,0,0,l,v):R.renderToCanvas&&(s.save(),R.renderToCanvas(s),s.restore())})}else for(var x={inHover:!1,viewWidth:this._width,viewHeight:this._height},A=this.storage.getDisplayList(!0),w=0,E=A.length;w<E;w++){var C=A[w];brush(s,C,x,w===E-1)}return o.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const CanvasPainter$1=CanvasPainter;function install$k(r){r.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.hasSymbolVisual=!0,o}return t.prototype.getInitialData=function(o){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(o){var s=new Group$3,l=createSymbol("line",0,o.itemHeight/2,o.itemWidth,0,o.lineStyle.stroke,!1);s.add(l),l.setStyle(o.lineStyle);var v=this.getData().getVisual("symbol"),x=this.getData().getVisual("symbolRotate"),A=v==="none"?"circle":v,w=o.itemHeight*.8,E=createSymbol(A,(o.itemWidth-w)/2,(o.itemHeight-w)/2,w,w,o.itemStyle.fill);s.add(E),E.setStyle(o.itemStyle);var C=o.iconRotate==="inherit"?x:o.iconRotate||0;return E.rotation=C*Math.PI/180,E.setOrigin([o.itemWidth/2,o.itemHeight/2]),A.indexOf("empty")>-1&&(E.style.stroke=E.style.fill,E.style.fill="#fff",E.style.lineWidth=2),s},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel(r,t){var o=r.mapDimensionsAll("defaultedLabel"),s=o.length;if(s===1){var l=retrieveRawValue(r,t,o[0]);return l!=null?l+"":null}else if(s){for(var v=[],x=0;x<o.length;x++)v.push(retrieveRawValue(r,t,o[x]));return v.join(" ")}}function getDefaultInterpolatedLabel(r,t){var o=r.mapDimensionsAll("defaultedLabel");if(!isArray$1(t))return t+"";for(var s=[],l=0;l<o.length;l++){var v=r.getDimensionIndex(o[l]);v>=0&&s.push(t[v])}return s.join(" ")}var Symbol$1=function(r){__extends(t,r);function t(o,s,l,v){var x=r.call(this)||this;return x.updateData(o,s,l,v),x}return t.prototype._createSymbol=function(o,s,l,v,x){this.removeAll();var A=createSymbol(o,-1,-1,2,2,null,x);A.attr({z2:100,culling:!0,scaleX:v[0]/2,scaleY:v[1]/2}),A.drift=driftSymbol,this._symbolType=o,this.add(A)},t.prototype.stopSymbolAnimation=function(o){this.childAt(0).stopAnimation(null,o)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){enterEmphasis(this.childAt(0))},t.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},t.prototype.setZ=function(o,s){var l=this.childAt(0);l.zlevel=o,l.z=s},t.prototype.setDraggable=function(o,s){var l=this.childAt(0);l.draggable=o,l.cursor=!s&&o?"move":l.cursor},t.prototype.updateData=function(o,s,l,v){this.silent=!1;var x=o.getItemVisual(s,"symbol")||"circle",A=o.hostModel,w=t.getSymbolSize(o,s),E=x!==this._symbolType,C=v&&v.disableAnimation;if(E){var R=o.getItemVisual(s,"symbolKeepAspect");this._createSymbol(x,o,s,w,R)}else{var $=this.childAt(0);$.silent=!1;var V={scaleX:w[0]/2,scaleY:w[1]/2};C?$.attr(V):updateProps$1($,V,A,s),saveOldStyle($)}if(this._updateCommon(o,s,w,l,v),E){var $=this.childAt(0);if(!C){var V={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:$.style.opacity}};$.scaleX=$.scaleY=0,$.style.opacity=0,initProps($,V,A,s)}}C&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(o,s,l,v,x){var A=this.childAt(0),w=o.hostModel,E,C,R,$,V,z,F,B,W;if(v&&(E=v.emphasisItemStyle,C=v.blurItemStyle,R=v.selectItemStyle,$=v.focus,V=v.blurScope,F=v.labelStatesModels,B=v.hoverScale,W=v.cursorStyle,z=v.emphasisDisabled),!v||o.hasItemOption){var Y=v&&v.itemModel?v.itemModel:o.getItemModel(s),Z=Y.getModel("emphasis");E=Z.getModel("itemStyle").getItemStyle(),R=Y.getModel(["select","itemStyle"]).getItemStyle(),C=Y.getModel(["blur","itemStyle"]).getItemStyle(),$=Z.get("focus"),V=Z.get("blurScope"),z=Z.get("disabled"),F=getLabelStatesModels(Y),B=Z.getShallow("scale"),W=Y.getShallow("cursor")}var X=o.getItemVisual(s,"symbolRotate");A.attr("rotation",(X||0)*Math.PI/180||0);var ae=normalizeSymbolOffset(o.getItemVisual(s,"symbolOffset"),l);ae&&(A.x=ae[0],A.y=ae[1]),W&&A.attr("cursor",W);var ie=o.getItemVisual(s,"style"),oe=ie.fill;if(A instanceof ZRImage$1){var le=A.style;A.useStyle(extend({image:le.image,x:le.x,y:le.y,width:le.width,height:le.height},ie))}else A.__isEmptyBrush?A.useStyle(extend({},ie)):A.useStyle(ie),A.style.decal=null,A.setColor(oe,x&&x.symbolInnerColor),A.style.strokeNoScale=!0;var ve=o.getItemVisual(s,"liftZ"),xe=this._z2;ve!=null?xe==null&&(this._z2=A.z2,A.z2+=ve):xe!=null&&(A.z2=xe,this._z2=null);var _e=x&&x.useNameLabel;setLabelStyle(A,F,{labelFetcher:w,labelDataIndex:s,defaultText:Te,inheritColor:oe,defaultOpacity:ie.opacity});function Te(Pe){return _e?o.getName(Pe):getDefaultLabel(o,Pe)}this._sizeX=l[0]/2,this._sizeY=l[1]/2;var Ee=A.ensureState("emphasis");Ee.style=E,A.ensureState("select").style=R,A.ensureState("blur").style=C;var Ce=B==null||B===!0?Math.max(1.1,3/this._sizeY):isFinite(B)&&B>0?+B:1;Ee.scaleX=this._sizeX*Ce,Ee.scaleY=this._sizeY*Ce,this.setSymbolScale(1),toggleHoverEmphasis(this,$,V,z)},t.prototype.setSymbolScale=function(o){this.scaleX=this.scaleY=o},t.prototype.fadeOut=function(o,s,l){var v=this.childAt(0),x=getECData(this).dataIndex,A=l&&l.animation;if(this.silent=v.silent=!0,l&&l.fadeLabel){var w=v.getTextContent();w&&removeElement(w,{style:{opacity:0}},s,{dataIndex:x,removeOpt:A,cb:function(){v.removeTextContent()}})}else v.removeTextContent();removeElement(v,{style:{opacity:0},scaleX:0,scaleY:0},s,{dataIndex:x,cb:o,removeOpt:A})},t.getSymbolSize=function(o,s){return normalizeSymbolSize(o.getItemVisual(s,"symbolSize"))},t}(Group$3);function driftSymbol(r,t){this.parent.drift(r,t)}const SymbolClz=Symbol$1;function symbolNeedsDraw(r,t,o,s){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(s.isIgnore&&s.isIgnore(o))&&!(s.clipShape&&!s.clipShape.contain(t[0],t[1]))&&r.getItemVisual(o,"symbol")!=="none"}function normalizeUpdateOpt(r){return r!=null&&!isObject$3(r)&&(r={isIgnore:r}),r||{}}function makeSeriesScope(r){var t=r.hostModel,o=t.getModel("emphasis");return{emphasisItemStyle:o.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:o.get("focus"),blurScope:o.get("blurScope"),emphasisDisabled:o.get("disabled"),hoverScale:o.get("scale"),labelStatesModels:getLabelStatesModels(t),cursorStyle:t.get("cursor")}}var SymbolDraw=function(){function r(t){this.group=new Group$3,this._SymbolCtor=t||SymbolClz}return r.prototype.updateData=function(t,o){this._progressiveEls=null,o=normalizeUpdateOpt(o);var s=this.group,l=t.hostModel,v=this._data,x=this._SymbolCtor,A=o.disableAnimation,w=makeSeriesScope(t),E={disableAnimation:A},C=o.getSymbolPoint||function(R){return t.getItemLayout(R)};v||s.removeAll(),t.diff(v).add(function(R){var $=C(R);if(symbolNeedsDraw(t,$,R,o)){var V=new x(t,R,w,E);V.setPosition($),t.setItemGraphicEl(R,V),s.add(V)}}).update(function(R,$){var V=v.getItemGraphicEl($),z=C(R);if(!symbolNeedsDraw(t,z,R,o)){s.remove(V);return}var F=t.getItemVisual(R,"symbol")||"circle",B=V&&V.getSymbolType&&V.getSymbolType();if(!V||B&&B!==F)s.remove(V),V=new x(t,R,w,E),V.setPosition(z);else{V.updateData(t,R,w,E);var W={x:z[0],y:z[1]};A?V.attr(W):updateProps$1(V,W,l)}s.add(V),t.setItemGraphicEl(R,V)}).remove(function(R){var $=v.getItemGraphicEl(R);$&&$.fadeOut(function(){s.remove($)},l)}).execute(),this._getSymbolPoint=C,this._data=t},r.prototype.updateLayout=function(){var t=this,o=this._data;o&&o.eachItemGraphicEl(function(s,l){var v=t._getSymbolPoint(l);s.setPosition(v),s.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=makeSeriesScope(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,o,s){this._progressiveEls=[],s=normalizeUpdateOpt(s);function l(w){w.isGroup||(w.incremental=!0,w.ensureState("emphasis").hoverLayer=!0)}for(var v=t.start;v<t.end;v++){var x=o.getItemLayout(v);if(symbolNeedsDraw(o,x,v,s)){var A=new this._SymbolCtor(o,v,this._seriesScope);A.traverse(l),A.setPosition(x),this.group.add(A),o.setItemGraphicEl(v,A),this._progressiveEls.push(A)}}},r.prototype.eachRendered=function(t){traverseElements(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var o=this.group,s=this._data;s&&t?s.eachItemGraphicEl(function(l){l.fadeOut(function(){o.remove(l)},s.hostModel)}):o.removeAll()},r}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo(r,t,o){var s=r.getBaseAxis(),l=r.getOtherAxis(s),v=getValueStart(l,o),x=s.dim,A=l.dim,w=t.mapDimension(A),E=t.mapDimension(x),C=A==="x"||A==="radius"?1:0,R=map$2(r.dimensions,function(z){return t.mapDimension(z)}),$=!1,V=t.getCalculationInfo("stackResultDimension");return isDimensionStacked(t,R[0])&&($=!0,R[0]=V),isDimensionStacked(t,R[1])&&($=!0,R[1]=V),{dataDimsForPoint:R,valueStart:v,valueAxisDim:A,baseAxisDim:x,stacked:!!$,valueDim:w,baseDim:E,baseDataOffset:C,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function getValueStart(r,t){var o=0,s=r.scale.getExtent();return t==="start"?o=s[0]:t==="end"?o=s[1]:isNumber(t)&&!isNaN(t)?o=t:s[0]>0?o=s[0]:s[1]<0&&(o=s[1]),o}function getStackedOnPoint(r,t,o,s){var l=NaN;r.stacked&&(l=o.get(o.getCalculationInfo("stackedOverDimension"),s)),isNaN(l)&&(l=r.valueStart);var v=r.baseDataOffset,x=[];return x[v]=o.get(r.baseDim,s),x[1-v]=l,t.dataToPoint(x)}function diffData(r,t){var o=[];return t.diff(r).add(function(s){o.push({cmd:"+",idx:s})}).update(function(s,l){o.push({cmd:"=",idx:l,idx1:s})}).remove(function(s){o.push({cmd:"-",idx:s})}).execute(),o}function lineAnimationDiff(r,t,o,s,l,v,x,A){for(var w=diffData(r,t),E=[],C=[],R=[],$=[],V=[],z=[],F=[],B=prepareDataCoordInfo(l,t,x),W=r.getLayout("points")||[],Y=t.getLayout("points")||[],Z=0;Z<w.length;Z++){var X=w[Z],ae=!0,ie=void 0,oe=void 0;switch(X.cmd){case"=":ie=X.idx*2,oe=X.idx1*2;var le=W[ie],ve=W[ie+1],xe=Y[oe],_e=Y[oe+1];(isNaN(le)||isNaN(ve))&&(le=xe,ve=_e),E.push(le,ve),C.push(xe,_e),R.push(o[ie],o[ie+1]),$.push(s[oe],s[oe+1]),F.push(t.getRawIndex(X.idx1));break;case"+":var Te=X.idx,Ee=B.dataDimsForPoint,Ce=l.dataToPoint([t.get(Ee[0],Te),t.get(Ee[1],Te)]);oe=Te*2,E.push(Ce[0],Ce[1]),C.push(Y[oe],Y[oe+1]);var Pe=getStackedOnPoint(B,l,t,Te);R.push(Pe[0],Pe[1]),$.push(s[oe],s[oe+1]),F.push(t.getRawIndex(Te));break;case"-":ae=!1}ae&&(V.push(X),z.push(z.length))}z.sort(function(mt,ht){return F[mt]-F[ht]});for(var Me=E.length,Fe=createFloat32Array(Me),De=createFloat32Array(Me),Re=createFloat32Array(Me),Ne=createFloat32Array(Me),Ze=[],Z=0;Z<z.length;Z++){var je=z[Z],Qe=Z*2,ct=je*2;Fe[Qe]=E[ct],Fe[Qe+1]=E[ct+1],De[Qe]=C[ct],De[Qe+1]=C[ct+1],Re[Qe]=R[ct],Re[Qe+1]=R[ct+1],Ne[Qe]=$[ct],Ne[Qe+1]=$[ct+1],Ze[Z]=V[je]}return{current:Fe,next:De,stackedOnCurrent:Re,stackedOnNext:Ne,status:Ze}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1(r,t){return isNaN(r)||isNaN(t)}function drawSegment(r,t,o,s,l,v,x,A,w){for(var E,C,R,$,V,z,F=o,B=0;B<s;B++){var W=t[F*2],Y=t[F*2+1];if(F>=l||F<0)break;if(isPointNull$1(W,Y)){if(w){F+=v;continue}break}if(F===o)r[v>0?"moveTo":"lineTo"](W,Y),R=W,$=Y;else{var Z=W-E,X=Y-C;if(Z*Z+X*X<.5){F+=v;continue}if(x>0){for(var ae=F+v,ie=t[ae*2],oe=t[ae*2+1];ie===W&&oe===Y&&B<s;)B++,ae+=v,F+=v,ie=t[ae*2],oe=t[ae*2+1],W=t[F*2],Y=t[F*2+1],Z=W-E,X=Y-C;var le=B+1;if(w)for(;isPointNull$1(ie,oe)&&le<s;)le++,ae+=v,ie=t[ae*2],oe=t[ae*2+1];var ve=.5,xe=0,_e=0,Te=void 0,Ee=void 0;if(le>=s||isPointNull$1(ie,oe))V=W,z=Y;else{xe=ie-E,_e=oe-C;var Ce=W-E,Pe=ie-W,Me=Y-C,Fe=oe-Y,De=void 0,Re=void 0;if(A==="x"){De=Math.abs(Ce),Re=Math.abs(Pe);var Ne=xe>0?1:-1;V=W-Ne*De*x,z=Y,Te=W+Ne*Re*x,Ee=Y}else if(A==="y"){De=Math.abs(Me),Re=Math.abs(Fe);var Ze=_e>0?1:-1;V=W,z=Y-Ze*De*x,Te=W,Ee=Y+Ze*Re*x}else De=Math.sqrt(Ce*Ce+Me*Me),Re=Math.sqrt(Pe*Pe+Fe*Fe),ve=Re/(Re+De),V=W-xe*x*(1-ve),z=Y-_e*x*(1-ve),Te=W+xe*x*ve,Ee=Y+_e*x*ve,Te=mathMin$3(Te,mathMax$3(ie,W)),Ee=mathMin$3(Ee,mathMax$3(oe,Y)),Te=mathMax$3(Te,mathMin$3(ie,W)),Ee=mathMax$3(Ee,mathMin$3(oe,Y)),xe=Te-W,_e=Ee-Y,V=W-xe*De/Re,z=Y-_e*De/Re,V=mathMin$3(V,mathMax$3(E,W)),z=mathMin$3(z,mathMax$3(C,Y)),V=mathMax$3(V,mathMin$3(E,W)),z=mathMax$3(z,mathMin$3(C,Y)),xe=W-V,_e=Y-z,Te=W+xe*Re/De,Ee=Y+_e*Re/De}r.bezierCurveTo(R,$,V,z,W,Y),R=Te,$=Ee}else r.lineTo(W,Y)}E=W,C=Y,F+=v}return B}var ECPolylineShape=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ECPolyline=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="ec-polyline",s}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ECPolylineShape},t.prototype.buildPath=function(o,s){var l=s.points,v=0,x=l.length/2;if(s.connectNulls){for(;x>0&&isPointNull$1(l[x*2-2],l[x*2-1]);x--);for(;v<x&&isPointNull$1(l[v*2],l[v*2+1]);v++);}for(;v<x;)v+=drawSegment(o,l,v,x,x,1,s.smooth,s.smoothMonotone,s.connectNulls)+1},t.prototype.getPointOn=function(o,s){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var l=this.path,v=l.data,x=PathProxy$1.CMD,A,w,E=s==="x",C=[],R=0;R<v.length;){var $=v[R++],V=void 0,z=void 0,F=void 0,B=void 0,W=void 0,Y=void 0,Z=void 0;switch($){case x.M:A=v[R++],w=v[R++];break;case x.L:if(V=v[R++],z=v[R++],Z=E?(o-A)/(V-A):(o-w)/(z-w),Z<=1&&Z>=0){var X=E?(z-w)*Z+w:(V-A)*Z+A;return E?[o,X]:[X,o]}A=V,w=z;break;case x.C:V=v[R++],z=v[R++],F=v[R++],B=v[R++],W=v[R++],Y=v[R++];var ae=E?cubicRootAt(A,V,F,W,o,C):cubicRootAt(w,z,B,Y,o,C);if(ae>0)for(var ie=0;ie<ae;ie++){var oe=C[ie];if(oe<=1&&oe>=0){var X=E?cubicAt(w,z,B,Y,oe):cubicAt(A,V,F,W,oe);return E?[o,X]:[X,o]}}A=W,w=Y;break}}},t}(Path$1),ECPolygonShape=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ECPolylineShape),ECPolygon=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="ec-polygon",s}return t.prototype.getDefaultShape=function(){return new ECPolygonShape},t.prototype.buildPath=function(o,s){var l=s.points,v=s.stackedOnPoints,x=0,A=l.length/2,w=s.smoothMonotone;if(s.connectNulls){for(;A>0&&isPointNull$1(l[A*2-2],l[A*2-1]);A--);for(;x<A&&isPointNull$1(l[x*2],l[x*2+1]);x++);}for(;x<A;){var E=drawSegment(o,l,x,A,A,1,s.smooth,w,s.connectNulls);drawSegment(o,v,x+E-1,E,A,-1,s.stackedOnSmooth,w,s.connectNulls),x+=E+1,o.closePath()}},t}(Path$1);function createGridClipPath(r,t,o,s,l){var v=r.getArea(),x=v.x,A=v.y,w=v.width,E=v.height,C=o.get(["lineStyle","width"])||2;x-=C/2,A-=C/2,w+=C,E+=C,x=Math.floor(x),w=Math.round(w);var R=new Rect$2({shape:{x,y:A,width:w,height:E}});if(t){var $=r.getBaseAxis(),V=$.isHorizontal(),z=$.inverse;V?(z&&(R.shape.x+=w),R.shape.width=0):(z||(R.shape.y+=E),R.shape.height=0);var F=isFunction(l)?function(B){l(B,R)}:null;initProps(R,{shape:{width:w,height:E,x,y:A}},o,null,s,F)}return R}function createPolarClipPath(r,t,o){var s=r.getArea(),l=round$1(s.r0,1),v=round$1(s.r,1),x=new Sector$1({shape:{cx:round$1(r.cx,1),cy:round$1(r.cy,1),r0:l,r:v,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}});if(t){var A=r.getBaseAxis().dim==="angle";A?x.shape.endAngle=s.startAngle:x.shape.r=l,initProps(x,{shape:{endAngle:s.endAngle,r:v}},o)}return x}function createClipPath(r,t,o,s,l){if(r){if(r.type==="polar")return createPolarClipPath(r,t,o);if(r.type==="cartesian2d")return createGridClipPath(r,t,o,s,l)}else return null;return null}function isCoordinateSystemType(r,t){return r.type===t}function isPointsSame(r,t){if(r.length===t.length){for(var o=0;o<r.length;o++)if(r[o]!==t[o])return;return!0}}function bboxFromPoints(r){for(var t=1/0,o=1/0,s=-1/0,l=-1/0,v=0;v<r.length;){var x=r[v++],A=r[v++];isNaN(x)||(t=Math.min(x,t),s=Math.max(x,s)),isNaN(A)||(o=Math.min(A,o),l=Math.max(A,l))}return[[t,o],[s,l]]}function getBoundingDiff(r,t){var o=bboxFromPoints(r),s=o[0],l=o[1],v=bboxFromPoints(t),x=v[0],A=v[1];return Math.max(Math.abs(s[0]-x[0]),Math.abs(s[1]-x[1]),Math.abs(l[0]-A[0]),Math.abs(l[1]-A[1]))}function getSmooth(r){return isNumber(r)?r:r?.5:0}function getStackedOnPoints(r,t,o){if(!o.valueDim)return[];for(var s=t.count(),l=createFloat32Array(s*2),v=0;v<s;v++){var x=getStackedOnPoint(o,r,t,v);l[v*2]=x[0],l[v*2+1]=x[1]}return l}function turnPointsIntoStep(r,t,o,s){var l=t.getBaseAxis(),v=l.dim==="x"||l.dim==="radius"?0:1,x=[],A=0,w=[],E=[],C=[],R=[];if(s){for(A=0;A<r.length;A+=2)!isNaN(r[A])&&!isNaN(r[A+1])&&R.push(r[A],r[A+1]);r=R}for(A=0;A<r.length-2;A+=2)switch(C[0]=r[A+2],C[1]=r[A+3],E[0]=r[A],E[1]=r[A+1],x.push(E[0],E[1]),o){case"end":w[v]=C[v],w[1-v]=E[1-v],x.push(w[0],w[1]);break;case"middle":var $=(E[v]+C[v])/2,V=[];w[v]=V[v]=$,w[1-v]=E[1-v],V[1-v]=C[1-v],x.push(w[0],w[1]),x.push(V[0],V[1]);break;default:w[v]=E[v],w[1-v]=C[1-v],x.push(w[0],w[1])}return x.push(r[A++],r[A++]),x}function clipColorStops(r,t){var o=[],s=r.length,l,v;function x(C,R,$){var V=C.coord,z=($-V)/(R.coord-V),F=lerp(z,[C.color,R.color]);return{coord:$,color:F}}for(var A=0;A<s;A++){var w=r[A],E=w.coord;if(E<0)l=w;else if(E>t){v?o.push(x(v,w,t)):l&&o.push(x(l,w,0),x(l,w,t));break}else l&&(o.push(x(l,w,0)),l=null),o.push(w),v=w}return o}function getVisualGradient(r,t,o){var s=r.getVisual("visualMeta");if(!(!s||!s.length||!r.count())&&t.type==="cartesian2d"){for(var l,v,x=s.length-1;x>=0;x--){var A=r.getDimensionInfo(s[x].dimension);if(l=A&&A.coordDim,l==="x"||l==="y"){v=s[x];break}}if(v){var w=t.getAxis(l),E=map$2(v.stops,function(Z){return{coord:w.toGlobalCoord(w.dataToCoord(Z.value)),color:Z.color}}),C=E.length,R=v.outerColors.slice();C&&E[0].coord>E[C-1].coord&&(E.reverse(),R.reverse());var $=clipColorStops(E,l==="x"?o.getWidth():o.getHeight()),V=$.length;if(!V&&C)return E[0].coord<0?R[1]?R[1]:E[C-1].color:R[0]?R[0]:E[0].color;var z=10,F=$[0].coord-z,B=$[V-1].coord+z,W=B-F;if(W<.001)return"transparent";each$c($,function(Z){Z.offset=(Z.coord-F)/W}),$.push({offset:V?$[V-1].offset:.5,color:R[1]||"transparent"}),$.unshift({offset:V?$[0].offset:.5,color:R[0]||"transparent"});var Y=new LinearGradient$1(0,0,0,0,$,!0);return Y[l]=F,Y[l+"2"]=B,Y}}}function getIsIgnoreFunc(r,t,o){var s=r.get("showAllSymbol"),l=s==="auto";if(!(s&&!l)){var v=o.getAxesByScale("ordinal")[0];if(v&&!(l&&canShowAllSymbolForCategory(v,t))){var x=t.mapDimension(v.dim),A={};return each$c(v.getViewLabels(),function(w){var E=v.scale.getRawOrdinalNumber(w.tickValue);A[E]=1}),function(w){return!A.hasOwnProperty(t.get(x,w))}}}}function canShowAllSymbolForCategory(r,t){var o=r.getExtent(),s=Math.abs(o[1]-o[0])/r.scale.count();isNaN(s)&&(s=0);for(var l=t.count(),v=Math.max(1,Math.round(l/5)),x=0;x<l;x+=v)if(SymbolClz.getSymbolSize(t,x)[r.isHorizontal()?1:0]*1.5>s)return!1;return!0}function isPointNull(r,t){return isNaN(r)||isNaN(t)}function getLastIndexNotNull(r){for(var t=r.length/2;t>0&&isPointNull(r[t*2-2],r[t*2-1]);t--);return t-1}function getPointAtIndex(r,t){return[r[t*2],r[t*2+1]]}function getIndexRange(r,t,o){for(var s=r.length/2,l=o==="x"?0:1,v,x,A=0,w=-1,E=0;E<s;E++)if(x=r[E*2+l],!(isNaN(x)||isNaN(r[E*2+1-l]))){if(E===0){v=x;continue}if(v<=t&&x>=t||v>=t&&x<=t){w=E;break}A=E,v=x}return{range:[A,w],t:(t-v)/(x-v)}}function anyStateShowEndLabel(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<SPECIAL_STATES.length;t++)if(r.get([SPECIAL_STATES[t],"endLabel","show"]))return!0;return!1}function createLineClipPath(r,t,o,s){if(isCoordinateSystemType(t,"cartesian2d")){var l=s.getModel("endLabel"),v=l.get("valueAnimation"),x=s.getData(),A={lastFrameIndex:0},w=anyStateShowEndLabel(s)?function(V,z){r._endLabelOnDuring(V,z,x,A,v,l,t)}:null,E=t.getBaseAxis().isHorizontal(),C=createGridClipPath(t,o,s,function(){var V=r._endLabel;V&&o&&A.originalX!=null&&V.attr({x:A.originalX,y:A.originalY})},w);if(!s.get("clip",!0)){var R=C.shape,$=Math.max(R.width,R.height);E?(R.y-=$,R.height+=$*2):(R.x-=$,R.width+=$*2)}return w&&w(1,C),C}else return createPolarClipPath(t,o,s)}function getEndLabelStateSpecified(r,t){var o=t.getBaseAxis(),s=o.isHorizontal(),l=o.inverse,v=s?l?"right":"left":"center",x=s?"middle":l?"top":"bottom";return{normal:{align:r.get("align")||v,verticalAlign:r.get("verticalAlign")||x}}}var LineView=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var o=new Group$3,s=new SymbolDraw$1;this.group.add(s.group),this._symbolDraw=s,this._lineGroup=o},t.prototype.render=function(o,s,l){var v=this,x=o.coordinateSystem,A=this.group,w=o.getData(),E=o.getModel("lineStyle"),C=o.getModel("areaStyle"),R=w.getLayout("points")||[],$=x.type==="polar",V=this._coordSys,z=this._symbolDraw,F=this._polyline,B=this._polygon,W=this._lineGroup,Y=!s.ssr&&o.isAnimationEnabled(),Z=!C.isEmpty(),X=C.get("origin"),ae=prepareDataCoordInfo(x,w,X),ie=Z&&getStackedOnPoints(x,w,ae),oe=o.get("showSymbol"),le=o.get("connectNulls"),ve=oe&&!$&&getIsIgnoreFunc(o,w,x),xe=this._data;xe&&xe.eachItemGraphicEl(function(ht,xt){ht.__temp&&(A.remove(ht),xe.setItemGraphicEl(xt,null))}),oe||z.remove(),A.add(W);var _e=$?!1:o.get("step"),Te;x&&x.getArea&&o.get("clip",!0)&&(Te=x.getArea(),Te.width!=null?(Te.x-=.1,Te.y-=.1,Te.width+=.2,Te.height+=.2):Te.r0&&(Te.r0-=.5,Te.r+=.5)),this._clipShapeForSymbol=Te;var Ee=getVisualGradient(w,x,l)||w.getVisual("style")[w.getVisual("drawType")];if(!(F&&V.type===x.type&&_e===this._step))oe&&z.updateData(w,{isIgnore:ve,clipShape:Te,disableAnimation:!0,getSymbolPoint:function(ht){return[R[ht*2],R[ht*2+1]]}}),Y&&this._initSymbolLabelAnimation(w,x,Te),_e&&(R=turnPointsIntoStep(R,x,_e,le),ie&&(ie=turnPointsIntoStep(ie,x,_e,le))),F=this._newPolyline(R),Z?B=this._newPolygon(R,ie):B&&(W.remove(B),B=this._polygon=null),$||this._initOrUpdateEndLabel(o,x,convertToColorString(Ee)),W.setClipPath(createLineClipPath(this,x,!0,o));else{Z&&!B?B=this._newPolygon(R,ie):B&&!Z&&(W.remove(B),B=this._polygon=null),$||this._initOrUpdateEndLabel(o,x,convertToColorString(Ee));var Ce=W.getClipPath();if(Ce){var Pe=createLineClipPath(this,x,!1,o);initProps(Ce,{shape:Pe.shape},o)}else W.setClipPath(createLineClipPath(this,x,!0,o));oe&&z.updateData(w,{isIgnore:ve,clipShape:Te,disableAnimation:!0,getSymbolPoint:function(ht){return[R[ht*2],R[ht*2+1]]}}),(!isPointsSame(this._stackedOnPoints,ie)||!isPointsSame(this._points,R))&&(Y?this._doUpdateAnimation(w,ie,x,l,_e,X,le):(_e&&(R=turnPointsIntoStep(R,x,_e,le),ie&&(ie=turnPointsIntoStep(ie,x,_e,le))),F.setShape({points:R}),B&&B.setShape({points:R,stackedOnPoints:ie})))}var Me=o.getModel("emphasis"),Fe=Me.get("focus"),De=Me.get("blurScope"),Re=Me.get("disabled");if(F.useStyle(defaults(E.getLineStyle(),{fill:"none",stroke:Ee,lineJoin:"bevel"})),setStatesStylesFromModel(F,o,"lineStyle"),F.style.lineWidth>0&&o.get(["emphasis","lineStyle","width"])==="bolder"){var Ne=F.getState("emphasis").style;Ne.lineWidth=+F.style.lineWidth+1}getECData(F).seriesIndex=o.seriesIndex,toggleHoverEmphasis(F,Fe,De,Re);var Ze=getSmooth(o.get("smooth")),je=o.get("smoothMonotone");if(F.setShape({smooth:Ze,smoothMonotone:je,connectNulls:le}),B){var Qe=w.getCalculationInfo("stackedOnSeries"),ct=0;B.useStyle(defaults(C.getAreaStyle(),{fill:Ee,opacity:.7,lineJoin:"bevel",decal:w.getVisual("style").decal})),Qe&&(ct=getSmooth(Qe.get("smooth"))),B.setShape({smooth:Ze,stackedOnSmooth:ct,smoothMonotone:je,connectNulls:le}),setStatesStylesFromModel(B,o,"areaStyle"),getECData(B).seriesIndex=o.seriesIndex,toggleHoverEmphasis(B,Fe,De,Re)}var mt=function(ht){v._changePolyState(ht)};w.eachItemGraphicEl(function(ht){ht&&(ht.onHoverStateChange=mt)}),this._polyline.onHoverStateChange=mt,this._data=w,this._coordSys=x,this._stackedOnPoints=ie,this._points=R,this._step=_e,this._valueOrigin=X,o.get("triggerLineEvent")&&(this.packEventData(o,F),B&&this.packEventData(o,B))},t.prototype.packEventData=function(o,s){getECData(s).eventData={componentType:"series",componentSubType:"line",componentIndex:o.componentIndex,seriesIndex:o.seriesIndex,seriesName:o.name,seriesType:"line"}},t.prototype.highlight=function(o,s,l,v){var x=o.getData(),A=queryDataIndex(x,v);if(this._changePolyState("emphasis"),!(A instanceof Array)&&A!=null&&A>=0){var w=x.getLayout("points"),E=x.getItemGraphicEl(A);if(!E){var C=w[A*2],R=w[A*2+1];if(isNaN(C)||isNaN(R)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(C,R))return;var $=o.get("zlevel")||0,V=o.get("z")||0;E=new SymbolClz(x,A),E.x=C,E.y=R,E.setZ($,V);var z=E.getSymbolPath().getTextContent();z&&(z.zlevel=$,z.z=V,z.z2=this._polyline.z2+1),E.__temp=!0,x.setItemGraphicEl(A,E),E.stopSymbolAnimation(!0),this.group.add(E)}E.highlight()}else ChartView$1.prototype.highlight.call(this,o,s,l,v)},t.prototype.downplay=function(o,s,l,v){var x=o.getData(),A=queryDataIndex(x,v);if(this._changePolyState("normal"),A!=null&&A>=0){var w=x.getItemGraphicEl(A);w&&(w.__temp?(x.setItemGraphicEl(A,null),this.group.remove(w)):w.downplay())}else ChartView$1.prototype.downplay.call(this,o,s,l,v)},t.prototype._changePolyState=function(o){var s=this._polygon;setStatesFlag(this._polyline,o),s&&setStatesFlag(s,o)},t.prototype._newPolyline=function(o){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new ECPolyline({shape:{points:o},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},t.prototype._newPolygon=function(o,s){var l=this._polygon;return l&&this._lineGroup.remove(l),l=new ECPolygon({shape:{points:o,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(l),this._polygon=l,l},t.prototype._initSymbolLabelAnimation=function(o,s,l){var v,x,A=s.getBaseAxis(),w=A.inverse;s.type==="cartesian2d"?(v=A.isHorizontal(),x=!1):s.type==="polar"&&(v=A.dim==="angle",x=!0);var E=o.hostModel,C=E.get("animationDuration");isFunction(C)&&(C=C(null));var R=E.get("animationDelay")||0,$=isFunction(R)?R(null):R;o.eachItemGraphicEl(function(V,z){var F=V;if(F){var B=[V.x,V.y],W=void 0,Y=void 0,Z=void 0;if(l)if(x){var X=l,ae=s.pointToCoord(B);v?(W=X.startAngle,Y=X.endAngle,Z=-ae[1]/180*Math.PI):(W=X.r0,Y=X.r,Z=ae[0])}else{var ie=l;v?(W=ie.x,Y=ie.x+ie.width,Z=V.x):(W=ie.y+ie.height,Y=ie.y,Z=V.y)}var oe=Y===W?0:(Z-W)/(Y-W);w&&(oe=1-oe);var le=isFunction(R)?R(z):C*oe+$,ve=F.getSymbolPath(),xe=ve.getTextContent();F.attr({scaleX:0,scaleY:0}),F.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:le}),xe&&xe.animateFrom({style:{opacity:0}},{duration:300,delay:le}),ve.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(o,s,l){var v=o.getModel("endLabel");if(anyStateShowEndLabel(o)){var x=o.getData(),A=this._polyline,w=x.getLayout("points");if(!w){A.removeTextContent(),this._endLabel=null;return}var E=this._endLabel;E||(E=this._endLabel=new ZRText$1({z2:200}),E.ignoreClip=!0,A.setTextContent(this._endLabel),A.disableLabelAnimation=!0);var C=getLastIndexNotNull(w);C>=0&&(setLabelStyle(A,getLabelStatesModels(o,"endLabel"),{inheritColor:l,labelFetcher:o,labelDataIndex:C,defaultText:function(R,$,V){return V!=null?getDefaultInterpolatedLabel(x,V):getDefaultLabel(x,R)},enableTextSetter:!0},getEndLabelStateSpecified(v,s)),A.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(o,s,l,v,x,A,w){var E=this._endLabel,C=this._polyline;if(E){o<1&&v.originalX==null&&(v.originalX=E.x,v.originalY=E.y);var R=l.getLayout("points"),$=l.hostModel,V=$.get("connectNulls"),z=A.get("precision"),F=A.get("distance")||0,B=w.getBaseAxis(),W=B.isHorizontal(),Y=B.inverse,Z=s.shape,X=Y?W?Z.x:Z.y+Z.height:W?Z.x+Z.width:Z.y,ae=(W?F:0)*(Y?-1:1),ie=(W?0:-F)*(Y?-1:1),oe=W?"x":"y",le=getIndexRange(R,X,oe),ve=le.range,xe=ve[1]-ve[0],_e=void 0;if(xe>=1){if(xe>1&&!V){var Te=getPointAtIndex(R,ve[0]);E.attr({x:Te[0]+ae,y:Te[1]+ie}),x&&(_e=$.getRawValue(ve[0]))}else{var Te=C.getPointOn(X,oe);Te&&E.attr({x:Te[0]+ae,y:Te[1]+ie});var Ee=$.getRawValue(ve[0]),Ce=$.getRawValue(ve[1]);x&&(_e=interpolateRawValues(l,z,Ee,Ce,le.t))}v.lastFrameIndex=ve[0]}else{var Pe=o===1||v.lastFrameIndex>0?ve[0]:0,Te=getPointAtIndex(R,Pe);x&&(_e=$.getRawValue(Pe)),E.attr({x:Te[0]+ae,y:Te[1]+ie})}x&&labelInner(E).setLabelText(_e)}},t.prototype._doUpdateAnimation=function(o,s,l,v,x,A,w){var E=this._polyline,C=this._polygon,R=o.hostModel,$=lineAnimationDiff(this._data,o,this._stackedOnPoints,s,this._coordSys,l,this._valueOrigin),V=$.current,z=$.stackedOnCurrent,F=$.next,B=$.stackedOnNext;if(x&&(V=turnPointsIntoStep($.current,l,x,w),z=turnPointsIntoStep($.stackedOnCurrent,l,x,w),F=turnPointsIntoStep($.next,l,x,w),B=turnPointsIntoStep($.stackedOnNext,l,x,w)),getBoundingDiff(V,F)>3e3||C&&getBoundingDiff(z,B)>3e3){E.stopAnimation(),E.setShape({points:F}),C&&(C.stopAnimation(),C.setShape({points:F,stackedOnPoints:B}));return}E.shape.__points=$.current,E.shape.points=V;var W={shape:{points:F}};$.current!==V&&(W.shape.__points=$.next),E.stopAnimation(),updateProps$1(E,W,R),C&&(C.setShape({points:V,stackedOnPoints:z}),C.stopAnimation(),updateProps$1(C,{shape:{stackedOnPoints:B}},R),E.shape.points!==C.shape.points&&(C.shape.points=E.shape.points));for(var Y=[],Z=$.status,X=0;X<Z.length;X++){var ae=Z[X].cmd;if(ae==="="){var ie=o.getItemGraphicEl(Z[X].idx1);ie&&Y.push({el:ie,ptIdx:X})}}E.animators&&E.animators.length&&E.animators[0].during(function(){C&&C.dirtyShape();for(var oe=E.shape.__points,le=0;le<Y.length;le++){var ve=Y[le].el,xe=Y[le].ptIdx*2;ve.x=oe[xe],ve.y=oe[xe+1],ve.markRedraw()}})},t.prototype.remove=function(o){var s=this.group,l=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),l&&l.eachItemGraphicEl(function(v,x){v.__temp&&(s.remove(v),l.setItemGraphicEl(x,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ChartView$1);const LineView$1=LineView;function pointsLayout(r,t){return{seriesType:r,plan:createRenderPlanner(),reset:function(o){var s=o.getData(),l=o.coordinateSystem,v=o.pipelineContext,x=t||v.large;if(l){var A=map$2(l.dimensions,function(V){return s.mapDimension(V)}).slice(0,2),w=A.length,E=s.getCalculationInfo("stackResultDimension");isDimensionStacked(s,A[0])&&(A[0]=E),isDimensionStacked(s,A[1])&&(A[1]=E);var C=s.getStore(),R=s.getDimensionIndex(A[0]),$=s.getDimensionIndex(A[1]);return w&&{progress:function(V,z){for(var F=V.end-V.start,B=x&&createFloat32Array(F*w),W=[],Y=[],Z=V.start,X=0;Z<V.end;Z++){var ae=void 0;if(w===1){var ie=C.get(R,Z);ae=l.dataToPoint(ie,null,Y)}else W[0]=C.get(R,Z),W[1]=C.get($,Z),ae=l.dataToPoint(W,null,Y);x?(B[X++]=ae[0],B[X++]=ae[1]):z.setItemLayout(Z,ae.slice())}x&&z.setLayout("points",B)}}}}}}var samplers={average:function(r){for(var t=0,o=0,s=0;s<r.length;s++)isNaN(r[s])||(t+=r[s],o++);return o===0?NaN:t/o},sum:function(r){for(var t=0,o=0;o<r.length;o++)t+=r[o]||0;return t},max:function(r){for(var t=-1/0,o=0;o<r.length;o++)r[o]>t&&(t=r[o]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,o=0;o<r.length;o++)r[o]<t&&(t=r[o]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},indexSampler=function(r){return Math.round(r.length/2)};function dataSample(r){return{seriesType:r,reset:function(t,o,s){var l=t.getData(),v=t.get("sampling"),x=t.coordinateSystem,A=l.count();if(A>10&&x.type==="cartesian2d"&&v){var w=x.getBaseAxis(),E=x.getOtherAxis(w),C=w.getExtent(),R=s.getDevicePixelRatio(),$=Math.abs(C[1]-C[0])*(R||1),V=Math.round(A/$);if(isFinite(V)&&V>1){v==="lttb"&&t.setData(l.lttbDownSample(l.mapDimension(E.dim),1/V));var z=void 0;isString(v)?z=samplers[v]:isFunction(v)&&(z=v),z&&t.setData(l.downSample(l.mapDimension(E.dim),1/V,z,indexSampler))}}}}}function install$j(r){r.registerChartView(LineView$1),r.registerSeriesModel(LineSeries),r.registerLayout(pointsLayout("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var o=t.getData(),s=t.getModel("lineStyle").getLineStyle();s&&!s.stroke&&(s.stroke=o.getVisual("style").fill),o.setVisual("legendLineStyle",s)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.getInitialData=function(o,s){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(o,s,l){var v=this.coordinateSystem;if(v&&v.clampData){var x=v.clampData(o),A=v.dataToPoint(x);if(l)each$c(v.getAxes(),function($,V){if($.type==="category"&&s!=null){var z=$.getTicksCoords(),F=x[V],B=s[V]==="x1"||s[V]==="y1";if(B&&(F+=1),z.length<2)return;if(z.length===2){A[V]=$.toGlobalCoord($.getExtent()[B?1:0]);return}for(var W=void 0,Y=void 0,Z=1,X=0;X<z.length;X++){var ae=z[X].coord,ie=X===z.length-1?z[X-1].tickValue+Z:z[X].tickValue;if(ie===F){Y=ae;break}else if(ie<F)W=ae;else if(W!=null&&ie>F){Y=(ae+W)/2;break}X===1&&(Z=ie-z[0].tickValue)}Y==null&&(W?W&&(Y=z[z.length-1].coord):Y=z[0].coord),A[V]=$.toGlobalCoord(Y)}});else{var w=this.getData(),E=w.getLayout("offset"),C=w.getLayout("size"),R=v.getBaseAxis().isHorizontal()?0:1;A[R]+=E+C/2}return A}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var o=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>o&&(o=s),o},t.prototype.brushSelector=function(o,s,l){return l.rect(s.getItemLayout(o))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),SausagePath=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="sausage",s}return t.prototype.getDefaultShape=function(){return new SausageShape},t.prototype.buildPath=function(o,s){var l=s.cx,v=s.cy,x=Math.max(s.r0||0,0),A=Math.max(s.r,0),w=(A-x)*.5,E=x+w,C=s.startAngle,R=s.endAngle,$=s.clockwise,V=Math.PI*2,z=$?R-C<V:C-R<V;z||(C=R-($?V:-V));var F=Math.cos(C),B=Math.sin(C),W=Math.cos(R),Y=Math.sin(R);z?(o.moveTo(F*x+l,B*x+v),o.arc(F*E+l,B*E+v,w,-Math.PI+C,C,!$)):o.moveTo(F*A+l,B*A+v),o.arc(l,v,A,C,R,!$),o.arc(W*E+l,Y*E+v,w,R-Math.PI*2,R-Math.PI,!$),x!==0&&o.arc(l,v,x,R,C,$)},t}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition(r,t){t=t||{};var o=t.isRoundCap;return function(s,l,v){var x=l.position;if(!x||x instanceof Array)return calculateTextPosition(s,l,v);var A=r(x),w=l.distance!=null?l.distance:5,E=this.shape,C=E.cx,R=E.cy,$=E.r,V=E.r0,z=($+V)/2,F=E.startAngle,B=E.endAngle,W=(F+B)/2,Y=o?Math.abs($-V)/2:0,Z=Math.cos,X=Math.sin,ae=C+$*Z(F),ie=R+$*X(F),oe="left",le="top";switch(A){case"startArc":ae=C+(V-w)*Z(W),ie=R+(V-w)*X(W),oe="center",le="top";break;case"insideStartArc":ae=C+(V+w)*Z(W),ie=R+(V+w)*X(W),oe="center",le="bottom";break;case"startAngle":ae=C+z*Z(F)+adjustAngleDistanceX(F,w+Y,!1),ie=R+z*X(F)+adjustAngleDistanceY(F,w+Y,!1),oe="right",le="middle";break;case"insideStartAngle":ae=C+z*Z(F)+adjustAngleDistanceX(F,-w+Y,!1),ie=R+z*X(F)+adjustAngleDistanceY(F,-w+Y,!1),oe="left",le="middle";break;case"middle":ae=C+z*Z(W),ie=R+z*X(W),oe="center",le="middle";break;case"endArc":ae=C+($+w)*Z(W),ie=R+($+w)*X(W),oe="center",le="bottom";break;case"insideEndArc":ae=C+($-w)*Z(W),ie=R+($-w)*X(W),oe="center",le="top";break;case"endAngle":ae=C+z*Z(B)+adjustAngleDistanceX(B,w+Y,!0),ie=R+z*X(B)+adjustAngleDistanceY(B,w+Y,!0),oe="left",le="middle";break;case"insideEndAngle":ae=C+z*Z(B)+adjustAngleDistanceX(B,-w+Y,!0),ie=R+z*X(B)+adjustAngleDistanceY(B,-w+Y,!0),oe="right",le="middle";break;default:return calculateTextPosition(s,l,v)}return s=s||{},s.x=ae,s.y=ie,s.align=oe,s.verticalAlign=le,s}}function setSectorTextRotation(r,t,o,s){if(isNumber(s)){r.setTextConfig({rotation:s});return}else if(isArray$1(t)){r.setTextConfig({rotation:0});return}var l=r.shape,v=l.clockwise?l.startAngle:l.endAngle,x=l.clockwise?l.endAngle:l.startAngle,A=(v+x)/2,w,E=o(t);switch(E){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":w=A;break;case"startAngle":case"insideStartAngle":w=v;break;case"endAngle":case"insideEndAngle":w=x;break;default:r.setTextConfig({rotation:0});return}var C=Math.PI*1.5-w;E==="middle"&&C>Math.PI/2&&C<Math.PI*1.5&&(C-=Math.PI),r.setTextConfig({rotation:C})}function adjustAngleDistanceX(r,t,o){return t*Math.sin(r)*(o?-1:1)}function adjustAngleDistanceY(r,t,o){return t*Math.cos(r)*(o?1:-1)}function getSectorCornerRadius(r,t,o){var s=r.get("borderRadius");if(s==null)return o?{cornerRadius:0}:null;isArray$1(s)||(s=[s,s,s,s]);var l=Math.abs(t.r||0-t.r0||0);return{cornerRadius:map$2(s,function(v){return parsePercent$1(v,l)})}}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea(r,t){var o=r.getArea&&r.getArea();if(isCoordinateSystemType(r,"cartesian2d")){var s=r.getBaseAxis();if(s.type!=="category"||!s.onBand){var l=t.getLayout("bandWidth");s.isHorizontal()?(o.x-=l,o.width+=l*2):(o.y-=l,o.height+=l*2)}}return o}var BarView=function(r){__extends(t,r);function t(){var o=r.call(this)||this;return o.type=t.type,o._isFirstFrame=!0,o}return t.prototype.render=function(o,s,l,v){this._model=o,this._removeOnRenderedListener(l),this._updateDrawMode(o);var x=o.get("coordinateSystem");(x==="cartesian2d"||x==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(o,s,l):this._renderNormal(o,s,l,v))},t.prototype.incrementalPrepareRender=function(o){this._clear(),this._updateDrawMode(o),this._updateLargeClip(o)},t.prototype.incrementalRender=function(o,s){this._progressiveEls=[],this._incrementalRenderLarge(o,s)},t.prototype.eachRendered=function(o){traverseElements(this._progressiveEls||this.group,o)},t.prototype._updateDrawMode=function(o){var s=o.pipelineContext.large;(this._isLargeDraw==null||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},t.prototype._renderNormal=function(o,s,l,v){var x=this.group,A=o.getData(),w=this._data,E=o.coordinateSystem,C=E.getBaseAxis(),R;E.type==="cartesian2d"?R=C.isHorizontal():E.type==="polar"&&(R=C.dim==="angle");var $=o.isAnimationEnabled()?o:null,V=shouldRealtimeSort(o,E);V&&this._enableRealtimeSort(V,A,l);var z=o.get("clip",!0)||V,F=getClipArea(E,A);x.removeClipPath();var B=o.get("roundCap",!0),W=o.get("showBackground",!0),Y=o.getModel("backgroundStyle"),Z=Y.get("borderRadius")||0,X=[],ae=this._backgroundEls,ie=v&&v.isInitSort,oe=v&&v.type==="changeAxisOrder";function le(_e){var Te=getLayout[E.type](A,_e),Ee=createBackgroundEl(E,R,Te);return Ee.useStyle(Y.getItemStyle()),E.type==="cartesian2d"?Ee.setShape("r",Z):Ee.setShape("cornerRadius",Z),X[_e]=Ee,Ee}A.diff(w).add(function(_e){var Te=A.getItemModel(_e),Ee=getLayout[E.type](A,_e,Te);if(W&&le(_e),!(!A.hasValue(_e)||!isValidLayout[E.type](Ee))){var Ce=!1;z&&(Ce=clip[E.type](F,Ee));var Pe=elementCreator[E.type](o,A,_e,Ee,R,$,C.model,!1,B);V&&(Pe.forceLabelAnimation=!0),updateStyle(Pe,A,_e,Te,Ee,o,R,E.type==="polar"),ie?Pe.attr({shape:Ee}):V?updateRealtimeAnimation(V,$,Pe,Ee,_e,R,!1,!1):initProps(Pe,{shape:Ee},o,_e),A.setItemGraphicEl(_e,Pe),x.add(Pe),Pe.ignore=Ce}}).update(function(_e,Te){var Ee=A.getItemModel(_e),Ce=getLayout[E.type](A,_e,Ee);if(W){var Pe=void 0;ae.length===0?Pe=le(Te):(Pe=ae[Te],Pe.useStyle(Y.getItemStyle()),E.type==="cartesian2d"?Pe.setShape("r",Z):Pe.setShape("cornerRadius",Z),X[_e]=Pe);var Me=getLayout[E.type](A,_e),Fe=createBackgroundShape(R,Me,E);updateProps$1(Pe,{shape:Fe},$,_e)}var De=w.getItemGraphicEl(Te);if(!A.hasValue(_e)||!isValidLayout[E.type](Ce)){x.remove(De);return}var Re=!1;if(z&&(Re=clip[E.type](F,Ce),Re&&x.remove(De)),De?saveOldStyle(De):De=elementCreator[E.type](o,A,_e,Ce,R,$,C.model,!!De,B),V&&(De.forceLabelAnimation=!0),oe){var Ne=De.getTextContent();if(Ne){var Ze=labelInner(Ne);Ze.prevValue!=null&&(Ze.prevValue=Ze.value)}}else updateStyle(De,A,_e,Ee,Ce,o,R,E.type==="polar");ie?De.attr({shape:Ce}):V?updateRealtimeAnimation(V,$,De,Ce,_e,R,!0,oe):updateProps$1(De,{shape:Ce},o,_e,null),A.setItemGraphicEl(_e,De),De.ignore=Re,x.add(De)}).remove(function(_e){var Te=w.getItemGraphicEl(_e);Te&&removeElementWithFadeOut(Te,o,_e)}).execute();var ve=this._backgroundGroup||(this._backgroundGroup=new Group$3);ve.removeAll();for(var xe=0;xe<X.length;++xe)ve.add(X[xe]);x.add(ve),this._backgroundEls=X,this._data=A},t.prototype._renderLarge=function(o,s,l){this._clear(),createLarge(o,this.group),this._updateLargeClip(o)},t.prototype._incrementalRenderLarge=function(o,s){this._removeBackground(),createLarge(s,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(o){var s=o.get("clip",!0)&&createClipPath(o.coordinateSystem,!1,o),l=this.group;s?l.setClipPath(s):l.removeClipPath()},t.prototype._enableRealtimeSort=function(o,s,l){var v=this;if(s.count()){var x=o.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(s,o,l),this._isFirstFrame=!1;else{var A=function(w){var E=s.getItemGraphicEl(w),C=E&&E.shape;return C&&Math.abs(x.isHorizontal()?C.height:C.width)||0};this._onRendered=function(){v._updateSortWithinSameData(s,A,x,l)},l.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(o,s,l){var v=[];return o.each(o.mapDimension(s.dim),function(x,A){var w=l(A);w=w??NaN,v.push({dataIndex:A,mappedValue:w,ordinalNumber:x})}),v.sort(function(x,A){return A.mappedValue-x.mappedValue}),{ordinalNumbers:map$2(v,function(x){return x.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(o,s,l){for(var v=l.scale,x=o.mapDimension(l.dim),A=Number.MAX_VALUE,w=0,E=v.getOrdinalMeta().categories.length;w<E;++w){var C=o.rawIndexOf(x,v.getRawOrdinalNumber(w)),R=C<0?Number.MIN_VALUE:s(o.indexOfRawIndex(C));if(R>A)return!0;A=R}return!1},t.prototype._isOrderDifferentInView=function(o,s){for(var l=s.scale,v=l.getExtent(),x=Math.max(0,v[0]),A=Math.min(v[1],l.getOrdinalMeta().categories.length-1);x<=A;++x)if(o.ordinalNumbers[x]!==l.getRawOrdinalNumber(x))return!0},t.prototype._updateSortWithinSameData=function(o,s,l,v){if(this._isOrderChangedWithinSameData(o,s,l)){var x=this._dataSort(o,l,s);this._isOrderDifferentInView(x,l)&&(this._removeOnRenderedListener(v),v.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",axisId:l.index,sortInfo:x}))}},t.prototype._dispatchInitSort=function(o,s,l){var v=s.baseAxis,x=this._dataSort(o,v,function(A){return o.get(o.mapDimension(s.otherAxis.dim),A)});l.dispatchAction({type:"changeAxisOrder",componentType:v.dim+"Axis",isInitSort:!0,axisId:v.index,sortInfo:x})},t.prototype.remove=function(o,s){this._clear(this._model),this._removeOnRenderedListener(s)},t.prototype.dispose=function(o,s){this._removeOnRenderedListener(s)},t.prototype._removeOnRenderedListener=function(o){this._onRendered&&(o.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(o){var s=this.group,l=this._data;o&&o.isAnimationEnabled()&&l&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],l.eachItemGraphicEl(function(v){removeElementWithFadeOut(v,o,getECData(v).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ChartView$1),clip={cartesian2d:function(r,t){var o=t.width<0?-1:1,s=t.height<0?-1:1;o<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height);var l=r.x+r.width,v=r.y+r.height,x=mathMax$2(t.x,r.x),A=mathMin$2(t.x+t.width,l),w=mathMax$2(t.y,r.y),E=mathMin$2(t.y+t.height,v),C=A<x,R=E<w;return t.x=C&&x>l?A:x,t.y=R&&w>v?E:w,t.width=C?0:A-x,t.height=R?0:E-w,o<0&&(t.x+=t.width,t.width=-t.width),s<0&&(t.y+=t.height,t.height=-t.height),C||R},polar:function(r,t){var o=t.r0<=t.r?1:-1;if(o<0){var s=t.r;t.r=t.r0,t.r0=s}var l=mathMin$2(t.r,r.r),v=mathMax$2(t.r0,r.r0);t.r=l,t.r0=v;var x=l-v<0;if(o<0){var s=t.r;t.r=t.r0,t.r0=s}return x}},elementCreator={cartesian2d:function(r,t,o,s,l,v,x,A,w){var E=new Rect$2({shape:extend({},s),z2:1});if(E.__dataIndex=o,E.name="item",v){var C=E.shape,R=l?"height":"width";C[R]=0}return E},polar:function(r,t,o,s,l,v,x,A,w){var E=!l&&w?Sausage:Sector$1,C=new E({shape:s,z2:1});C.name="item";var R=createPolarPositionMapping(l);if(C.calculateTextPosition=createSectorCalculateTextPosition(R,{isRoundCap:E===Sausage}),v){var $=C.shape,V=l?"r":"endAngle",z={};$[V]=l?s.r0:s.startAngle,z[V]=s[V],(A?updateProps$1:initProps)(C,{shape:z},v)}return C}};function shouldRealtimeSort(r,t){var o=r.get("realtimeSort",!0),s=t.getBaseAxis();if(o&&s.type==="category"&&t.type==="cartesian2d")return{baseAxis:s,otherAxis:t.getOtherAxis(s)}}function updateRealtimeAnimation(r,t,o,s,l,v,x,A){var w,E;v?(E={x:s.x,width:s.width},w={y:s.y,height:s.height}):(E={y:s.y,height:s.height},w={x:s.x,width:s.width}),A||(x?updateProps$1:initProps)(o,{shape:w},t,l,null);var C=t?r.baseAxis.model:null;(x?updateProps$1:initProps)(o,{shape:E},C,l)}function checkPropertiesNotValid(r,t){for(var o=0;o<t.length;o++)if(!isFinite(r[t[o]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function(r){return!checkPropertiesNotValid(r,rectPropties)},polar:function(r){return!checkPropertiesNotValid(r,polarPropties)}},getLayout={cartesian2d:function(r,t,o){var s=r.getItemLayout(t),l=o?getLineWidth(o,s):0,v=s.width>0?1:-1,x=s.height>0?1:-1;return{x:s.x+v*l/2,y:s.y+x*l/2,width:s.width-v*l,height:s.height-x*l}},polar:function(r,t,o){var s=r.getItemLayout(t);return{cx:s.cx,cy:s.cy,r0:s.r0,r:s.r,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}}};function isZeroOnPolar(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function createPolarPositionMapping(r){return function(t){var o=t?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+o;default:return s}}}(r)}function updateStyle(r,t,o,s,l,v,x,A){var w=t.getItemVisual(o,"style");if(A){if(!v.get("roundCap")){var C=r.shape,R=getSectorCornerRadius(s.getModel("itemStyle"),C,!0);extend(C,R),r.setShape(C)}}else{var E=s.get(["itemStyle","borderRadius"])||0;r.setShape("r",E)}r.useStyle(w);var $=s.getShallow("cursor");$&&r.attr("cursor",$);var V=A?x?l.r>=l.r0?"endArc":"startArc":l.endAngle>=l.startAngle?"endAngle":"startAngle":x?l.height>=0?"bottom":"top":l.width>=0?"right":"left",z=getLabelStatesModels(s);setLabelStyle(r,z,{labelFetcher:v,labelDataIndex:o,defaultText:getDefaultLabel(v.getData(),o),inheritColor:w.fill,defaultOpacity:w.opacity,defaultOutsidePosition:V});var F=r.getTextContent();if(A&&F){var B=s.get(["label","position"]);r.textConfig.inside=B==="middle"?!0:null,setSectorTextRotation(r,B==="outside"?V:B,createPolarPositionMapping(x),s.get(["label","rotate"]))}setLabelValueAnimation(F,z,v.getRawValue(o),function(Y){return getDefaultInterpolatedLabel(t,Y)});var W=s.getModel(["emphasis"]);toggleHoverEmphasis(r,W.get("focus"),W.get("blurScope"),W.get("disabled")),setStatesStylesFromModel(r,s),isZeroOnPolar(l)&&(r.style.fill="none",r.style.stroke="none",each$c(r.states,function(Y){Y.style&&(Y.style.fill=Y.style.stroke="none")}))}function getLineWidth(r,t){var o=r.get(["itemStyle","borderColor"]);if(!o||o==="none")return 0;var s=r.get(["itemStyle","borderWidth"])||0,l=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),v=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(s,l,v)}var LagePathShape=function(){function r(){}return r}(),LargePath=function(r){__extends(t,r);function t(o){var s=r.call(this,o)||this;return s.type="largeBar",s}return t.prototype.getDefaultShape=function(){return new LagePathShape},t.prototype.buildPath=function(o,s){for(var l=s.points,v=this.baseDimIdx,x=1-this.baseDimIdx,A=[],w=[],E=this.barWidth,C=0;C<l.length;C+=3)w[v]=E,w[x]=l[C+2],A[v]=l[C+v],A[x]=l[C+x],o.rect(A[0],A[1],w[0],w[1])},t}(Path$1);function createLarge(r,t,o,s){var l=r.getData(),v=l.getLayout("valueAxisHorizontal")?1:0,x=l.getLayout("largeDataIndices"),A=l.getLayout("size"),w=r.getModel("backgroundStyle"),E=l.getLayout("largeBackgroundPoints");if(E){var C=new LargePath({shape:{points:E},incremental:!!s,silent:!0,z2:0});C.baseDimIdx=v,C.largeDataIndices=x,C.barWidth=A,C.useStyle(w.getItemStyle()),t.add(C),o&&o.push(C)}var R=new LargePath({shape:{points:l.getLayout("largePoints")},incremental:!!s,ignoreCoarsePointer:!0,z2:1});R.baseDimIdx=v,R.largeDataIndices=x,R.barWidth=A,t.add(R),R.useStyle(l.getVisual("style")),getECData(R).seriesIndex=r.seriesIndex,r.get("silent")||(R.on("mousedown",largePathUpdateDataIndex),R.on("mousemove",largePathUpdateDataIndex)),o&&o.push(R)}var largePathUpdateDataIndex=throttle(function(r){var t=this,o=largePathFindDataIndex(t,r.offsetX,r.offsetY);getECData(t).dataIndex=o>=0?o:null},30,!1);function largePathFindDataIndex(r,t,o){for(var s=r.baseDimIdx,l=1-s,v=r.shape.points,x=r.largeDataIndices,A=[],w=[],E=r.barWidth,C=0,R=v.length/3;C<R;C++){var $=C*3;if(w[s]=E,w[l]=v[$+2],A[s]=v[$+s],A[l]=v[$+l],w[l]<0&&(A[l]+=w[l],w[l]=-w[l]),t>=A[0]&&t<=A[0]+w[0]&&o>=A[1]&&o<=A[1]+w[1])return x[C]}return-1}function createBackgroundShape(r,t,o){if(isCoordinateSystemType(o,"cartesian2d")){var s=t,l=o.getArea();return{x:r?s.x:l.x,y:r?l.y:s.y,width:r?s.width:l.width,height:r?l.height:s.height}}else{var l=o.getArea(),v=t;return{cx:l.cx,cy:l.cy,r0:r?l.r0:v.r0,r:r?l.r:v.r,startAngle:r?v.startAngle:0,endAngle:r?v.endAngle:Math.PI*2}}}function createBackgroundEl(r,t,o){var s=r.type==="polar"?Sector$1:Rect$2;return new s({shape:createBackgroundShape(t,o,r),silent:!0,z2:0})}const BarView$1=BarView;function install$i(r){r.registerChartView(BarView$1),r.registerSeriesModel(BarSeries),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,o){var s=t.componentType||"series";o.eachComponent({mainType:s,query:t},function(l){t.sortInfo&&l.axis.setCategorySortInfo(t.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect(r,t){return getLayoutRect(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function getBasicPieLayout(r,t){var o=getViewRect(r,t),s=r.get("center"),l=r.get("radius");isArray$1(l)||(l=[0,l]);var v=parsePercent(o.width,t.getWidth()),x=parsePercent(o.height,t.getHeight()),A=Math.min(v,x),w=parsePercent(l[0],A/2),E=parsePercent(l[1],A/2),C,R,$=r.coordinateSystem;if($){var V=$.dataToPoint(s);C=V[0]||0,R=V[1]||0}else isArray$1(s)||(s=[s,s]),C=parsePercent(s[0],v)+o.x,R=parsePercent(s[1],x)+o.y;return{cx:C,cy:R,r0:w,r:E}}function pieLayout(r,t,o){t.eachSeriesByType(r,function(s){var l=s.getData(),v=l.mapDimension("value"),x=getViewRect(s,o),A=getBasicPieLayout(s,o),w=A.cx,E=A.cy,C=A.r,R=A.r0,$=-s.get("startAngle")*RADIAN$1,V=s.get("minAngle")*RADIAN$1,z=0;l.each(v,function(xe){!isNaN(xe)&&z++});var F=l.getSum(v),B=Math.PI/(F||z)*2,W=s.get("clockwise"),Y=s.get("roseType"),Z=s.get("stillShowZeroSum"),X=l.getDataExtent(v);X[0]=0;var ae=PI2,ie=0,oe=$,le=W?1:-1;if(l.setLayout({viewRect:x,r:C}),l.each(v,function(xe,_e){var Te;if(isNaN(xe)){l.setItemLayout(_e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:W,cx:w,cy:E,r0:R,r:Y?NaN:C});return}Y!=="area"?Te=F===0&&Z?B:xe*B:Te=PI2/z,Te<V?(Te=V,ae-=V):ie+=xe;var Ee=oe+le*Te;l.setItemLayout(_e,{angle:Te,startAngle:oe,endAngle:Ee,clockwise:W,cx:w,cy:E,r0:R,r:Y?linearMap$2(xe,X,[R,C]):C}),oe=Ee}),ae<PI2&&z)if(ae<=.001){var ve=PI2/z;l.each(v,function(xe,_e){if(!isNaN(xe)){var Te=l.getItemLayout(_e);Te.angle=ve,Te.startAngle=$+le*_e*ve,Te.endAngle=$+le*(_e+1)*ve}})}else B=ae/ie,oe=$,l.each(v,function(xe,_e){if(!isNaN(xe)){var Te=l.getItemLayout(_e),Ee=Te.angle===V?V:xe*B;Te.startAngle=oe,Te.endAngle=oe+le*Ee,oe+=le*Ee}})})}function dataFilter(r){return{seriesType:r,reset:function(t,o){var s=o.findComponents({mainType:"legend"});if(!(!s||!s.length)){var l=t.getData();l.filterSelf(function(v){for(var x=l.getName(v),A=0;A<s.length;A++)if(!s[A].isSelected(x))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide(r,t,o,s,l,v,x,A,w,E){if(r.length<2)return;function C(F){for(var B=F.rB,W=B*B,Y=0;Y<F.list.length;Y++){var Z=F.list[Y],X=Math.abs(Z.label.y-o),ae=s+Z.len,ie=ae*ae,oe=Math.sqrt((1-Math.abs(X*X/W))*ie),le=t+(oe+Z.len2)*l,ve=le-Z.label.x,xe=Z.targetTextWidth-ve*l;constrainTextWidth(Z,xe,!0),Z.label.x=le}}function R(F){for(var B={list:[],maxY:0},W={list:[],maxY:0},Y=0;Y<F.length;Y++)if(F[Y].labelAlignTo==="none"){var Z=F[Y],X=Z.label.y>o?W:B,ae=Math.abs(Z.label.y-o);if(ae>=X.maxY){var ie=Z.label.x-t-Z.len2*l,oe=s+Z.len,le=Math.abs(ie)<oe?Math.sqrt(ae*ae/(1-ie*ie/oe/oe)):oe;X.rB=le,X.maxY=ae}X.list.push(Z)}C(B),C(W)}for(var $=r.length,V=0;V<$;V++)if(r[V].position==="outer"&&r[V].labelAlignTo==="labelLine"){var z=r[V].label.x-E;r[V].linePoints[1][0]+=z,r[V].label.x=E}shiftLayoutOnY(r,w,w+x)&&R(r)}function avoidOverlap(r,t,o,s,l,v,x,A){for(var w=[],E=[],C=Number.MAX_VALUE,R=-Number.MAX_VALUE,$=0;$<r.length;$++){var V=r[$].label;isPositionCenter(r[$])||(V.x<t?(C=Math.min(C,V.x),w.push(r[$])):(R=Math.max(R,V.x),E.push(r[$])))}for(var $=0;$<r.length;$++){var z=r[$];if(!isPositionCenter(z)&&z.linePoints){if(z.labelStyleWidth!=null)continue;var V=z.label,F=z.linePoints,B=void 0;z.labelAlignTo==="edge"?V.x<t?B=F[2][0]-z.labelDistance-x-z.edgeDistance:B=x+l-z.edgeDistance-F[2][0]-z.labelDistance:z.labelAlignTo==="labelLine"?V.x<t?B=C-x-z.bleedMargin:B=x+l-R-z.bleedMargin:V.x<t?B=V.x-x-z.bleedMargin:B=x+l-V.x-z.bleedMargin,z.targetTextWidth=B,constrainTextWidth(z,B)}}adjustSingleSide(E,t,o,s,1,l,v,x,A,R),adjustSingleSide(w,t,o,s,-1,l,v,x,A,C);for(var $=0;$<r.length;$++){var z=r[$];if(!isPositionCenter(z)&&z.linePoints){var V=z.label,F=z.linePoints,W=z.labelAlignTo==="edge",Y=V.style.padding,Z=Y?Y[1]+Y[3]:0,X=V.style.backgroundColor?0:Z,ae=z.rect.width+X,ie=F[1][0]-F[2][0];W?V.x<t?F[2][0]=x+z.edgeDistance+ae+z.labelDistance:F[2][0]=x+l-z.edgeDistance-ae-z.labelDistance:(V.x<t?F[2][0]=V.x+z.labelDistance:F[2][0]=V.x-z.labelDistance,F[1][0]=F[2][0]+ie),F[1][1]=F[2][1]=V.y}}}function constrainTextWidth(r,t,o){if(o===void 0&&(o=!1),r.labelStyleWidth==null){var s=r.label,l=s.style,v=r.rect,x=l.backgroundColor,A=l.padding,w=A?A[1]+A[3]:0,E=l.overflow,C=v.width+(x?0:w);if(t<C||o){var R=v.height;if(E&&E.match("break")){s.setStyle("backgroundColor",null),s.setStyle("width",t-w);var $=s.getBoundingRect();s.setStyle("width",Math.ceil($.width)),s.setStyle("backgroundColor",x)}else{var V=t-w,z=t<C?V:o?V>r.unconstrainedWidth?null:V:null;s.setStyle("width",z)}var F=s.getBoundingRect();v.width=F.width;var B=(s.style.margin||0)+2.1;v.height=F.height+B,v.y-=(v.height-R)/2}}}function isPositionCenter(r){return r.position==="center"}function pieLabelLayout(r){var t=r.getData(),o=[],s,l,v=!1,x=(r.get("minShowLabelAngle")||0)*RADIAN,A=t.getLayout("viewRect"),w=t.getLayout("r"),E=A.width,C=A.x,R=A.y,$=A.height;function V(ie){ie.ignore=!0}function z(ie){if(!ie.ignore)return!0;for(var oe in ie.states)if(ie.states[oe].ignore===!1)return!0;return!1}t.each(function(ie){var oe=t.getItemGraphicEl(ie),le=oe.shape,ve=oe.getTextContent(),xe=oe.getTextGuideLine(),_e=t.getItemModel(ie),Te=_e.getModel("label"),Ee=Te.get("position")||_e.get(["emphasis","label","position"]),Ce=Te.get("distanceToLabelLine"),Pe=Te.get("alignTo"),Me=parsePercent(Te.get("edgeDistance"),E),Fe=Te.get("bleedMargin"),De=_e.getModel("labelLine"),Re=De.get("length");Re=parsePercent(Re,E);var Ne=De.get("length2");if(Ne=parsePercent(Ne,E),Math.abs(le.endAngle-le.startAngle)<x){each$c(ve.states,V),ve.ignore=!0,xe&&(each$c(xe.states,V),xe.ignore=!0);return}if(z(ve)){var Ze=(le.startAngle+le.endAngle)/2,je=Math.cos(Ze),Qe=Math.sin(Ze),ct,mt,ht,xt;s=le.cx,l=le.cy;var yt=Ee==="inside"||Ee==="inner";if(Ee==="center")ct=le.cx,mt=le.cy,xt="center";else{var $e=(yt?(le.r+le.r0)/2*je:le.r*je)+s,Ge=(yt?(le.r+le.r0)/2*Qe:le.r*Qe)+l;if(ct=$e+je*3,mt=Ge+Qe*3,!yt){var ke=$e+je*(Re+w-le.r),Ye=Ge+Qe*(Re+w-le.r),bt=ke+(je<0?-1:1)*Ne,gt=Ye;Pe==="edge"?ct=je<0?C+Me:C+E-Me:ct=bt+(je<0?-Ce:Ce),mt=gt,ht=[[$e,Ge],[ke,Ye],[bt,gt]]}xt=yt?"center":Pe==="edge"?je>0?"right":"left":je>0?"left":"right"}var At=Math.PI,vt=0,nt=Te.get("rotate");if(isNumber(nt))vt=nt*(At/180);else if(Ee==="center")vt=0;else if(nt==="radial"||nt===!0){var Ot=je<0?-Ze+At:-Ze;vt=Ot}else if(nt==="tangential"&&Ee!=="outside"&&Ee!=="outer"){var Lt=Math.atan2(je,Qe);Lt<0&&(Lt=At*2+Lt);var Ft=Qe>0;Ft&&(Lt=At+Lt),vt=Lt-At}if(v=!!vt,ve.x=ct,ve.y=mt,ve.rotation=vt,ve.setStyle({verticalAlign:"middle"}),yt){ve.setStyle({align:xt});var Jt=ve.states.select;Jt&&(Jt.x+=ve.x,Jt.y+=ve.y)}else{var wt=ve.getBoundingRect().clone();wt.applyTransform(ve.getComputedTransform());var Yt=(ve.style.margin||0)+2.1;wt.y-=Yt/2,wt.height+=Yt,o.push({label:ve,labelLine:xe,position:Ee,len:Re,len2:Ne,minTurnAngle:De.get("minTurnAngle"),maxSurfaceAngle:De.get("maxSurfaceAngle"),surfaceNormal:new Point$1(je,Qe),linePoints:ht,textAlign:xt,labelDistance:Ce,labelAlignTo:Pe,edgeDistance:Me,bleedMargin:Fe,rect:wt,unconstrainedWidth:wt.width,labelStyleWidth:ve.style.width})}oe.setTextConfig({inside:yt})}}),!v&&r.get("avoidLabelOverlap")&&avoidOverlap(o,s,l,w,E,$,C,R);for(var F=0;F<o.length;F++){var B=o[F],W=B.label,Y=B.labelLine,Z=isNaN(W.x)||isNaN(W.y);if(W){W.setStyle({align:B.textAlign}),Z&&(each$c(W.states,V),W.ignore=!0);var X=W.states.select;X&&(X.x+=W.x,X.y+=W.y)}if(Y){var ae=B.linePoints;Z||!ae?(each$c(Y.states,V),Y.ignore=!0):(limitTurnAngle(ae,B.minTurnAngle),limitSurfaceAngle(ae,B.surfaceNormal,B.maxSurfaceAngle),Y.setShape({points:ae}),W.__hostTarget.textGuideLineConfig={anchor:new Point$1(ae[0][0],ae[0][1])})}}}var PiePiece=function(r){__extends(t,r);function t(o,s,l){var v=r.call(this)||this;v.z2=2;var x=new ZRText$1;return v.setTextContent(x),v.updateData(o,s,l,!0),v}return t.prototype.updateData=function(o,s,l,v){var x=this,A=o.hostModel,w=o.getItemModel(s),E=w.getModel("emphasis"),C=o.getItemLayout(s),R=extend(getSectorCornerRadius(w.getModel("itemStyle"),C,!0),C);if(isNaN(R.startAngle)){x.setShape(R);return}if(v){x.setShape(R);var $=A.getShallow("animationType");A.ecModel.ssr?(initProps(x,{scaleX:0,scaleY:0},A,{dataIndex:s,isFrom:!0}),x.originX=R.cx,x.originY=R.cy):$==="scale"?(x.shape.r=C.r0,initProps(x,{shape:{r:C.r}},A,s)):l!=null?(x.setShape({startAngle:l,endAngle:l}),initProps(x,{shape:{startAngle:C.startAngle,endAngle:C.endAngle}},A,s)):(x.shape.endAngle=C.startAngle,updateProps$1(x,{shape:{endAngle:C.endAngle}},A,s))}else saveOldStyle(x),updateProps$1(x,{shape:R},A,s);x.useStyle(o.getItemVisual(s,"style")),setStatesStylesFromModel(x,w);var V=(C.startAngle+C.endAngle)/2,z=A.get("selectedOffset"),F=Math.cos(V)*z,B=Math.sin(V)*z,W=w.getShallow("cursor");W&&x.attr("cursor",W),this._updateLabel(A,o,s),x.ensureState("emphasis").shape=extend({r:C.r+(E.get("scale")&&E.get("scaleSize")||0)},getSectorCornerRadius(E.getModel("itemStyle"),C)),extend(x.ensureState("select"),{x:F,y:B,shape:getSectorCornerRadius(w.getModel(["select","itemStyle"]),C)}),extend(x.ensureState("blur"),{shape:getSectorCornerRadius(w.getModel(["blur","itemStyle"]),C)});var Y=x.getTextGuideLine(),Z=x.getTextContent();Y&&extend(Y.ensureState("select"),{x:F,y:B}),extend(Z.ensureState("select"),{x:F,y:B}),toggleHoverEmphasis(this,E.get("focus"),E.get("blurScope"),E.get("disabled"))},t.prototype._updateLabel=function(o,s,l){var v=this,x=s.getItemModel(l),A=x.getModel("labelLine"),w=s.getItemVisual(l,"style"),E=w&&w.fill,C=w&&w.opacity;setLabelStyle(v,getLabelStatesModels(x),{labelFetcher:s.hostModel,labelDataIndex:l,inheritColor:E,defaultOpacity:C,defaultText:o.getFormattedLabel(l,"normal")||s.getName(l)});var R=v.getTextContent();v.setTextConfig({position:null,rotation:null}),R.attr({z2:10});var $=o.get(["label","position"]);if($!=="outside"&&$!=="outer")v.removeTextGuideLine();else{var V=this.getTextGuideLine();V||(V=new Polyline$1,this.setTextGuideLine(V)),setLabelLineStyle(this,getLabelLineStatesModels(x),{stroke:E,opacity:retrieve3(A.get(["lineStyle","opacity"]),C,1)})}},t}(Sector$1),PieView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.ignoreLabelLineUpdate=!0,o}return t.prototype.render=function(o,s,l,v){var x=o.getData(),A=this._data,w=this.group,E;if(!A&&x.count()>0){for(var C=x.getItemLayout(0),R=1;isNaN(C&&C.startAngle)&&R<x.count();++R)C=x.getItemLayout(R);C&&(E=C.startAngle)}if(this._emptyCircleSector&&w.remove(this._emptyCircleSector),x.count()===0&&o.get("showEmptyCircle")){var $=new Sector$1({shape:getBasicPieLayout(o,l)});$.useStyle(o.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=$,w.add($)}x.diff(A).add(function(V){var z=new PiePiece(x,V,E);x.setItemGraphicEl(V,z),w.add(z)}).update(function(V,z){var F=A.getItemGraphicEl(z);F.updateData(x,V,E),F.off("click"),w.add(F),x.setItemGraphicEl(V,F)}).remove(function(V){var z=A.getItemGraphicEl(V);removeElementWithFadeOut(z,o,V)}).execute(),pieLabelLayout(o),o.get("animationTypeUpdate")!=="expansion"&&(this._data=x)},t.prototype.dispose=function(){},t.prototype.containPoint=function(o,s){var l=s.getData(),v=l.getItemLayout(0);if(v){var x=o[0]-v.cx,A=o[1]-v.cy,w=Math.sqrt(x*x+A*A);return w<=v.r&&w>=v.r0}},t.type="pie",t}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply(r,t,o){t=isArray$1(t)&&{coordDimensions:t}||extend({encodeDefine:r.getEncode()},t);var s=r.getSource(),l=prepareSeriesDataSchema(s,t).dimensions,v=new SeriesData$1(l,r);return v.initData(s,o),v}var LegendVisualProvider=function(){function r(t,o){this._getDataWithEncodedVisual=t,this._getRawData=o}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var o=this._getRawData();return o.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var o=this._getDataWithEncodedVisual();return o.indexOfName(t)},r.prototype.getItemVisual=function(t,o){var s=this._getDataWithEncodedVisual();return s.getItemVisual(t,o)},r}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(o){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(o)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},t.prototype.getDataParams=function(o){var s=this.getData(),l=innerData(s),v=l.seats;if(!v){var x=[];s.each(s.mapDimension("value"),function(w){x.push(w)}),v=l.seats=getPercentSeats(x,s.hostModel.get("percentPrecision"))}var A=r.prototype.getDataParams.call(this,o);return A.percent=v[o]||0,A.$vars.push("percent"),A},t.prototype._defaultLabelLine=function(o){defaultEmphasis(o,"labelLine",["show"]);var s=o.labelLine,l=o.emphasis.labelLine;s.show=s.show&&o.label.show,l.show=l.show&&o.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(r){return{seriesType:r,reset:function(t,o){var s=t.getData();s.filterSelf(function(l){var v=s.mapDimension("value"),x=s.get(v,l);return!(isNumber(x)&&!isNaN(x)&&x<0)})}}}function install$h(r){r.registerChartView(PieView$1),r.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",r.registerAction),r.registerLayout(curry$1(pieLayout,"pie")),r.registerProcessor(dataFilter("pie")),r.registerProcessor(negativeDataFilter("pie"))}var GridModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},t.type="cartesian2dAxis",t}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator(r,t,o,s){each$c(AXIS_TYPES,function(l,v){var x=merge(merge({},axisDefault[v],!0),s,!0),A=function(w){__extends(E,w);function E(){var C=w!==null&&w.apply(this,arguments)||this;return C.type=t+"Axis."+v,C}return E.prototype.mergeDefaultAndTheme=function(C,R){var $=fetchLayoutMode(this),V=$?getLayoutParams(C):{},z=R.getTheme();merge(C,z.get(v+"Axis")),merge(C,this.getDefaultOption()),C.type=getAxisType(C),$&&mergeLayoutParam(C,V,$)},E.prototype.optionUpdated=function(){var C=this.option;C.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},E.prototype.getCategories=function(C){var R=this.option;if(R.type==="category")return C?R.data:this.__ordinalMeta.categories},E.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},E.type=t+"Axis."+v,E.defaultOption=x,E}(o);r.registerComponentModel(A)}),r.registerSubTypeDefaulter(t+"Axis",getAxisType)}function getAxisType(r){return r.type||(r.data?"category":"value")}var Cartesian=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return map$2(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),filter(this.getAxes(),function(o){return o.scale.type===t})},r.prototype.addAxis=function(t){var o=t.dim;this._axes[o]=t,this._dimList.push(o)},r}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(r){return r.type==="interval"||r.type==="time"}var Cartesian2D=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="cartesian2d",o.dimensions=cartesian2DDimensions,o}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var o=this.getAxis("x").scale,s=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(o)||!canCalculateAffineTransform(s))){var l=o.getExtent(),v=s.getExtent(),x=this.dataToPoint([l[0],v[0]]),A=this.dataToPoint([l[1],v[1]]),w=l[1]-l[0],E=v[1]-v[0];if(!(!w||!E)){var C=(A[0]-x[0])/w,R=(A[1]-x[1])/E,$=x[0]-l[0]*C,V=x[1]-v[0]*R,z=this._transform=[C,0,0,R,$,V];this._invTransform=invert([],z)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(o){var s=this.getAxis("x"),l=this.getAxis("y");return s.contain(s.toLocalCoord(o[0]))&&l.contain(l.toLocalCoord(o[1]))},t.prototype.containData=function(o){return this.getAxis("x").containData(o[0])&&this.getAxis("y").containData(o[1])},t.prototype.containZone=function(o,s){var l=this.dataToPoint(o),v=this.dataToPoint(s),x=this.getArea(),A=new BoundingRect$1(l[0],l[1],v[0]-l[0],v[1]-l[1]);return x.intersect(A)},t.prototype.dataToPoint=function(o,s,l){l=l||[];var v=o[0],x=o[1];if(this._transform&&v!=null&&isFinite(v)&&x!=null&&isFinite(x))return applyTransform$1(l,o,this._transform);var A=this.getAxis("x"),w=this.getAxis("y");return l[0]=A.toGlobalCoord(A.dataToCoord(v,s)),l[1]=w.toGlobalCoord(w.dataToCoord(x,s)),l},t.prototype.clampData=function(o,s){var l=this.getAxis("x").scale,v=this.getAxis("y").scale,x=l.getExtent(),A=v.getExtent(),w=l.parse(o[0]),E=v.parse(o[1]);return s=s||[],s[0]=Math.min(Math.max(Math.min(x[0],x[1]),w),Math.max(x[0],x[1])),s[1]=Math.min(Math.max(Math.min(A[0],A[1]),E),Math.max(A[0],A[1])),s},t.prototype.pointToData=function(o,s){var l=[];if(this._invTransform)return applyTransform$1(l,o,this._invTransform);var v=this.getAxis("x"),x=this.getAxis("y");return l[0]=v.coordToData(v.toLocalCoord(o[0]),s),l[1]=x.coordToData(x.toLocalCoord(o[1]),s),l},t.prototype.getOtherAxis=function(o){return this.getAxis(o.dim==="x"?"y":"x")},t.prototype.getArea=function(){var o=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),l=Math.min(o[0],o[1]),v=Math.min(s[0],s[1]),x=Math.max(o[0],o[1])-l,A=Math.max(s[0],s[1])-v;return new BoundingRect$1(l,v,x,A)},t}(Cartesian$1),Axis2D=function(r){__extends(t,r);function t(o,s,l,v,x){var A=r.call(this,o,s,l)||this;return A.index=0,A.type=v||"value",A.position=x||"bottom",A}return t.prototype.isHorizontal=function(){var o=this.position;return o==="top"||o==="bottom"},t.prototype.getGlobalExtent=function(o){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),o&&s[0]>s[1]&&s.reverse(),s},t.prototype.pointToData=function(o,s){return this.coordToData(this.toLocalCoord(o[this.dim==="x"?0:1]),s)},t.prototype.setCategorySortInfo=function(o){if(this.type!=="category")return!1;this.model.option.categorySortInfo=o,this.scale.setSortInfo(o)},t}(Axis$1);const Axis2D$1=Axis2D;function layout$1(r,t,o){o=o||{};var s=r.coordinateSystem,l=t.axis,v={},x=l.getAxesOnZeroOf()[0],A=l.position,w=x?"onZero":A,E=l.dim,C=s.getRect(),R=[C.x,C.x+C.width,C.y,C.y+C.height],$={left:0,right:1,top:0,bottom:1,onZero:2},V=t.get("offset")||0,z=E==="x"?[R[2]-V,R[3]+V]:[R[0]-V,R[1]+V];if(x){var F=x.toGlobalCoord(x.dataToCoord(0));z[$.onZero]=Math.max(Math.min(F,z[1]),z[0])}v.position=[E==="y"?z[$[w]]:R[0],E==="x"?z[$[w]]:R[3]],v.rotation=Math.PI/2*(E==="x"?0:1);var B={top:-1,bottom:1,left:-1,right:1};v.labelDirection=v.tickDirection=v.nameDirection=B[A],v.labelOffset=x?z[$[A]]-z[$.onZero]:0,t.get(["axisTick","inside"])&&(v.tickDirection=-v.tickDirection),retrieve(o.labelInside,t.get(["axisLabel","inside"]))&&(v.labelDirection=-v.labelDirection);var W=t.get(["axisLabel","rotate"]);return v.labelRotate=w==="top"?-W:W,v.z2=1,v}function isCartesian2DSeries(r){return r.get("coordinateSystem")==="cartesian2d"}function findAxisModels(r){var t={xAxisModel:null,yAxisModel:null};return each$c(t,function(o,s){var l=s.replace(/Model$/,""),v=r.getReferringComponents(l,SINGLE_REFERRING).models[0];t[s]=v}),t}var mathLog=Math.log;function alignScaleTicks(r,t,o){var s=IntervalScale$1.prototype,l=s.getTicks.call(o),v=s.getTicks.call(o,!0),x=l.length-1,A=s.getInterval.call(o),w=getScaleExtent(r,t),E=w.extent,C=w.fixMin,R=w.fixMax;if(r.type==="log"){var $=mathLog(r.base);E=[mathLog(E[0])/$,mathLog(E[1])/$]}r.setExtent(E[0],E[1]),r.calcNiceExtent({splitNumber:x,fixMin:C,fixMax:R});var V=s.getExtent.call(r);C&&(E[0]=V[0]),R&&(E[1]=V[1]);var z=s.getInterval.call(r),F=E[0],B=E[1];if(C&&R)z=(B-F)/x;else if(C)for(B=E[0]+z*x;B<E[1]&&isFinite(B)&&isFinite(E[1]);)z=increaseInterval(z),B=E[0]+z*x;else if(R)for(F=E[1]-z*x;F>E[0]&&isFinite(F)&&isFinite(E[0]);)z=increaseInterval(z),F=E[1]-z*x;else{var W=r.getTicks().length-1;W>x&&(z=increaseInterval(z));var Y=z*x;B=Math.ceil(E[1]/z)*z,F=round$1(B-Y),F<0&&E[0]>=0?(F=0,B=round$1(Y)):B>0&&E[1]<=0&&(B=0,F=-round$1(Y))}var Z=(l[0].value-v[0].value)/A,X=(l[x].value-v[x].value)/A;s.setExtent.call(r,F+z*Z,B+z*X),s.setInterval.call(r,z),(Z||X)&&s.setNiceExtent.call(r,F+z,B-z)}var Grid=function(){function r(t,o,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(t,o,s),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,o){var s=this._axesMap;this._updateScale(t,this.model);function l(x){var A,w=keys(x),E=w.length;if(E){for(var C=[],R=E-1;R>=0;R--){var $=+w[R],V=x[$],z=V.model,F=V.scale;isIntervalOrLogScale(F)&&z.get("alignTicks")&&z.get("interval")==null?C.push(V):(niceScaleExtent(F,z),isIntervalOrLogScale(F)&&(A=V))}C.length&&(A||(A=C.pop(),niceScaleExtent(A.scale,A.model)),each$c(C,function(B){alignScaleTicks(B.scale,B.model,A.scale)}))}}l(s.x),l(s.y);var v={};each$c(s.x,function(x){fixAxisOnZero(s,"y",x,v)}),each$c(s.y,function(x){fixAxisOnZero(s,"x",x,v)}),this.resize(this.model,o)},r.prototype.resize=function(t,o,s){var l=t.getBoxLayoutParams(),v=!s&&t.get("containLabel"),x=getLayoutRect(l,{width:o.getWidth(),height:o.getHeight()});this._rect=x;var A=this._axesList;w(),v&&(each$c(A,function(E){if(!E.model.get(["axisLabel","inside"])){var C=estimateLabelUnionRect(E);if(C){var R=E.isHorizontal()?"height":"width",$=E.model.get(["axisLabel","margin"]);x[R]-=C[R]+$,E.position==="top"?x.y+=C.height+$:E.position==="left"&&(x.x+=C.width+$)}}}),w()),each$c(this._coordsList,function(E){E.calcAffineTransform()});function w(){each$c(A,function(E){var C=E.isHorizontal(),R=C?[0,x.width]:[0,x.height],$=E.inverse?1:0;E.setExtent(R[$],R[1-$]),updateAxisTransform(E,C?x.x:x.y)})}},r.prototype.getAxis=function(t,o){var s=this._axesMap[t];if(s!=null)return s[o||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,o){if(t!=null&&o!=null){var s="x"+t+"y"+o;return this._coordsMap[s]}isObject$3(t)&&(o=t.yAxisIndex,t=t.xAxisIndex);for(var l=0,v=this._coordsList;l<v.length;l++)if(v[l].getAxis("x").index===t||v[l].getAxis("y").index===o)return v[l]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,o,s){var l=this._findConvertTarget(o);return l.cartesian?l.cartesian.dataToPoint(s):l.axis?l.axis.toGlobalCoord(l.axis.dataToCoord(s)):null},r.prototype.convertFromPixel=function(t,o,s){var l=this._findConvertTarget(o);return l.cartesian?l.cartesian.pointToData(s):l.axis?l.axis.coordToData(l.axis.toLocalCoord(s)):null},r.prototype._findConvertTarget=function(t){var o=t.seriesModel,s=t.xAxisModel||o&&o.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],l=t.yAxisModel||o&&o.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],v=t.gridModel,x=this._coordsList,A,w;if(o)A=o.coordinateSystem,indexOf(x,A)<0&&(A=null);else if(s&&l)A=this.getCartesian(s.componentIndex,l.componentIndex);else if(s)w=this.getAxis("x",s.componentIndex);else if(l)w=this.getAxis("y",l.componentIndex);else if(v){var E=v.coordinateSystem;E===this&&(A=this._coordsList[0])}return{cartesian:A,axis:w}},r.prototype.containPoint=function(t){var o=this._coordsList[0];if(o)return o.containPoint(t)},r.prototype._initCartesian=function(t,o,s){var l=this,v=this,x={left:!1,right:!1,top:!1,bottom:!1},A={x:{},y:{}},w={x:0,y:0};if(o.eachComponent("xAxis",E("x"),this),o.eachComponent("yAxis",E("y"),this),!w.x||!w.y){this._axesMap={},this._axesList=[];return}this._axesMap=A,each$c(A.x,function(C,R){each$c(A.y,function($,V){var z="x"+R+"y"+V,F=new Cartesian2D(z);F.master=l,F.model=t,l._coordsMap[z]=F,l._coordsList.push(F),F.addAxis(C),F.addAxis($)})});function E(C){return function(R,$){if(isAxisUsedInTheGrid(R,t)){var V=R.get("position");C==="x"?V!=="top"&&V!=="bottom"&&(V=x.bottom?"top":"bottom"):V!=="left"&&V!=="right"&&(V=x.left?"right":"left"),x[V]=!0;var z=new Axis2D$1(C,createScaleByModel(R),[0,0],R.get("type"),V),F=z.type==="category";z.onBand=F&&R.get("boundaryGap"),z.inverse=R.get("inverse"),R.axis=z,z.model=R,z.grid=v,z.index=$,v._axesList.push(z),A[C][$]=z,w[C]++}}}},r.prototype._updateScale=function(t,o){each$c(this._axesList,function(l){if(l.scale.setExtent(1/0,-1/0),l.type==="category"){var v=l.model.get("categorySortInfo");l.scale.setSortInfo(v)}}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var v=findAxisModels(l),x=v.xAxisModel,A=v.yAxisModel;if(!isAxisUsedInTheGrid(x,o)||!isAxisUsedInTheGrid(A,o))return;var w=this.getCartesian(x.componentIndex,A.componentIndex),E=l.getData(),C=w.getAxis("x"),R=w.getAxis("y");s(E,C),s(E,R)}},this);function s(l,v){each$c(getDataDimensionsOnAxis(l,v.dim),function(x){v.scale.unionExtentFromData(l,x)})}},r.prototype.getTooltipAxes=function(t){var o=[],s=[];return each$c(this.getCartesians(),function(l){var v=t!=null&&t!=="auto"?l.getAxis(t):l.getBaseAxis(),x=l.getOtherAxis(v);indexOf(o,v)<0&&o.push(v),indexOf(s,x)<0&&s.push(x)}),{baseAxes:o,otherAxes:s}},r.create=function(t,o){var s=[];return t.eachComponent("grid",function(l,v){var x=new r(l,t,o);x.name="grid_"+v,x.resize(l,o,!0),l.coordinateSystem=x,s.push(x)}),t.eachSeries(function(l){if(isCartesian2DSeries(l)){var v=findAxisModels(l),x=v.xAxisModel,A=v.yAxisModel,w=x.getCoordSysModel(),E=w.coordinateSystem;l.coordinateSystem=E.getCartesian(x.componentIndex,A.componentIndex)}}),s},r.dimensions=cartesian2DDimensions,r}();function isAxisUsedInTheGrid(r,t){return r.getCoordSysModel()===t}function fixAxisOnZero(r,t,o,s){o.getAxesOnZeroOf=function(){return v?[v]:[]};var l=r[t],v,x=o.model,A=x.get(["axisLine","onZero"]),w=x.get(["axisLine","onZeroAxisIndex"]);if(!A)return;if(w!=null)canOnZeroToAxis(l[w])&&(v=l[w]);else for(var E in l)if(l.hasOwnProperty(E)&&canOnZeroToAxis(l[E])&&!s[C(l[E])]){v=l[E];break}v&&(s[C(v)]=!0);function C(R){return R.dim+"_"+R.index}}function canOnZeroToAxis(r){return r&&r.type!=="category"&&r.type!=="time"&&ifAxisCrossZero(r)}function updateAxisTransform(r,t){var o=r.getExtent(),s=o[0]+o[1];r.toGlobalCoord=r.dim==="x"?function(l){return l+t}:function(l){return s-l+t},r.toLocalCoord=r.dim==="x"?function(l){return l-t}:function(l){return s-l+t}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function r(t,o){this.group=new Group$3,this.opt=o,this.axisModel=t,defaults(o,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var s=new Group$3({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s}return r.prototype.hasBuilder=function(t){return!!builders[t]},r.prototype.add=function(t){builders[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,o,s){var l=remRadian(o-t),v,x;return isRadianAroundZero(l)?(x=s>0?"top":"bottom",v="center"):isRadianAroundZero(l-PI)?(x=s>0?"bottom":"top",v="center"):(x="middle",l>0&&l<PI?v=s>0?"right":"left":v=s>0?"left":"right"),{rotation:l,textAlign:v,textVerticalAlign:x}},r.makeAxisEventDataBase=function(t){var o={componentType:t.mainType,componentIndex:t.componentIndex};return o[t.mainType+"Index"]=t.componentIndex,o},r.isLabelSilent=function(t){var o=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||o&&o.show)},r}(),builders={axisLine:function(r,t,o,s){var l=t.get(["axisLine","show"]);if(l==="auto"&&r.handleAutoShown&&(l=r.handleAutoShown("axisLine")),!!l){var v=t.axis.getExtent(),x=s.transform,A=[v[0],0],w=[v[1],0],E=A[0]>w[0];x&&(applyTransform$1(A,A,x),applyTransform$1(w,w,x));var C=extend({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),R=new Line$1({shape:{x1:A[0],y1:A[1],x2:w[0],y2:w[1]},style:C,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(R.shape,R.style.lineWidth),R.anid="line",o.add(R);var $=t.get(["axisLine","symbol"]);if($!=null){var V=t.get(["axisLine","symbolSize"]);isString($)&&($=[$,$]),(isString(V)||isNumber(V))&&(V=[V,V]);var z=normalizeSymbolOffset(t.get(["axisLine","symbolOffset"])||0,V),F=V[0],B=V[1];each$c([{rotate:r.rotation+Math.PI/2,offset:z[0],r:0},{rotate:r.rotation-Math.PI/2,offset:z[1],r:Math.sqrt((A[0]-w[0])*(A[0]-w[0])+(A[1]-w[1])*(A[1]-w[1]))}],function(W,Y){if($[Y]!=="none"&&$[Y]!=null){var Z=createSymbol($[Y],-F/2,-B/2,F,B,C.stroke,!0),X=W.r+W.offset,ae=E?w:A;Z.attr({rotation:W.rotate,x:ae[0]+X*Math.cos(r.rotation),y:ae[1]-X*Math.sin(r.rotation),silent:!0,z2:11}),o.add(Z)}})}}},axisTickLabel:function(r,t,o,s){var l=buildAxisMajorTicks(o,s,t,r),v=buildAxisLabel(o,s,t,r);if(fixMinMaxLabelShow(t,v,l),buildAxisMinorTicks(o,s,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var x=prepareLayoutList(map$2(v,function(A){return{label:A,priority:A.z2,defaultAttr:{ignore:A.ignore}}}));hideOverlap(x)}},axisName:function(r,t,o,s){var l=retrieve(r.axisName,t.get("name"));if(l){var v=t.get("nameLocation"),x=r.nameDirection,A=t.getModel("nameTextStyle"),w=t.get("nameGap")||0,E=t.axis.getExtent(),C=E[0]>E[1]?-1:1,R=[v==="start"?E[0]-C*w:v==="end"?E[1]+C*w:(E[0]+E[1])/2,isNameLocationCenter(v)?r.labelOffset+x*w:0],$,V=t.get("nameRotate");V!=null&&(V=V*PI/180);var z;isNameLocationCenter(v)?$=AxisBuilder.innerTextLayout(r.rotation,V??r.rotation,x):($=endTextLayout(r.rotation,v,V||0,E),z=r.axisNameAvailableWidth,z!=null&&(z=Math.abs(z/Math.sin($.rotation)),!isFinite(z)&&(z=null)));var F=A.getFont(),B=t.get("nameTruncate",!0)||{},W=B.ellipsis,Y=retrieve(r.nameTruncateMaxWidth,B.maxWidth,z),Z=new ZRText$1({x:R[0],y:R[1],rotation:$.rotation,silent:AxisBuilder.isLabelSilent(t),style:createTextStyle$1(A,{text:l,font:F,overflow:"truncate",width:Y,ellipsis:W,fill:A.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:A.get("align")||$.textAlign,verticalAlign:A.get("verticalAlign")||$.textVerticalAlign}),z2:1});if(setTooltipConfig({el:Z,componentModel:t,itemName:l}),Z.__fullText=l,Z.anid="name",t.get("triggerEvent")){var X=AxisBuilder.makeAxisEventDataBase(t);X.targetType="axisName",X.name=l,getECData(Z).eventData=X}s.add(Z),Z.updateTransform(),o.add(Z),Z.decomposeTransform()}}};function endTextLayout(r,t,o,s){var l=remRadian(o-r),v,x,A=s[0]>s[1],w=t==="start"&&!A||t!=="start"&&A;return isRadianAroundZero(l-PI/2)?(x=w?"bottom":"top",v="center"):isRadianAroundZero(l-PI*1.5)?(x=w?"top":"bottom",v="center"):(x="middle",l<PI*1.5&&l>PI/2?v=w?"left":"right":v=w?"right":"left"),{rotation:l,textAlign:v,textVerticalAlign:x}}function fixMinMaxLabelShow(r,t,o){if(!shouldShowAllLabels(r.axis)){var s=r.get(["axisLabel","showMinLabel"]),l=r.get(["axisLabel","showMaxLabel"]);t=t||[],o=o||[];var v=t[0],x=t[1],A=t[t.length-1],w=t[t.length-2],E=o[0],C=o[1],R=o[o.length-1],$=o[o.length-2];s===!1?(ignoreEl(v),ignoreEl(E)):isTwoLabelOverlapped(v,x)&&(s?(ignoreEl(x),ignoreEl(C)):(ignoreEl(v),ignoreEl(E))),l===!1?(ignoreEl(A),ignoreEl(R)):isTwoLabelOverlapped(w,A)&&(l?(ignoreEl(w),ignoreEl($)):(ignoreEl(A),ignoreEl(R)))}}function ignoreEl(r){r&&(r.ignore=!0)}function isTwoLabelOverlapped(r,t){var o=r&&r.getBoundingRect().clone(),s=t&&t.getBoundingRect().clone();if(!(!o||!s)){var l=identity([]);return rotate(l,l,-r.rotation),o.applyTransform(mul([],l,r.getLocalTransform())),s.applyTransform(mul([],l,t.getLocalTransform())),o.intersect(s)}}function isNameLocationCenter(r){return r==="middle"||r==="center"}function createTicks(r,t,o,s,l){for(var v=[],x=[],A=[],w=0;w<r.length;w++){var E=r[w].coord;x[0]=E,x[1]=0,A[0]=E,A[1]=o,t&&(applyTransform$1(x,x,t),applyTransform$1(A,A,t));var C=new Line$1({shape:{x1:x[0],y1:x[1],x2:A[0],y2:A[1]},style:s,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(C.shape,C.style.lineWidth),C.anid=l+"_"+r[w].tickValue,v.push(C)}return v}function buildAxisMajorTicks(r,t,o,s){var l=o.axis,v=o.getModel("axisTick"),x=v.get("show");if(x==="auto"&&s.handleAutoShown&&(x=s.handleAutoShown("axisTick")),!(!x||l.scale.isBlank())){for(var A=v.getModel("lineStyle"),w=s.tickDirection*v.get("length"),E=l.getTicksCoords(),C=createTicks(E,t.transform,w,defaults(A.getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])}),"ticks"),R=0;R<C.length;R++)r.add(C[R]);return C}}function buildAxisMinorTicks(r,t,o,s){var l=o.axis,v=o.getModel("minorTick");if(!(!v.get("show")||l.scale.isBlank())){var x=l.getMinorTicksCoords();if(x.length)for(var A=v.getModel("lineStyle"),w=s*v.get("length"),E=defaults(A.getLineStyle(),defaults(o.getModel("axisTick").getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])})),C=0;C<x.length;C++)for(var R=createTicks(x[C],t.transform,w,E,"minorticks_"+C),$=0;$<R.length;$++)r.add(R[$])}}function buildAxisLabel(r,t,o,s){var l=o.axis,v=retrieve(s.axisLabelShow,o.get(["axisLabel","show"]));if(!(!v||l.scale.isBlank())){var x=o.getModel("axisLabel"),A=x.get("margin"),w=l.getViewLabels(),E=(retrieve(s.labelRotate,x.get("rotate"))||0)*PI/180,C=AxisBuilder.innerTextLayout(s.rotation,E,s.labelDirection),R=o.getCategories&&o.getCategories(!0),$=[],V=AxisBuilder.isLabelSilent(o),z=o.get("triggerEvent");return each$c(w,function(F,B){var W=l.scale.type==="ordinal"?l.scale.getRawOrdinalNumber(F.tickValue):F.tickValue,Y=F.formattedLabel,Z=F.rawLabel,X=x;if(R&&R[W]){var ae=R[W];isObject$3(ae)&&ae.textStyle&&(X=new Model$1(ae.textStyle,x,o.ecModel))}var ie=X.getTextColor()||o.get(["axisLine","lineStyle","color"]),oe=l.dataToCoord(W),le=new ZRText$1({x:oe,y:s.labelOffset+s.labelDirection*A,rotation:C.rotation,silent:V,z2:10+(F.level||0),style:createTextStyle$1(X,{text:Y,align:X.getShallow("align",!0)||C.textAlign,verticalAlign:X.getShallow("verticalAlign",!0)||X.getShallow("baseline",!0)||C.textVerticalAlign,fill:isFunction(ie)?ie(l.type==="category"?Z:l.type==="value"?W+"":W,B):ie})});if(le.anid="label_"+W,z){var ve=AxisBuilder.makeAxisEventDataBase(o);ve.targetType="axisLabel",ve.value=Z,ve.tickIndex=B,l.type==="category"&&(ve.dataIndex=W),getECData(le).eventData=ve}t.add(le),le.updateTransform(),$.push(le),r.add(le),le.decomposeTransform()}),$}}const AxisBuilder$1=AxisBuilder;function collect(r,t){var o={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(o,r,t),o.seriesInvolved&&collectSeriesInfo(o,r),o}function collectAxesInfo(r,t,o){var s=t.getComponent("tooltip"),l=t.getComponent("axisPointer"),v=l.get("link",!0)||[],x=[];each$c(o.getCoordinateSystems(),function(A){if(!A.axisPointerEnabled)return;var w=makeKey(A.model),E=r.coordSysAxesInfo[w]={};r.coordSysMap[w]=A;var C=A.model,R=C.getModel("tooltip",s);if(each$c(A.getAxes(),curry$1(F,!1,null)),A.getTooltipAxes&&s&&R.get("show")){var $=R.get("trigger")==="axis",V=R.get(["axisPointer","type"])==="cross",z=A.getTooltipAxes(R.get(["axisPointer","axis"]));($||V)&&each$c(z.baseAxes,curry$1(F,V?"cross":!0,$)),V&&each$c(z.otherAxes,curry$1(F,"cross",!1))}function F(B,W,Y){var Z=Y.model.getModel("axisPointer",l),X=Z.get("show");if(!(!X||X==="auto"&&!B&&!isHandleTrigger(Z))){W==null&&(W=Z.get("triggerTooltip")),Z=B?makeAxisPointerModel(Y,R,l,t,B,W):Z;var ae=Z.get("snap"),ie=makeKey(Y.model),oe=W||ae||Y.type==="category",le=r.axesInfo[ie]={key:ie,axis:Y,coordSys:A,axisPointerModel:Z,triggerTooltip:W,involveSeries:oe,snap:ae,useHandle:isHandleTrigger(Z),seriesModels:[],linkGroup:null};E[ie]=le,r.seriesInvolved=r.seriesInvolved||oe;var ve=getLinkGroupIndex(v,Y);if(ve!=null){var xe=x[ve]||(x[ve]={axesInfo:{}});xe.axesInfo[ie]=le,xe.mapper=v[ve].mapper,le.linkGroup=xe}}}})}function makeAxisPointerModel(r,t,o,s,l,v){var x=t.getModel("axisPointer"),A=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],w={};each$c(A,function($){w[$]=clone$3(x.get($))}),w.snap=r.type!=="category"&&!!v,x.get("type")==="cross"&&(w.type="line");var E=w.label||(w.label={});if(E.show==null&&(E.show=!1),l==="cross"){var C=x.get(["label","show"]);if(E.show=C??!0,!v){var R=w.lineStyle=x.get("crossStyle");R&&defaults(E,R.textStyle)}}return r.model.getModel("axisPointer",new Model$1(w,o,s))}function collectSeriesInfo(r,t){t.eachSeries(function(o){var s=o.coordinateSystem,l=o.get(["tooltip","trigger"],!0),v=o.get(["tooltip","show"],!0);!s||l==="none"||l===!1||l==="item"||v===!1||o.get(["axisPointer","show"],!0)===!1||each$c(r.coordSysAxesInfo[makeKey(s.model)],function(x){var A=x.axis;s.getAxis(A.dim)===A&&(x.seriesModels.push(o),x.seriesDataCount==null&&(x.seriesDataCount=0),x.seriesDataCount+=o.getData().count())})})}function getLinkGroupIndex(r,t){for(var o=t.model,s=t.dim,l=0;l<r.length;l++){var v=r[l]||{};if(checkPropInLink(v[s+"AxisId"],o.id)||checkPropInLink(v[s+"AxisIndex"],o.componentIndex)||checkPropInLink(v[s+"AxisName"],o.name))return l}}function checkPropInLink(r,t){return r==="all"||isArray$1(r)&&indexOf(r,t)>=0||r===t}function fixValue(r){var t=getAxisInfo(r);if(t){var o=t.axisPointerModel,s=t.axis.scale,l=o.option,v=o.get("status"),x=o.get("value");x!=null&&(x=s.parse(x));var A=isHandleTrigger(o);v==null&&(l.status=A?"show":"hide");var w=s.getExtent().slice();w[0]>w[1]&&w.reverse(),(x==null||x>w[1])&&(x=w[1]),x<w[0]&&(x=w[0]),l.value=x,A&&(l.status=t.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[makeKey(r)]}function getAxisPointerModel(r){var t=getAxisInfo(r);return t&&t.axisPointerModel}function isHandleTrigger(r){return!!r.get(["handle","show"])}function makeKey(r){return r.type+"||"+r.id}var axisPointerClazz={},AxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l,v){this.axisPointerClass&&fixValue(o),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(o,l,!0)},t.prototype.updateAxisPointer=function(o,s,l,v){this._doUpdateAxisPointerClass(o,l,!1)},t.prototype.remove=function(o,s){var l=this._axisPointer;l&&l.remove(s)},t.prototype.dispose=function(o,s){this._disposeAxisPointer(s),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(o,s,l){var v=t.getAxisPointerClass(this.axisPointerClass);if(v){var x=getAxisPointerModel(o);x?(this._axisPointer||(this._axisPointer=new v)).render(o,x,s,l):this._disposeAxisPointer(s)}},t.prototype._disposeAxisPointer=function(o){this._axisPointer&&this._axisPointer.dispose(o),this._axisPointer=null},t.registerAxisPointerClass=function(o,s){axisPointerClazz[o]=s},t.getAxisPointerClass=function(o){return o&&axisPointerClazz[o]},t.type="axis",t}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea(r,t,o,s){var l=o.axis;if(!l.scale.isBlank()){var v=o.getModel("splitArea"),x=v.getModel("areaStyle"),A=x.get("color"),w=s.coordinateSystem.getRect(),E=l.getTicksCoords({tickModel:v,clamp:!0});if(E.length){var C=A.length,R=inner$6(r).splitAreaColors,$=createHashMap(),V=0;if(R)for(var z=0;z<E.length;z++){var F=R.get(E[z].tickValue);if(F!=null){V=(F+(C-1)*z)%C;break}}var B=l.toGlobalCoord(E[0].coord),W=x.getAreaStyle();A=isArray$1(A)?A:[A];for(var z=1;z<E.length;z++){var Y=l.toGlobalCoord(E[z].coord),Z=void 0,X=void 0,ae=void 0,ie=void 0;l.isHorizontal()?(Z=B,X=w.y,ae=Y-Z,ie=w.height,B=Z+ae):(Z=w.x,X=B,ae=w.width,ie=Y-X,B=X+ie);var oe=E[z-1].tickValue;oe!=null&&$.set(oe,V),t.add(new Rect$2({anid:oe!=null?"area_"+oe:null,shape:{x:Z,y:X,width:ae,height:ie},style:defaults({fill:A[V]},W),autoBatch:!0,silent:!0})),V=(V+1)%C}inner$6(r).splitAreaColors=$}}}function rectCoordAxisHandleRemove(r){inner$6(r).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.axisPointerClass="CartesianAxisPointer",o}return t.prototype.render=function(o,s,l,v){this.group.removeAll();var x=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!o.get("show")){var A=o.getCoordSysModel(),w=layout$1(A,o),E=new AxisBuilder$1(o,extend({handleAutoShown:function(R){for(var $=A.coordinateSystem.getCartesians(),V=0;V<$.length;V++)if(isIntervalOrLogScale($[V].getOtherAxis(o.axis).scale))return!0;return!1}},w));each$c(axisBuilderAttrs,E.add,E),this._axisGroup.add(E.getGroup()),each$c(selfBuilderAttrs,function(R){o.get([R,"show"])&&axisElementBuilders[R](this,this._axisGroup,o,A)},this);var C=v&&v.type==="changeAxisOrder"&&v.isInitSort;C||groupTransition(x,this._axisGroup,o),r.prototype.render.call(this,o,s,l,v)}},t.prototype.remove=function(){rectCoordAxisHandleRemove(this)},t.type="cartesianAxis",t}(AxisView$1),axisElementBuilders={splitLine:function(r,t,o,s){var l=o.axis;if(!l.scale.isBlank()){var v=o.getModel("splitLine"),x=v.getModel("lineStyle"),A=x.get("color");A=isArray$1(A)?A:[A];for(var w=s.coordinateSystem.getRect(),E=l.isHorizontal(),C=0,R=l.getTicksCoords({tickModel:v}),$=[],V=[],z=x.getLineStyle(),F=0;F<R.length;F++){var B=l.toGlobalCoord(R[F].coord);E?($[0]=B,$[1]=w.y,V[0]=B,V[1]=w.y+w.height):($[0]=w.x,$[1]=B,V[0]=w.x+w.width,V[1]=B);var W=C++%A.length,Y=R[F].tickValue,Z=new Line$1({anid:Y!=null?"line_"+R[F].tickValue:null,autoBatch:!0,shape:{x1:$[0],y1:$[1],x2:V[0],y2:V[1]},style:defaults({stroke:A[W]},z),silent:!0});subPixelOptimizeLine(Z.shape,z.lineWidth),t.add(Z)}}},minorSplitLine:function(r,t,o,s){var l=o.axis,v=o.getModel("minorSplitLine"),x=v.getModel("lineStyle"),A=s.coordinateSystem.getRect(),w=l.isHorizontal(),E=l.getMinorTicksCoords();if(E.length)for(var C=[],R=[],$=x.getLineStyle(),V=0;V<E.length;V++)for(var z=0;z<E[V].length;z++){var F=l.toGlobalCoord(E[V][z].coord);w?(C[0]=F,C[1]=A.y,R[0]=F,R[1]=A.y+A.height):(C[0]=A.x,C[1]=F,R[0]=A.x+A.width,R[1]=F);var B=new Line$1({anid:"minor_line_"+E[V][z].tickValue,autoBatch:!0,shape:{x1:C[0],y1:C[1],x2:R[0],y2:R[1]},style:$,silent:!0});subPixelOptimizeLine(B.shape,$.lineWidth),t.add(B)}},splitArea:function(r,t,o,s){rectCoordAxisBuildSplitArea(r,t,o,s)}},CartesianXAxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="xAxis",t}(CartesianAxisView),CartesianYAxisView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=CartesianXAxisView.type,o}return t.type="yAxis",t}(CartesianAxisView),GridView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="grid",o}return t.prototype.render=function(o,s){this.group.removeAll(),o.get("show")&&this.group.add(new Rect$2({shape:o.coordinateSystem.getRect(),style:defaults({fill:o.get("backgroundColor")},o.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ComponentView$1),extraOption={offset:0};function install$g(r){r.registerComponentView(GridView),r.registerComponentModel(GridModel$1),r.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator(r,"x",CartesianAxisModel,extraOption),axisModelCreator(r,"y",CartesianAxisModel,extraOption),r.registerComponentView(CartesianXAxisView),r.registerComponentView(CartesianYAxisView),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var ATTR="\0_ec_interaction_mutex";function take(r,t,o){var s=getStore(r);s[t]=o}function release(r,t,o){var s=getStore(r),l=s[t];l===o&&(s[t]=null)}function isTaken(r,t){return!!getStore(r)[t]}function getStore(r){return r[ATTR]||(r[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;s._zr=o;var l=bind$1(s._mousedownHandler,s),v=bind$1(s._mousemoveHandler,s),x=bind$1(s._mouseupHandler,s),A=bind$1(s._mousewheelHandler,s),w=bind$1(s._pinchHandler,s);return s.enable=function(E,C){this.disable(),this._opt=defaults(clone$3(C)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),E==null&&(E=!0),(E===!0||E==="move"||E==="pan")&&(o.on("mousedown",l),o.on("mousemove",v),o.on("mouseup",x)),(E===!0||E==="scale"||E==="zoom")&&(o.on("mousewheel",A),o.on("pinch",w))},s.disable=function(){o.off("mousedown",l),o.off("mousemove",v),o.off("mouseup",x),o.off("mousewheel",A),o.off("pinch",w)},s}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(o){this.pointerChecker=o},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(o){if(!isMiddleOrRightButtonOnMouseUpDown(o)){for(var s=o.target;s;){if(s.draggable)return;s=s.__hostTarget||s.parent}var l=o.offsetX,v=o.offsetY;this.pointerChecker&&this.pointerChecker(o,l,v)&&(this._x=l,this._y=v,this._dragging=!0)}},t.prototype._mousemoveHandler=function(o){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",o,this._opt)||o.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var s=o.offsetX,l=o.offsetY,v=this._x,x=this._y,A=s-v,w=l-x;this._x=s,this._y=l,this._opt.preventDefaultMouseMove&&stop(o.event),trigger$1(this,"pan","moveOnMouseMove",o,{dx:A,dy:w,oldX:v,oldY:x,newX:s,newY:l,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(o){isMiddleOrRightButtonOnMouseUpDown(o)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(o){var s=isAvailableBehavior("zoomOnMouseWheel",o,this._opt),l=isAvailableBehavior("moveOnMouseWheel",o,this._opt),v=o.wheelDelta,x=Math.abs(v),A=o.offsetX,w=o.offsetY;if(!(v===0||!s&&!l)){if(s){var E=x>3?1.4:x>1?1.2:1.1,C=v>0?E:1/E;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",o,{scale:C,originX:A,originY:w,isAvailableBehavior:null})}if(l){var R=Math.abs(v),$=(v>0?1:-1)*(R>3?.4:R>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",o,{scrollDelta:$,originX:A,originY:w,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(o){if(!isTaken(this._zr,"globalPan")){var s=o.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,o,{scale:s,originX:o.pinchX,originY:o.pinchY,isAvailableBehavior:null})}},t}(Eventful$1);function checkPointerAndTrigger(r,t,o,s,l){r.pointerChecker&&r.pointerChecker(s,l.originX,l.originY)&&(stop(s.event),trigger$1(r,t,o,s,l))}function trigger$1(r,t,o,s,l){l.isAvailableBehavior=bind$1(isAvailableBehavior,null,o,s),r.trigger(t,l)}function isAvailableBehavior(r,t,o){var s=o[r];return!r||s&&(!isString(s)||t.event[s+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement(r,t,o){var s=t.getComponentByElement(r.topTarget),l=s&&s.coordinateSystem;return s&&s!==o&&!IRRELEVANT_EXCLUDES.hasOwnProperty(s.mainType)&&l&&l.model!==o}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function r(t){var o=t.mappingMethod,s=t.type,l=this.option=clone$3(t);this.type=s,this.mappingMethod=o,this._normalizeData=normalizers[o];var v=r.visualHandlers[s];this.applyVisual=v.applyVisual,this.getColorMapper=v.getColorMapper,this._normalizedToVisual=v._normalizedToVisual[o],o==="piecewise"?(normalizeVisualRange(l),preprocessForPiecewise(l)):o==="category"?l.categories?preprocessForSpecifiedCategory(l):normalizeVisualRange(l,!0):(assert(o!=="linear"||l.dataExtent),normalizeVisualRange(l))}return r.prototype.mapValueToVisual=function(t){var o=this._normalizeData(t);return this._normalizedToVisual(o,t)},r.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},r.listVisualTypes=function(){return keys(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,o,s){isObject$3(t)?each$c(t,o,s):o.call(s,t)},r.mapVisual=function(t,o,s){var l,v=isArray$1(t)?[]:isObject$3(t)?{}:(l=!0,null);return r.eachVisual(t,function(x,A){var w=o.call(s,x,A);l?v=w:v[A]=w}),v},r.retrieveVisuals=function(t){var o={},s;return t&&each$9(r.visualHandlers,function(l,v){t.hasOwnProperty(v)&&(o[v]=t[v],s=!0)}),s?o:null},r.prepareVisualTypes=function(t){if(isArray$1(t))t=t.slice();else if(isObject(t)){var o=[];each$9(t,function(s,l){o.push(l)}),t=o}else return[];return t.sort(function(s,l){return l==="color"&&s!=="color"&&s.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,o){return o==="color"?!!(t&&t.indexOf(o)===0):t===o},r.findPieceIndex=function(t,o,s){for(var l,v=1/0,x=0,A=o.length;x<A;x++){var w=o[x].value;if(w!=null){if(w===t||isString(w)&&w===t+"")return x;s&&$(w,x)}}for(var x=0,A=o.length;x<A;x++){var E=o[x],C=E.interval,R=E.close;if(C){if(C[0]===-1/0){if(littleThan(R[1],t,C[1]))return x}else if(C[1]===1/0){if(littleThan(R[0],C[0],t))return x}else if(littleThan(R[0],C[0],t)&&littleThan(R[1],t,C[1]))return x;s&&$(C[0],x),s&&$(C[1],x)}}if(s)return t===1/0?o.length-1:t===-1/0?0:l;function $(V,z){var F=Math.abs(V-t);F<v&&(v=F,l=z)}},r.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var t=this.option;return bind$1(t.mappingMethod==="category"?function(o,s){return!s&&(o=this._normalizeData(o)),doMapCategory.call(this,o)}:function(o,s,l){var v=!!l;return!s&&(o=this._normalizeData(o)),l=fastLerp(o,t.parsedVisual,l),v?l:stringify(l,"rgba")},this)},_normalizedToVisual:{linear:function(t){return stringify(fastLerp(t,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(t,o){var s=getSpecifiedVisual.call(this,o);return s==null&&(s=stringify(fastLerp(t,this.option.parsedVisual),"rgba")),s},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(t,o){return modifyHSL(t,o)}),colorSaturation:makePartialColorVisualHandler(function(t,o){return modifyHSL(t,null,o)}),colorLightness:makePartialColorVisualHandler(function(t,o){return modifyHSL(t,null,null,o)}),colorAlpha:makePartialColorVisualHandler(function(t,o){return modifyAlpha(t,o)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(t,o,s){var l=this.mapValueToVisual(t);s("symbol",l)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(t,o){var s=getSpecifiedVisual.call(this,o);return s==null&&(s=doMapToArray.call(this,t)),s},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},r}();function preprocessForPiecewise(r){var t=r.pieceList;r.hasSpecialVisual=!1,each$c(t,function(o,s){o.originIndex=s,o.visual!=null&&(r.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory(r){var t=r.categories,o=r.categoryMap={},s=r.visual;if(each$9(t,function(x,A){o[x]=A}),!isArray$1(s)){var l=[];isObject$3(s)?each$9(s,function(x,A){var w=o[A];l[w??CATEGORY_DEFAULT_VISUAL_INDEX]=x}):l[CATEGORY_DEFAULT_VISUAL_INDEX]=s,s=setVisualToOption(r,l)}for(var v=t.length-1;v>=0;v--)s[v]==null&&(delete o[t[v]],t.pop())}function normalizeVisualRange(r,t){var o=r.visual,s=[];isObject$3(o)?each$9(o,function(v){s.push(v)}):o!=null&&s.push(o);var l={color:1,symbol:1};!t&&s.length===1&&!l.hasOwnProperty(r.type)&&(s[1]=s[0]),setVisualToOption(r,s)}function makePartialColorVisualHandler(r){return{applyVisual:function(t,o,s){var l=this.mapValueToVisual(t);s("color",r(o("color"),l))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray(r){var t=this.option.visual;return t[Math.round(linearMap$2(r,[0,1],[0,t.length-1],!0))]||{}}function makeApplyVisual(r){return function(t,o,s){s(r,this.mapValueToVisual(t))}}function doMapCategory(r){var t=this.option.visual;return t[this.option.loop&&r!==CATEGORY_DEFAULT_VISUAL_INDEX?r%t.length:r]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual(r){return{linear:function(t){return linearMap$2(t,r,this.option.visual,!0)},category:doMapCategory,piecewise:function(t,o){var s=getSpecifiedVisual.call(this,o);return s==null&&(s=linearMap$2(t,r,this.option.visual,!0)),s},fixed:doMapFixed}}function getSpecifiedVisual(r){var t=this.option,o=t.pieceList;if(t.hasSpecialVisual){var s=VisualMapping.findPieceIndex(r,o),l=o[s];if(l&&l.visual)return l.visual[this.type]}}function setVisualToOption(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=map$2(t,function(o){var s=parse$1(o);return s||[0,0,0,1]})),t}var normalizers={linear:function(r){return linearMap$2(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,o=VisualMapping.findPieceIndex(r,t,!0);if(o!=null)return linearMap$2(o,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan(r,t,o){return r?t<=o:t<o}const VisualMapping$1=VisualMapping;function sliderMove(r,t,o,s,l,v){r=r||0;var x=o[1]-o[0];if(l!=null&&(l=restrict(l,[0,x])),v!=null&&(v=Math.max(v,l??0)),s==="all"){var A=Math.abs(t[1]-t[0]);A=restrict(A,[0,x]),l=v=restrict(A,[l,v]),s=0}t[0]=restrict(t[0],o),t[1]=restrict(t[1],o);var w=getSpanSign(t,s);t[s]+=r;var E=l||0,C=o.slice();w.sign<0?C[0]+=E:C[1]-=E,t[s]=restrict(t[s],C);var R;return R=getSpanSign(t,s),l!=null&&(R.sign!==w.sign||R.span<l)&&(t[1-s]=t[s]+w.sign*l),R=getSpanSign(t,s),v!=null&&R.span>v&&(t[1-s]=t[s]+R.sign*v),t}function getSpanSign(r,t){var o=r[t]-r[1-t];return{span:Math.abs(o),sign:o>0?-1:o<0?1:t?-1:1}}function restrict(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function(r){__extends(t,r);function t(o){var s=r.call(this)||this;return s._track=[],s._covers=[],s._handlers={},s._zr=o,s.group=new Group$3,s._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(l,v){this._handlers[v]=bind$1(l,this)},s),s}return t.prototype.enableBrush=function(o){return this._brushType&&this._doDisableBrush(),o.brushType&&this._doEnableBrush(o),this},t.prototype._doEnableBrush=function(o){var s=this._zr;this._enableGlobalPan||take(s,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(l,v){s.on(v,l)}),this._brushType=o.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),o,!0)},t.prototype._doDisableBrush=function(){var o=this._zr;release(o,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(s,l){o.off(l,s)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(o){if(o&&o.length){var s=this._panels={};each$c(o,function(l){s[l.panelId]=clone$3(l)})}else this._panels=null;return this},t.prototype.mount=function(o){o=o||{},this._enableGlobalPan=o.enableGlobalPan;var s=this.group;return this._zr.add(s),s.attr({x:o.x||0,y:o.y||0,rotation:o.rotation||0,scaleX:o.scaleX||1,scaleY:o.scaleY||1}),this._transform=s.getLocalTransform(),this},t.prototype.updateCovers=function(o){o=map$2(o,function($){return merge(clone$3(DEFAULT_BRUSH_OPT),$,!0)});var s="\0-brush-index-",l=this._covers,v=this._covers=[],x=this,A=this._creatingCover;return new DataDiffer$1(l,o,E,w).add(C).update(C).remove(R).execute(),this;function w($,V){return($.id!=null?$.id:s+V)+"-"+$.brushType}function E($,V){return w($.__brushOption,V)}function C($,V){var z=o[$];if(V!=null&&l[V]===A)v[$]=l[V];else{var F=v[$]=V!=null?(l[V].__brushOption=z,l[V]):endCreating(x,createCover(x,z));updateCoverAfterCreation(x,F)}}function R($){l[$]!==A&&x.group.remove(l[$])}},t.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Eventful$1);function createCover(r,t){var o=coverRenderers[t.brushType].createCover(r,t);return o.__brushOption=t,updateZ(o,t),r.group.add(o),o}function endCreating(r,t){var o=getCoverRenderer(t);return o.endCreating&&(o.endCreating(r,t),updateZ(t,t.__brushOption)),t}function updateCoverShape(r,t){var o=t.__brushOption;getCoverRenderer(t).updateCoverShape(r,t,o.range,o)}function updateZ(r,t){var o=t.z;o==null&&(o=COVER_Z),r.traverse(function(s){s.z=o,s.z2=o})}function updateCoverAfterCreation(r,t){getCoverRenderer(t).updateCommon(r,t),updateCoverShape(r,t)}function getCoverRenderer(r){return coverRenderers[r.__brushOption.brushType]}function getPanelByPoint(r,t,o){var s=r._panels;if(!s)return BRUSH_PANEL_GLOBAL;var l,v=r._transform;return each$c(s,function(x){x.isTargetByCursor(t,o,v)&&(l=x)}),l}function getPanelByCover(r,t){var o=r._panels;if(!o)return BRUSH_PANEL_GLOBAL;var s=t.__brushOption.panelId;return s!=null?o[s]:BRUSH_PANEL_GLOBAL}function clearCovers(r){var t=r._covers,o=t.length;return each$c(t,function(s){r.group.remove(s)},r),t.length=0,!!o}function trigger(r,t){var o=map$2(r._covers,function(s){var l=s.__brushOption,v=clone$3(l.range);return{brushType:l.brushType,panelId:l.panelId,range:v}});r.trigger("brush",{areas:o,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function shouldShowCover(r){var t=r._track;if(!t.length)return!1;var o=t[t.length-1],s=t[0],l=o[0]-s[0],v=o[1]-s[1],x=mathPow(l*l+v*v,.5);return x>UNSELECT_THRESHOLD}function getTrackEnds(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function createBaseRectCover(r,t,o,s){var l=new Group$3;return l.add(new Rect$2({name:"main",style:makeStyle(o),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,r,t,l,["n","s","w","e"]),ondragend:curry$1(trigger,t,{isEnd:!0})})),each$c(s,function(v){l.add(new Rect$2({name:v.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,r,t,l,v),ondragend:curry$1(trigger,t,{isEnd:!0})}))}),l}function updateBaseRect(r,t,o,s){var l=s.brushStyle.lineWidth||0,v=mathMax$1(l,MIN_RESIZE_LINE_WIDTH),x=o[0][0],A=o[1][0],w=x-l/2,E=A-l/2,C=o[0][1],R=o[1][1],$=C-v+l/2,V=R-v+l/2,z=C-x,F=R-A,B=z+l,W=F+l;updateRectShape(r,t,"main",x,A,z,F),s.transformable&&(updateRectShape(r,t,"w",w,E,v,W),updateRectShape(r,t,"e",$,E,v,W),updateRectShape(r,t,"n",w,E,B,v),updateRectShape(r,t,"s",w,V,B,v),updateRectShape(r,t,"nw",w,E,v,v),updateRectShape(r,t,"ne",$,E,v,v),updateRectShape(r,t,"sw",w,V,v,v),updateRectShape(r,t,"se",$,V,v,v))}function updateCommon(r,t){var o=t.__brushOption,s=o.transformable,l=t.childAt(0);l.useStyle(makeStyle(o)),l.attr({silent:!s,cursor:s?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(v){var x=t.childOfName(v.join("")),A=v.length===1?getGlobalDirection1(r,v[0]):getGlobalDirection2(r,v);x&&x.attr({silent:!s,invisible:!s,cursor:s?CURSOR_MAP[A]+"-resize":null})})}function updateRectShape(r,t,o,s,l,v,x){var A=t.childOfName(o);A&&A.setShape(pointsToRect(clipByPanel(r,t,[[s,l],[s+v,l+x]])))}function makeStyle(r){return defaults({strokeNoScale:!0},r.brushStyle)}function formatRectRange(r,t,o,s){var l=[mathMin$1(r,o),mathMin$1(t,s)],v=[mathMax$1(r,o),mathMax$1(t,s)];return[[l[0],v[0]],[l[1],v[1]]]}function getTransform(r){return getTransform$1(r.group)}function getGlobalDirection1(r,t){var o={w:"left",e:"right",n:"top",s:"bottom"},s={left:"w",right:"e",top:"n",bottom:"s"},l=transformDirection(o[t],getTransform(r));return s[l]}function getGlobalDirection2(r,t){var o=[getGlobalDirection1(r,t[0]),getGlobalDirection1(r,t[1])];return(o[0]==="e"||o[0]==="w")&&o.reverse(),o.join("")}function driftRect(r,t,o,s,l,v){var x=o.__brushOption,A=r.toRectRange(x.range),w=toLocalDelta(t,l,v);each$c(s,function(E){var C=DIRECTION_MAP[E];A[C[0]][C[1]]+=w[C[0]]}),x.range=r.fromRectRange(formatRectRange(A[0][0],A[1][0],A[0][1],A[1][1])),updateCoverAfterCreation(t,o),trigger(t,{isEnd:!1})}function driftPolygon(r,t,o,s){var l=t.__brushOption.range,v=toLocalDelta(r,o,s);each$c(l,function(x){x[0]+=v[0],x[1]+=v[1]}),updateCoverAfterCreation(r,t),trigger(r,{isEnd:!1})}function toLocalDelta(r,t,o){var s=r.group,l=s.transformCoordToLocal(t,o),v=s.transformCoordToLocal(0,0);return[l[0]-v[0],l[1]-v[1]]}function clipByPanel(r,t,o){var s=getPanelByCover(r,t);return s&&s!==BRUSH_PANEL_GLOBAL?s.clipPath(o,r._transform):clone$3(o)}function pointsToRect(r){var t=mathMin$1(r[0][0],r[1][0]),o=mathMin$1(r[0][1],r[1][1]),s=mathMax$1(r[0][0],r[1][0]),l=mathMax$1(r[0][1],r[1][1]);return{x:t,y:o,width:s-t,height:l-o}}function resetCursor(r,t,o){if(!(!r._brushType||isOutsideZrArea(r,t.offsetX,t.offsetY))){var s=r._zr,l=r._covers,v=getPanelByPoint(r,t,o);if(!r._dragging)for(var x=0;x<l.length;x++){var A=l[x].__brushOption;if(v&&(v===BRUSH_PANEL_GLOBAL||A.panelId===v.panelId)&&coverRenderers[A.brushType].contain(l[x],o[0],o[1]))return}v&&s.setCursorStyle("crosshair")}}function preventDefault(r){var t=r.event;t.preventDefault&&t.preventDefault()}function mainShapeContain(r,t,o){return r.childOfName("main").contain(t,o)}function updateCoverByMouse(r,t,o,s){var l=r._creatingCover,v=r._creatingPanel,x=r._brushOption,A;if(r._track.push(o.slice()),shouldShowCover(r)||l){if(v&&!l){x.brushMode==="single"&&clearCovers(r);var w=clone$3(x);w.brushType=determineBrushType(w.brushType,v),w.panelId=v===BRUSH_PANEL_GLOBAL?null:v.panelId,l=r._creatingCover=createCover(r,w),r._covers.push(l)}if(l){var E=coverRenderers[determineBrushType(r._brushType,v)],C=l.__brushOption;C.range=E.getCreatingRange(clipByPanel(r,l,r._track)),s&&(endCreating(r,l),E.updateCommon(r,l)),updateCoverShape(r,l),A={isEnd:s}}}else s&&x.brushMode==="single"&&x.removeOnClick&&getPanelByPoint(r,t,o)&&clearCovers(r)&&(A={isEnd:s,removeOnClick:!0});return A}function determineBrushType(r,t){return r==="auto"?t.defaultBrushType:r}var pointerHandlers={mousedown:function(r){if(this._dragging)handleDragEnd(this,r);else if(!r.target||!r.target.draggable){preventDefault(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var o=this._creatingPanel=getPanelByPoint(this,r,t);o&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,o=r.offsetY,s=this.group.transformCoordToLocal(t,o);if(resetCursor(this,r,s),this._dragging){preventDefault(r);var l=updateCoverByMouse(this,r,s,!1);l&&trigger(this,l)}},mouseup:function(r){handleDragEnd(this,r)}};function handleDragEnd(r,t){if(r._dragging){preventDefault(t);var o=t.offsetX,s=t.offsetY,l=r.group.transformCoordToLocal(o,s),v=updateCoverByMouse(r,t,l,!0);r._dragging=!1,r._track=[],r._creatingCover=null,v&&trigger(r,v)}}function isOutsideZrArea(r,t,o){var s=r._zr;return t<0||t>s.getWidth()||o<0||o>s.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function(r,t){function o(s){return s}return createBaseRectCover({toRectRange:o,fromRectRange:o},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=getTrackEnds(r);return formatRectRange(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,o,s){updateBaseRect(r,t,o,s)},updateCommon,contain:mainShapeContain},polygon:{createCover:function(r,t){var o=new Group$3;return o.add(new Polyline$1({name:"main",style:makeStyle(t),silent:!0})),o},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,r,t),ondragend:curry$1(trigger,r,{isEnd:!0})}))},updateCoverShape:function(r,t,o,s){t.childAt(0).setShape({points:clipByPanel(r,t,o)})},updateCommon,contain:mainShapeContain}};function getLineRenderer(r){return{createCover:function(t,o){return createBaseRectCover({toRectRange:function(s){var l=[s,[0,100]];return r&&l.reverse(),l},fromRectRange:function(s){return s[r]}},t,o,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var o=getTrackEnds(t),s=mathMin$1(o[0][r],o[1][r]),l=mathMax$1(o[0][r],o[1][r]);return[s,l]},updateCoverShape:function(t,o,s,l){var v,x=getPanelByCover(t,o);if(x!==BRUSH_PANEL_GLOBAL&&x.getLinearBrushOtherExtent)v=x.getLinearBrushOtherExtent(r);else{var A=t._zr;v=[0,[A.getWidth(),A.getHeight()][1-r]]}var w=[s,v];r&&w.reverse(),updateBaseRect(t,o,w,l)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath(r){return r=normalizeRect(r),function(t){return clipPointsByRect(t,r)}}function makeLinearBrushOtherExtent(r,t){return r=normalizeRect(r),function(o){var s=t??o,l=s?r.width:r.height,v=s?r.x:r.y;return[v,v+(l||0)]}}function makeRectIsTargetByCursor(r,t,o){var s=normalizeRect(r);return function(l,v){return s.contain(v[0],v[1])&&!onIrrelevantElement(l,t,o)}}function normalizeRect(r){return BoundingRect$1.create(r)}function isEC4CompatibleStyle(r,t,o,s){return r&&(r.legacy||r.legacy!==!1&&!o&&!s&&t!=="tspan"&&(t==="text"||hasOwn(r,"text")))}function convertFromEC4CompatibleStyle(r,t,o){var s=r,l,v,x;if(t==="text")x=s;else{x={},hasOwn(s,"text")&&(x.text=s.text),hasOwn(s,"rich")&&(x.rich=s.rich),hasOwn(s,"textFill")&&(x.fill=s.textFill),hasOwn(s,"textStroke")&&(x.stroke=s.textStroke),hasOwn(s,"fontFamily")&&(x.fontFamily=s.fontFamily),hasOwn(s,"fontSize")&&(x.fontSize=s.fontSize),hasOwn(s,"fontStyle")&&(x.fontStyle=s.fontStyle),hasOwn(s,"fontWeight")&&(x.fontWeight=s.fontWeight),v={type:"text",style:x,silent:!0},l={};var A=hasOwn(s,"textPosition");o?l.position=A?s.textPosition:"inside":A&&(l.position=s.textPosition),hasOwn(s,"textPosition")&&(l.position=s.textPosition),hasOwn(s,"textOffset")&&(l.offset=s.textOffset),hasOwn(s,"textRotation")&&(l.rotation=s.textRotation),hasOwn(s,"textDistance")&&(l.distance=s.textDistance)}return convertEC4CompatibleRichItem(x,r),each$c(x.rich,function(w){convertEC4CompatibleRichItem(w,w)}),{textConfig:l,textContent:v}}function convertEC4CompatibleRichItem(r,t){t&&(t.font=t.textFont||t.font,hasOwn(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),hasOwn(t,"textAlign")&&(r.align=t.textAlign),hasOwn(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),hasOwn(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),hasOwn(t,"textWidth")&&(r.width=t.textWidth),hasOwn(t,"textHeight")&&(r.height=t.textHeight),hasOwn(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),hasOwn(t,"textPadding")&&(r.padding=t.textPadding),hasOwn(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),hasOwn(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),hasOwn(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),hasOwn(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),hasOwn(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),hasOwn(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),hasOwn(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function(r,t){return r[t]=1,r},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig(r,t,o,s,l){var v=r+"Animation",x=getAnimationConfig(r,s,l)||{},A=transitionInnerStore(t).userDuring;return x.duration>0&&(x.during=A?bind$1(duringCall,{el:t,userDuring:A}):null,x.setToFinal=!0,x.scope=r),extend(x,o[v]),x}function applyUpdateTransition(r,t,o,s){s=s||{};var l=s.dataIndex,v=s.isInit,x=s.clearStyle,A=o.isAnimationEnabled(),w=transitionInnerStore(r),E=t.style;w.userDuring=t.during;var C={},R={};if(prepareTransformAllPropsFinal(r,t,R),prepareShapeOrExtraAllPropsFinal("shape",t,R),prepareShapeOrExtraAllPropsFinal("extra",t,R),!v&&A&&(prepareTransformTransitionFrom(r,t,C),prepareShapeOrExtraTransitionFrom("shape",r,t,C),prepareShapeOrExtraTransitionFrom("extra",r,t,C),prepareStyleTransitionFrom(r,t,E,C)),R.style=E,applyPropsDirectly(r,R,x),applyMiscProps(r,t),A)if(v){var $={};each$c(ELEMENT_ANIMATABLE_PROPS,function(z){var F=z?t[z]:t;F&&F.enterFrom&&(z&&($[z]=$[z]||{}),extend(z?$[z]:$,F.enterFrom))});var V=getElementAnimationConfig("enter",r,t,o,l);V.duration>0&&r.animateFrom($,V)}else applyPropsTransition(r,t,l||0,o,C);updateLeaveTo(r,t),E?r.dirty():r.markRedraw()}function updateLeaveTo(r,t){for(var o=transitionInnerStore(r).leaveToProps,s=0;s<ELEMENT_ANIMATABLE_PROPS.length;s++){var l=ELEMENT_ANIMATABLE_PROPS[s],v=l?t[l]:t;v&&v.leaveTo&&(o||(o=transitionInnerStore(r).leaveToProps={}),l&&(o[l]=o[l]||{}),extend(l?o[l]:o,v.leaveTo))}}function applyLeaveTransition(r,t,o,s){if(r){var l=r.parent,v=transitionInnerStore(r).leaveToProps;if(v){var x=getElementAnimationConfig("update",r,t,o,0);x.done=function(){l.remove(r),s&&s()},r.animateTo(v,x)}else l.remove(r),s&&s()}}function isTransitionAll(r){return r==="all"}function applyPropsDirectly(r,t,o){var s=t.style;if(!r.isGroup&&s){if(o){r.useStyle({});for(var l=r.animators,v=0;v<l.length;v++){var x=l[v];x.targetName==="style"&&x.changeTarget(r.style)}}r.setStyle(s)}t&&(t.style=null,t&&r.attr(t),t.style=s)}function applyPropsTransition(r,t,o,s,l){if(l){var v=getElementAnimationConfig("update",r,t,s,o);v.duration>0&&r.animateFrom(l,v)}}function applyMiscProps(r,t){hasOwn(t,"silent")&&(r.silent=t.silent),hasOwn(t,"ignore")&&(r.ignore=t.ignore),r instanceof Displayable$1&&hasOwn(t,"invisible")&&(r.invisible=t.invisible),r instanceof Path$1&&hasOwn(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function(r,t){return tmpDuringScope.el[r]=t,this},getTransform:function(r){return tmpDuringScope.el[r]},setShape:function(r,t){var o=tmpDuringScope.el,s=o.shape||(o.shape={});return s[r]=t,o.dirtyShape&&o.dirtyShape(),this},getShape:function(r){var t=tmpDuringScope.el.shape;if(t)return t[r]},setStyle:function(r,t){var o=tmpDuringScope.el,s=o.style;return s&&(s[r]=t,o.dirtyStyle&&o.dirtyStyle()),this},getStyle:function(r){var t=tmpDuringScope.el.style;if(t)return t[r]},setExtra:function(r,t){var o=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return o[r]=t,this},getExtra:function(r){var t=tmpDuringScope.el.extra;if(t)return t[r]}};function duringCall(){var r=this,t=r.el;if(t){var o=transitionInnerStore(t).userDuring,s=r.userDuring;if(o!==s){r.el=r.userDuring=null;return}tmpDuringScope.el=t,s(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom(r,t,o,s){var l=o[r];if(l){var v=t[r],x;if(v){var A=o.transition,w=l.transition;if(w)if(!x&&(x=s[r]={}),isTransitionAll(w))extend(x,v);else for(var E=normalizeToArray(w),C=0;C<E.length;C++){var R=E[C],$=v[R];x[R]=$}else if(isTransitionAll(A)||indexOf(A,r)>=0){!x&&(x=s[r]={});for(var V=keys(v),C=0;C<V.length;C++){var R=V[C],$=v[R];isNonStyleTransitionEnabled(l[R],$)&&(x[R]=$)}}}}}function prepareShapeOrExtraAllPropsFinal(r,t,o){var s=t[r];if(s)for(var l=o[r]={},v=keys(s),x=0;x<v.length;x++){var A=v[x];l[A]=cloneValue(s[A])}}function prepareTransformTransitionFrom(r,t,o){for(var s=t.transition,l=isTransitionAll(s)?TRANSFORMABLE_PROPS:normalizeToArray(s||[]),v=0;v<l.length;v++){var x=l[v];if(!(x==="style"||x==="shape"||x==="extra")){var A=r[x];o[x]=A}}}function prepareTransformAllPropsFinal(r,t,o){for(var s=0;s<LEGACY_TRANSFORM_PROPS.length;s++){var l=LEGACY_TRANSFORM_PROPS[s],v=LEGACY_TRANSFORM_PROPS_MAP[l],x=t[l];x&&(o[v[0]]=x[0],o[v[1]]=x[1])}for(var s=0;s<TRANSFORMABLE_PROPS.length;s++){var A=TRANSFORMABLE_PROPS[s];t[A]!=null&&(o[A]=t[A])}}function prepareStyleTransitionFrom(r,t,o,s){if(o){var l=r.style,v;if(l){var x=o.transition,A=t.transition;if(x&&!isTransitionAll(x)){var w=normalizeToArray(x);!v&&(v=s.style={});for(var E=0;E<w.length;E++){var C=w[E],R=l[C];v[C]=R}}else if(r.getAnimationStyleProps&&(isTransitionAll(A)||isTransitionAll(x)||indexOf(A,"style")>=0)){var $=r.getAnimationStyleProps(),V=$?$.style:null;if(V){!v&&(v=s.style={});for(var z=keys(o),E=0;E<z.length;E++){var C=z[E];if(V[C]){var R=l[C];v[C]=R}}}}}}}function isNonStyleTransitionEnabled(r,t){return isArrayLike(r)?r!==t:r!=null&&isFinite(r)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore(r){r.stopAnimation("keyframe"),r.attr(getStateToRestore(r))}function applyKeyframeAnimation(r,t,o){if(!(!o.isAnimationEnabled()||!t)){if(isArray$1(t)){each$c(t,function(A){applyKeyframeAnimation(r,A,o)});return}var s=t.keyframes,l=t.duration;if(o&&l==null){var v=getAnimationConfig("enter",o,0);l=v&&v.duration}if(!(!s||!l)){var x=getStateToRestore(r);each$c(ELEMENT_ANIMATABLE_PROPS,function(A){if(!(A&&!r[A])){var w;s.sort(function(E,C){return E.percent-C.percent}),each$c(s,function(E){var C=r.animators,R=A?E[A]:E;if(R){var $=keys(R);if(A||($=filter($,function(F){return indexOf(KEYFRAME_EXCLUDE_KEYS,F)<0})),!!$.length){w||(w=r.animate(A,t.loop,!0),w.scope="keyframe");for(var V=0;V<C.length;V++)C[V]!==w&&C[V].targetName===w.targetName&&C[V].stopTracks($);A&&(x[A]=x[A]||{});var z=A?x[A]:x;each$c($,function(F){z[F]=((A?r[A]:r)||{})[F]}),w.whenWithKeys(l*E.percent,R,$,E.easing)}}}),w&&w.delay(t.delay||0).duration(l).start(t.easing)}})}}}var inner$5=makeInner(),clone=clone$3,bind=bind$1,BaseAxisPointer=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,o,s,l){var v=o.get("value"),x=o.get("status");if(this._axisModel=t,this._axisPointerModel=o,this._api=s,!(!l&&this._lastValue===v&&this._lastStatus===x)){this._lastValue=v,this._lastStatus=x;var A=this._group,w=this._handle;if(!x||x==="hide"){A&&A.hide(),w&&w.hide();return}A&&A.show(),w&&w.show();var E={};this.makeElOption(E,v,t,o,s);var C=E.graphicKey;C!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=C;var R=this._moveAnimation=this.determineAnimation(t,o);if(!A)A=this._group=new Group$3,this.createPointerEl(A,E,t,o),this.createLabelEl(A,E,t,o),s.getZr().add(A);else{var $=curry$1(updateProps,o,R);this.updatePointerEl(A,E,$),this.updateLabelEl(A,E,$,o)}updateMandatoryProps(A,o,!0),this._renderHandle(v)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,o){var s=o.get("animation"),l=t.axis,v=l.type==="category",x=o.get("snap");if(!x&&!v)return!1;if(s==="auto"||s==null){var A=this.animationThreshold;if(v&&l.getBandWidth()>A)return!0;if(x){var w=getAxisInfo(t).seriesDataCount,E=l.getExtent();return Math.abs(E[0]-E[1])/w>A}return!1}return s===!0},r.prototype.makeElOption=function(t,o,s,l,v){},r.prototype.createPointerEl=function(t,o,s,l){var v=o.pointer;if(v){var x=inner$5(t).pointerEl=new graphic$1[v.type](clone(o.pointer));t.add(x)}},r.prototype.createLabelEl=function(t,o,s,l){if(o.label){var v=inner$5(t).labelEl=new ZRText$1(clone(o.label));t.add(v),updateLabelShowHide(v,l)}},r.prototype.updatePointerEl=function(t,o,s){var l=inner$5(t).pointerEl;l&&o.pointer&&(l.setStyle(o.pointer.style),s(l,{shape:o.pointer.shape}))},r.prototype.updateLabelEl=function(t,o,s,l){var v=inner$5(t).labelEl;v&&(v.setStyle(o.label.style),s(v,{x:o.label.x,y:o.label.y}),updateLabelShowHide(v,l))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var o=this._axisPointerModel,s=this._api.getZr(),l=this._handle,v=o.getModel("handle"),x=o.get("status");if(!v.get("show")||!x||x==="hide"){l&&s.remove(l),this._handle=null;return}var A;this._handle||(A=!0,l=this._handle=createIcon(v.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(E){stop(E.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),s.add(l)),updateMandatoryProps(l,o,!1),l.setStyle(v.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var w=v.get("size");isArray$1(w)||(w=[w,w]),l.scaleX=w[0]/2,l.scaleY=w[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",v.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,A)}},r.prototype._moveHandleToValue=function(t,o){updateProps(this._axisPointerModel,!o&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,o){var s=this._handle;if(s){this._dragging=!0;var l=this.updateHandleTransform(getHandleTransProps(s),[t,o],this._axisModel,this._axisPointerModel);this._payloadInfo=l,s.stopAnimation(),s.attr(getHandleTransProps(l)),inner$5(s).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var o=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:o.cursorPoint[0],y:o.cursorPoint[1],tooltipOption:o.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var o=this._axisPointerModel.get("value");this._moveHandleToValue(o),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var o=t.getZr(),s=this._group,l=this._handle;o&&s&&(this._lastGraphicKey=null,s&&o.remove(s),l&&o.remove(l),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,o,s){return s=s||0,{x:t[s],y:t[1-s],width:o[s],height:o[1-s]}},r}();function updateProps(r,t,o,s){propsEqual(inner$5(o).lastProp,s)||(inner$5(o).lastProp=s,t?updateProps$1(o,s,r):(o.stopAnimation(),o.attr(s)))}function propsEqual(r,t){if(isObject$3(r)&&isObject$3(t)){var o=!0;return each$c(t,function(s,l){o=o&&propsEqual(r[l],s)}),!!o}else return r===t}function updateLabelShowHide(r,t){r[t.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function updateMandatoryProps(r,t,o){var s=t.get("z"),l=t.get("zlevel");r&&r.traverse(function(v){v.type!=="group"&&(s!=null&&(v.z=s),l!=null&&(v.zlevel=l),v.silent=o)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(r){var t=r.get("type"),o=r.getModel(t+"Style"),s;return t==="line"?(s=o.getLineStyle(),s.fill=null):t==="shadow"&&(s=o.getAreaStyle(),s.stroke=null),s}function buildLabelElOption(r,t,o,s,l){var v=o.get("value"),x=getValueLabel(v,t.axis,t.ecModel,o.get("seriesDataIndices"),{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])}),A=o.getModel("label"),w=normalizeCssArray(A.get("padding")||0),E=A.getFont(),C=getBoundingRect(x,E),R=l.position,$=C.width+w[1]+w[3],V=C.height+w[0]+w[2],z=l.align;z==="right"&&(R[0]-=$),z==="center"&&(R[0]-=$/2);var F=l.verticalAlign;F==="bottom"&&(R[1]-=V),F==="middle"&&(R[1]-=V/2),confineInContainer(R,$,V,s);var B=A.get("backgroundColor");(!B||B==="auto")&&(B=t.get(["axisLine","lineStyle","color"])),r.label={x:R[0],y:R[1],style:createTextStyle$1(A,{text:x,font:E,fill:A.getTextColor(),padding:w,backgroundColor:B}),z2:10}}function confineInContainer(r,t,o,s){var l=s.getWidth(),v=s.getHeight();r[0]=Math.min(r[0]+t,l)-t,r[1]=Math.min(r[1]+o,v)-o,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function getValueLabel(r,t,o,s,l){r=t.scale.parse(r);var v=t.scale.getLabel({value:r},{precision:l.precision}),x=l.formatter;if(x){var A={value:getAxisRawValue(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};each$c(s,function(w){var E=o.getSeriesByIndex(w.seriesIndex),C=w.dataIndexInside,R=E&&E.getDataParams(C);R&&A.seriesData.push(R)}),isString(x)?v=x.replace("{value}",v):isFunction(x)&&(v=x(A))}return v}function getTransformedPosition(r,t,o){var s=create();return rotate(s,s,o.rotation),translate(s,s,o.position),applyTransform([r.dataToCoord(t),(o.labelOffset||0)+(o.labelDirection||1)*(o.labelMargin||0)],s)}function buildCartesianSingleLabelElOption(r,t,o,s,l,v){var x=AxisBuilder$1.innerTextLayout(o.rotation,0,o.labelDirection);o.labelMargin=l.get(["label","margin"]),buildLabelElOption(t,s,l,v,{position:getTransformedPosition(s.axis,r,o),align:x.textAlign,verticalAlign:x.textVerticalAlign})}function makeLineShape(r,t,o){return o=o||0,{x1:r[o],y1:r[1-o],x2:t[o],y2:t[1-o]}}function makeRectShape(r,t,o){return o=o||0,{x:r[o],y:r[1-o],width:t[o],height:t[1-o]}}var CartesianAxisPointer=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(o,s,l,v,x){var A=l.axis,w=A.grid,E=v.get("type"),C=getCartesian(w,A).getOtherAxis(A).getGlobalExtent(),R=A.toGlobalCoord(A.dataToCoord(s,!0));if(E&&E!=="none"){var $=buildElStyle(v),V=pointerShapeBuilder[E](A,R,C);V.style=$,o.graphicKey=V.type,o.pointer=V}var z=layout$1(w.model,l);buildCartesianSingleLabelElOption(s,o,z,l,v,x)},t.prototype.getHandleTransform=function(o,s,l){var v=layout$1(s.axis.grid.model,s,{labelInside:!1});v.labelMargin=l.get(["handle","margin"]);var x=getTransformedPosition(s.axis,o,v);return{x:x[0],y:x[1],rotation:v.rotation+(v.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(o,s,l,v){var x=l.axis,A=x.grid,w=x.getGlobalExtent(!0),E=getCartesian(A,x).getOtherAxis(x).getGlobalExtent(),C=x.dim==="x"?0:1,R=[o.x,o.y];R[C]+=s[C],R[C]=Math.min(w[1],R[C]),R[C]=Math.max(w[0],R[C]);var $=(E[1]+E[0])/2,V=[$,$];V[C]=R[C];var z=[{verticalAlign:"middle"},{align:"center"}];return{x:R[0],y:R[1],rotation:o.rotation,cursorPoint:V,tooltipOption:z[C]}},t}(BaseAxisPointer$1);function getCartesian(r,t){var o={};return o[t.dim+"AxisIndex"]=t.index,r.getCartesian(o)}var pointerShapeBuilder={line:function(r,t,o){var s=makeLineShape([t,o[0]],[t,o[1]],getAxisDimIndex(r));return{type:"Line",subPixelOptimize:!0,shape:s}},shadow:function(r,t,o){var s=Math.max(1,r.getBandWidth()),l=o[1]-o[0];return{type:"Rect",shape:makeRectShape([t-s/2,o[0]],[s,l],getAxisDimIndex(r))}}};function getAxisDimIndex(r){return r.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register(r,t,o){if(!env$1.node){var s=t.getZr();inner$4(s).records||(inner$4(s).records={}),initGlobalListeners(s,t);var l=inner$4(s).records[r]||(inner$4(s).records[r]={});l.handler=o}}function initGlobalListeners(r,t){if(inner$4(r).initialized)return;inner$4(r).initialized=!0,o("click",curry$1(doEnter,"click")),o("mousemove",curry$1(doEnter,"mousemove")),o("globalout",onLeave);function o(s,l){r.on(s,function(v){var x=makeDispatchAction$1(t);each$8(inner$4(r).records,function(A){A&&l(A,v,x.dispatchAction)}),dispatchTooltipFinally(x.pendings,t)})}}function dispatchTooltipFinally(r,t){var o=r.showTip.length,s=r.hideTip.length,l;o?l=r.showTip[o-1]:s&&(l=r.hideTip[s-1]),l&&(l.dispatchAction=null,t.dispatchAction(l))}function onLeave(r,t,o){r.handler("leave",null,o)}function doEnter(r,t,o,s){t.handler(r,o,s)}function makeDispatchAction$1(r){var t={showTip:[],hideTip:[]},o=function(s){var l=t[s.type];l?l.push(s):(s.dispatchAction=o,r.dispatchAction(s))};return{dispatchAction:o,pendings:t}}function unregister(r,t){if(!env$1.node){var o=t.getZr(),s=(inner$4(o).records||{})[r];s&&(inner$4(o).records[r]=null)}}var AxisPointerView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l){var v=s.getComponent("tooltip"),x=o.get("triggerOn")||v&&v.get("triggerOn")||"mousemove|click";register("axisPointer",l,function(A,w,E){x!=="none"&&(A==="leave"||x.indexOf(A)>=0)&&E({type:"updateAxisPointer",currTrigger:A,x:w&&w.offsetX,y:w&&w.offsetY})})},t.prototype.remove=function(o,s){unregister("axisPointer",s)},t.prototype.dispose=function(o,s){unregister("axisPointer",s)},t.type="axisPointer",t}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries(r,t){var o=[],s=r.seriesIndex,l;if(s==null||!(l=t.getSeriesByIndex(s)))return{point:[]};var v=l.getData(),x=queryDataIndex(v,r);if(x==null||x<0||isArray$1(x))return{point:[]};var A=v.getItemGraphicEl(x),w=l.coordinateSystem;if(l.getTooltipPosition)o=l.getTooltipPosition(x)||[];else if(w&&w.dataToPoint)if(r.isStacked){var E=w.getBaseAxis(),C=w.getOtherAxis(E),R=C.dim,$=E.dim,V=R==="x"||R==="radius"?1:0,z=v.mapDimension($),F=[];F[V]=v.get(z,x),F[1-V]=v.get(v.getCalculationInfo("stackResultDimension"),x),o=w.dataToPoint(F)||[]}else o=w.dataToPoint(v.getValues(map$2(w.dimensions,function(W){return v.mapDimension(W)}),x))||[];else if(A){var B=A.getBoundingRect().clone();B.applyTransform(A.transform),o=[B.x+B.width/2,B.y+B.height/2]}return{point:o,el:A}}var inner$3=makeInner();function axisTrigger(r,t,o){var s=r.currTrigger,l=[r.x,r.y],v=r,x=r.dispatchAction||bind$1(o.dispatchAction,o),A=t.getComponent("axisPointer").coordSysAxesInfo;if(A){illegalPoint(l)&&(l=findPointFromSeries({seriesIndex:v.seriesIndex,dataIndex:v.dataIndex},t).point);var w=illegalPoint(l),E=v.axesInfo,C=A.axesInfo,R=s==="leave"||illegalPoint(l),$={},V={},z={list:[],map:{}},F={showPointer:curry$1(showPointer,V),showTooltip:curry$1(showTooltip,z)};each$c(A.coordSysMap,function(W,Y){var Z=w||W.containPoint(l);each$c(A.coordSysAxesInfo[Y],function(X,ae){var ie=X.axis,oe=findInputAxisInfo(E,X);if(!R&&Z&&(!E||oe)){var le=oe&&oe.value;le==null&&!w&&(le=ie.pointToData(l)),le!=null&&processOnAxis(X,le,F,!1,$)}})});var B={};return each$c(C,function(W,Y){var Z=W.linkGroup;Z&&!V[Y]&&each$c(Z.axesInfo,function(X,ae){var ie=V[ae];if(X!==W&&ie){var oe=ie.value;Z.mapper&&(oe=W.axis.scale.parse(Z.mapper(oe,makeMapperParam(X),makeMapperParam(W)))),B[W.key]=oe}})}),each$c(B,function(W,Y){processOnAxis(C[Y],W,F,!0,$)}),updateModelActually(V,C,$),dispatchTooltipActually(z,l,r,x),dispatchHighDownActually(C,x,o),$}}function processOnAxis(r,t,o,s,l){var v=r.axis;if(!(v.scale.isBlank()||!v.containData(t))){if(!r.involveSeries){o.showPointer(r,t);return}var x=buildPayloadsBySeries(t,r),A=x.payloadBatch,w=x.snapToValue;A[0]&&l.seriesIndex==null&&extend(l,A[0]),!s&&r.snap&&v.containData(w)&&w!=null&&(t=w),o.showPointer(r,t,A),o.showTooltip(r,x,w)}}function buildPayloadsBySeries(r,t){var o=t.axis,s=o.dim,l=r,v=[],x=Number.MAX_VALUE,A=-1;return each$c(t.seriesModels,function(w,E){var C=w.getData().mapDimensionsAll(s),R,$;if(w.getAxisTooltipData){var V=w.getAxisTooltipData(C,r,o);$=V.dataIndices,R=V.nestestValue}else{if($=w.getData().indicesOfNearest(C[0],r,o.type==="category"?.5:null),!$.length)return;R=w.getData().get(C[0],$[0])}if(!(R==null||!isFinite(R))){var z=r-R,F=Math.abs(z);F<=x&&((F<x||z>=0&&A<0)&&(x=F,A=z,l=R,v.length=0),each$c($,function(B){v.push({seriesIndex:w.seriesIndex,dataIndexInside:B,dataIndex:w.getData().getRawIndex(B)})}))}}),{payloadBatch:v,snapToValue:l}}function showPointer(r,t,o,s){r[t.key]={value:o,payloadBatch:s}}function showTooltip(r,t,o,s){var l=o.payloadBatch,v=t.axis,x=v.model,A=t.axisPointerModel;if(!(!t.triggerTooltip||!l.length)){var w=t.coordSys.model,E=makeKey(w),C=r.map[E];C||(C=r.map[E]={coordSysId:w.id,coordSysIndex:w.componentIndex,coordSysType:w.type,coordSysMainType:w.mainType,dataByAxis:[]},r.list.push(C)),C.dataByAxis.push({axisDim:v.dim,axisIndex:x.componentIndex,axisType:x.type,axisId:x.id,value:s,valueLabelOpt:{precision:A.get(["label","precision"]),formatter:A.get(["label","formatter"])},seriesDataIndices:l.slice()})}}function updateModelActually(r,t,o){var s=o.axesInfo=[];each$c(t,function(l,v){var x=l.axisPointerModel.option,A=r[v];A?(!l.useHandle&&(x.status="show"),x.value=A.value,x.seriesDataIndices=(A.payloadBatch||[]).slice()):!l.useHandle&&(x.status="hide"),x.status==="show"&&s.push({axisDim:l.axis.dim,axisIndex:l.axis.model.componentIndex,value:x.value})})}function dispatchTooltipActually(r,t,o,s){if(illegalPoint(t)||!r.list.length){s({type:"hideTip"});return}var l=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:o.tooltipOption,position:o.position,dataIndexInside:l.dataIndexInside,dataIndex:l.dataIndex,seriesIndex:l.seriesIndex,dataByCoordSys:r.list})}function dispatchHighDownActually(r,t,o){var s=o.getZr(),l="axisPointerLastHighlights",v=inner$3(s)[l]||{},x=inner$3(s)[l]={};each$c(r,function(E,C){var R=E.axisPointerModel.option;R.status==="show"&&each$c(R.seriesDataIndices,function($){var V=$.seriesIndex+" | "+$.dataIndex;x[V]=$})});var A=[],w=[];each$c(v,function(E,C){!x[C]&&w.push(E)}),each$c(x,function(E,C){!v[C]&&A.push(E)}),w.length&&o.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:w}),A.length&&o.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:A})}function findInputAxisInfo(r,t){for(var o=0;o<(r||[]).length;o++){var s=r[o];if(t.axis.dim===s.axisDim&&t.axis.model.componentIndex===s.axisIndex)return s}}function makeMapperParam(r){var t=r.axis.model,o={},s=o.axisDim=r.axis.dim;return o.axisIndex=o[s+"AxisIndex"]=t.componentIndex,o.axisName=o[s+"AxisName"]=t.name,o.axisId=o[s+"AxisId"]=t.id,o}function illegalPoint(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function install$f(r){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),r.registerComponentModel(AxisPointerModel$1),r.registerComponentView(AxisPointerView$1),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var o=t.axisPointer.link;o&&!isArray$1(o)&&(t.axisPointer.link=[o])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,o){t.getComponent("axisPointer").coordSysAxesInfo=collect(t,o)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e(r){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption(r,t){var o=r.existing;if(t.id=r.keyInfo.id,!t.type&&o&&(t.type=o.type),t.parentId==null){var s=t.parentOption;s?t.parentId=s.id:o&&(t.parentId=o.parentId)}t.parentOption=null}function isSetLoc(r,t){var o;return each$c(t,function(s){r[s]!=null&&r[s]!=="auto"&&(o=!0)}),o}function mergeNewElOptionToExist(r,t,o){var s=extend({},o),l=r[t],v=o.$action||"merge";v==="merge"?l?(merge(l,s,!0),mergeLayoutParam(l,s,{ignoreSize:!0}),copyLayoutParams(o,l),copyTransitionInfo(o,l),copyTransitionInfo(o,l,"shape"),copyTransitionInfo(o,l,"style"),copyTransitionInfo(o,l,"extra"),o.clipPath=l.clipPath):r[t]=s:v==="replace"?r[t]=s:v==="remove"&&l&&(r[t]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo(r,t,o){if(o&&(!r[o]&&t[o]&&(r[o]={}),r=r[o],t=t[o]),!(!r||!t))for(var s=o?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,l=0;l<s.length;l++){var v=s[l];r[v]==null&&t[v]!=null&&(r[v]=t[v])}}function setLayoutInfoToExist(r,t){if(r&&(r.hv=t.hv=[isSetLoc(t,["left","right"]),isSetLoc(t,["top","bottom"])],r.type==="group")){var o=r,s=t;o.width==null&&(o.width=s.width=0),o.height==null&&(o.height=s.height=0)}}var GraphicComponentModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.preventAutoZ=!0,o}return t.prototype.mergeOption=function(o,s){var l=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,o,s),this.option.elements=l},t.prototype.optionUpdated=function(o,s){var l=this.option,v=(s?l:o).elements,x=l.elements=s?[]:l.elements,A=[];this._flatten(v,A,null);var w=mappingToExists(x,A,"normalMerge"),E=this._elOptionsToUpdate=[];each$c(w,function(C,R){var $=C.newOption;$&&(E.push($),setKeyInfoToNewElOption(C,$),mergeNewElOptionToExist(x,R,$),setLayoutInfoToExist(x[R],$))},this),l.elements=filter(x,function(C){return C&&delete C.$action,C!=null})},t.prototype._flatten=function(o,s,l){each$c(o,function(v){if(v){l&&(v.parentOption=l),s.push(v);var x=v.children;x&&x.length&&this._flatten(x,s,v),delete v.children}},this)},t.prototype.useElOptionsToUpdate=function(){var o=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,o},t.type="graphic",t.defaultOption={elements:[]},t}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$3,image:ZRImage$1,text:ZRText$1},inner$2=makeInner(),GraphicComponentView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.init=function(){this._elMap=createHashMap()},t.prototype.render=function(o,s,l){o!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=o,this._updateElements(o),this._relocate(o,l)},t.prototype._updateElements=function(o){var s=o.useElOptionsToUpdate();if(s){var l=this._elMap,v=this.group,x=o.get("z"),A=o.get("zlevel");each$c(s,function(w){var E=convertOptionIdName(w.id,null),C=E!=null?l.get(E):null,R=convertOptionIdName(w.parentId,null),$=R!=null?l.get(R):v,V=w.type,z=w.style;V==="text"&&z&&w.hv&&w.hv[1]&&(z.textVerticalAlign=z.textBaseline=z.verticalAlign=z.align=null);var F=w.textContent,B=w.textConfig;if(z&&isEC4CompatibleStyle(z,V,!!B,!!F)){var W=convertFromEC4CompatibleStyle(z,V,!0);!B&&W.textConfig&&(B=w.textConfig=W.textConfig),!F&&W.textContent&&(F=W.textContent)}var Y=getCleanedElOption(w),Z=w.$action||"merge",X=Z==="merge",ae=Z==="replace";if(X){var ie=!C,oe=C;ie?oe=createEl(E,$,w.type,l):(oe&&(inner$2(oe).isNew=!1),stopPreviousKeyframeAnimationAndRestore(oe)),oe&&(applyUpdateTransition(oe,Y,o,{isInit:ie}),updateCommonAttrs(oe,w,x,A))}else if(ae){removeEl(C,w,l,o);var le=createEl(E,$,w.type,l);le&&(applyUpdateTransition(le,Y,o,{isInit:!0}),updateCommonAttrs(le,w,x,A))}else Z==="remove"&&(updateLeaveTo(C,w),removeEl(C,w,l,o));var ve=l.get(E);if(ve&&F)if(X){var xe=ve.getTextContent();xe?xe.attr(F):ve.setTextContent(new ZRText$1(F))}else ae&&ve.setTextContent(new ZRText$1(F));if(ve){var _e=w.clipPath;if(_e){var Te=_e.type,Ee=void 0,ie=!1;if(X){var Ce=ve.getClipPath();ie=!Ce||inner$2(Ce).type!==Te,Ee=ie?newEl(Te):Ce}else ae&&(ie=!0,Ee=newEl(Te));ve.setClipPath(Ee),applyUpdateTransition(Ee,_e,o,{isInit:ie}),applyKeyframeAnimation(Ee,_e.keyframeAnimation,o)}var Pe=inner$2(ve);ve.setTextConfig(B),Pe.option=w,setEventData(ve,o,w),setTooltipConfig({el:ve,componentModel:o,itemName:ve.name,itemTooltipOption:w.tooltip}),applyKeyframeAnimation(ve,w.keyframeAnimation,o)}})}},t.prototype._relocate=function(o,s){for(var l=o.option.elements,v=this.group,x=this._elMap,A=s.getWidth(),w=s.getHeight(),E=["x","y"],C=0;C<l.length;C++){var R=l[C],$=convertOptionIdName(R.id,null),V=$!=null?x.get($):null;if(!(!V||!V.isGroup)){var z=V.parent,F=z===v,B=inner$2(V),W=inner$2(z);B.width=parsePercent(B.option.width,F?A:W.width)||0,B.height=parsePercent(B.option.height,F?w:W.height)||0}}for(var C=l.length-1;C>=0;C--){var R=l[C],$=convertOptionIdName(R.id,null),V=$!=null?x.get($):null;if(V){var z=V.parent,W=inner$2(z),Y=z===v?{width:A,height:w}:{width:W.width,height:W.height},Z={},X=positionElement(V,R,Y,null,{hv:R.hv,boundingMode:R.bounding},Z);if(!inner$2(V).isNew&&X){for(var ae=R.transition,ie={},oe=0;oe<E.length;oe++){var le=E[oe],ve=Z[le];ae&&(isTransitionAll(ae)||indexOf(ae,le)>=0)?ie[le]=ve:V[le]=ve}updateProps$1(V,ie,o,0)}else V.attr(Z)}}},t.prototype._clear=function(){var o=this,s=this._elMap;s.each(function(l){removeEl(l,inner$2(l).option,s,o._lastGraphicModel)}),this._elMap=createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ComponentView$1);function newEl(r){var t=hasOwn(nonShapeGraphicElements,r)?nonShapeGraphicElements[r]:getShapeClass(r),o=new t({});return inner$2(o).type=r,o}function createEl(r,t,o,s){var l=newEl(o);return t.add(l),s.set(r,l),inner$2(l).id=r,inner$2(l).isNew=!0,l}function removeEl(r,t,o,s){var l=r&&r.parent;l&&(r.type==="group"&&r.traverse(function(v){removeEl(v,t,o,s)}),applyLeaveTransition(r,t,s),o.removeKey(inner$2(r).id))}function updateCommonAttrs(r,t,o,s){r.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",s||0],["z",o||0],["z2",0]],function(l){var v=l[0];hasOwn(t,v)?r[v]=retrieve2(t[v],l[1]):r[v]==null&&(r[v]=l[1])}),each$c(keys(t),function(l){if(l.indexOf("on")===0){var v=t[l];r[l]=isFunction(v)?v:null}}),hasOwn(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function getCleanedElOption(r){return r=extend({},r),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(t){delete r[t]}),r}function setEventData(r,t,o){var s=getECData(r).eventData;!r.silent&&!r.ignore&&!s&&(s=getECData(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),s&&(s.info=o.info)}function install$d(r){r.registerComponentModel(GraphicComponentModel),r.registerComponentView(GraphicComponentView),r.registerPreprocessor(function(t){var o=t.graphic;isArray$1(o)?!o[0]||!o[0].elements?t.graphic=[{elements:o}]:t.graphic=[t.graphic[0]]:o&&!o.elements&&(t.graphic=[{elements:[o]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported(r){var t=r.get("coordinateSystem");return indexOf(SERIES_COORDS,t)>=0}function getAxisMainType(r){return r+"Axis"}function findEffectedDataZooms(r,t){var o=createHashMap(),s=[],l=createHashMap();r.eachComponent({mainType:"dataZoom",query:t},function(C){l.get(C.uid)||A(C)});var v;do v=!1,r.eachComponent("dataZoom",x);while(v);function x(C){!l.get(C.uid)&&w(C)&&(A(C),v=!0)}function A(C){l.set(C.uid,!0),s.push(C),E(C)}function w(C){var R=!1;return C.eachTargetAxis(function($,V){var z=o.get($);z&&z[V]&&(R=!0)}),R}function E(C){C.eachTargetAxis(function(R,$){(o.get(R)||o.set(R,[]))[$]=!0})}return s}function collectReferCoordSysModelInfo(r){var t=r.ecModel,o={infoList:[],infoMap:createHashMap()};return r.eachTargetAxis(function(s,l){var v=t.getComponent(getAxisMainType(s),l);if(v){var x=v.getCoordSysModel();if(x){var A=x.uid,w=o.infoMap.get(A);w||(w={model:x,axisModels:[]},o.infoList.push(w),o.infoMap.set(A,w)),w.axisModels.push(v)}}}),o}var DataZoomAxisInfo=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),DataZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._autoThrottle=!0,o._noTarget=!0,o._rangePropMode=["percent","percent"],o}return t.prototype.init=function(o,s,l){var v=retrieveRawOption(o);this.settledOption=v,this.mergeDefaultAndTheme(o,l),this._doInit(v)},t.prototype.mergeOption=function(o){var s=retrieveRawOption(o);merge(this.option,o,!0),merge(this.settledOption,s,!0),this._doInit(s)},t.prototype._doInit=function(o){var s=this.option;this._setDefaultThrottle(o),this._updateRangeUse(o);var l=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(v,x){this._rangePropMode[x]==="value"&&(s[v[0]]=l[v[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var o=this.get("orient",!0),s=this._targetAxisInfoMap=createHashMap(),l=this._fillSpecifiedTargetAxis(s);l?this._orient=o||this._makeAutoOrientByTargetAxis():(this._orient=o||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(v){v.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(o){var s=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(l){var v=this.getReferringComponents(getAxisMainType(l),MULTIPLE_REFERRING);if(v.specified){s=!0;var x=new DataZoomAxisInfo;each$c(v.models,function(A){x.add(A.componentIndex)}),o.set(l,x)}},this),s},t.prototype._fillAutoTargetAxisByOrient=function(o,s){var l=this.ecModel,v=!0;if(v){var x=s==="vertical"?"y":"x",A=l.findComponents({mainType:x+"Axis"});w(A,x)}if(v){var A=l.findComponents({mainType:"singleAxis",filter:function(C){return C.get("orient",!0)===s}});w(A,"single")}function w(E,C){var R=E[0];if(R){var $=new DataZoomAxisInfo;if($.add(R.componentIndex),o.set(C,$),v=!1,C==="x"||C==="y"){var V=R.getReferringComponents("grid",SINGLE_REFERRING).models[0];V&&each$c(E,function(z){R.componentIndex!==z.componentIndex&&V===z.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&$.add(z.componentIndex)})}}}v&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(E){if(v){var C=l.findComponents({mainType:getAxisMainType(E),filter:function($){return $.get("type",!0)==="category"}});if(C[0]){var R=new DataZoomAxisInfo;R.add(C[0].componentIndex),o.set(E,R),v=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var o;return this.eachTargetAxis(function(s){!o&&(o=s)},this),o==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(o){if(o.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(o){var s=this._rangePropMode,l=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(v,x){var A=o[v[0]]!=null,w=o[v[1]]!=null;A&&!w?s[x]="percent":!A&&w?s[x]="value":l?s[x]=l[x]:A&&(s[x]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var o;return this.eachTargetAxis(function(s,l){o==null&&(o=this.ecModel.getComponent(getAxisMainType(s),l))},this),o},t.prototype.eachTargetAxis=function(o,s){this._targetAxisInfoMap.each(function(l,v){each$c(l.indexList,function(x){o.call(s,v,x)})})},t.prototype.getAxisProxy=function(o,s){var l=this.getAxisModel(o,s);if(l)return l.__dzAxisProxy},t.prototype.getAxisModel=function(o,s){var l=this._targetAxisInfoMap.get(o);if(l&&l.indexMap[s])return this.ecModel.getComponent(getAxisMainType(o),s)},t.prototype.setRawRange=function(o){var s=this.option,l=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(v){(o[v[0]]!=null||o[v[1]]!=null)&&(s[v[0]]=l[v[0]]=o[v[0]],s[v[1]]=l[v[1]]=o[v[1]])},this),this._updateRangeUse(o)},t.prototype.setCalculatedRange=function(o){var s=this.option;each$c(["start","startValue","end","endValue"],function(l){s[l]=o[l]})},t.prototype.getPercentRange=function(){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataPercentWindow()},t.prototype.getValueRange=function(o,s){if(o==null&&s==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(o,s).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(o){if(o)return o.__dzAxisProxy;for(var s,l=this._targetAxisInfoMap.keys(),v=0;v<l.length;v++)for(var x=l[v],A=this._targetAxisInfoMap.get(x),w=0;w<A.indexList.length;w++){var E=this.getAxisProxy(x,A.indexList[w]);if(E.hostedBy(this))return E;s||(s=E)}return s},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ComponentModel$1);function retrieveRawOption(r){var t={};return each$c(["start","end","startValue","endValue","throttle"],function(o){r.hasOwnProperty(o)&&(t[o]=r[o])}),t}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.select",t}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l,v){this.dataZoomModel=o,this.ecModel=s,this.api=l},t.type="dataZoom",t}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.select",t}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function r(t,o,s,l){this._dimName=t,this._axisIndex=o,this.ecModel=l,this._dataZoomModel=s}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(o){if(isCoordSupported(o)){var s=getAxisMainType(this._dimName),l=o.getReferringComponents(s,SINGLE_REFERRING).models[0];l&&this._axisIndex===l.componentIndex&&t.push(o)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return clone$3(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var o=this._dataExtent,s=this.getAxisModel(),l=s.axis.scale,v=this._dataZoomModel.getRangePropMode(),x=[0,100],A=[],w=[],E;each$7(["start","end"],function($,V){var z=t[$],F=t[$+"Value"];v[V]==="percent"?(z==null&&(z=x[V]),F=l.parse(linearMap$2(z,x,o))):(E=!0,F=F==null?o[V]:l.parse(F),z=linearMap$2(F,o,x)),w[V]=F==null||isNaN(F)?o[V]:F,A[V]=z==null||isNaN(z)?x[V]:z}),asc$1(w),asc$1(A);var C=this._minMaxSpan;E?R(w,A,o,x,!1):R(A,w,x,o,!0);function R($,V,z,F,B){var W=B?"Span":"ValueSpan";sliderMove(0,$,z,"all",C["min"+W],C["max"+W]);for(var Y=0;Y<2;Y++)V[Y]=linearMap$2($[Y],z,F,!0),B&&(V[Y]=l.parse(V[Y]))}return{valueWindow:w,percentWindow:A}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var o=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,o),this._updateMinMaxSpan();var s=this.calculateDataWindow(t.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,o){if(t!==this._dataZoomModel)return;var s=this._dimName,l=this.getTargetSeriesModels(),v=t.get("filterMode"),x=this._valueWindow;if(v==="none")return;each$7(l,function(w){var E=w.getData(),C=E.mapDimensionsAll(s);if(C.length){if(v==="weakFilter"){var R=E.getStore(),$=map$2(C,function(V){return E.getDimensionIndex(V)},E);E.filterSelf(function(V){for(var z,F,B,W=0;W<C.length;W++){var Y=R.get($[W],V),Z=!isNaN(Y),X=Y<x[0],ae=Y>x[1];if(Z&&!X&&!ae)return!0;Z&&(B=!0),X&&(z=!0),ae&&(F=!0)}return B&&z&&F})}else each$7(C,function(V){if(v==="empty")w.setData(E=E.map(V,function(F){return A(F)?F:NaN}));else{var z={};z[V]=x,E.selectRange(z)}});each$7(C,function(V){E.setApproximateExtent(x,V)})}});function A(w){return w>=x[0]&&w<=x[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},o=this._dataZoomModel,s=this._dataExtent;each$7(["min","max"],function(l){var v=o.get(l+"Span"),x=o.get(l+"ValueSpan");x!=null&&(x=this.getAxisModel().axis.scale.parse(x)),x!=null?v=linearMap$2(s[0]+x,s,[0,100],!0):v!=null&&(x=linearMap$2(v,[0,100],s,!0)-s[0]),t[l+"Span"]=v,t[l+"ValueSpan"]=x},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),o=this._percentWindow,s=this._valueWindow;if(o){var l=getPixelPrecision(s,[0,500]);l=Math.min(l,20);var v=t.axis.scale.rawExtentInfo;o[0]!==0&&v.setDeterminedMinMax("min",+s[0].toFixed(l)),o[1]!==100&&v.setDeterminedMinMax("max",+s[1].toFixed(l)),v.freeze()}},r}();function calculateDataExtent(r,t,o){var s=[1/0,-1/0];each$7(o,function(x){unionAxisExtentFromData(s,x.getData(),t)});var l=r.getAxisModel(),v=ensureScaleRawExtentInfo(l.axis.scale,l,s).calculate();return[v.min,v.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function(r){function t(l){r.eachComponent("dataZoom",function(v){v.eachTargetAxis(function(x,A){var w=r.getComponent(getAxisMainType(x),A);l(x,A,w,v)})})}t(function(l,v,x,A){x.__dzAxisProxy=null});var o=[];t(function(l,v,x,A){x.__dzAxisProxy||(x.__dzAxisProxy=new AxisProxy$1(l,v,A,r),o.push(x.__dzAxisProxy))});var s=createHashMap();return each$c(o,function(l){each$c(l.getTargetSeriesModels(),function(v){s.set(v.uid,v)})}),s},overallReset:function(r,t){r.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(s,l){o.getAxisProxy(s,l).reset(o)}),o.eachTargetAxis(function(s,l){o.getAxisProxy(s,l).filterData(o,t)})}),r.eachComponent("dataZoom",function(o){var s=o.findRepresentativeAxisProxy();if(s){var l=s.getDataPercentWindow(),v=s.getDataValueWindow();o.setCalculatedRange({start:l[0],end:l[1],startValue:v[0],endValue:v[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction(r){r.registerAction("dataZoom",function(t,o){var s=findEffectedDataZooms(o,t);each$c(s,function(l){l.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var installed$1=!1;function installCommon$1(r){installed$1||(installed$1=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c(r){r.registerComponentModel(SelectZoomModel),r.registerComponentView(SelectZoomView),installCommon$1(r)}var ToolboxFeature=function(){function r(){}return r}(),features={};function registerFeature(r,t){features[r]=t}function getFeature(r){return features[r]}var ToolboxModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var o=this.ecModel;each$c(this.option.feature,function(s,l){var v=getFeature(l);v&&(v.getDefaultOption&&(v.defaultOption=v.getDefaultOption(o)),merge(s,v.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout(r,t,o){var s=t.getBoxLayoutParams(),l=t.get("padding"),v={width:o.getWidth(),height:o.getHeight()},x=getLayoutRect(s,v,l);box(t.get("orient"),r,t.get("itemGap"),x.width,x.height),positionElement(r,s,v,l)}function makeBackground(r,t){var o=normalizeCssArray(t.get("padding")),s=t.getItemStyle(["color","opacity"]);return s.fill=t.get("backgroundColor"),r=new Rect$2({shape:{x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],r:t.get("borderRadius")},style:s,silent:!0,z2:-1}),r}var ToolboxView=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(o,s,l,v){var x=this.group;if(x.removeAll(),!o.get("show"))return;var A=+o.get("itemSize"),w=o.get("orient")==="vertical",E=o.get("feature")||{},C=this._features||(this._features={}),R=[];each$c(E,function(z,F){R.push(F)}),new DataDiffer$1(this._featureNames||[],R).add($).update($).remove(curry$1($,null)).execute(),this._featureNames=R;function $(z,F){var B=R[z],W=R[F],Y=E[B],Z=new Model$1(Y,o,o.ecModel),X;if(v&&v.newTitle!=null&&v.featureName===B&&(Y.title=v.newTitle),B&&!W){if(isUserFeatureName(B))X={onclick:Z.option.onclick,featureName:B};else{var ae=getFeature(B);if(!ae)return;X=new ae}C[B]=X}else if(X=C[W],!X)return;X.uid=getUID("toolbox-feature"),X.model=Z,X.ecModel=s,X.api=l;var ie=X instanceof ToolboxFeature;if(!B&&W){ie&&X.dispose&&X.dispose(s,l);return}if(!Z.get("show")||ie&&X.unusable){ie&&X.remove&&X.remove(s,l);return}V(Z,X,B),Z.setIconStatus=function(oe,le){var ve=this.option,xe=this.iconPaths;ve.iconStatus=ve.iconStatus||{},ve.iconStatus[oe]=le,xe[oe]&&(le==="emphasis"?enterEmphasis:leaveEmphasis)(xe[oe])},X instanceof ToolboxFeature&&X.render&&X.render(Z,s,l,v)}function V(z,F,B){var W=z.getModel("iconStyle"),Y=z.getModel(["emphasis","iconStyle"]),Z=F instanceof ToolboxFeature&&F.getIcons?F.getIcons():z.get("icon"),X=z.get("title")||{},ae,ie;isString(Z)?(ae={},ae[B]=Z):ae=Z,isString(X)?(ie={},ie[B]=X):ie=X;var oe=z.iconPaths={};each$c(ae,function(le,ve){var xe=createIcon(le,{},{x:-A/2,y:-A/2,width:A,height:A});xe.setStyle(W.getItemStyle());var _e=xe.ensureState("emphasis");_e.style=Y.getItemStyle();var Te=new ZRText$1({style:{text:ie[ve],align:Y.get("textAlign"),borderRadius:Y.get("textBorderRadius"),padding:Y.get("textPadding"),fill:null},ignore:!0});xe.setTextContent(Te),setTooltipConfig({el:xe,componentModel:o,itemName:ve,formatterParamsExtra:{title:ie[ve]}}),xe.__title=ie[ve],xe.on("mouseover",function(){var Ee=Y.getItemStyle(),Ce=w?o.get("right")==null&&o.get("left")!=="right"?"right":"left":o.get("bottom")==null&&o.get("top")!=="bottom"?"bottom":"top";Te.setStyle({fill:Y.get("textFill")||Ee.fill||Ee.stroke||"#000",backgroundColor:Y.get("textBackgroundColor")}),xe.setTextConfig({position:Y.get("textPosition")||Ce}),Te.ignore=!o.get("showTitle"),l.enterEmphasis(this)}).on("mouseout",function(){z.get(["iconStatus",ve])!=="emphasis"&&l.leaveEmphasis(this),Te.hide()}),(z.get(["iconStatus",ve])==="emphasis"?enterEmphasis:leaveEmphasis)(xe),x.add(xe),xe.on("click",bind$1(F.onclick,F,s,l,ve)),oe[ve]=xe})}layout(x,o,l),x.add(makeBackground(x.getBoundingRect(),o)),w||x.eachChild(function(z){var F=z.__title,B=z.ensureState("emphasis"),W=B.textConfig||(B.textConfig={}),Y=z.getTextContent(),Z=Y&&Y.ensureState("emphasis");if(Z&&!isFunction(Z)&&F){var X=Z.style||(Z.style={}),ae=getBoundingRect(F,ZRText$1.makeFont(X)),ie=z.x+x.x,oe=z.y+x.y+A,le=!1;oe+ae.height>l.getHeight()&&(W.position="top",le=!0);var ve=le?-5-ae.height:A+10;ie+ae.width/2>l.getWidth()?(W.position=["100%",ve],X.align="right"):ie-ae.width/2<0&&(W.position=[0,ve],X.align="left")}})},t.prototype.updateView=function(o,s,l,v){each$c(this._features,function(x){x instanceof ToolboxFeature&&x.updateView&&x.updateView(x.model,s,l,v)})},t.prototype.remove=function(o,s){each$c(this._features,function(l){l instanceof ToolboxFeature&&l.remove&&l.remove(o,s)}),this.group.removeAll()},t.prototype.dispose=function(o,s){each$c(this._features,function(l){l instanceof ToolboxFeature&&l.dispose&&l.dispose(o,s)})},t.type="toolbox",t}(ComponentView$1);function isUserFeatureName(r){return r.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(o,s){var l=this.model,v=l.get("name")||o.get("title.0.text")||"echarts",x=s.getZr().painter.getType()==="svg",A=x?"svg":l.get("type",!0)||"png",w=s.getConnectedDataURL({type:A,backgroundColor:l.get("backgroundColor",!0)||o.get("backgroundColor")||"#fff",connectedBackgroundColor:l.get("connectedBackgroundColor"),excludeComponents:l.get("excludeComponents"),pixelRatio:l.get("pixelRatio")}),E=env$1.browser;if(isFunction(MouseEvent)&&(E.newEdge||!E.ie&&!E.edge)){var C=document.createElement("a");C.download=v+"."+A,C.target="_blank",C.href=w;var R=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});C.dispatchEvent(R)}else if(window.navigator.msSaveOrOpenBlob||x){var $=w.split(","),V=$[0].indexOf("base64")>-1,z=x?decodeURIComponent($[1]):$[1];V&&(z=window.atob(z));var F=v+"."+A;if(window.navigator.msSaveOrOpenBlob){for(var B=z.length,W=new Uint8Array(B);B--;)W[B]=z.charCodeAt(B);var Y=new Blob([W]);window.navigator.msSaveOrOpenBlob(Y,F)}else{var Z=document.createElement("iframe");document.body.appendChild(Z);var X=Z.contentWindow,ae=X.document;ae.open("image/svg+xml","replace"),ae.write(z),ae.close(),X.focus(),ae.execCommand("SaveAs",!0,F),document.body.removeChild(Z)}}else{var ie=l.get("lang"),oe='<body style="margin:0;"><img src="'+w+'" style="max-width:100%;" title="'+(ie&&ie[0]||"")+'" /></body>',le=window.open();le.document.write(oe),le.document.title=v}},t.getDefaultOption=function(o){var s={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:o.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:o.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return s},t}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var o=this.model,s=o.get("icon"),l={};return each$c(o.get("type"),function(v){s[v]&&(l[v]=s[v])}),l},t.getDefaultOption=function(o){var s={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:o.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return s},t.prototype.onclick=function(o,s,l){var v=this.model,x=v.get(["seriesIndex",l]);if(seriesOptGenreator[l]){var A={series:[]},w=function(R){var $=R.subType,V=R.id,z=seriesOptGenreator[l]($,V,R,v);z&&(defaults(z,R.option),A.series.push(z));var F=R.coordinateSystem;if(F&&F.type==="cartesian2d"&&(l==="line"||l==="bar")){var B=F.getAxesByScale("ordinal")[0];if(B){var W=B.dim,Y=W+"Axis",Z=R.getReferringComponents(Y,SINGLE_REFERRING).models[0],X=Z.componentIndex;A[Y]=A[Y]||[];for(var ae=0;ae<=X;ae++)A[Y][X]=A[Y][X]||{};A[Y][X].boundaryGap=l==="bar"}}};each$c(radioTypes,function(R){indexOf(R,l)>=0&&each$c(R,function($){v.setIconStatus($,"normal")})}),v.setIconStatus(l,"emphasis"),o.eachComponent({mainType:"series",query:x==null?null:{seriesIndex:x}},w);var E,C=l;l==="stack"&&(E=merge({stack:v.option.title.tiled,tiled:v.option.title.stack},v.option.title),v.get(["iconStatus",l])!=="emphasis"&&(C="tiled")),s.dispatchAction({type:"changeMagicType",currentType:C,newOption:A,newTitle:E,featureName:"magicType"})}},t}(ToolboxFeature),seriesOptGenreator={line:function(r,t,o,s){if(r==="bar")return merge({id:t,type:"line",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},s.get(["option","line"])||{},!0)},bar:function(r,t,o,s){if(r==="line")return merge({id:t,type:"bar",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},s.get(["option","bar"])||{},!0)},stack:function(r,t,o,s){var l=o.get("stack")===INNER_STACK_KEYWORD;if(r==="line"||r==="bar")return s.setIconStatus("stack",l?"normal":"emphasis"),merge({id:t,stack:l?"":INNER_STACK_KEYWORD},s.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries(r){var t={},o=[],s=[];return r.eachRawSeries(function(l){var v=l.coordinateSystem;if(v&&(v.type==="cartesian2d"||v.type==="polar")){var x=v.getBaseAxis();if(x.type==="category"){var A=x.dim+"_"+x.index;t[A]||(t[A]={categoryAxis:x,valueAxis:v.getOtherAxis(x),series:[]},s.push({axisDim:x.dim,axisIndex:x.index})),t[A].series.push(l)}else o.push(l)}else o.push(l)}),{seriesGroupByCategoryAxis:t,other:o,meta:s}}function assembleSeriesWithCategoryAxis(r){var t=[];return each$c(r,function(o,s){var l=o.categoryAxis,v=o.valueAxis,x=v.dim,A=[" "].concat(map$2(o.series,function(V){return V.name})),w=[l.model.getCategories()];each$c(o.series,function(V){var z=V.getRawData();w.push(V.getRawData().mapArray(z.mapDimension(x),function(F){return F}))});for(var E=[A.join(ITEM_SPLITER)],C=0;C<w[0].length;C++){for(var R=[],$=0;$<w.length;$++)R.push(w[$][C]);E.push(R.join(ITEM_SPLITER))}t.push(E.join(`
`))}),t.join(`
`+BLOCK_SPLITER+`
`)}function assembleOtherSeries(r){return map$2(r,function(t){var o=t.getRawData(),s=[t.name],l=[];return o.each(o.dimensions,function(){for(var v=arguments.length,x=arguments[v-1],A=o.getName(x),w=0;w<v-1;w++)l[w]=arguments[w];s.push((A?A+ITEM_SPLITER:"")+l.join(ITEM_SPLITER))}),s.join(`
`)}).join(`
`+BLOCK_SPLITER+`
`)}function getContentFromModel(r){var t=groupSeries(r);return{value:filter([assembleSeriesWithCategoryAxis(t.seriesGroupByCategoryAxis),assembleOtherSeries(t.other)],function(o){return!!o.replace(/[\n\t\s]/g,"")}).join(`
`+BLOCK_SPLITER+`
`),meta:t.meta}}function trim(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents(r){for(var t=r.split(/\n+/g),o=trim(t.shift()).split(itemSplitRegex),s=[],l=map$2(o,function(w){return{name:w,data:[]}}),v=0;v<t.length;v++){var x=trim(t[v]).split(itemSplitRegex);s.push(x.shift());for(var A=0;A<x.length;A++)l[A]&&(l[A].data[v]=x[A])}return{series:l,categories:s}}function parseListContents(r){for(var t=r.split(/\n+/g),o=trim(t.shift()),s=[],l=0;l<t.length;l++){var v=trim(t[l]);if(v){var x=v.split(itemSplitRegex),A="",w=void 0,E=!1;isNaN(x[0])?(E=!0,A=x[0],x=x.slice(1),s[l]={name:A,value:[]},w=s[l].value):w=s[l]=[];for(var C=0;C<x.length;C++)w.push(+x[C]);w.length===1&&(E?s[l].value=w[0]:s[l]=w[0])}}return{name:o,data:s}}function parseContents(r,t){var o=r.split(new RegExp(`
*`+BLOCK_SPLITER+`
*`,"g")),s={series:[]};return each$c(o,function(l,v){if(isTSVFormat(l)){var x=parseTSVContents(l),A=t[v],w=A.axisDim+"Axis";A&&(s[w]=s[w]||[],s[w][A.axisIndex]={data:x.categories},s.series=s.series.concat(x.series))}else{var x=parseListContents(l);s.series.push(x)}}),s}var DataView$1=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(o,s){setTimeout(function(){s.dispatchAction({type:"hideTip"})});var l=s.getDom(),v=this.model;this._dom&&l.removeChild(this._dom);var x=document.createElement("div");x.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",x.style.backgroundColor=v.get("backgroundColor")||"#fff";var A=document.createElement("h4"),w=v.get("lang")||[];A.innerHTML=w[0]||v.get("title"),A.style.cssText="margin:10px 20px",A.style.color=v.get("textColor");var E=document.createElement("div"),C=document.createElement("textarea");E.style.cssText="overflow:auto";var R=v.get("optionToContent"),$=v.get("contentToOption"),V=getContentFromModel(o);if(isFunction(R)){var z=R(s.getOption());isString(z)?E.innerHTML=z:isDom(z)&&E.appendChild(z)}else{C.readOnly=v.get("readOnly");var F=C.style;F.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",F.color=v.get("textColor"),F.borderColor=v.get("textareaBorderColor"),F.backgroundColor=v.get("textareaColor"),C.value=V.value,E.appendChild(C)}var B=V.meta,W=document.createElement("div");W.style.cssText="position:absolute;bottom:5px;left:0;right:0";var Y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",Z=document.createElement("div"),X=document.createElement("div");Y+=";background-color:"+v.get("buttonColor"),Y+=";color:"+v.get("buttonTextColor");var ae=this;function ie(){l.removeChild(x),ae._dom=null}addEventListener(Z,"click",ie),addEventListener(X,"click",function(){if($==null&&R!=null||$!=null&&R==null){ie();return}var oe;try{isFunction($)?oe=$(E,s.getOption()):oe=parseContents(C.value,B)}catch(le){throw ie(),new Error("Data view format error "+le)}oe&&s.dispatchAction({type:"changeDataView",newOption:oe}),ie()}),Z.innerHTML=w[1],X.innerHTML=w[2],X.style.cssText=Z.style.cssText=Y,!v.get("readOnly")&&W.appendChild(X),W.appendChild(Z),x.appendChild(A),x.appendChild(E),x.appendChild(W),E.style.height=l.clientHeight-80+"px",l.appendChild(x),this._dom=x},t.prototype.remove=function(o,s){this._dom&&s.getDom().removeChild(this._dom)},t.prototype.dispose=function(o,s){this.remove(o,s)},t.getDefaultOption=function(o){var s={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:o.getLocaleModel().get(["toolbox","dataView","title"]),lang:o.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return s},t}(ToolboxFeature);function tryMergeDataOption(r,t){return map$2(r,function(o,s){var l=t&&t[s];if(isObject$3(l)&&!isArray$1(l)){var v=isObject$3(o)&&!isArray$1(o);v||(o={value:o});var x=l.name!=null&&o.name==null;return o=defaults(o,l),x&&delete o.name,o}else return o})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var o=[];each$c(r.newOption.series,function(s){var l=t.getSeriesByName(s.name)[0];if(!l)o.push(extend({type:"scatter"},s));else{var v=l.get("data");o.push({name:s.name,data:tryMergeDataOption(s.data,v)})}}),t.mergeOption(defaults({series:o},r.newOption))});const DataView$2=DataView$1;var each$6=each$c,inner$1=makeInner();function push(r,t){var o=getStoreSnapshots(r);each$6(t,function(s,l){for(var v=o.length-1;v>=0;v--){var x=o[v];if(x[l])break}if(v<0){var A=r.queryComponents({mainType:"dataZoom",subType:"select",id:l})[0];if(A){var w=A.getPercentRange();o[0][l]={dataZoomId:l,start:w[0],end:w[1]}}}}),o.push(t)}function pop(r){var t=getStoreSnapshots(r),o=t[t.length-1];t.length>1&&t.pop();var s={};return each$6(o,function(l,v){for(var x=t.length-1;x>=0;x--)if(l=t[x][v],l){s[v]=l;break}}),s}function clear(r){inner$1(r).snapshots=null}function count(r){return getStoreSnapshots(r).length}function getStoreSnapshots(r){var t=inner$1(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var RestoreOption=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(o,s){clear(o),s.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(o){var s={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:o.getLocaleModel().get(["toolbox","restore","title"])};return s},t}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function r(t,o,s){var l=this;this._targetInfoList=[];var v=parseFinder(o,t);each$c(targetInfoBuilders,function(x,A){(!s||!s.include||indexOf(s.include,A)>=0)&&x(v,l._targetInfoList)})}return r.prototype.setOutputRanges=function(t,o){return this.matchOutputRanges(t,o,function(s,l,v){if((s.coordRanges||(s.coordRanges=[])).push(l),!s.coordRange){s.coordRange=l;var x=coordConvert[s.brushType](0,v,l);s.__rangeOffset={offset:diffProcessor[s.brushType](x.values,s.range,[1,1]),xyMinMax:x.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,o,s){each$c(t,function(l){var v=this.findTargetInfo(l,o);v&&v!==!0&&each$c(v.coordSyses,function(x){var A=coordConvert[l.brushType](1,x,l.range,!0);s(l,A.values,x,o)})},this)},r.prototype.setInputRanges=function(t,o){each$c(t,function(s){var l=this.findTargetInfo(s,o);if(s.range=s.range||[],l&&l!==!0){s.panelId=l.panelId;var v=coordConvert[s.brushType](0,l.coordSys,s.coordRange),x=s.__rangeOffset;s.range=x?diffProcessor[s.brushType](v.values,x.offset,getScales(v.xyMinMax,x.xyMinMax)):v.values}},this)},r.prototype.makePanelOpts=function(t,o){return map$2(this._targetInfoList,function(s){var l=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:o?o(s):null,clipPath:makeRectPanelClipPath(l),isTargetByCursor:makeRectIsTargetByCursor(l,t,s.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(l)}})},r.prototype.controlSeries=function(t,o,s){var l=this.findTargetInfo(t,s);return l===!0||l&&indexOf(l.coordSyses,o.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,o){for(var s=this._targetInfoList,l=parseFinder(o,t),v=0;v<s.length;v++){var x=s[v],A=t.panelId;if(A){if(x.panelId===A)return x}else for(var w=0;w<targetInfoMatchers.length;w++)if(targetInfoMatchers[w](l,x))return x}return!0},r}();function formatMinMax(r){return r[0]>r[1]&&r.reverse(),r}function parseFinder(r,t){return parseFinder$1(r,t,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function(r,t){var o=r.xAxisModels,s=r.yAxisModels,l=r.gridModels,v=createHashMap(),x={},A={};!o&&!s&&!l||(each$c(o,function(w){var E=w.axis.grid.model;v.set(E.id,E),x[E.id]=!0}),each$c(s,function(w){var E=w.axis.grid.model;v.set(E.id,E),A[E.id]=!0}),each$c(l,function(w){v.set(w.id,w),x[w.id]=!0,A[w.id]=!0}),v.each(function(w){var E=w.coordinateSystem,C=[];each$c(E.getCartesians(),function(R,$){(indexOf(o,R.getAxis("x").model)>=0||indexOf(s,R.getAxis("y").model)>=0)&&C.push(R)}),t.push({panelId:"grid--"+w.id,gridModel:w,coordSysModel:w,coordSys:C[0],coordSyses:C,getPanelRect:panelRectBuilders.grid,xAxisDeclared:x[w.id],yAxisDeclared:A[w.id]})}))},geo:function(r,t){each$c(r.geoModels,function(o){var s=o.coordinateSystem;t.push({panelId:"geo--"+o.id,geoModel:o,coordSysModel:o,coordSys:s,coordSyses:[s],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function(r,t){var o=r.xAxisModel,s=r.yAxisModel,l=r.gridModel;return!l&&o&&(l=o.axis.grid.model),!l&&s&&(l=s.axis.grid.model),l&&l===t.gridModel},function(r,t){var o=r.geoModel;return o&&o===t.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(getTransform$1(r)),t}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function(r,t,o,s){var l=r?t.pointToData([o[0][0],o[1][0]],s):t.dataToPoint([o[0][0],o[1][0]],s),v=r?t.pointToData([o[0][1],o[1][1]],s):t.dataToPoint([o[0][1],o[1][1]],s),x=[formatMinMax([l[0],v[0]]),formatMinMax([l[1],v[1]])];return{values:x,xyMinMax:x}},polygon:function(r,t,o,s){var l=[[1/0,-1/0],[1/0,-1/0]],v=map$2(o,function(x){var A=r?t.pointToData(x,s):t.dataToPoint(x,s);return l[0][0]=Math.min(l[0][0],A[0]),l[1][0]=Math.min(l[1][0],A[1]),l[0][1]=Math.max(l[0][1],A[0]),l[1][1]=Math.max(l[1][1],A[1]),A});return{values:v,xyMinMax:l}}};function axisConvert(r,t,o,s){var l=o.getAxis(["x","y"][r]),v=formatMinMax(map$2([0,1],function(A){return t?l.coordToData(l.toLocalCoord(s[A]),!0):l.toGlobalCoord(l.dataToCoord(s[A]))})),x=[];return x[r]=v,x[1-r]=[NaN,NaN],{values:v,xyMinMax:x}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function(r,t,o){return[[r[0][0]-o[0]*t[0][0],r[0][1]-o[0]*t[0][1]],[r[1][0]-o[1]*t[1][0],r[1][1]-o[1]*t[1][1]]]},polygon:function(r,t,o){return map$2(r,function(s,l){return[s[0]-o[0]*t[l][0],s[1]-o[1]*t[l][1]]})}};function axisDiffProcessor(r,t,o,s){return[t[0]-s[r]*o[0],t[1]-s[r]*o[1]]}function getScales(r,t){var o=getSize(r),s=getSize(t),l=[o[0]/s[0],o[1]/s[1]];return isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l}function getSize(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(o,s,l,v){this._brushController||(this._brushController=new BrushController$1(l.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(o,s,this,v,l),updateBackBtnStatus(o,s)},t.prototype.onclick=function(o,s,l){handlers[l].call(this)},t.prototype.remove=function(o,s){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(o,s){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(o){var s=o.areas;if(!o.isEnd||!s.length)return;var l={},v=this.ecModel;this._brushController.updateCovers([]);var x=new BrushTargetManager$1(makeAxisFinder(this.model),v,{include:["grid"]});x.matchOutputRanges(s,v,function(E,C,R){if(R.type==="cartesian2d"){var $=E.brushType;$==="rect"?(A("x",R,C[0]),A("y",R,C[1])):A({lineX:"x",lineY:"y"}[$],R,C)}}),push(v,l),this._dispatchZoomAction(l);function A(E,C,R){var $=C.getAxis(E),V=$.model,z=w(E,V,v),F=z.findRepresentativeAxisProxy(V).getMinMaxSpan();(F.minValueSpan!=null||F.maxValueSpan!=null)&&(R=sliderMove(0,R.slice(),$.scale.getExtent(),0,F.minValueSpan,F.maxValueSpan)),z&&(l[z.id]={dataZoomId:z.id,startValue:R[0],endValue:R[1]})}function w(E,C,R){var $;return R.eachComponent({mainType:"dataZoom",subType:"select"},function(V){var z=V.getAxisModel(E,C.componentIndex);z&&($=V)}),$}},t.prototype._dispatchZoomAction=function(o){var s=[];each$5(o,function(l,v){s.push(clone$3(l))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},t.getDefaultOption=function(o){var s={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:o.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return s},t}(ToolboxFeature),handlers={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function updateBackBtnStatus(r,t){r.setIconStatus("back",count(t)>1?"emphasis":"normal")}function updateZoomBtnStatus(r,t,o,s,l){var v=o._isZoomActive;s&&s.type==="takeGlobalCursor"&&(v=s.key==="dataZoomSelect"?s.dataZoomSelectActive:!1),o._isZoomActive=v,r.setIconStatus("zoom",v?"emphasis":"normal");var x=new BrushTargetManager$1(makeAxisFinder(r),t,{include:["grid"]}),A=x.makePanelOpts(l,function(w){return w.xAxisDeclared&&!w.yAxisDeclared?"lineX":!w.xAxisDeclared&&w.yAxisDeclared?"lineY":"rect"});o._brushController.setPanels(A).enableBrush(v&&A.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function(r){var t=r.getComponent("toolbox",0),o=["feature","dataZoom"];if(!t||t.get(o)==null)return;var s=t.getModel(o),l=[],v=makeAxisFinder(s),x=parseFinder$1(r,v);each$5(x.xAxisModels,function(w){return A(w,"xAxis","xAxisIndex")}),each$5(x.yAxisModels,function(w){return A(w,"yAxis","yAxisIndex")});function A(w,E,C){var R=w.componentIndex,$={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+E+R};$[C]=R,l.push($)}return l});const DataZoom=DataZoomFeature;function install$b(r){r.registerComponentModel(ToolboxModel$1),r.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$2),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function testStyle(r){if(env$1.domSupported){for(var t=document.documentElement.style,o=0,s=r.length;o<s;o++)if(r[o]in t)return r[o]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix(r,t){if(!r)return t;t=toCamelCase(t,!0);var o=r.indexOf(t);return r=o===-1?t:"-"+r.slice(0,o)+"-"+t,r.toLowerCase()}function getComputedStyle$1(r,t){var o=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return o?t?o[t]:o:null}var CSS_TRANSITION_VENDOR=toCSSVendorPrefix(TRANSITION_VENDOR,"transition"),CSS_TRANSFORM_VENDOR=toCSSVendorPrefix(TRANSFORM_VENDOR,"transform"),gCssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(env$1.transform3dSupported?"will-change:transform;":"");function mirrorPos(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function assembleArrow(r,t,o){if(!isString(o)||o==="inside")return"";var s=r.get("backgroundColor"),l=r.get("borderWidth");t=convertToColorString(t);var v=mirrorPos(o),x=Math.max(Math.round(l)*1.5,6),A="",w=CSS_TRANSFORM_VENDOR+":",E;indexOf(["left","right"],v)>-1?(A+="top:50%",w+="translateY(-50%) rotate("+(E=v==="left"?-225:-45)+"deg)"):(A+="left:50%",w+="translateX(-50%) rotate("+(E=v==="top"?225:45)+"deg)");var C=E*Math.PI/180,R=x+l,$=R*Math.abs(Math.cos(C))+R*Math.abs(Math.sin(C)),V=Math.round((($-Math.SQRT2*l)/2+Math.SQRT2*l-($-R)/2)*100)/100;A+=";"+v+":-"+V+"px";var z=t+" solid "+l+"px;",F=["position:absolute;width:"+x+"px;height:"+x+"px;z-index:-1;",A+";"+w+";","border-bottom:"+z,"border-right:"+z,"background-color:"+s+";"];return'<div style="'+F.join("")+'"></div>'}function assembleTransition(r,t){var o="cubic-bezier(0.23,1,0.32,1)",s=" "+r/2+"s "+o,l="opacity"+s+",visibility"+s;return t||(s=" "+r+"s "+o,l+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+s:",left"+s+",top"+s),CSS_TRANSITION_VENDOR+":"+l}function assembleTransform(r,t,o){var s=r.toFixed(0)+"px",l=t.toFixed(0)+"px";if(!env$1.transformSupported)return o?"top:"+l+";left:"+s+";":[["top",l],["left",s]];var v=env$1.transform3dSupported,x="translate"+(v?"3d":"")+"("+s+","+l+(v?",0":"")+")";return o?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+x+";":[["top",0],["left",0],[TRANSFORM_VENDOR,x]]}function assembleFont(r){var t=[],o=r.get("fontSize"),s=r.getTextColor();s&&t.push("color:"+s),t.push("font:"+r.getFont()),o&&t.push("line-height:"+Math.round(o*3/2)+"px");var l=r.get("textShadowColor"),v=r.get("textShadowBlur")||0,x=r.get("textShadowOffsetX")||0,A=r.get("textShadowOffsetY")||0;return l&&v&&t.push("text-shadow:"+x+"px "+A+"px "+v+"px "+l),each$c(["decoration","align"],function(w){var E=r.get(w);E&&t.push("text-"+w+":"+E)}),t.join(";")}function assembleCssText(r,t,o){var s=[],l=r.get("transitionDuration"),v=r.get("backgroundColor"),x=r.get("shadowBlur"),A=r.get("shadowColor"),w=r.get("shadowOffsetX"),E=r.get("shadowOffsetY"),C=r.getModel("textStyle"),R=getPaddingFromTooltipModel(r,"html"),$=w+"px "+E+"px "+x+"px "+A;return s.push("box-shadow:"+$),t&&l&&s.push(assembleTransition(l,o)),v&&s.push("background-color:"+v),each$c(["width","color","radius"],function(V){var z="border-"+V,F=toCamelCase(z),B=r.get(F);B!=null&&s.push(z+":"+B+(V==="color"?"":"px"))}),s.push(assembleFont(C)),R!=null&&s.push("padding:"+normalizeCssArray(R).join("px ")+"px"),s.join(";")+";"}function makeStyleCoord$1(r,t,o,s,l){var v=t&&t.painter;if(o){var x=v&&v.getViewportRoot();x&&transformLocalCoord(r,x,document.body,s,l)}else{r[0]=s,r[1]=l;var A=v&&v.getViewportRootOffset();A&&(r[0]+=A.offsetLeft,r[1]+=A.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var TooltipHTMLContent=function(){function r(t,o,s){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var l=document.createElement("div");l.domBelongToZr=!0,this.el=l;var v=this._zr=o.getZr(),x=this._appendToBody=s&&s.appendToBody;makeStyleCoord$1(this._styleCoord,v,x,o.getWidth()/2,o.getHeight()/2),x?document.body.appendChild(l):t.appendChild(l),this._container=t;var A=this;l.onmouseenter=function(){A._enterable&&(clearTimeout(A._hideTimeout),A._show=!0),A._inContent=!0},l.onmousemove=function(w){if(w=w||window.event,!A._enterable){var E=v.handler,C=v.painter.getViewportRoot();normalizeEvent(C,w,!0),E.dispatch("mousemove",w)}},l.onmouseleave=function(){A._inContent=!1,A._enterable&&A._show&&A.hideLater(A._hideDelay)}}return r.prototype.update=function(t){var o=this._container,s=getComputedStyle$1(o,"position"),l=o.style;l.position!=="absolute"&&s!=="absolute"&&(l.position="relative");var v=t.get("alwaysShowContent");v&&this._moveIfResized(),this._alwaysShowContent=v,this.el.className=t.get("className")||""},r.prototype.show=function(t,o){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var s=this.el,l=s.style,v=this._styleCoord;s.innerHTML?l.cssText=gCssText+assembleCssText(t,!this._firstShow,this._longHide)+assembleTransform(v[0],v[1],!0)+("border-color:"+convertToColorString(o)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):l.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,o,s,l,v){var x=this.el;if(t==null){x.innerHTML="";return}var A="";if(isString(v)&&s.get("trigger")==="item"&&!shouldTooltipConfine(s)&&(A=assembleArrow(s,l,v)),isString(t))x.innerHTML=t+A;else if(t){x.innerHTML="",isArray$1(t)||(t=[t]);for(var w=0;w<t.length;w++)isDom(t[w])&&t[w].parentNode!==x&&x.appendChild(t[w]);if(A&&x.childNodes.length){var E=document.createElement("div");E.innerHTML=A,x.appendChild(E)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,o){var s=this._styleCoord;if(makeStyleCoord$1(s,this._zr,this._appendToBody,t,o),s[0]!=null&&s[1]!=null){var l=this.el.style,v=assembleTransform(s[0],s[1]);each$c(v,function(x){l[x[0]]=x[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],o=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),o*this._zr.getHeight())},r.prototype.hide=function(){var t=this,o=this.el.style;o.visibility="hidden",o.opacity="0",env$1.transform3dSupported&&(o.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const TooltipHTMLContent$1=TooltipHTMLContent;var TooltipRichContent=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),makeStyleCoord(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,o,s,l,v){var x=this;isObject$3(t)&&throwError(""),this.el&&this._zr.remove(this.el);var A=s.getModel("textStyle");this.el=new ZRText$1({style:{rich:o.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:l,textShadowColor:A.get("textShadowColor"),fill:s.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(s,"richText"),verticalAlign:"top",align:"left"},z:s.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(E){x.el.style[E]=s.get(E)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(E){x.el.style[E]=A.get(E)||0}),this._zr.add(this.el);var w=this;this.el.on("mouseover",function(){w._enterable&&(clearTimeout(w._hideTimeout),w._show=!0),w._inContent=!0}),this.el.on("mouseout",function(){w._enterable&&w._show&&w.hideLater(w._hideDelay),w._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,o=this.el.getBoundingRect(),s=calcShadowOuterSize(t.style);return[o.width+s.left+s.right,o.height+s.top+s.bottom]},r.prototype.moveTo=function(t,o){var s=this.el;if(s){var l=this._styleCoord;makeStyleCoord(l,this._zr,t,o),t=l[0],o=l[1];var v=s.style,x=mathMaxWith0(v.borderWidth||0),A=calcShadowOuterSize(v);s.x=t+x+A.left,s.y=o+x+A.top,s.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],o=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),o*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function mathMaxWith0(r){return Math.max(0,r)}function calcShadowOuterSize(r){var t=mathMaxWith0(r.shadowBlur||0),o=mathMaxWith0(r.shadowOffsetX||0),s=mathMaxWith0(r.shadowOffsetY||0);return{left:mathMaxWith0(t-o),right:mathMaxWith0(t+o),top:mathMaxWith0(t-s),bottom:mathMaxWith0(t+s)}}function makeStyleCoord(r,t,o,s){r[0]=o,r[1]=s,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const TooltipRichContent$1=TooltipRichContent;var proxyRect=new Rect$2({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.init=function(o,s){if(!(env$1.node||!s.getDom())){var l=o.getComponent("tooltip"),v=this._renderMode=getTooltipRenderMode(l.get("renderMode"));this._tooltipContent=v==="richText"?new TooltipRichContent$1(s):new TooltipHTMLContent$1(s.getDom(),s,{appendToBody:l.get("appendToBody",!0)})}},t.prototype.render=function(o,s,l){if(!(env$1.node||!l.getDom())){this.group.removeAll(),this._tooltipModel=o,this._ecModel=s,this._api=l;var v=this._tooltipContent;v.update(o),v.setEnterable(o.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&o.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var o=this._tooltipModel,s=o.get("triggerOn");register("itemTooltip",this._api,bind$1(function(l,v,x){s!=="none"&&(s.indexOf(l)>=0?this._tryShow(v,x):l==="leave"&&this._hide(x))},this))},t.prototype._keepShow=function(){var o=this._tooltipModel,s=this._ecModel,l=this._api,v=o.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&v!=="none"&&v!=="click"){var x=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!l.isDisposed()&&x.manuallyShowTip(o,s,l,{x:x._lastX,y:x._lastY,dataByCoordSys:x._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(o,s,l,v){if(!(v.from===this.uid||env$1.node||!l.getDom())){var x=makeDispatchAction(v,l);this._ticket="";var A=v.dataByCoordSys,w=findComponentReference(v,s,l);if(w){var E=w.el.getBoundingRect().clone();E.applyTransform(w.el.transform),this._tryShow({offsetX:E.x+E.width/2,offsetY:E.y+E.height/2,target:w.el,position:v.position,positionDefault:"bottom"},x)}else if(v.tooltip&&v.x!=null&&v.y!=null){var C=proxyRect;C.x=v.x,C.y=v.y,C.update(),getECData(C).tooltipConfig={name:null,option:v.tooltip},this._tryShow({offsetX:v.x,offsetY:v.y,target:C},x)}else if(A)this._tryShow({offsetX:v.x,offsetY:v.y,position:v.position,dataByCoordSys:A,tooltipOption:v.tooltipOption},x);else if(v.seriesIndex!=null){if(this._manuallyAxisShowTip(o,s,l,v))return;var R=findPointFromSeries(v,s),$=R.point[0],V=R.point[1];$!=null&&V!=null&&this._tryShow({offsetX:$,offsetY:V,target:R.el,position:v.position,positionDefault:"bottom"},x)}else v.x!=null&&v.y!=null&&(l.dispatchAction({type:"updateAxisPointer",x:v.x,y:v.y}),this._tryShow({offsetX:v.x,offsetY:v.y,position:v.position,target:l.getZr().findHover(v.x,v.y).target},x))}},t.prototype.manuallyHideTip=function(o,s,l,v){var x=this._tooltipContent;this._tooltipModel&&x.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,v.from!==this.uid&&this._hide(makeDispatchAction(v,l))},t.prototype._manuallyAxisShowTip=function(o,s,l,v){var x=v.seriesIndex,A=v.dataIndex,w=s.getComponent("axisPointer").coordSysAxesInfo;if(!(x==null||A==null||w==null)){var E=s.getSeriesByIndex(x);if(E){var C=E.getData(),R=buildTooltipModel([C.getItemModel(A),E,(E.coordinateSystem||{}).model],this._tooltipModel);if(R.get("trigger")==="axis")return l.dispatchAction({type:"updateAxisPointer",seriesIndex:x,dataIndex:A,position:v.position}),!0}}},t.prototype._tryShow=function(o,s){var l=o.target,v=this._tooltipModel;if(v){this._lastX=o.offsetX,this._lastY=o.offsetY;var x=o.dataByCoordSys;if(x&&x.length)this._showAxisTooltip(x,o);else if(l){this._lastDataByCoordSys=null;var A,w;findEventDispatcher(l,function(E){if(getECData(E).dataIndex!=null)return A=E,!0;if(getECData(E).tooltipConfig!=null)return w=E,!0},!0),A?this._showSeriesItemTooltip(o,A,s):w?this._showComponentItemTooltip(o,w,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},t.prototype._showOrMove=function(o,s){var l=o.get("showDelay");s=bind$1(s,this),clearTimeout(this._showTimout),l>0?this._showTimout=setTimeout(s,l):s()},t.prototype._showAxisTooltip=function(o,s){var l=this._ecModel,v=this._tooltipModel,x=[s.offsetX,s.offsetY],A=buildTooltipModel([s.tooltipOption],v),w=this._renderMode,E=[],C=createTooltipMarkup("section",{blocks:[],noHeader:!0}),R=[],$=new TooltipMarkupStyleCreator;each$c(o,function(Y){each$c(Y.dataByAxis,function(Z){var X=l.getComponent(Z.axisDim+"Axis",Z.axisIndex),ae=Z.value;if(!(!X||ae==null)){var ie=getValueLabel(ae,X.axis,l,Z.seriesDataIndices,Z.valueLabelOpt),oe=createTooltipMarkup("section",{header:ie,noHeader:!trim$1(ie),sortBlocks:!0,blocks:[]});C.blocks.push(oe),each$c(Z.seriesDataIndices,function(le){var ve=l.getSeriesByIndex(le.seriesIndex),xe=le.dataIndexInside,_e=ve.getDataParams(xe);if(!(_e.dataIndex<0)){_e.axisDim=Z.axisDim,_e.axisIndex=Z.axisIndex,_e.axisType=Z.axisType,_e.axisId=Z.axisId,_e.axisValue=getAxisRawValue(X.axis,{value:ae}),_e.axisValueLabel=ie,_e.marker=$.makeTooltipMarker("item",convertToColorString(_e.color),w);var Te=normalizeTooltipFormatResult(ve.formatTooltip(xe,!0,null)),Ee=Te.frag;if(Ee){var Ce=buildTooltipModel([ve],v).get("valueFormatter");oe.blocks.push(Ce?extend({valueFormatter:Ce},Ee):Ee)}Te.text&&R.push(Te.text),E.push(_e)}})}})}),C.blocks.reverse(),R.reverse();var V=s.position,z=A.get("order"),F=buildTooltipMarkup(C,$,w,z,l.get("useUTC"),A.get("textStyle"));F&&R.unshift(F);var B=w==="richText"?`
`:"<br/>",W=R.join(B);this._showOrMove(A,function(){this._updateContentNotChangedOnAxis(o,E)?this._updatePosition(A,V,x[0],x[1],this._tooltipContent,E):this._showTooltipContent(A,W,E,Math.random()+"",x[0],x[1],V,null,$)})},t.prototype._showSeriesItemTooltip=function(o,s,l){var v=this._ecModel,x=getECData(s),A=x.seriesIndex,w=v.getSeriesByIndex(A),E=x.dataModel||w,C=x.dataIndex,R=x.dataType,$=E.getData(R),V=this._renderMode,z=o.positionDefault,F=buildTooltipModel([$.getItemModel(C),E,w&&(w.coordinateSystem||{}).model],this._tooltipModel,z?{position:z}:null),B=F.get("trigger");if(!(B!=null&&B!=="item")){var W=E.getDataParams(C,R),Y=new TooltipMarkupStyleCreator;W.marker=Y.makeTooltipMarker("item",convertToColorString(W.color),V);var Z=normalizeTooltipFormatResult(E.formatTooltip(C,!1,R)),X=F.get("order"),ae=F.get("valueFormatter"),ie=Z.frag,oe=ie?buildTooltipMarkup(ae?extend({valueFormatter:ae},ie):ie,Y,V,X,v.get("useUTC"),F.get("textStyle")):Z.text,le="item_"+E.name+"_"+C;this._showOrMove(F,function(){this._showTooltipContent(F,oe,W,le,o.offsetX,o.offsetY,o.position,o.target,Y)}),l({type:"showTip",dataIndexInside:C,dataIndex:$.getRawIndex(C),seriesIndex:A,from:this.uid})}},t.prototype._showComponentItemTooltip=function(o,s,l){var v=getECData(s),x=v.tooltipConfig,A=x.option||{};if(isString(A)){var w=A;A={content:w,formatter:w}}var E=[A],C=this._ecModel.getComponent(v.componentMainType,v.componentIndex);C&&E.push(C),E.push({formatter:A.content});var R=o.positionDefault,$=buildTooltipModel(E,this._tooltipModel,R?{position:R}:null),V=$.get("content"),z=Math.random()+"",F=new TooltipMarkupStyleCreator;this._showOrMove($,function(){var B=clone$3($.get("formatterParams")||{});this._showTooltipContent($,V,B,z,o.offsetX,o.offsetY,o.position,s,F)}),l({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(o,s,l,v,x,A,w,E,C){if(this._ticket="",!(!o.get("showContent")||!o.get("show"))){var R=this._tooltipContent;R.setEnterable(o.get("enterable"));var $=o.get("formatter");w=w||o.get("position");var V=s,z=this._getNearestPoint([x,A],l,o.get("trigger"),o.get("borderColor")),F=z.color;if($)if(isString($)){var B=o.ecModel.get("useUTC"),W=isArray$1(l)?l[0]:l,Y=W&&W.axisType&&W.axisType.indexOf("time")>=0;V=$,Y&&(V=format$1(W.axisValue,V,B)),V=formatTpl(V,l,!0)}else if(isFunction($)){var Z=bind$1(function(X,ae){X===this._ticket&&(R.setContent(ae,C,o,F,w),this._updatePosition(o,w,x,A,R,l,E))},this);this._ticket=v,V=$(l,v,Z)}else V=$;R.setContent(V,C,o,F,w),R.show(o,F),this._updatePosition(o,w,x,A,R,l,E)}},t.prototype._getNearestPoint=function(o,s,l,v){if(l==="axis"||isArray$1(s))return{color:v||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(s))return{color:v||s.color||s.borderColor}},t.prototype._updatePosition=function(o,s,l,v,x,A,w){var E=this._api.getWidth(),C=this._api.getHeight();s=s||o.get("position");var R=x.getSize(),$=o.get("align"),V=o.get("verticalAlign"),z=w&&w.getBoundingRect().clone();if(w&&z.applyTransform(w.transform),isFunction(s)&&(s=s([l,v],A,x.el,z,{viewSize:[E,C],contentSize:R.slice()})),isArray$1(s))l=parsePercent(s[0],E),v=parsePercent(s[1],C);else if(isObject$3(s)){var F=s;F.width=R[0],F.height=R[1];var B=getLayoutRect(F,{width:E,height:C});l=B.x,v=B.y,$=null,V=null}else if(isString(s)&&w){var W=calcTooltipPosition(s,z,R,o.get("borderWidth"));l=W[0],v=W[1]}else{var W=refixTooltipPosition(l,v,x,E,C,$?null:20,V?null:20);l=W[0],v=W[1]}if($&&(l-=isCenterAlign($)?R[0]/2:$==="right"?R[0]:0),V&&(v-=isCenterAlign(V)?R[1]/2:V==="bottom"?R[1]:0),shouldTooltipConfine(o)){var W=confineTooltipPosition(l,v,x,E,C);l=W[0],v=W[1]}x.moveTo(l,v)},t.prototype._updateContentNotChangedOnAxis=function(o,s){var l=this._lastDataByCoordSys,v=this._cbParamsList,x=!!l&&l.length===o.length;return x&&each$c(l,function(A,w){var E=A.dataByAxis||[],C=o[w]||{},R=C.dataByAxis||[];x=x&&E.length===R.length,x&&each$c(E,function($,V){var z=R[V]||{},F=$.seriesDataIndices||[],B=z.seriesDataIndices||[];x=x&&$.value===z.value&&$.axisType===z.axisType&&$.axisId===z.axisId&&F.length===B.length,x&&each$c(F,function(W,Y){var Z=B[Y];x=x&&W.seriesIndex===Z.seriesIndex&&W.dataIndex===Z.dataIndex}),v&&each$c($.seriesDataIndices,function(W){var Y=W.seriesIndex,Z=s[Y],X=v[Y];Z&&X&&X.data!==Z.data&&(x=!1)})})}),this._lastDataByCoordSys=o,this._cbParamsList=s,!!x},t.prototype._hide=function(o){this._lastDataByCoordSys=null,o({type:"hideTip",from:this.uid})},t.prototype.dispose=function(o,s){env$1.node||!s.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",s))},t.type="tooltip",t}(ComponentView$1);function buildTooltipModel(r,t,o){var s=t.ecModel,l;o?(l=new Model$1(o,s,s),l=new Model$1(t.option,l,s)):l=t;for(var v=r.length-1;v>=0;v--){var x=r[v];x&&(x instanceof Model$1&&(x=x.get("tooltip",!0)),isString(x)&&(x={formatter:x}),x&&(l=new Model$1(x,l,s)))}return l}function makeDispatchAction(r,t){return r.dispatchAction||bind$1(t.dispatchAction,t)}function refixTooltipPosition(r,t,o,s,l,v,x){var A=o.getSize(),w=A[0],E=A[1];return v!=null&&(r+w+v+2>s?r-=w+v:r+=v),x!=null&&(t+E+x>l?t-=E+x:t+=x),[r,t]}function confineTooltipPosition(r,t,o,s,l){var v=o.getSize(),x=v[0],A=v[1];return r=Math.min(r+x,s)-x,t=Math.min(t+A,l)-A,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function calcTooltipPosition(r,t,o,s){var l=o[0],v=o[1],x=Math.ceil(Math.SQRT2*s)+8,A=0,w=0,E=t.width,C=t.height;switch(r){case"inside":A=t.x+E/2-l/2,w=t.y+C/2-v/2;break;case"top":A=t.x+E/2-l/2,w=t.y-v-x;break;case"bottom":A=t.x+E/2-l/2,w=t.y+C+x;break;case"left":A=t.x-l-x,w=t.y+C/2-v/2;break;case"right":A=t.x+E+x,w=t.y+C/2-v/2}return[A,w]}function isCenterAlign(r){return r==="center"||r==="middle"}function findComponentReference(r,t,o){var s=preParseFinder(r).queryOptionMap,l=s.keys()[0];if(!(!l||l==="series")){var v=queryReferringComponents(t,l,s.get(l),{useDefault:!1,enableAll:!1,enableNone:!1}),x=v.models[0];if(x){var A=o.getViewOfComponentModel(x),w;if(A.group.traverse(function(E){var C=getECData(E).tooltipConfig;if(C&&C.name===r.name)return w=E,!0}),w)return{componentMainType:l,componentIndex:x.componentIndex,el:w}}}}const TooltipView$1=TooltipView;function install$a(r){use$1(install$f),r.registerComponentModel(TooltipModel$1),r.registerComponentView(TooltipView$1),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function createVisualMappings(r,t,o){var s={};return each$4(t,function(v){var x=s[v]=l();each$4(r[v],function(A,w){if(VisualMapping$1.isValidType(w)){var E={type:w,visual:A};o&&o(E,v),x[w]=new VisualMapping$1(E),w==="opacity"&&(E=clone$3(E),E.type="colorAlpha",x.__hidden.__alphaForOpacity=new VisualMapping$1(E))}})}),s;function l(){var v=function(){};v.prototype.__hidden=v.prototype;var x=new v;return x}}function replaceVisualOption(r,t,o){var s;each$c(o,function(l){t.hasOwnProperty(l)&&hasKeys(t[l])&&(s=!0)}),s&&each$c(o,function(l){t.hasOwnProperty(l)&&hasKeys(t[l])?r[l]=clone$3(t[l]):delete r[l]})}function incrementalApplyVisual(r,t,o,s){var l={};return each$c(r,function(v){var x=VisualMapping$1.prepareVisualTypes(t[v]);l[v]=x}),{progress:function(x,A){var w;s!=null&&(w=A.getDimensionIndex(s));function E(ae){return getItemVisualFromData(A,R,ae)}function C(ae,ie){setItemVisualFromData(A,R,ae,ie)}for(var R,$=A.getStore();(R=x.next())!=null;){var V=A.getRawDataItem(R);if(!(V&&V.visualMap===!1))for(var z=s!=null?$.get(w,R):R,F=o(z),B=t[F],W=l[F],Y=0,Z=W.length;Y<Z;Y++){var X=W[Y];B[X]&&B[X].applyVisual(z,E,C)}}}}}var TitleModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.layoutMode={type:"box",ignoreSize:!0},o}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ComponentModel$1),TitleView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.render=function(o,s,l){if(this.group.removeAll(),!!o.get("show")){var v=this.group,x=o.getModel("textStyle"),A=o.getModel("subtextStyle"),w=o.get("textAlign"),E=retrieve2(o.get("textBaseline"),o.get("textVerticalAlign")),C=new ZRText$1({style:createTextStyle$1(x,{text:o.get("text"),fill:x.getTextColor()},{disableBox:!0}),z2:10}),R=C.getBoundingRect(),$=o.get("subtext"),V=new ZRText$1({style:createTextStyle$1(A,{text:$,fill:A.getTextColor(),y:R.height+o.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),z=o.get("link"),F=o.get("sublink"),B=o.get("triggerEvent",!0);C.silent=!z&&!B,V.silent=!F&&!B,z&&C.on("click",function(){windowOpen(z,"_"+o.get("target"))}),F&&V.on("click",function(){windowOpen(F,"_"+o.get("subtarget"))}),getECData(C).eventData=getECData(V).eventData=B?{componentType:"title",componentIndex:o.componentIndex}:null,v.add(C),$&&v.add(V);var W=v.getBoundingRect(),Y=o.getBoxLayoutParams();Y.width=W.width,Y.height=W.height;var Z=getLayoutRect(Y,{width:l.getWidth(),height:l.getHeight()},o.get("padding"));w||(w=o.get("left")||o.get("right"),w==="middle"&&(w="center"),w==="right"?Z.x+=Z.width:w==="center"&&(Z.x+=Z.width/2)),E||(E=o.get("top")||o.get("bottom"),E==="center"&&(E="middle"),E==="bottom"?Z.y+=Z.height:E==="middle"&&(Z.y+=Z.height/2),E=E||"top"),v.x=Z.x,v.y=Z.y,v.markRedraw();var X={align:w,verticalAlign:E};C.setStyle(X),V.setStyle(X),W=v.getBoundingRect();var ae=Z.margin,ie=o.getItemStyle(["color","opacity"]);ie.fill=o.get("backgroundColor");var oe=new Rect$2({shape:{x:W.x-ae[3],y:W.y-ae[0],width:W.width+ae[1]+ae[3],height:W.height+ae[0]+ae[2],r:o.get("borderRadius")},style:ie,subPixelOptimize:!0,silent:!0});v.add(oe)}},t.type="title",t}(ComponentView$1);function install$9(r){r.registerComponentModel(TitleModel),r.registerComponentView(TitleView)}var getDefaultSelectorOptions=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.layoutMode={type:"box",ignoreSize:!0},o}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l),o.selected=o.selected||{},this._updateSelector(o)},t.prototype.mergeOption=function(o,s){r.prototype.mergeOption.call(this,o,s),this._updateSelector(o)},t.prototype._updateSelector=function(o){var s=o.selector,l=this.ecModel;s===!0&&(s=o.selector=["all","inverse"]),isArray$1(s)&&each$c(s,function(v,x){isString(v)&&(v={type:v}),s[x]=merge(v,getDefaultSelectorOptions(l,v.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var o=this._data;if(o[0]&&this.get("selectedMode")==="single"){for(var s=!1,l=0;l<o.length;l++){var v=o[l].get("name");if(this.isSelected(v)){this.select(v),s=!0;break}}!s&&this.select(o[0].get("name"))}},t.prototype._updateData=function(o){var s=[],l=[];o.eachRawSeries(function(w){var E=w.name;l.push(E);var C;if(w.legendVisualProvider){var R=w.legendVisualProvider,$=R.getAllNames();o.isSeriesFiltered(w)||(l=l.concat($)),$.length?s=s.concat($):C=!0}else C=!0;C&&isNameSpecified(w)&&s.push(w.name)}),this._availableNames=l;var v=this.get("data")||s,x=createHashMap(),A=map$2(v,function(w){return(isString(w)||isNumber(w))&&(w={name:w}),x.get(w.name)?null:(x.set(w.name,!0),new Model$1(w,this,this.ecModel))},this);this._data=filter(A,function(w){return!!w})},t.prototype.getData=function(){return this._data},t.prototype.select=function(o){var s=this.option.selected,l=this.get("selectedMode");if(l==="single"){var v=this._data;each$c(v,function(x){s[x.get("name")]=!1})}s[o]=!0},t.prototype.unSelect=function(o){this.get("selectedMode")!=="single"&&(this.option.selected[o]=!1)},t.prototype.toggleSelected=function(o){var s=this.option.selected;s.hasOwnProperty(o)||(s[o]=!0),this[s[o]?"unSelect":"select"](o)},t.prototype.allSelect=function(){var o=this._data,s=this.option.selected;each$c(o,function(l){s[l.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var o=this._data,s=this.option.selected;each$c(o,function(l){var v=l.get("name",!0);s.hasOwnProperty(v)||(s[v]=!0),s[v]=!s[v]})},t.prototype.isSelected=function(o){var s=this.option.selected;return!(s.hasOwnProperty(o)&&!s[o])&&indexOf(this._availableNames,o)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.newlineDisabled=!1,o}return t.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(o,s,l){var v=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!o.get("show",!0)){var x=o.get("align"),A=o.get("orient");(!x||x==="auto")&&(x=o.get("left")==="right"&&A==="vertical"?"right":"left");var w=o.get("selector",!0),E=o.get("selectorPosition",!0);w&&(!E||E==="auto")&&(E=A==="horizontal"?"end":"start"),this.renderInner(x,o,s,l,w,A,E);var C=o.getBoxLayoutParams(),R={width:l.getWidth(),height:l.getHeight()},$=o.get("padding"),V=getLayoutRect(C,R,$),z=this.layoutInner(o,x,V,v,w,E),F=getLayoutRect(defaults({width:z.width,height:z.height},C),R,$);this.group.x=F.x-z.x,this.group.y=F.y-z.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(z,o))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(o,s,l,v,x,A,w){var E=this.getContentGroup(),C=createHashMap(),R=s.get("selectedMode"),$=[];l.eachRawSeries(function(V){!V.get("legendHoverLink")&&$.push(V.id)}),each$3(s.getData(),function(V,z){var F=V.get("name");if(!this.newlineDisabled&&(F===""||F===`
`)){var B=new Group$1;B.newline=!0,E.add(B);return}var W=l.getSeriesByName(F)[0];if(!C.get(F))if(W){var Y=W.getData(),Z=Y.getVisual("legendLineStyle")||{},X=Y.getVisual("legendIcon"),ae=Y.getVisual("style"),ie=this._createItem(W,F,z,V,s,o,Z,ae,X,R,v);ie.on("click",curry(dispatchSelectAction,F,null,v,$)).on("mouseover",curry(dispatchHighlightAction,W.name,null,v,$)).on("mouseout",curry(dispatchDownplayAction,W.name,null,v,$)),C.set(F,!0)}else l.eachRawSeries(function(oe){if(!C.get(F)&&oe.legendVisualProvider){var le=oe.legendVisualProvider;if(!le.containName(F))return;var ve=le.indexOfName(F),xe=le.getItemVisual(ve,"style"),_e=le.getItemVisual(ve,"legendIcon"),Te=parse$1(xe.fill);Te&&Te[3]===0&&(Te[3]=.2,xe=extend(extend({},xe),{fill:stringify(Te,"rgba")}));var Ee=this._createItem(oe,F,z,V,s,o,{},xe,_e,R,v);Ee.on("click",curry(dispatchSelectAction,null,F,v,$)).on("mouseover",curry(dispatchHighlightAction,null,F,v,$)).on("mouseout",curry(dispatchDownplayAction,null,F,v,$)),C.set(F,!0)}},this)},this),x&&this._createSelector(x,s,v,A,w)},t.prototype._createSelector=function(o,s,l,v,x){var A=this.getSelectorGroup();each$3(o,function(E){var C=E.type,R=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){l.dispatchAction({type:C==="all"?"legendAllSelect":"legendInverseSelect"})}});A.add(R);var $=s.getModel("selectorLabel"),V=s.getModel(["emphasis","selectorLabel"]);setLabelStyle(R,{normal:$,emphasis:V},{defaultText:E.title}),enableHoverEmphasis(R)})},t.prototype._createItem=function(o,s,l,v,x,A,w,E,C,R,$){var V=o.visualDrawType,z=x.get("itemWidth"),F=x.get("itemHeight"),B=x.isSelected(s),W=v.get("symbolRotate"),Y=v.get("symbolKeepAspect"),Z=v.get("icon");C=Z||C||"roundRect";var X=getLegendStyle(C,v,w,E,V,B,$),ae=new Group$1,ie=v.getModel("textStyle");if(isFunction(o.getLegendIcon)&&(!Z||Z==="inherit"))ae.add(o.getLegendIcon({itemWidth:z,itemHeight:F,icon:C,iconRotate:W,itemStyle:X.itemStyle,lineStyle:X.lineStyle,symbolKeepAspect:Y}));else{var oe=Z==="inherit"&&o.getData().getVisual("symbol")?W==="inherit"?o.getData().getVisual("symbolRotate"):W:0;ae.add(getDefaultLegendIcon({itemWidth:z,itemHeight:F,icon:C,iconRotate:oe,itemStyle:X.itemStyle,lineStyle:X.lineStyle,symbolKeepAspect:Y}))}var le=A==="left"?z+5:-5,ve=A,xe=x.get("formatter"),_e=s;isString(xe)&&xe?_e=xe.replace("{name}",s??""):isFunction(xe)&&(_e=xe(s));var Te=v.get("inactiveColor");ae.add(new ZRText$1({style:createTextStyle$1(ie,{text:_e,x:le,y:F/2,fill:B?ie.getTextColor():Te,align:ve,verticalAlign:"middle"})}));var Ee=new Rect$2({shape:ae.getBoundingRect(),invisible:!0}),Ce=v.getModel("tooltip");return Ce.get("show")&&setTooltipConfig({el:Ee,componentModel:x,itemName:s,itemTooltipOption:Ce.option}),ae.add(Ee),ae.eachChild(function(Pe){Pe.silent=!0}),Ee.silent=!R,this.getContentGroup().add(ae),enableHoverEmphasis(ae),ae.__legendDataIndex=l,ae},t.prototype.layoutInner=function(o,s,l,v,x,A){var w=this.getContentGroup(),E=this.getSelectorGroup();box(o.get("orient"),w,o.get("itemGap"),l.width,l.height);var C=w.getBoundingRect(),R=[-C.x,-C.y];if(E.markRedraw(),w.markRedraw(),x){box("horizontal",E,o.get("selectorItemGap",!0));var $=E.getBoundingRect(),V=[-$.x,-$.y],z=o.get("selectorButtonGap",!0),F=o.getOrient().index,B=F===0?"width":"height",W=F===0?"height":"width",Y=F===0?"y":"x";A==="end"?V[F]+=C[B]+z:R[F]+=$[B]+z,V[1-F]+=C[W]/2-$[W]/2,E.x=V[0],E.y=V[1],w.x=R[0],w.y=R[1];var Z={x:0,y:0};return Z[B]=C[B]+z+$[B],Z[W]=Math.max(C[W],$[W]),Z[Y]=Math.min(0,$[Y]+V[1-F]),Z}else return w.x=R[0],w.y=R[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ComponentView$1);function getLegendStyle(r,t,o,s,l,v,x){function A(B,W){B.lineWidth==="auto"&&(B.lineWidth=W.lineWidth>0?2:0),each$3(B,function(Y,Z){B[Z]==="inherit"&&(B[Z]=W[Z])})}var w=t.getModel("itemStyle"),E=w.getItemStyle(),C=r.lastIndexOf("empty",0)===0?"fill":"stroke",R=w.getShallow("decal");E.decal=!R||R==="inherit"?s.decal:createOrUpdatePatternFromDecal(R,x),E.fill==="inherit"&&(E.fill=s[l]),E.stroke==="inherit"&&(E.stroke=s[C]),E.opacity==="inherit"&&(E.opacity=(l==="fill"?s:o).opacity),A(E,s);var $=t.getModel("lineStyle"),V=$.getLineStyle();if(A(V,o),E.fill==="auto"&&(E.fill=s.fill),E.stroke==="auto"&&(E.stroke=s.fill),V.stroke==="auto"&&(V.stroke=s.fill),!v){var z=t.get("inactiveBorderWidth"),F=E[C];E.lineWidth=z==="auto"?s.lineWidth>0&&F?2:0:E.lineWidth,E.fill=t.get("inactiveColor"),E.stroke=t.get("inactiveBorderColor"),V.stroke=$.get("inactiveColor"),V.lineWidth=$.get("inactiveWidth")}return{itemStyle:E,lineStyle:V}}function getDefaultLegendIcon(r){var t=r.icon||"roundRect",o=createSymbol(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return o.setStyle(r.itemStyle),o.rotation=(r.iconRotate||0)*Math.PI/180,o.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o}function dispatchSelectAction(r,t,o,s){dispatchDownplayAction(r,t,o,s),o.dispatchAction({type:"legendToggleSelect",name:r??t}),dispatchHighlightAction(r,t,o,s)}function isUseHoverLayer(r){for(var t=r.getZr().storage.getDisplayList(),o,s=0,l=t.length;s<l&&!(o=t[s].states.emphasis);)s++;return o&&o.hoverLayer}function dispatchHighlightAction(r,t,o,s){isUseHoverLayer(o)||o.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:s})}function dispatchDownplayAction(r,t,o,s){isUseHoverLayer(o)||o.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:s})}const LegendView$1=LegendView;function legendFilter(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(o){for(var s=0;s<t.length;s++)if(!t[s].isSelected(o.name))return!1;return!0})}function legendSelectActionHandler(r,t,o){var s={},l=r==="toggleSelected",v;return o.eachComponent("legend",function(x){l&&v!=null?x[v?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?x[r]():(x[r](t.name),v=x.isSelected(t.name));var A=x.getData();each$c(A,function(w){var E=w.get("name");if(!(E===`
`||E==="")){var C=x.isSelected(E);s.hasOwnProperty(E)?s[E]=s[E]&&C:s[E]=C}})}),r==="allSelect"||r==="inverseSelect"?{selected:s}:{name:t.name,selected:s}}function installLegendAction(r){r.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),r.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),r.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$8(r){r.registerComponentModel(LegendModel$1),r.registerComponentView(LegendView$1),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),r.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(r)}var ScrollableLegendModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.setScrollDataIndex=function(o){this.option.scrollDataIndex=o},t.prototype.init=function(o,s,l){var v=getLayoutParams(o);r.prototype.init.call(this,o,s,l),mergeAndNormalizeLayoutParams(this,o,v)},t.prototype.mergeOption=function(o,s){r.prototype.mergeOption.call(this,o,s),mergeAndNormalizeLayoutParams(this,this.option,o)},t.type="legend.scroll",t.defaultOption=inheritDefaultOption(LegendModel$1.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(LegendModel$1);function mergeAndNormalizeLayoutParams(r,t,o){var s=r.getOrient(),l=[1,1];l[s.index]=0,mergeLayoutParam(t,o,{type:"box",ignoreSize:!!l})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.newlineDisabled=!0,o._currentIndex=0,o}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(o,s,l,v,x,A,w){var E=this;r.prototype.renderInner.call(this,o,s,l,v,x,A,w);var C=this._controllerGroup,R=s.get("pageIconSize",!0),$=isArray$1(R)?R:[R,R];z("pagePrev",0);var V=s.getModel("pageTextStyle");C.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:V.getTextColor(),font:V.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),z("pageNext",1);function z(F,B){var W=F+"DataIndex",Y=createIcon(s.get("pageIcons",!0)[s.getOrient().name][B],{onclick:bind$1(E._pageGo,E,W,s,v)},{x:-$[0]/2,y:-$[1]/2,width:$[0],height:$[1]});Y.name=F,C.add(Y)}},t.prototype.layoutInner=function(o,s,l,v,x,A){var w=this.getSelectorGroup(),E=o.getOrient().index,C=WH[E],R=XY[E],$=WH[1-E],V=XY[1-E];x&&box("horizontal",w,o.get("selectorItemGap",!0));var z=o.get("selectorButtonGap",!0),F=w.getBoundingRect(),B=[-F.x,-F.y],W=clone$3(l);x&&(W[C]=l[C]-F[C]-z);var Y=this._layoutContentAndController(o,v,W,E,C,$,V,R);if(x){if(A==="end")B[E]+=Y[C]+z;else{var Z=F[C]+z;B[E]-=Z,Y[R]-=Z}Y[C]+=F[C]+z,B[1-E]+=Y[V]+Y[$]/2-F[$]/2,Y[$]=Math.max(Y[$],F[$]),Y[V]=Math.min(Y[V],F[V]+B[1-E]),w.x=B[0],w.y=B[1],w.markRedraw()}return Y},t.prototype._layoutContentAndController=function(o,s,l,v,x,A,w,E){var C=this.getContentGroup(),R=this._containerGroup,$=this._controllerGroup;box(o.get("orient"),C,o.get("itemGap"),v?l.width:null,v?null:l.height),box("horizontal",$,o.get("pageButtonItemGap",!0));var V=C.getBoundingRect(),z=$.getBoundingRect(),F=this._showController=V[x]>l[x],B=[-V.x,-V.y];s||(B[v]=C[E]);var W=[0,0],Y=[-z.x,-z.y],Z=retrieve2(o.get("pageButtonGap",!0),o.get("itemGap",!0));if(F){var X=o.get("pageButtonPosition",!0);X==="end"?Y[v]+=l[x]-z[x]:W[v]+=z[x]+Z}Y[1-v]+=V[A]/2-z[A]/2,C.setPosition(B),R.setPosition(W),$.setPosition(Y);var ae={x:0,y:0};if(ae[x]=F?l[x]:V[x],ae[A]=Math.max(V[A],z[A]),ae[w]=Math.min(0,z[w]+Y[1-v]),R.__rectSize=l[x],F){var ie={x:0,y:0};ie[x]=Math.max(l[x]-z[x]-Z,0),ie[A]=ae[A],R.setClipPath(new Rect$2({shape:ie})),R.__rectSize=ie[x]}else $.eachChild(function(le){le.attr({invisible:!0,silent:!0})});var oe=this._getPageInfo(o);return oe.pageIndex!=null&&updateProps$1(C,{x:oe.contentPosition[0],y:oe.contentPosition[1]},F?o:null),this._updatePageInfoView(o,oe),ae},t.prototype._pageGo=function(o,s,l){var v=this._getPageInfo(s)[o];v!=null&&l.dispatchAction({type:"legendScroll",scrollDataIndex:v,legendId:s.id})},t.prototype._updatePageInfoView=function(o,s){var l=this._controllerGroup;each$c(["pagePrev","pageNext"],function(C){var R=C+"DataIndex",$=s[R]!=null,V=l.childOfName(C);V&&(V.setStyle("fill",$?o.get("pageIconColor",!0):o.get("pageIconInactiveColor",!0)),V.cursor=$?"pointer":"default")});var v=l.childOfName("pageText"),x=o.get("pageFormatter"),A=s.pageIndex,w=A!=null?A+1:0,E=s.pageCount;v&&x&&v.setStyle("text",isString(x)?x.replace("{current}",w==null?"":w+"").replace("{total}",E==null?"":E+""):x({current:w,total:E}))},t.prototype._getPageInfo=function(o){var s=o.get("scrollDataIndex",!0),l=this.getContentGroup(),v=this._containerGroup.__rectSize,x=o.getOrient().index,A=WH[x],w=XY[x],E=this._findTargetItemIndex(s),C=l.children(),R=C[E],$=C.length,V=$?1:0,z={contentPosition:[l.x,l.y],pageCount:V,pageIndex:V-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!R)return z;var F=X(R);z.contentPosition[x]=-F.s;for(var B=E+1,W=F,Y=F,Z=null;B<=$;++B)Z=X(C[B]),(!Z&&Y.e>W.s+v||Z&&!ae(Z,W.s))&&(Y.i>W.i?W=Y:W=Z,W&&(z.pageNextDataIndex==null&&(z.pageNextDataIndex=W.i),++z.pageCount)),Y=Z;for(var B=E-1,W=F,Y=F,Z=null;B>=-1;--B)Z=X(C[B]),(!Z||!ae(Y,Z.s))&&W.i<Y.i&&(Y=W,z.pagePrevDataIndex==null&&(z.pagePrevDataIndex=W.i),++z.pageCount,++z.pageIndex),W=Z;return z;function X(ie){if(ie){var oe=ie.getBoundingRect(),le=oe[w]+ie[w];return{s:le,e:le+oe[A],i:ie.__legendDataIndex}}}function ae(ie,oe){return ie.e>=oe&&ie.s<=oe+v}},t.prototype._findTargetItemIndex=function(o){if(!this._showController)return 0;var s,l=this.getContentGroup(),v;return l.eachChild(function(x,A){var w=x.__legendDataIndex;v==null&&w!=null&&(v=A),w===o&&(s=A)}),s??v},t.type="legend.scroll",t}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(r){r.registerAction("legendScroll","legendscroll",function(t,o){var s=t.scrollDataIndex;s!=null&&o.eachComponent({mainType:"legend",subType:"scroll",query:t},function(l){l.setScrollDataIndex(s)})})}function install$7(r){use$1(install$8),r.registerComponentModel(ScrollableLegendModel$1),r.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(r)}function install$6(r){use$1(install$8),use$1(install$7)}var InsideZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.inside",t.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord(r,t,o){inner(r).coordSysRecordMap.each(function(s){var l=s.dataZoomInfoMap.get(t.uid);l&&(l.getRange=o)})}function disposeCoordSysRecordIfNeeded(r,t){for(var o=inner(r).coordSysRecordMap,s=o.keys(),l=0;l<s.length;l++){var v=s[l],x=o.get(v),A=x.dataZoomInfoMap;if(A){var w=t.uid,E=A.get(w);E&&(A.removeKey(w),A.keys().length||disposeCoordSysRecord(o,x))}}}function disposeCoordSysRecord(r,t){if(t){r.removeKey(t.model.uid);var o=t.controller;o&&o.dispose()}}function createCoordSysRecord(r,t){var o={model:t,containsPoint:curry$1(containsPoint,t),dispatchAction:curry$1(dispatchAction,r),dataZoomInfoMap:null,controller:null},s=o.controller=new RoamController$1(r.getZr());return each$c(["pan","zoom","scrollMove"],function(l){s.on(l,function(v){var x=[];o.dataZoomInfoMap.each(function(A){if(v.isAvailableBehavior(A.model.option)){var w=(A.getRange||{})[l],E=w&&w(A.dzReferCoordSysInfo,o.model.mainType,o.controller,v);!A.model.get("disabled",!0)&&E&&x.push({dataZoomId:A.model.id,start:E[0],end:E[1]})}}),x.length&&o.dispatchAction(x)})}),o}function dispatchAction(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function containsPoint(r,t,o,s){return r.coordinateSystem.containPoint([o,s])}function mergeControllerParams(r){var t,o="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return r.each(function(v){var x=v.model,A=x.get("disabled",!0)?!1:x.get("zoomLock",!0)?"move":!0;s[o+A]>s[o+t]&&(t=A),l=l&&x.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}function installDataZoomRoamProcessor(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,o){var s=inner(o),l=s.coordSysRecordMap||(s.coordSysRecordMap=createHashMap());l.each(function(v){v.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(v){var x=collectReferCoordSysModelInfo(v);each$c(x.infoList,function(A){var w=A.model.uid,E=l.get(w)||l.set(w,createCoordSysRecord(o,A.model)),C=E.dataZoomInfoMap||(E.dataZoomInfoMap=createHashMap());C.set(v.uid,{dzReferCoordSysInfo:A,model:v,getRange:null})})}),l.each(function(v){var x=v.controller,A,w=v.dataZoomInfoMap;if(w){var E=w.keys()[0];E!=null&&(A=w.get(E))}if(!A){disposeCoordSysRecord(l,v);return}var C=mergeControllerParams(w);x.enable(C.controlType,C.opt),x.setPointerChecker(v.containsPoint),createOrUpdate(v,"dispatchAction",A.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type="dataZoom.inside",o}return t.prototype.render=function(o,s,l){if(r.prototype.render.apply(this,arguments),o.noTarget()){this._clear();return}this.range=o.getPercentRange(),setViewInfoToCoordSysRecord(l,o,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DataZoomView$1),getRangeHandlers={zoom:function(r,t,o,s){var l=this.range,v=l.slice(),x=r.axisModels[0];if(x){var A=getDirectionInfo[t](null,[s.originX,s.originY],x,o,r),w=(A.signal>0?A.pixelStart+A.pixelLength-A.pixel:A.pixel-A.pixelStart)/A.pixelLength*(v[1]-v[0])+v[0],E=Math.max(1/s.scale,0);v[0]=(v[0]-w)*E+w,v[1]=(v[1]-w)*E+w;var C=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,v,[0,100],0,C.minSpan,C.maxSpan),this.range=v,l[0]!==v[0]||l[1]!==v[1])return v}},pan:makeMover(function(r,t,o,s,l,v){var x=getDirectionInfo[s]([v.oldX,v.oldY],[v.newX,v.newY],t,l,o);return x.signal*(r[1]-r[0])*x.pixel/x.pixelLength}),scrollMove:makeMover(function(r,t,o,s,l,v){var x=getDirectionInfo[s]([0,0],[v.scrollDelta,v.scrollDelta],t,l,o);return x.signal*(r[1]-r[0])*v.scrollDelta})};function makeMover(r){return function(t,o,s,l){var v=this.range,x=v.slice(),A=t.axisModels[0];if(A){var w=r(x,A,t,o,s,l);if(sliderMove(w,x,[0,100],"all"),this.range=x,v[0]!==x[0]||v[1]!==x[1])return x}}}var getDirectionInfo={grid:function(r,t,o,s,l){var v=o.axis,x={},A=l.model.coordinateSystem.getRect();return r=r||[0,0],v.dim==="x"?(x.pixel=t[0]-r[0],x.pixelLength=A.width,x.pixelStart=A.x,x.signal=v.inverse?1:-1):(x.pixel=t[1]-r[1],x.pixelLength=A.height,x.pixelStart=A.y,x.signal=v.inverse?-1:1),x},polar:function(r,t,o,s,l){var v=o.axis,x={},A=l.model.coordinateSystem,w=A.getRadiusAxis().getExtent(),E=A.getAngleAxis().getExtent();return r=r?A.pointToCoord(r):[0,0],t=A.pointToCoord(t),o.mainType==="radiusAxis"?(x.pixel=t[0]-r[0],x.pixelLength=w[1]-w[0],x.pixelStart=w[0],x.signal=v.inverse?1:-1):(x.pixel=t[1]-r[1],x.pixelLength=E[1]-E[0],x.pixelStart=E[0],x.signal=v.inverse?-1:1),x},singleAxis:function(r,t,o,s,l){var v=o.axis,x=l.model.coordinateSystem.getRect(),A={};return r=r||[0,0],v.orient==="horizontal"?(A.pixel=t[0]-r[0],A.pixelLength=x.width,A.pixelStart=x.x,A.signal=v.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=x.height,A.pixelStart=x.y,A.signal=v.inverse?-1:1),A}};const InsideZoomView$1=InsideZoomView;function install$5(r){installCommon$1(r),r.registerComponentModel(InsideZoomModel$1),r.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(r)}var SliderZoomModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._displayables={},o}return t.prototype.init=function(o,s){this.api=s,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},t.prototype.render=function(o,s,l,v){if(r.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",o.get("throttle"),"fixRate"),this._orient=o.getOrient(),o.get("show")===!1){this.group.removeAll();return}if(o.noTarget()){this._clear(),this.group.removeAll();return}(!v||v.type!=="dataZoom"||v.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var o=this.api.getZr();o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var o=this.group;o.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),o.add(s),this._positionGroup()},t.prototype._resetLocation=function(){var o=this.dataZoomModel,s=this.api,l=o.get("brushSelect"),v=l?DEFAULT_MOVE_HANDLE_SIZE:0,x=this._findCoordRect(),A={width:s.getWidth(),height:s.getHeight()},w=this._orient===HORIZONTAL?{right:A.width-x.x-x.width,top:A.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-v,width:x.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:x.y,width:DEFAULT_FILLER_SIZE,height:x.height},E=getLayoutParams(o.option);each$c(["right","top","width","height"],function(R){E[R]==="ph"&&(E[R]=w[R])});var C=getLayoutRect(E,A);this._location={x:C.x,y:C.y},this._size=[C.width,C.height],this._orient===VERTICAL&&this._size.reverse()},t.prototype._positionGroup=function(){var o=this.group,s=this._location,l=this._orient,v=this.dataZoomModel.getFirstTargetAxisModel(),x=v&&v.get("inverse"),A=this._displayables.sliderGroup,w=(this._dataShadowInfo||{}).otherAxisInverse;A.attr(l===HORIZONTAL&&!x?{scaleY:w?1:-1,scaleX:1}:l===HORIZONTAL&&x?{scaleY:w?1:-1,scaleX:-1}:l===VERTICAL&&!x?{scaleY:w?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:w?-1:1,scaleX:-1,rotation:Math.PI/2});var E=o.getBoundingRect([A]);o.x=s.x-E.x,o.y=s.y-E.y,o.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var o=this.dataZoomModel,s=this._size,l=this._displayables.sliderGroup,v=o.get("brushSelect");l.add(new Rect({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:o.get("backgroundColor")},z2:-40}));var x=new Rect({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),A=this.api.getZr();v?(x.on("mousedown",this._onBrushStart,this),x.cursor="crosshair",A.on("mousemove",this._onBrush),A.on("mouseup",this._onBrushEnd)):(A.off("mousemove",this._onBrush),A.off("mouseup",this._onBrushEnd)),l.add(x)},t.prototype._renderDataShadow=function(){var o=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!o)return;var s=this._size,l=this._shadowSize||[],v=o.series,x=v.getRawData(),A=v.getShadowDim&&v.getShadowDim(),w=A&&x.getDimensionInfo(A)?v.getShadowDim():o.otherDim;if(w==null)return;var E=this._shadowPolygonPts,C=this._shadowPolylinePts;if(x!==this._shadowData||w!==this._shadowDim||s[0]!==l[0]||s[1]!==l[1]){var R=x.getDataExtent(w),$=(R[1]-R[0])*.3;R=[R[0]-$,R[1]+$];var V=[0,s[1]],z=[0,s[0]],F=[[s[0],0],[0,0]],B=[],W=z[1]/(x.count()-1),Y=0,Z=Math.round(x.count()/s[0]),X;x.each([w],function(ve,xe){if(Z>0&&xe%Z){Y+=W;return}var _e=ve==null||isNaN(ve)||ve==="",Te=_e?0:linearMap$2(ve,R,V,!0);_e&&!X&&xe?(F.push([F[F.length-1][0],0]),B.push([B[B.length-1][0],0])):!_e&&X&&(F.push([Y,0]),B.push([Y,0])),F.push([Y,Te]),B.push([Y,Te]),Y+=W,X=_e}),E=this._shadowPolygonPts=F,C=this._shadowPolylinePts=B}this._shadowData=x,this._shadowDim=w,this._shadowSize=[s[0],s[1]];var ae=this.dataZoomModel;function ie(ve){var xe=ae.getModel(ve?"selectedDataBackground":"dataBackground"),_e=new Group$3,Te=new Polygon$1({shape:{points:E},segmentIgnoreThreshold:1,style:xe.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Ee=new Polyline$1({shape:{points:C},segmentIgnoreThreshold:1,style:xe.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return _e.add(Te),_e.add(Ee),_e}for(var oe=0;oe<3;oe++){var le=ie(oe===1);this._displayables.sliderGroup.add(le),this._displayables.dataShadowSegs.push(le)}},t.prototype._prepareDataShadowInfo=function(){var o=this.dataZoomModel,s=o.get("showDataShadow");if(s!==!1){var l,v=this.ecModel;return o.eachTargetAxis(function(x,A){var w=o.getAxisProxy(x,A).getTargetSeriesModels();each$c(w,function(E){if(!l&&!(s!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,E.get("type"))<0)){var C=v.getComponent(getAxisMainType(x),A).axis,R=getOtherDim(x),$,V=E.coordinateSystem;R!=null&&V.getOtherAxis&&($=V.getOtherAxis(C).inverse),R=E.getData().mapDimension(R),l={thisAxis:C,series:E,thisDim:x,otherDim:R,otherAxisInverse:$}}},this)},this),l}},t.prototype._renderHandle=function(){var o=this.group,s=this._displayables,l=s.handles=[null,null],v=s.handleLabels=[null,null],x=this._displayables.sliderGroup,A=this._size,w=this.dataZoomModel,E=this.api,C=w.get("borderRadius")||0,R=w.get("brushSelect"),$=s.filler=new Rect({silent:R,style:{fill:w.get("fillerColor")},textConfig:{position:"inside"}});x.add($),x.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:A[0],height:A[1],r:C},style:{stroke:w.get("dataBackgroundColor")||w.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(Z){var X=w.get("handleIcon");!symbolBuildProxies[X]&&X.indexOf("path://")<0&&X.indexOf("image://")<0&&(X="path://"+X);var ae=createSymbol(X,-1,0,2,2,null,!0);ae.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,Z),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var ie=ae.getBoundingRect(),oe=w.get("handleSize");this._handleHeight=parsePercent(oe,this._size[1]),this._handleWidth=ie.width/ie.height*this._handleHeight,ae.setStyle(w.getModel("handleStyle").getItemStyle()),ae.style.strokeNoScale=!0,ae.rectHover=!0,ae.ensureState("emphasis").style=w.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(ae);var le=w.get("handleColor");le!=null&&(ae.style.fill=le),x.add(l[Z]=ae);var ve=w.getModel("textStyle");o.add(v[Z]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(ve,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:ve.getTextColor(),font:ve.getFont()}),z2:10}))},this);var V=$;if(R){var z=parsePercent(w.get("moveHandleSize"),A[1]),F=s.moveHandle=new Rect$2({style:w.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:A[1]-.5,height:z}}),B=z*.8,W=s.moveHandleIcon=createSymbol(w.get("moveHandleIcon"),-B/2,-B/2,B,B,"#fff",!0);W.silent=!0,W.y=A[1]+z/2-.5,F.ensureState("emphasis").style=w.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var Y=Math.min(A[1]/2,Math.max(z,10));V=s.moveZone=new Rect$2({invisible:!0,shape:{y:A[1]-Y,height:z+Y}}),V.on("mouseover",function(){E.enterEmphasis(F)}).on("mouseout",function(){E.leaveEmphasis(F)}),x.add(F),x.add(W),x.add(V)}V.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var o=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[linearMap$2(o[0],[0,100],s,!0),linearMap$2(o[1],[0,100],s,!0)]},t.prototype._updateInterval=function(o,s){var l=this.dataZoomModel,v=this._handleEnds,x=this._getViewExtent(),A=l.findRepresentativeAxisProxy().getMinMaxSpan(),w=[0,100];sliderMove(s,v,x,l.get("zoomLock")?"all":o,A.minSpan!=null?linearMap$2(A.minSpan,w,x,!0):null,A.maxSpan!=null?linearMap$2(A.maxSpan,w,x,!0):null);var E=this._range,C=this._range=asc$2([linearMap$2(v[0],x,w,!0),linearMap$2(v[1],x,w,!0)]);return!E||E[0]!==C[0]||E[1]!==C[1]},t.prototype._updateView=function(o){var s=this._displayables,l=this._handleEnds,v=asc$2(l.slice()),x=this._size;each$c([0,1],function(V){var z=s.handles[V],F=this._handleHeight;z.attr({scaleX:F/2,scaleY:F/2,x:l[V]+(V?-1:1),y:x[1]/2-F/2})},this),s.filler.setShape({x:v[0],y:0,width:v[1]-v[0],height:x[1]});var A={x:v[0],width:v[1]-v[0]};s.moveHandle&&(s.moveHandle.setShape(A),s.moveZone.setShape(A),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",A.x+A.width/2));for(var w=s.dataShadowSegs,E=[0,v[0],v[1],x[0]],C=0;C<w.length;C++){var R=w[C],$=R.getClipPath();$||($=new Rect$2,R.setClipPath($)),$.setShape({x:E[C],y:0,width:E[C+1]-E[C],height:x[1]})}this._updateDataInfo(o)},t.prototype._updateDataInfo=function(o){var s=this.dataZoomModel,l=this._displayables,v=l.handleLabels,x=this._orient,A=["",""];if(s.get("showDetail")){var w=s.findRepresentativeAxisProxy();if(w){var E=w.getAxisModel().axis,C=this._range,R=o?w.calculateDataWindow({start:C[0],end:C[1]}).valueWindow:w.getDataValueWindow();A=[this._formatLabel(R[0],E),this._formatLabel(R[1],E)]}}var $=asc$2(this._handleEnds.slice());V.call(this,0),V.call(this,1);function V(z){var F=getTransform$1(l.handles[z].parent,this.group),B=transformDirection(z===0?"right":"left",F),W=this._handleWidth/2+LABEL_GAP,Y=applyTransform([$[z]+(z===0?-W:W),this._size[1]/2],F);v[z].setStyle({x:Y[0],y:Y[1],verticalAlign:x===HORIZONTAL?"middle":B,align:x===HORIZONTAL?B:"center",text:A[z]})}},t.prototype._formatLabel=function(o,s){var l=this.dataZoomModel,v=l.get("labelFormatter"),x=l.get("labelPrecision");(x==null||x==="auto")&&(x=s.getPixelPrecision());var A=o==null||isNaN(o)?"":s.type==="category"||s.type==="time"?s.scale.getLabel({value:Math.round(o)}):o.toFixed(Math.min(x,20));return isFunction(v)?v(o,A):isString(v)?v.replace("{value}",A):A},t.prototype._showDataInfo=function(o){o=this._dragging||o;var s=this._displayables,l=s.handleLabels;l[0].attr("invisible",!o),l[1].attr("invisible",!o),s.moveHandle&&this.api[o?"enterEmphasis":"leaveEmphasis"](s.moveHandle,1)},t.prototype._onDragMove=function(o,s,l,v){this._dragging=!0,stop(v.event);var x=this._displayables.sliderGroup.getLocalTransform(),A=applyTransform([s,l],x,!0),w=this._updateInterval(o,A[0]),E=this.dataZoomModel.get("realtime");this._updateView(!E),w&&E&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var o=this.dataZoomModel.get("realtime");!o&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(o){var s=this._size,l=this._displayables.sliderGroup.transformCoordToLocal(o.offsetX,o.offsetY);if(!(l[0]<0||l[0]>s[0]||l[1]<0||l[1]>s[1])){var v=this._handleEnds,x=(v[0]+v[1])/2,A=this._updateInterval("all",l[0]-x);this._updateView(),A&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(o){var s=o.offsetX,l=o.offsetY;this._brushStart=new Point$1(s,l),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(o){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,!!s){s.attr("ignore",!0);var l=s.shape,v=+new Date;if(!(v-this._brushStartTime<200&&Math.abs(l.width)<5)){var x=this._getViewExtent(),A=[0,100];this._range=asc$2([linearMap$2(l.x,x,A,!0),linearMap$2(l.x+l.width,x,A,!0)]),this._handleEnds=[l.x,l.x+l.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(o){this._brushing&&(stop(o.event),this._updateBrushRect(o.offsetX,o.offsetY))},t.prototype._updateBrushRect=function(o,s){var l=this._displayables,v=this.dataZoomModel,x=l.brushRect;x||(x=l.brushRect=new Rect({silent:!0,style:v.getModel("brushStyle").getItemStyle()}),l.sliderGroup.add(x)),x.attr("ignore",!1);var A=this._brushStart,w=this._displayables.sliderGroup,E=w.transformCoordToLocal(o,s),C=w.transformCoordToLocal(A.x,A.y),R=this._size;E[0]=Math.max(Math.min(R[0],E[0]),0),x.setShape({x:C[0],y:0,width:E[0]-C[0],height:R[1]})},t.prototype._dispatchZoomAction=function(o){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:o?REALTIME_ANIMATION_CONFIG:null,start:s[0],end:s[1]})},t.prototype._findCoordRect=function(){var o,s=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!o&&s.length){var l=s[0].model.coordinateSystem;o=l.getRect&&l.getRect()}if(!o){var v=this.api.getWidth(),x=this.api.getHeight();o={x:v*.2,y:x*.2,width:v*.6,height:x*.6}}return o},t.type="dataZoom.slider",t}(DataZoomView$1);function getOtherDim(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function getCursor$1(r){return r==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4(r){r.registerComponentModel(SliderZoomModel$1),r.registerComponentView(SliderZoomView$1),installCommon$1(r)}function install$3(r){use$1(install$5),use$1(install$4)}var visualDefault={get:function(r,t,o){var s=clone$3((defaultOption[r]||{})[t]);return o&&isArray$1(s)?s[s.length-1]:s}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.stateList=["inRange","outOfRange"],o.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],o.layoutMode={type:"box",ignoreSize:!0},o.dataBound=[-1/0,1/0],o.targetVisuals={},o.controllerVisuals={},o}return t.prototype.init=function(o,s,l){this.mergeDefaultAndTheme(o,l)},t.prototype.optionUpdated=function(o,s){var l=this.option;!s&&replaceVisualOption(l,o,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(o){var s=this.stateList;o=bind$1(o,this),this.controllerVisuals=createVisualMappings(this.option.controller,s,o),this.targetVisuals=createVisualMappings(this.option.target,s,o)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var o=this.option.seriesIndex,s=[];return o==null||o==="all"?this.ecModel.eachSeries(function(l,v){s.push(v)}):s=normalizeToArray(o),s},t.prototype.eachTargetSeries=function(o,s){each$c(this.getTargetSeriesIndices(),function(l){var v=this.ecModel.getSeriesByIndex(l);v&&o.call(s,v)},this)},t.prototype.isTargetSeries=function(o){var s=!1;return this.eachTargetSeries(function(l){l===o&&(s=!0)}),s},t.prototype.formatValueText=function(o,s,l){var v=this.option,x=v.precision,A=this.dataBound,w=v.formatter,E;l=l||["<",">"],isArray$1(o)&&(o=o.slice(),E=!0);var C=s?o:E?[R(o[0]),R(o[1])]:R(o);if(isString(w))return w.replace("{value}",E?C[0]:C).replace("{value2}",E?C[1]:C);if(isFunction(w))return E?w(o[0],o[1]):w(o);if(E)return o[0]===A[0]?l[0]+" "+C[1]:o[1]===A[1]?l[1]+" "+C[0]:C[0]+" - "+C[1];return C;function R($){return $===A[0]?"min":$===A[1]?"max":(+$).toFixed(Math.min(x,20))}},t.prototype.resetExtent=function(){var o=this.option,s=asc([o.min,o.max]);this._dataExtent=s},t.prototype.getDataDimensionIndex=function(o){var s=this.option.dimension;if(s!=null)return o.getDimensionIndex(s);for(var l=o.dimensions,v=l.length-1;v>=0;v--){var x=l[v],A=o.getDimensionInfo(x);if(!A.isCalculationCoord)return A.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var o=this.ecModel,s=this.option,l={inRange:s.inRange,outOfRange:s.outOfRange},v=s.target||(s.target={}),x=s.controller||(s.controller={});merge(v,l),merge(x,l);var A=this.isCategory();w.call(this,v),w.call(this,x),E.call(this,v,"inRange","outOfRange"),C.call(this,x);function w(R){isArray(s.color)&&!R.inRange&&(R.inRange={color:s.color.slice().reverse()}),R.inRange=R.inRange||{color:o.get("gradientColor")}}function E(R,$,V){var z=R[$],F=R[V];z&&!F&&(F=R[V]={},each$2(z,function(B,W){if(VisualMapping$1.isValidType(W)){var Y=visualDefault$1.get(W,"inactive",A);Y!=null&&(F[W]=Y,W==="color"&&!F.hasOwnProperty("opacity")&&!F.hasOwnProperty("colorAlpha")&&(F.opacity=[0,0]))}}))}function C(R){var $=(R.inRange||{}).symbol||(R.outOfRange||{}).symbol,V=(R.inRange||{}).symbolSize||(R.outOfRange||{}).symbolSize,z=this.get("inactiveColor"),F=this.getItemSymbol(),B=F||"roundRect";each$2(this.stateList,function(W){var Y=this.itemSize,Z=R[W];Z||(Z=R[W]={color:A?z:[z]}),Z.symbol==null&&(Z.symbol=$&&clone$3($)||(A?B:[B])),Z.symbolSize==null&&(Z.symbolSize=V&&clone$3(V)||(A?Y[0]:[Y[0],Y[0]])),Z.symbol=mapVisual(Z.symbol,function(ie){return ie==="none"?B:ie});var X=Z.symbolSize;if(X!=null){var ae=-1/0;eachVisual(X,function(ie){ie>ae&&(ae=ie)}),Z.symbolSize=mapVisual(X,function(ie){return linearMap$1(ie,[0,ae],[0,Y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(o){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(o){return null},t.prototype.getVisualMeta=function(o){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.optionUpdated=function(o,s){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(l){l.mappingMethod="linear",l.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var o=this.itemSize;(o[0]==null||isNaN(o[0]))&&(o[0]=DEFAULT_BAR_BOUND[0]),(o[1]==null||isNaN(o[1]))&&(o[1]=DEFAULT_BAR_BOUND[1])},t.prototype._resetRange=function(){var o=this.getExtent(),s=this.option.range;!s||s.auto?(o.auto=1,this.option.range=o):isArray$1(s)&&(s[0]>s[1]&&s.reverse(),s[0]=Math.max(s[0],o[0]),s[1]=Math.min(s[1],o[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(o){var s=this.option.controller[o].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},t.prototype.setSelected=function(o){this.option.range=o.slice(),this._resetRange()},t.prototype.getSelected=function(){var o=this.getExtent(),s=asc$2((this.get("range")||[]).slice());return s[0]>o[1]&&(s[0]=o[1]),s[1]>o[1]&&(s[1]=o[1]),s[0]<o[0]&&(s[0]=o[0]),s[1]<o[0]&&(s[1]=o[0]),s},t.prototype.getValueState=function(o){var s=this.option.range,l=this.getExtent();return(s[0]<=l[0]||s[0]<=o)&&(s[1]>=l[1]||o<=s[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(o){var s=[];return this.eachTargetSeries(function(l){var v=[],x=l.getData();x.each(this.getDataDimensionIndex(x),function(A,w){o[0]<=A&&A<=o[1]&&v.push(w)},this),s.push({seriesId:l.id,dataIndex:v})},this),s},t.prototype.getVisualMeta=function(o){var s=getColorStopValues(this,"outOfRange",this.getExtent()),l=getColorStopValues(this,"inRange",this.option.range.slice()),v=[];function x(V,z){v.push({value:V,color:o(V,z)})}for(var A=0,w=0,E=l.length,C=s.length;w<C&&(!l.length||s[w]<=l[0]);w++)s[w]<l[A]&&x(s[w],"outOfRange");for(var R=1;A<E;A++,R=0)R&&v.length&&x(l[A],"outOfRange"),x(l[A],"inRange");for(var R=1;w<C;w++)(!l.length||l[l.length-1]<s[w])&&(R&&(v.length&&x(v[v.length-1].value,"outOfRange"),R=0),x(s[w],"outOfRange"));var $=v.length;return{stops:v,outerColors:[$?v[0].color:"transparent",$?v[$-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(VisualMapModel$1);function getColorStopValues(r,t,o){if(o[0]===o[1])return o.slice();for(var s=200,l=(o[1]-o[0])/s,v=o[0],x=[],A=0;A<=s&&v<o[1];A++)x.push(v),v+=l;return x.push(o[1]),x}const ContinuousModel$1=ContinuousModel;var VisualMapView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o.autoPositionValues={left:1,right:1,top:1,bottom:1},o}return t.prototype.init=function(o,s){this.ecModel=o,this.api=s},t.prototype.render=function(o,s,l,v){if(this.visualMapModel=o,o.get("show")===!1){this.group.removeAll();return}this.doRender(o,s,l,v)},t.prototype.renderBackground=function(o){var s=this.visualMapModel,l=normalizeCssArray(s.get("padding")||0),v=o.getBoundingRect();o.add(new Rect$2({z2:-1,silent:!0,shape:{x:v.x-l[3],y:v.y-l[0],width:v.width+l[3]+l[1],height:v.height+l[0]+l[2]},style:{fill:s.get("backgroundColor"),stroke:s.get("borderColor"),lineWidth:s.get("borderWidth")}}))},t.prototype.getControllerVisual=function(o,s,l){l=l||{};var v=l.forceState,x=this.visualMapModel,A={};if(s==="color"){var w=x.get("contentColor");A.color=w}function E(V){return A[V]}function C(V,z){A[V]=z}var R=x.controllerVisuals[v||x.getValueState(o)],$=VisualMapping$1.prepareVisualTypes(R);return each$c($,function(V){var z=R[V];l.convertOpacityToAlpha&&V==="opacity"&&(V="colorAlpha",z=R.__alphaForOpacity),VisualMapping$1.dependsOn(V,s)&&z&&z.applyVisual(o,E,C)}),A[s]},t.prototype.positionGroup=function(o){var s=this.visualMapModel,l=this.api;positionElement(o,s.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})},t.prototype.doRender=function(o,s,l,v){},t.type="visualMap",t}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign(r,t,o){var s=r.option,l=s.align;if(l!=null&&l!=="auto")return l;for(var v={width:t.getWidth(),height:t.getHeight()},x=s.orient==="horizontal"?1:0,A=paramsSet[x],w=[0,null,10],E={},C=0;C<3;C++)E[paramsSet[1-x][C]]=w[C],E[A[C]]=C===2?o[0]:s[A[C]];var R=[["x","width",3],["y","height",0]][x],$=getLayoutRect(E,v,s.padding);return A[($.margin[R[2]]||0)+$[R[0]]+$[R[1]]*.5<v[R[1]]*.5?0:1]}function makeHighDownBatch(r,t){return each$c(r||[],function(o){o.dataIndex!=null&&(o.dataIndexInside=o.dataIndex,o.dataIndex=null),o.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var linearMap=linearMap$2,each$1=each$c,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._shapes={},o._dataInterval=[],o._handleEnds=[],o._hoverLinkDataIndices=[],o}return t.prototype.doRender=function(o,s,l,v){this._api=l,(!v||v.type!=="selectDataRange"||v.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var o=this.visualMapModel,s=this.group;this._orient=o.get("orient"),this._useHandle=o.get("calculable"),this._resetInterval(),this._renderBar(s);var l=o.get("text");this._renderEndsText(s,l,0),this._renderEndsText(s,l,1),this._updateView(!0),this.renderBackground(s),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(s)},t.prototype._renderEndsText=function(o,s,l){if(s){var v=s[1-l];v=v!=null?v+"":"";var x=this.visualMapModel,A=x.get("textGap"),w=x.itemSize,E=this._shapes.mainGroup,C=this._applyTransform([w[0]/2,l===0?-A:w[1]+A],E),R=this._applyTransform(l===0?"bottom":"top",E),$=this._orient,V=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(V,{x:C[0],y:C[1],verticalAlign:$==="horizontal"?"middle":R,align:$==="horizontal"?R:"center",text:v})}))}},t.prototype._renderBar=function(o){var s=this.visualMapModel,l=this._shapes,v=s.itemSize,x=this._orient,A=this._useHandle,w=getItemAlign(s,this.api,v),E=l.mainGroup=this._createBarGroup(w),C=new Group$3;E.add(C),C.add(l.outOfRange=createPolygon()),C.add(l.inRange=createPolygon(null,A?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),C.setClipPath(new Rect$2({shape:{x:0,y:0,width:v[0],height:v[1],r:3}}));var R=s.textStyleModel.getTextRect("国"),$=mathMax(R.width,R.height);A&&(l.handleThumbs=[],l.handleLabels=[],l.handleLabelPoints=[],this._createHandle(s,E,0,v,$,x),this._createHandle(s,E,1,v,$,x)),this._createIndicator(s,E,v,$,x),o.add(E)},t.prototype._createHandle=function(o,s,l,v,x,A){var w=bind$1(this._dragHandle,this,l,!1),E=bind$1(this._dragHandle,this,l,!0),C=parsePercent$1(o.get("handleSize"),v[0]),R=createSymbol(o.get("handleIcon"),-C/2,-C/2,C,C,null,!0),$=getCursor(this._orient);R.attr({cursor:$,draggable:!0,drift:w,ondragend:E,onmousemove:function(W){stop(W.event)}}),R.x=v[0]/2,R.useStyle(o.getModel("handleStyle").getItemStyle()),R.setStyle({strokeNoScale:!0,strokeFirst:!0}),R.style.lineWidth*=2,R.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(R,!0),s.add(R);var V=this.visualMapModel.textStyleModel,z=new ZRText$1({cursor:$,draggable:!0,drift:w,onmousemove:function(W){stop(W.event)},ondragend:E,style:createTextStyle$1(V,{x:0,y:0,text:""})});z.ensureState("blur").style={opacity:.1},z.stateTransition={duration:200},this.group.add(z);var F=[C,0],B=this._shapes;B.handleThumbs[l]=R,B.handleLabelPoints[l]=F,B.handleLabels[l]=z},t.prototype._createIndicator=function(o,s,l,v,x){var A=parsePercent$1(o.get("indicatorSize"),l[0]),w=createSymbol(o.get("indicatorIcon"),-A/2,-A/2,A,A,null,!0);w.attr({cursor:"move",invisible:!0,silent:!0,x:l[0]/2});var E=o.getModel("indicatorStyle").getItemStyle();if(w instanceof ZRImage$1){var C=w.style;w.useStyle(extend({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},E))}else w.useStyle(E);s.add(w);var R=this.visualMapModel.textStyleModel,$=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(R,{x:0,y:0,text:""})});this.group.add($);var V=[(x==="horizontal"?v/2:HOVER_LINK_OUT)+l[0]/2,0],z=this._shapes;z.indicator=w,z.indicatorLabel=$,z.indicatorLabelPoint=V,this._firstShowIndicator=!0},t.prototype._dragHandle=function(o,s,l,v){if(this._useHandle){if(this._dragging=!s,!s){var x=this._applyTransform([l,v],this._shapes.mainGroup,!0);this._updateInterval(o,x[1]),this._hideIndicator(),this._updateView()}s===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),s?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[o],!1)}},t.prototype._resetInterval=function(){var o=this.visualMapModel,s=this._dataInterval=o.getSelected(),l=o.getExtent(),v=[0,o.itemSize[1]];this._handleEnds=[linearMap(s[0],l,v,!0),linearMap(s[1],l,v,!0)]},t.prototype._updateInterval=function(o,s){s=s||0;var l=this.visualMapModel,v=this._handleEnds,x=[0,l.itemSize[1]];sliderMove(s,v,x,o,0);var A=l.getExtent();this._dataInterval=[linearMap(v[0],x,A,!0),linearMap(v[1],x,A,!0)]},t.prototype._updateView=function(o){var s=this.visualMapModel,l=s.getExtent(),v=this._shapes,x=[0,s.itemSize[1]],A=o?x:this._handleEnds,w=this._createBarVisual(this._dataInterval,l,A,"inRange"),E=this._createBarVisual(l,l,x,"outOfRange");v.inRange.setStyle({fill:w.barColor}).setShape("points",w.barPoints),v.outOfRange.setStyle({fill:E.barColor}).setShape("points",E.barPoints),this._updateHandle(A,w)},t.prototype._createBarVisual=function(o,s,l,v){var x={forceState:v,convertOpacityToAlpha:!0},A=this._makeColorGradient(o,x),w=[this.getControllerVisual(o[0],"symbolSize",x),this.getControllerVisual(o[1],"symbolSize",x)],E=this._createBarPoints(l,w);return{barColor:new LinearGradient$1(0,0,0,1,A),barPoints:E,handlesColor:[A[0].color,A[A.length-1].color]}},t.prototype._makeColorGradient=function(o,s){var l=100,v=[],x=(o[1]-o[0])/l;v.push({color:this.getControllerVisual(o[0],"color",s),offset:0});for(var A=1;A<l;A++){var w=o[0]+x*A;if(w>o[1])break;v.push({color:this.getControllerVisual(w,"color",s),offset:A/l})}return v.push({color:this.getControllerVisual(o[1],"color",s),offset:1}),v},t.prototype._createBarPoints=function(o,s){var l=this.visualMapModel.itemSize;return[[l[0]-s[0],o[0]],[l[0],o[0]],[l[0],o[1]],[l[0]-s[1],o[1]]]},t.prototype._createBarGroup=function(o){var s=this._orient,l=this.visualMapModel.get("inverse");return new Group$3(s==="horizontal"&&!l?{scaleX:o==="bottom"?1:-1,rotation:Math.PI/2}:s==="horizontal"&&l?{scaleX:o==="bottom"?-1:1,rotation:-Math.PI/2}:s==="vertical"&&!l?{scaleX:o==="left"?1:-1,scaleY:-1}:{scaleX:o==="left"?1:-1})},t.prototype._updateHandle=function(o,s){if(this._useHandle){var l=this._shapes,v=this.visualMapModel,x=l.handleThumbs,A=l.handleLabels,w=v.itemSize,E=v.getExtent();each$1([0,1],function(C){var R=x[C];R.setStyle("fill",s.handlesColor[C]),R.y=o[C];var $=linearMap(o[C],[0,w[1]],E,!0),V=this.getControllerVisual($,"symbolSize");R.scaleX=R.scaleY=V/w[0],R.x=w[0]-V/2;var z=applyTransform(l.handleLabelPoints[C],getTransform$1(R,this.group));A[C].setStyle({x:z[0],y:z[1],text:v.formatValueText(this._dataInterval[C]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",l.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(o,s,l,v){var x=this.visualMapModel,A=x.getExtent(),w=x.itemSize,E=[0,w[1]],C=this._shapes,R=C.indicator;if(R){R.attr("invisible",!1);var $={convertOpacityToAlpha:!0},V=this.getControllerVisual(o,"color",$),z=this.getControllerVisual(o,"symbolSize"),F=linearMap(o,A,E,!0),B=w[0]-z/2,W={x:R.x,y:R.y};R.y=F,R.x=B;var Y=applyTransform(C.indicatorLabelPoint,getTransform$1(R,this.group)),Z=C.indicatorLabel;Z.attr("invisible",!1);var X=this._applyTransform("left",C.mainGroup),ae=this._orient,ie=ae==="horizontal";Z.setStyle({text:(l||"")+x.formatValueText(s),verticalAlign:ie?X:"middle",align:ie?"center":X});var oe={x:B,y:F,style:{fill:V}},le={style:{x:Y[0],y:Y[1]}};if(x.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var ve={duration:100,easing:"cubicInOut",additive:!0};R.x=W.x,R.y=W.y,R.animateTo(oe,ve),Z.animateTo(le,ve)}else R.attr(oe),Z.attr(le);this._firstShowIndicator=!1;var xe=this._shapes.handleLabels;if(xe)for(var _e=0;_e<xe.length;_e++)this._api.enterBlur(xe[_e])}},t.prototype._enableHoverLinkToSeries=function(){var o=this;this._shapes.mainGroup.on("mousemove",function(s){if(o._hovering=!0,!o._dragging){var l=o.visualMapModel.itemSize,v=o._applyTransform([s.offsetX,s.offsetY],o._shapes.mainGroup,!0,!0);v[1]=mathMin(mathMax(0,v[1]),l[1]),o._doHoverLinkToSeries(v[1],0<=v[0]&&v[0]<=l[0])}}).on("mouseout",function(){o._hovering=!1,!o._dragging&&o._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var o=this.api.getZr();this.visualMapModel.option.hoverLink?(o.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),o.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(o,s){var l=this.visualMapModel,v=l.itemSize;if(l.option.hoverLink){var x=[0,v[1]],A=l.getExtent();o=mathMin(mathMax(x[0],o),x[1]);var w=getHalfHoverLinkSize(l,A,x),E=[o-w,o+w],C=linearMap(o,x,A,!0),R=[linearMap(E[0],x,A,!0),linearMap(E[1],x,A,!0)];E[0]<x[0]&&(R[0]=-1/0),E[1]>x[1]&&(R[1]=1/0),s&&(R[0]===-1/0?this._showIndicator(C,R[1],"< ",w):R[1]===1/0?this._showIndicator(C,R[0],"> ",w):this._showIndicator(C,C,"≈ ",w));var $=this._hoverLinkDataIndices,V=[];(s||useHoverLinkOnHandle(l))&&(V=this._hoverLinkDataIndices=l.findTargetDataIndices(R));var z=compressBatches($,V);this._dispatchHighDown("downplay",makeHighDownBatch(z[0],l)),this._dispatchHighDown("highlight",makeHighDownBatch(z[1],l))}},t.prototype._hoverLinkFromSeriesMouseOver=function(o){var s;if(findEventDispatcher(o.target,function(w){var E=getECData(w);if(E.dataIndex!=null)return s=E,!0},!0),!!s){var l=this.ecModel.getSeriesByIndex(s.seriesIndex),v=this.visualMapModel;if(v.isTargetSeries(l)){var x=l.getData(s.dataType),A=x.getStore().get(v.getDataDimensionIndex(x),s.dataIndex);isNaN(A)||this._showIndicator(A,A)}}},t.prototype._hideIndicator=function(){var o=this._shapes;o.indicator&&o.indicator.attr("invisible",!0),o.indicatorLabel&&o.indicatorLabel.attr("invisible",!0);var s=this._shapes.handleLabels;if(s)for(var l=0;l<s.length;l++)this._api.leaveBlur(s[l])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var o=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(o,this.visualMapModel)),o.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var o=this.api.getZr();o.off("mouseover",this._hoverLinkFromSeriesMouseOver),o.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(o,s,l,v){var x=getTransform$1(s,v?null:this.group);return isArray$1(o)?applyTransform(o,x,l):transformDirection(o,x,l)},t.prototype._dispatchHighDown=function(o,s){s&&s.length&&this.api.dispatchAction({type:o,batch:s})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(VisualMapView$1);function createPolygon(r,t,o,s){return new Polygon$1({shape:{points:r},draggable:!!o,cursor:t,drift:o,onmousemove:function(l){stop(l.event)},ondragend:s})}function getHalfHoverLinkSize(r,t,o){var s=HOVER_LINK_SIZE/2,l=r.get("hoverLinkDataSize");return l&&(s=linearMap(l,t,o,!0)/2),s}function useHoverLinkOnHandle(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function getCursor(r){return r==="vertical"?"ns-resize":"ew-resize"}const ContinuousView$1=ContinuousView;var visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(o){o.setSelected(r.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function(r,t){var o=[];return t.eachComponent("visualMap",function(s){var l=r.pipelineContext;!s.isTargetSeries(r)||l&&l.large||o.push(incrementalApplyVisual(s.stateList,s.targetVisuals,bind$1(s.getValueState,s),s.getDataDimensionIndex(r.getData())))}),o}},{createOnAllSeries:!0,reset:function(r,t){var o=r.getData(),s=[];t.eachComponent("visualMap",function(l){if(l.isTargetSeries(r)){var v=l.getVisualMeta(bind$1(getColorVisual,null,r,l))||{stops:[],outerColors:[]},x=l.getDataDimensionIndex(o);x>=0&&(v.dimension=x,s.push(v))}}),r.getData().setVisual("visualMeta",s)}}];function getColorVisual(r,t,o,s){for(var l=t.targetVisuals[s],v=VisualMapping$1.prepareVisualTypes(l),x={color:getVisualFromData(r.getData(),"color")},A=0,w=v.length;A<w;A++){var E=v[A],C=l[E==="opacity"?"__alphaForOpacity":E];C&&C.applyVisual(o,R,$)}return x.color;function R(V){return x[V]}function $(V,z){x[V]=z}}var each=each$c;function visualMapPreprocessor(r){var t=r&&r.visualMap;isArray$1(t)||(t=t?[t]:[]),each(t,function(o){if(o){has(o,"splitList")&&!has(o,"pieces")&&(o.pieces=o.splitList,delete o.splitList);var s=o.pieces;s&&isArray$1(s)&&each(s,function(l){isObject$3(l)&&(has(l,"start")&&!has(l,"min")&&(l.min=l.start),has(l,"end")&&!has(l,"max")&&(l.max=l.end))})}})}function has(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var installed=!1;function installCommon(r){installed||(installed=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(visualMapPreprocessor))}function install$2(r){r.registerComponentModel(ContinuousModel$1),r.registerComponentView(ContinuousView$1),installCommon(r)}var PiecewiseModel=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o._pieceList=[],o}return t.prototype.optionUpdated=function(o,s){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var l=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(o,s);var v=this.option.categories;this.resetVisual(function(x,A){l==="categories"?(x.mappingMethod="category",x.categories=clone$3(v)):(x.dataExtent=this.getExtent(),x.mappingMethod="piecewise",x.pieceList=map$2(this._pieceList,function(w){return w=clone$3(w),A!=="inRange"&&(w.visual=null),w}))})},t.prototype.completeVisualOption=function(){var o=this.option,s={},l=VisualMapping$1.listVisualTypes(),v=this.isCategory();each$c(o.pieces,function(A){each$c(l,function(w){A.hasOwnProperty(w)&&(s[w]=1)})}),each$c(s,function(A,w){var E=!1;each$c(this.stateList,function(C){E=E||x(o,C,w)||x(o.target,C,w)},this),!E&&each$c(this.stateList,function(C){(o[C]||(o[C]={}))[w]=visualDefault$1.get(w,C==="inRange"?"active":"inactive",v)})},this);function x(A,w,E){return A&&A[w]&&A[w].hasOwnProperty(E)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(o,s){var l=this.option,v=this._pieceList,x=(s?l:o).selected||{};if(l.selected=x,each$c(v,function(w,E){var C=this.getSelectedMapKey(w);x.hasOwnProperty(C)||(x[C]=!0)},this),l.selectedMode==="single"){var A=!1;each$c(v,function(w,E){var C=this.getSelectedMapKey(w);x[C]&&(A?x[C]=!1:A=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(o){return this._mode==="categories"?o.value+"":o.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var o=this.option;return o.pieces&&o.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(o){this.option.selected=clone$3(o)},t.prototype.getValueState=function(o){var s=VisualMapping$1.findPieceIndex(o,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(o){var s=[],l=this._pieceList;return this.eachTargetSeries(function(v){var x=[],A=v.getData();A.each(this.getDataDimensionIndex(A),function(w,E){var C=VisualMapping$1.findPieceIndex(w,l);C===o&&x.push(E)},this),s.push({seriesId:v.id,dataIndex:x})},this),s},t.prototype.getRepresentValue=function(o){var s;if(this.isCategory())s=o.value;else if(o.value!=null)s=o.value;else{var l=o.interval||[];s=l[0]===-1/0&&l[1]===1/0?0:(l[0]+l[1])/2}return s},t.prototype.getVisualMeta=function(o){if(this.isCategory())return;var s=[],l=["",""],v=this;function x(C,R){var $=v.getRepresentValue({interval:C});R||(R=v.getValueState($));var V=o($,R);C[0]===-1/0?l[0]=V:C[1]===1/0?l[1]=V:s.push({value:C[0],color:V},{value:C[1],color:V})}var A=this._pieceList.slice();if(!A.length)A.push({interval:[-1/0,1/0]});else{var w=A[0].interval[0];w!==-1/0&&A.unshift({interval:[-1/0,w]}),w=A[A.length-1].interval[1],w!==1/0&&A.push({interval:[w,1/0]})}var E=-1/0;return each$c(A,function(C){var R=C.interval;R&&(R[0]>E&&x([E,R[0]],"outOfRange"),x(R.slice()),E=R[1])},this),{stops:s,outerColors:l}},t.type="visualMap.piecewise",t.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(VisualMapModel$1),resetMethods={splitNumber:function(r){var t=this.option,o=Math.min(t.precision,20),s=this.getExtent(),l=t.splitNumber;l=Math.max(parseInt(l,10),1),t.splitNumber=l;for(var v=(s[1]-s[0])/l;+v.toFixed(o)!==v&&o<5;)o++;t.precision=o,v=+v.toFixed(o),t.minOpen&&r.push({interval:[-1/0,s[0]],close:[0,0]});for(var x=0,A=s[0];x<l;A+=v,x++){var w=x===l-1?s[1]:A+v;r.push({interval:[A,w],close:[1,1]})}t.maxOpen&&r.push({interval:[s[1],1/0],close:[0,0]}),reformIntervals(r),each$c(r,function(E,C){E.index=C,E.text=this.formatValueText(E.interval)},this)},categories:function(r){var t=this.option;each$c(t.categories,function(o){r.push({text:this.formatValueText(o,!0),value:o})},this),normalizeReverse(t,r)},pieces:function(r){var t=this.option;each$c(t.pieces,function(o,s){isObject$3(o)||(o={value:o});var l={text:"",index:s};if(o.label!=null&&(l.text=o.label),o.hasOwnProperty("value")){var v=l.value=o.value;l.interval=[v,v],l.close=[1,1]}else{for(var x=l.interval=[],A=l.close=[0,0],w=[1,0,1],E=[-1/0,1/0],C=[],R=0;R<2;R++){for(var $=[["gte","gt","min"],["lte","lt","max"]][R],V=0;V<3&&x[R]==null;V++)x[R]=o[$[V]],A[R]=w[V],C[R]=V===2;x[R]==null&&(x[R]=E[R])}C[0]&&x[1]===1/0&&(A[0]=0),C[1]&&x[0]===-1/0&&(A[1]=0),x[0]===x[1]&&A[0]&&A[1]&&(l.value=x[0])}l.visual=VisualMapping$1.retrieveVisuals(o),r.push(l)},this),normalizeReverse(t,r),reformIntervals(r),each$c(r,function(o){var s=o.close,l=[["<","≤"][s[1]],[">","≥"][s[0]]];o.text=o.text||this.formatValueText(o.value!=null?o.value:o.interval,!1,l)},this)}};function normalizeReverse(r,t){var o=r.inverse;(r.orient==="vertical"?!o:o)&&t.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function(r){__extends(t,r);function t(){var o=r!==null&&r.apply(this,arguments)||this;return o.type=t.type,o}return t.prototype.doRender=function(){var o=this.group;o.removeAll();var s=this.visualMapModel,l=s.get("textGap"),v=s.textStyleModel,x=v.getFont(),A=v.getTextColor(),w=this._getItemAlign(),E=s.itemSize,C=this._getViewData(),R=C.endsText,$=retrieve(s.get("showLabel",!0),!R);R&&this._renderEndsText(o,R[0],E,$,w),each$c(C.viewPieceList,function(V){var z=V.piece,F=new Group$3;F.onclick=bind$1(this._onItemClick,this,z),this._enableHoverLink(F,V.indexInModelPieceList);var B=s.getRepresentValue(z);if(this._createItemSymbol(F,B,[0,0,E[0],E[1]]),$){var W=this.visualMapModel.getValueState(B);F.add(new ZRText$1({style:{x:w==="right"?-l:E[0]+l,y:E[1]/2,text:z.text,verticalAlign:"middle",align:w,font:x,fill:A,opacity:W==="outOfRange"?.5:1}}))}o.add(F)},this),R&&this._renderEndsText(o,R[1],E,$,w),box(s.get("orient"),o,s.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},t.prototype._enableHoverLink=function(o,s){var l=this;o.on("mouseover",function(){return v("highlight")}).on("mouseout",function(){return v("downplay")});var v=function(x){var A=l.visualMapModel;A.option.hoverLink&&l.api.dispatchAction({type:x,batch:makeHighDownBatch(A.findTargetDataIndices(s),A)})}},t.prototype._getItemAlign=function(){var o=this.visualMapModel,s=o.option;if(s.orient==="vertical")return getItemAlign(o,this.api,o.itemSize);var l=s.align;return(!l||l==="auto")&&(l="left"),l},t.prototype._renderEndsText=function(o,s,l,v,x){if(s){var A=new Group$3,w=this.visualMapModel.textStyleModel;A.add(new ZRText$1({style:createTextStyle$1(w,{x:v?x==="right"?l[0]:0:l[0]/2,y:l[1]/2,verticalAlign:"middle",align:v?x:"center",text:s})})),o.add(A)}},t.prototype._getViewData=function(){var o=this.visualMapModel,s=map$2(o.getPieceList(),function(A,w){return{piece:A,indexInModelPieceList:w}}),l=o.get("text"),v=o.get("orient"),x=o.get("inverse");return(v==="horizontal"?x:!x)?s.reverse():l&&(l=l.slice().reverse()),{viewPieceList:s,endsText:l}},t.prototype._createItemSymbol=function(o,s,l){o.add(createSymbol(this.getControllerVisual(s,"symbol"),l[0],l[1],l[2],l[3],this.getControllerVisual(s,"color")))},t.prototype._onItemClick=function(o){var s=this.visualMapModel,l=s.option,v=l.selectedMode;if(v){var x=clone$3(l.selected),A=s.getSelectedMapKey(o);v==="single"||v===!0?(x[A]=!0,each$c(x,function(w,E){x[E]=E===A})):x[A]=!x[A],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:x})}},t.type="visualMap.piecewise",t}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1(r){r.registerComponentModel(PiecewiseModel$1),r.registerComponentView(PiecewiseView),installCommon(r)}function install(r){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts(r){r.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_$1=(r,t,o)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,P=(r,t)=>{for(var o in t)p(r,o,{get:t[o],enumerable:!0})},y=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of u(t))!j$1.call(r,l)&&l!==o&&p(r,l,{get:()=>t[l],enumerable:!(s=d(t,l))||s.enumerable});return r},m$1=(r,t,o)=>(y(r,t,"default"),o&&y(o,t,"default")),f=(r,t,o)=>(_$1(r,typeof t!="symbol"?t+"":t,o),o),c={};P(c,{Vue:()=>Vue});m$1(c,Vue);var g=class{static install(r,t){let{nameSpace:o=this._nameSpace,memory:s}=t;return s&&this.clearAll(o,s),new g(r,t)}static clearAll(r,t){Object.keys(t).forEach(o=>{let s=r+o;Object.prototype.hasOwnProperty.call(window.localStorage,s)&&window.localStorage.removeItem(s)})}static get(r){return JSON.parse(window.localStorage.getItem(r))}static set(r,t){t=typeof t=="object"?JSON.stringify(t):t,window.localStorage.setItem(r,t)}static getData(r,t){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(t,r)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(t,r)))}constructor(r,t){let o=g,{version:s=3,nameSpace:l=o._nameSpace,memory:v}=t,x=E=>l+E,A=s===3?(0,c.reactive)(v):v;Object.keys(A).length===0&&console.warn("key cannot be empty"),Object.keys(A).forEach(E=>{let C=A[E];o.set(x(E),C),Reflect.defineProperty(A,E,{get:()=>o.get(x(E)),set:R=>o.set(x(E),R),configurable:!0}),s===2&&r.util.defineReactive(A,E,A[E])});let w=s===3?r.config.globalProperties:r.prototype;Reflect.defineProperty(w,"$storage",{get:()=>A})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",(r,t)=>`${r??g._nameSpace}${t}`);const injectResponsiveStorage=(r,t)=>{const o=responsiveStorageNameSpace(),s=Object.assign({locale:n.getData("locale",o)??{locale:t.Locale??"zh"},layout:n.getData("layout",o)??{layout:t.Layout??"vertical",theme:t.Theme??"default",darkMode:t.DarkMode??!1,sidebarStatus:t.SidebarStatus??!0,epThemeColor:t.EpThemeColor??"#409EFF"},configure:n.getData("configure",o)??{grey:t.Grey??!1,weak:t.Weak??!1,hideTabs:t.HideTabs??!1,showLogo:t.ShowLogo??!0,showModel:t.ShowModel??"smart",multiTagsCache:t.MultiTagsCache??!1}},t.MultiTagsCache?{tags:n.getData("tags",o)??routerArrays}:{});r.use(n,{nameSpace:o,memory:s})},ue=Object.prototype.hasOwnProperty,D=(r,t)=>ue.call(r,t),_=r=>r!==null&&typeof r=="object",de=((r,t)=>{if(!_(r)||_(o=r)&&o.__epPropKey)return r;var o;const{values:s,required:l,default:v,type:x,validator:A}=r,w=s||A?C=>{let R=!1,$=[];if(s&&($=Array.from(s),D(r,"default")&&$.push(v),R||(R=$.includes(C))),A&&(R||(R=A(C))),!R&&$.length>0){const V=[...new Set($)].map(z=>JSON.stringify(z)).join(", ");Vue.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${V}], got value ${JSON.stringify(C)}.`)}return R}:void 0,E={type:x,required:!!l,validator:w,__epPropKey:!0};return D(r,"default")&&(E.default=v),E})({type:String,values:["","default","small","large"],required:!1});var ce={data:{type:Array,default:()=>[]},size:de,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const ge={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},...ce},H=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:r=>()=>Vue.createVNode(Vue.Fragment,null,[r.render(r.params)])});var J=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyNames,me=Object.prototype.hasOwnProperty,K=(r,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ye(t))!me.call(r,l)&&l!==o&&J(r,l,{get:()=>t[l],enumerable:!(s=fe(t,l))||s.enumerable});return r},be=Object.prototype.toString;function M(r){return typeof r=="function"}function he(r){return function(t,o){return be.call(t)===`[object ${o}]`}(r,"Boolean")}var h={};((r,t)=>{for(var o in t)J(r,o,{get:t[o],enumerable:!0})})(h,{Vue:()=>Vue}),K(h,Vue,"default");var Oe=()=>{let r,t=(0,h.ref)(!1),o=()=>{t.value=document.documentElement.classList.contains("dark")};return function(s){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(s)}(()=>{r.takeRecords(),r.disconnect()}),(0,h.onBeforeMount)(()=>{o(),r=new MutationObserver(o),r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:t}};const T=Vue.defineComponent({name:"PureTable",props:ge,emits:["page-size-change","page-current-change"],setup(r,{slots:t,attrs:o,emit:s,expose:l}){const{isDark:v}=Oe(),x=Vue.getCurrentInstance();function A(){var ie;return(ie=x==null?void 0:x.proxy)==null?void 0:ie.$refs[`TableRef${r.key}`]}function w(){return A().$refs}Vue.onMounted(()=>{Vue.nextTick(()=>{r.rowHoverBgColor&&w().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",r.rowHoverBgColor,"important")})});const{columns:E,loading:C,loadingConfig:R,alignWhole:$,headerAlign:V,showOverflowTooltip:z,pagination:F}=Vue.toRefs(r);let B=Vue.computed(()=>{if(!Vue.unref(R))return;let{text:ie,spinner:oe,svg:le,viewBox:ve}=Vue.unref(R);return{"element-loading-text":ie,"element-loading-spinner":oe,"element-loading-svg":le,"element-loading-svg-view-box":ve}});const W=Vue.computed(()=>{var ie,oe;if(Vue.unref(C))return{"element-loading-background":((oe=(ie=Vue.unref(R))==null?void 0:ie.background)!=null?oe:v.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),Y=Vue.computed(()=>{var ie;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:Vue.unref(F).align==="left"?"flex-start":Vue.unref(F).align==="center"?"center":"flex-end"},(ie=Vue.unref(F).style)!=null?ie:{})});let Z=Vue.unref(F)&&Vue.unref(F).currentPage&&Vue.unref(F).pageSize;const X=(ie,oe)=>{const{cellRenderer:le,slot:ve,headerRenderer:xe,hide:_e,children:Te,prop:Ee,...Ce}=ie;if(M(_e)&&_e(o))return _e(o);if(he(_e)&&_e)return _e;const Pe={default:De=>{var Re;return le?Vue.createVNode(H,{render:le,params:Object.assign(De,{index:De.$index,props:r,attrs:o})},null):ve?(Re=t==null?void 0:t[ve])==null?void 0:Re.call(t,Object.assign(De,{index:De.$index,props:r,attrs:o})):void 0}};let Me=xe?{header:De=>Vue.createVNode(H,{render:xe,params:Object.assign(De,{index:De.$index,props:r,attrs:o})},null),...Pe}:Pe;return(Te==null?void 0:Te.length)>0&&(Me=Te.map(X)),Vue.createVNode(ElementPlus.ElTableColumn,Vue.mergeProps({key:oe},Ce,{prop:M(Ee)&&Ee(oe)?Ee(oe):Ee,align:ie!=null&&ie.align?ie.align:Vue.unref($),headerAlign:ie!=null&&ie.headerAlign?ie.headerAlign:Vue.unref(V),showOverflowTooltip:ie!=null&&ie.showOverflowTooltip?ie.showOverflowTooltip:Vue.unref(z)}),typeof(Fe=Me)=="function"||Object.prototype.toString.call(Fe)==="[object Object]"&&!Vue.isVNode(Fe)?Me:{default:()=>[Me]});var Fe};l({getTableRef:A,getTableDoms:w});let ae=()=>{var ie,oe;return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(ElementPlus.ElTable,Vue.mergeProps(r,o,{ref:`TableRef${r.key}`}),{default:()=>Vue.unref(E).map(X),append:()=>t.append&&t.append(),empty:()=>t.empty&&t.empty()}),Z?Vue.createVNode(ElementPlus.ElPagination,Vue.mergeProps(o,{class:"pure-pagination",style:Vue.unref(Y)},Vue.unref(F),{small:r!=null&&r.paginationSmall?r==null?void 0:r.paginationSmall:!!Vue.unref(F).small&&Vue.unref(F).small,layout:(ie=Vue.unref(F).layout)!=null?ie:"total, sizes, prev, pager, next, jumper",pageSizes:(oe=Vue.unref(F).pageSizes)!=null?oe:[5,10,15,20],onSizeChange:le=>(ve=>{Vue.unref(F).pageSize=ve,s("page-size-change",ve)})(le),onCurrentChange:le=>(ve=>{Vue.unref(F).currentPage=ve,s("page-current-change",ve)})(le)}),null):null])};return()=>Vue.withDirectives(Vue.createVNode("div",Vue.mergeProps({class:"pure-table",style:"width:100%"},Vue.unref(W),Vue.unref(B)),[ae()]),[[Vue.resolveDirective("loading"),Vue.unref(C)]])}}),Se=Object.assign(T,{install:function(r){r.component(T.name,T)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElementPlus.ElDescriptions.props},j=Vue.defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:r=>()=>Vue.createVNode(Vue.Fragment,null,[r.render(r.params)])}),m=Vue.defineComponent({name:"PureDescriptions",props:L,setup(r,{slots:t,attrs:o}){const{data:s,columns:l,align:v,labelAlign:x,loading:A}=Vue.toRefs(r),w={title:()=>(t==null?void 0:t.title)&&t.title({props:r,attrs:o})},E={extra:()=>(t==null?void 0:t.extra)&&t.extra({props:r,attrs:o})},C=t!=null&&t.title&&!(t!=null&&t.extra)?w:t!=null&&t.extra&&!(t!=null&&t.title)?E:t!=null&&t.title&&(t!=null&&t.extra)?Object.assign(w,E):null;return()=>{var R;return Vue.withDirectives(Vue.createVNode(ElementPlus.ElDescriptions,Vue.mergeProps(r,o,{"element-loading-text":(R=Vue.unref(A).text)!=null?R:"Loading...","element-loading-svg":Vue.unref(A).svg,"element-loading-spinner":Vue.unref(A).spinner,"element-loading-svg-view-box":Vue.unref(A).svgViewBox,"element-loading-background":Vue.unref(A).background}),{default:()=>[Vue.unref(l).map(($,V)=>{let z=Vue.unref(s).map(Z=>Z[$==null?void 0:$.prop]);const F={default:()=>{var Z;return $!=null&&$.cellRenderer?Vue.createVNode(j,{render:$.cellRenderer,params:{props:r,attrs:o,index:V,value:z[0]}},null):$!=null&&$.slot?(Z=t==null?void 0:t[$.slot])==null?void 0:Z.call(t,{props:r,attrs:o,index:V,value:z[0]}):Vue.createVNode(Vue.Fragment,null,$!=null&&$.value?[Vue.unref($.value)]:[z])}},B=$!=null&&$.labelRenderer?{label:()=>Vue.createVNode(j,{render:$.labelRenderer,params:{props:r,attrs:o,index:V,value:z[0]}},null),...F}:F;return W=$==null?void 0:$.hide,typeof W=="function"&&($!=null&&$.hide(o))?$==null?void 0:$.hide(o):Vue.createVNode(ElementPlus.ElDescriptionsItem,Vue.mergeProps($,{key:V,align:$.align?$.align:Vue.unref(v),labelAlign:$.labelAlign?$.labelAlign:Vue.unref(x)}),typeof(Y=B)=="function"||Object.prototype.toString.call(Y)==="[object Object]"&&!Vue.isVNode(Y)?B:{default:()=>[B]});var W,Y})],...C}),[[Vue.resolveDirective("loading"),Vue.unref(A).load]])}}}),I=Object.assign(m,{install:function(r){r.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='<svg><symbol id="pure-iconfont-tabs" viewBox="0 0 1024 1024"><path d="M400.43383789 497.82763673c4.20227051 3.95507813 6.50939942 9.64050293 6.26220703 15.40832519 0.32958983 5.85021973-2.05993653 11.53564453-6.26220703 15.40832519-4.36706543 3.87268067-10.1348877 5.93261719-15.90270996 5.6854248h-57.3486328v193.71643067c0.16479492 6.09741211-2.38952637 11.86523438-6.92138672 15.73791504-4.53186037 4.44946289-10.62927247 6.83898926-16.8914795 6.67419433-6.26220703 0.24719239-12.4420166-2.22473145-16.89147949-6.67419436-4.36706543-4.03747559-6.7565918-9.80529786-6.67419434-15.73791501v-193.6340332H222.78491211c-5.93261719 0.24719239-11.70043946-1.89514161-15.90270997-6.01501466-4.28466797-3.95507813-6.59179689-9.64050293-6.26220701-15.40832519-0.24719239-5.76782227 2.05993653-11.28845215 6.26220702-15.07873536 4.36706543-3.95507813 10.05249023-6.01501465 15.90270996-5.76782224h163.4765625c5.19104004 0 10.21728516 2.05993653 14.17236328 5.6854248z m177.73132325 57.76062011c4.28466797 4.20227051 6.59179689 10.05249023 6.34460448 16.14990234v156.47277832c0.24719239 5.93261719-2.05993653 11.70043946-6.34460449 15.73791504-3.95507813 4.36706543-9.64050293 6.83898926-15.57312011 6.67419433-5.85021973 0.08239747-11.45324708-2.22473145-15.57312013-6.34460449-3.95507813-4.28466797-6.26220703-9.8876953-6.26220703-15.73791504-14.83154297 16.06750489-35.34851075 25.37841797-57.01904297 25.87280274-16.23229981 0.24719239-32.05261231-4.36706543-45.7305908-13.1011963-14.17236327-8.81652833-25.70800781-21.50573731-33.20617677-36.58447265-15.90270997-33.28857422-15.90270997-72.18017578 0-105.46875 7.33337403-15.16113281 18.86901856-27.85034179 33.20617677-36.58447266 13.18359375-8.6517334 28.67431641-13.26599122 44.41223145-13.10119628 21.67053223-0.08239747 42.68188475 8.07495117 58.66699218 22.82409667-0.16479492-6.01501465 2.14233398-11.86523438 6.34460448-16.14990234 8.73413086-8.40454102 22.41210938-8.40454102 31.14624024 0l-0.41198731-0.65917969z m-50.42724611 139.0045166c19.85778809-26.03759766 19.85778809-62.29248047 0-88.33007813-9.47570801-11.78283692-23.81286622-18.37463379-38.80920409-17.79785156-14.7491455-0.41198731-28.92150879 6.09741211-38.15002442 17.79785156-9.97009278 12.35961914-15.24353028 28.01513673-14.91394043 44.00024414-0.49438477 16.06750489 4.69665529 31.80541991 14.58435058 44.32983399 9.55810548 11.45324708 23.73046875 17.88024903 38.47961427 17.46826172 14.91394043 0.32958983 29.08630372-6.09741211 38.8092041-17.46826172zM778.47338867 562.26245117c14.08996583 8.81652833 25.54321289 21.34094239 33.20617676 36.25488281 8.15734864 16.31469727 12.27722169 34.44213867 11.94763184 52.734375 0.32958983 18.37463379-3.7902832 36.58447265-11.94763184 53.06396485-7.41577148 15.07873536-18.95141602 27.76794434-33.20617676 36.58447266-13.18359375 8.73413086-28.67431641 13.26599122-44.41223144 13.10119629-11.45324708 0.16479492-22.82409669-2.38952637-33.20617676-7.41577149-9.55810548-4.11987305-18.20983887-10.05249023-25.54321289-17.46826171v2.30712889c0.16479492 5.93261719-2.05993653 11.70043946-6.17980957 15.98510744-4.11987305 4.20227051-9.80529786 6.59179689-15.73791506 6.5093994-5.85021973 0.24719239-11.53564453-2.05993653-15.5731201-6.34460449-4.28466797-4.20227051-6.59179689-10.05249023-6.26220704-16.14990233V499.80517578c-0.16479492-6.01501465 2.05993653-11.86523438 6.26220705-16.14990234 8.73413086-8.48693847 22.41210938-8.48693847 31.14624023 0 4.20227051 4.28466797 6.50939942 10.05249023 6.26220703 16.14990234v76.87683106c6.59179689-8.07495117 14.83154297-14.58435059 24.22485352-19.11621094 10.21728516-5.60302734 21.58813477-8.48693847 33.20617675-8.40454102 16.23229981-0.16479492 32.13500977 4.36706543 45.81298828 13.10119629z m-12.93640137 134.30786133c10.05249023-12.4420166 15.32592773-28.26232911 14.91394043-44.32983398 0.49438477-15.98510742-4.69665529-31.55822755-14.58435059-44.00024415-9.8876953-11.04125977-23.89526367-17.38586426-38.64440917-17.38586426s-28.75671387 6.3446045-38.64440918 17.38586426c-19.85778809 26.03759766-19.85778809 62.29248047 0 88.33007813 9.55810548 11.61804201 23.89526367 18.20983887 38.8092041 17.79785156 15.07873536-0.16479492 29.16870117-7.49816895 38.15002442-19.77539062v1.97753906zM673.5814209 299.00256347c-12.77160645 0-23.07128906-10.29968262-23.07128907-23.07128905V183.5637207c-0.08239747-6.59179689 0-13.10119629 0-19.6105957V154.31262207c0-12.77160645 10.29968262-23.07128906 23.07128906-23.07128906H820.16650391c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592773 9.31091309 9.31091309 14.66674805 21.42333983 15.32592773 34.44213868 0.08239747 0.57678223 0.08239747 1.15356445 0.08239746 1.73034667v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128906 23.07128906H673.5814209z m23.07128906-46.1425781h129.69360352v-69.29626467c0-1.64794922-0.65917969-3.21350098-1.81274415-4.44946289-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274414H696.65270999v75.5584717zM396.56115722 299.90893555c-12.77160645 0-23.07128906-10.29968262-23.07128905-23.07128908V155.13659668c0-12.68920898 10.29968262-22.98889161 22.9888916-23.07128906l175.83618164-0.90637207h0.08239746c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592774 9.8876953 9.97009278 15.32592773 23.07128906 15.32592775 37.07885741v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128907 23.07128906h-205.16967775z m23.07128907-46.22497559h159.0270996v-70.20263671c0-1.64794922-0.65917969-3.21350098-1.81274413-4.44946289-1.15356445-1.15356445-2.71911623-1.81274414-4.36706543-1.81274414l-152.84729005 0.74157713v75.72326662z" ></path><path d="M149.78076171 892.84106445c-14.25476075 0-27.60314942-5.52062989-37.65563964-15.40832519-10.05249023-9.97009278-15.57312012-23.15368653-15.57312012-37.16125488V183.72851562c0-29.00390624 23.89526367-52.56958007 53.22875978-52.56958007h139.25170897c14.25476075 0 27.60314942 5.43823242 37.65563966 15.40832519 10.05249023 9.8876953 15.57312012 23.15368653 15.57312011 37.16125489V323.30981445c0 1.64794922 0.65917969 3.21350098 1.89514162 4.44946289 1.23596192 1.15356445 2.80151367 1.81274414 4.44946288 1.81274414h525.61340332c14.25476075 0 27.60314942 5.43823242 37.65563964 15.4083252 10.05249023 9.8876953 15.57312012 23.07128906 15.57312012 37.16125488v458.12988281c0 14.08996583-5.52062989 27.27355958-15.57312012 37.16125489s-23.40087891 15.40832519-37.65563964 15.40832519H149.78076171z m6.34460451-709.11254882c-3.54309083 0-6.3446045 2.80151367-6.34460449 6.26220703v649.86877441c0 1.64794922 0.65917969 3.29589844 1.8951416 4.4494629 1.15356445 1.15356445 2.80151367 1.81274414 4.44946288 1.81274415h718.09387208c1.73034668 0 3.29589844-0.65917969 4.44946288-1.81274415 1.23596192-1.15356445 1.89514161-2.71911623 1.89514161-4.4494629V379.01049805c0-1.64794922-0.65917969-3.21350098-1.81274413-4.36706544-1.23596192-1.23596192-2.80151367-1.89514161-4.44946291-1.89514159h-525.69580077c-14.25476075 0-27.60314942-5.52062989-37.65563966-15.4083252-10.05249023-9.8876953-15.57312012-23.15368653-15.57312012-37.16125488V189.90832519c0-1.64794922-0.65917969-3.21350098-1.8951416-4.44946288-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274416H156.12536621z" ></path></symbol><symbol id="pure-iconfont-logo" viewBox="0 0 1024 1024"><path d="M410.558481 0.10861C410.558481 211.083075 109.682285 361.860579 109.682285 633.656511c0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527C711.407525 361.751969 410.558481 210.974465 410.558481 0.10861z" fill="#386BF3" ></path><path d="M613.468671 73.664572c0 211.055922-300.876197 361.914883-300.876196 633.547901 0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527c-0.054305-271.633018-300.876197-422.491979-300.876197-633.547901z" fill="#C3D2FB" ></path><path d="M312.592475 707.212473c0-183.713414 137.635722-312.171612 226.72288-441.390078 81.701694 106.111739 172.119322 218.740063 172.119323 367.725506a309.755045 309.755045 0 0 1-291.074166 316.516003 323.114046 323.114046 0 0 1-107.768037-242.851431z" fill="#303F5B" ></path></symbol><symbol id="pure-iconfont-new" viewBox="0 0 1024 1024"><path d="M466.73632812 228.81640625l-33.31054687 255.41015625c34.36523438 20.21484375 78.31054688 42.62695313 131.22070313 62.2265625 55.1953125 20.47851563 105.1171875 32.43164063 145.54687499 39.46289063 127.44140625-161.27929688 147.39257813-224.38476563 141.59179688-215.59570313-10.45898438 15.99609375-62.05078125 20.390625-76.20117188 15.29296875-28.30078125-10.10742188-53.4375-37.52929688-65.30273437-81.29882813-14.85351563-54.66796875-43.50585938-50.53710938-94.5703125-21.35742187-58.88671875 33.48632813-121.46484375 4.39453125-148.97460938-54.140625z" fill="#FFFFFF" ></path><path d="M444.76367187 228.81640625c-3.77929688 28.828125-7.55859375 57.74414063-11.33789062 86.57226563l-17.9296875 137.37304687c-1.40625 10.45898438-2.72460938 21.00585938-4.13085937 31.46484375-0.96679688 7.3828125 4.83398438 15.46875 10.8984375 18.984375 69.78515625 40.86914063 145.63476563 71.98242188 224.12109374 91.66992188 19.16015625 4.83398438 38.49609375 8.87695313 57.91992188 12.30468749 7.20703125 1.23046875 16.34765625 0.703125 21.35742188-5.625C767.49804688 548.65039063 808.3671875 494.421875 843.34765625 436.58984375c7.91015625-13.09570313 15.55664063-26.3671875 22.1484375-40.16601563 2.4609375-5.09765625 4.74609375-10.37109375 6.85546875-15.64453125 1.31835938-3.33984375 2.37304688-7.11914063 2.28515625-10.72265625-0.43945313-12.04101563-9.4921875-22.32421875-22.06054688-22.32421875-8.4375 0-14.94140625 4.5703125-19.42382812 11.33789063-1.93359375 2.8125 3.33984375-3.42773438 1.58203125-2.109375-0.43945313 0.3515625-0.87890625 0.79101563-1.23046875 1.14257812-1.31835938 1.49414063-3.33984375 1.14257813 2.54882813-1.84570312-1.23046875 0.61523438-2.37304688 1.58203125-3.60351563 2.28515625-1.14257813 0.61523438-2.28515625 1.14257813-3.33984375 1.66992187-3.33984375 1.66992188 5.53710938-2.109375 1.93359375-0.87890625-0.61523438 0.17578125-1.14257813 0.43945313-1.7578125 0.61523438-3.07617188 1.0546875-6.24023438 1.93359375-9.40429688 2.72460937-3.33984375 0.79101563-6.76757813 1.40625-10.10742187 2.02148438-5.625 0.87890625 5.36132813-0.61523438-0.3515625 0.08789062-1.66992188 0.17578125-3.42773438 0.3515625-5.09765625 0.52734375-6.15234375 0.52734375-12.3046875 0.703125-18.45703125 0.26367188-2.28515625-0.17578125-7.03125-1.40625 1.40625 0.3515625-1.0546875-0.17578125-2.109375-0.3515625-3.1640625-0.61523438-0.703125-0.17578125-1.40625-0.3515625-2.109375-0.61523437-0.79101563-0.26367188-1.58203125-0.61523438-2.37304688-0.87890625-3.42773438-1.23046875 5.09765625 2.37304688 1.49414063 0.61523437-2.98828125-1.40625-5.88867188-2.8125-8.70117188-4.48242187-1.31835938-0.79101563-2.72460938-1.66992188-3.95507812-2.54882813l-2.63671875-1.84570312c-1.40625-1.0546875-3.69140625-3.69140625 1.0546875 0.79101562-2.37304688-2.28515625-5.09765625-4.30664063-7.47070313-6.59179687-2.98828125-2.98828125-5.44921875-6.59179688-8.52539062-9.4921875 0.17578125 0.17578125 3.33984375 4.48242188 1.23046875 1.58203125-0.61523438-0.79101563-1.23046875-1.66992188-1.7578125-2.4609375-1.0546875-1.49414063-2.109375-3.07617188-3.07617188-4.65820313-2.4609375-3.77929688-4.65820313-7.734375-6.67968749-11.77734375-0.87890625-1.7578125-1.7578125-3.60351563-2.63671875-5.44921875-0.17578125-0.43945313-0.3515625-0.79101563-0.52734375-1.23046875-0.96679688-2.19726563-0.703125-1.66992188 0.61523437 1.40625 0.08789063-0.3515625-0.96679688-2.54882813-1.0546875-2.63671875-1.7578125-4.48242188-3.25195313-9.140625-4.65820313-13.7109375-2.72460938-9.22851563-5.625-18.19335938-9.66796874-26.89453125-6.85546875-14.50195313-18.19335938-26.10351563-33.31054688-31.640625-13.18359375-4.83398438-28.38867188-3.07617188-41.484375 1.0546875-16.171875 5.09765625-30.84960938 13.44726563-45.61523438 21.4453125-2.02148438 1.0546875-3.95507813 2.109375-6.06445312 3.07617188-0.52734375 0.26367188-4.65820313 1.84570313-0.96679688 0.52734375 3.60351563-1.40625-0.43945313 0.17578125-0.96679687 0.3515625-3.95507813 1.49414063-7.99804688 2.8125-12.04101563 3.8671875-2.02148438 0.52734375-3.95507813 0.96679688-5.9765625 1.31835937-0.79101563 0.17578125-1.58203125 0.26367188-2.37304687 0.43945313-4.48242188 0.79101563 5.625-0.52734375 1.0546875-0.17578125-3.95507813 0.3515625-7.91015625 0.61523438-11.86523438 0.52734375-1.93359375 0-3.8671875-0.08789063-5.88867187-0.26367188-0.79101563-0.08789063-1.58203125-0.17578125-2.28515625-0.17578125-4.30664063-0.3515625 4.74609375 0.79101563 1.84570312 0.26367188-3.95507813-0.79101563-7.99804688-1.40625-11.86523437-2.54882813-3.515625-0.96679688-6.94335938-2.37304688-10.37109375-3.60351562-2.72460938-0.96679688 5.2734375 2.4609375 1.49414062 0.61523437-0.703125-0.3515625-1.40625-0.61523438-2.109375-0.96679687-2.109375-1.0546875-4.13085938-2.109375-6.24023437-3.25195313-3.07617188-1.7578125-6.06445313-3.69140625-8.96484375-5.71289062-0.96679688-0.703125-1.84570313-1.49414063-2.90039063-2.109375 0.26367188 0.17578125 4.30664063 3.515625 1.58203125 1.23046875-1.66992188-1.40625-3.42773438-2.8125-5.00976562-4.30664063-2.90039063-2.63671875-5.625-5.36132813-8.17382813-8.17382812-1.40625-1.49414063-2.72460938-3.07617188-4.04296875-4.65820313-0.52734375-0.61523438-0.96679688-1.40625-1.58203125-1.93359375 4.39453125 4.39453125 1.14257813 1.40625 0-0.08789062-4.921875-6.85546875-9.140625-14.0625-12.65625-21.70898438-4.921875-10.37109375-20.65429688-13.97460938-30.05859375-7.91015625-10.72265625 6.94335938-13.18359375 18.89648438-7.91015625 30.05859375 15.8203125 33.31054688 43.68164063 60.20507813 78.48632813 72.68554688 15.55664063 5.625 33.13476563 7.734375 49.5703125 5.80078125 9.58007813-1.14257813 18.984375-2.8125 28.125-6.15234375 9.66796875-3.515625 18.54492188-8.0859375 27.421875-13.0078125 6.85546875-3.77929688 14.23828125-8.52539063 21.70898437-10.8984375-0.08789063 0-5.44921875 2.19726563-2.28515625 0.96679688 0.79101563-0.3515625 1.58203125-0.61523438 2.4609375-0.96679688 1.40625-0.52734375 2.8125-1.0546875 4.30664063-1.58203125 2.90039063-0.96679688 5.88867188-1.84570313 8.96484375-2.54882813 1.40625-0.26367188 2.8125-0.43945313 4.21875-0.79101562-7.64648438 1.84570313-3.42773438 0.43945313-1.0546875 0.3515625 1.14257813-0.08789063 2.28515625-0.08789063 3.42773437 0 0.61523438 0 1.23046875 0.08789063 1.84570313 0.08789063 3.25195313 0.08789063-6.06445313-1.31835938-2.98828125-0.3515625 1.14257813 0.3515625 2.28515625 0.52734375 3.42773437 0.87890625 0.43945313 0.17578125 0.87890625 0.3515625 1.31835938 0.43945312 3.07617188 0.87890625-5.09765625-2.4609375-2.98828125-1.23046875 0.96679688 0.52734375 1.93359375 0.96679688 2.8125 1.49414063 0.52734375 0.3515625 0.96679688 0.703125 1.49414062 0.96679687 1.93359375 1.14257813-5.00976563-4.21875-2.109375-1.58203125 0.87890625 0.79101563 1.7578125 1.58203125 2.54882813 2.37304688 1.93359375 2.02148438 2.90039063 5.00976563-0.26367188-0.703125 1.49414063 2.63671875 3.42773438 5.00976563 4.83398438 7.73437499 0.79101563 1.49414063 1.40625 3.07617188 2.19726562 4.5703125-3.42773438-6.59179688-0.43945313-1.0546875 0.26367188 0.96679688 1.40625 3.95507813 2.63671875 8.0859375 3.77929687 12.12890625 5.09765625 18.10546875 12.83203125 36.12304688 23.90625 51.41601563 10.37109375 14.23828125 22.76367188 26.80664063 38.14453125 35.59570312 6.41601563 3.69140625 13.53515625 7.29492188 20.7421875 8.96484375 6.41601563 1.49414063 13.27148438 2.02148438 19.86328125 2.02148438 14.67773438 0.08789063 30.05859375-1.7578125 44.12109375-5.88867188 6.85546875-2.02148438 13.88671875-4.5703125 19.95117188-8.34960938 6.59179688-4.13085938 9.84375-8.4375 14.67773437-14.23828124-3.515625 4.21875-2.90039063 4.48242188-7.47070312 7.47070312-2.63671875 1.66992188-7.734375 3.1640625-10.98632813 2.98828125-1.84570313-0.52734375-3.69140625-0.96679688-5.53710937-1.49414063-5.88867188-0.61523438-10.37109375-3.69140625-13.359375-9.31640624-1.84570313-3.1640625-3.07617188-7.47070313-2.98828125-10.81054688 0-0.26367188 1.7578125-7.99804688 0.43945312-4.13085938-0.3515625 1.0546875-0.703125 2.109375-1.14257812 3.16406251-0.26367188 0.61523438-0.52734375 1.31835938-0.79101563 1.93359375-1.0546875 2.72460938 2.90039063-6.59179688 1.58203125-3.77929688-0.17578125 0.43945313-0.3515625 0.87890625-0.61523437 1.31835938-5.18554688 11.68945313-11.33789063 22.8515625-17.75390625 33.92578125-29.53125 51.15234375-64.59960938 99.140625-100.546875 145.81054687-0.703125 0.87890625-1.31835938 1.7578125-2.02148438 2.54882813-2.37304688 3.1640625 0 0 0.43945313-0.52734375-1.66992188 2.19726563-3.42773438 4.39453125-5.09765625 6.59179687-3.515625 4.5703125-7.11914063 9.05273438-10.63476563 13.53515625 7.11914063-1.84570313 14.23828125-3.77929688 21.35742188-5.625-36.82617188-6.50390625-73.125-15.46875-108.72070313-26.80664063-20.65429688-6.59179688-40.95703125-13.97460938-60.99609375-22.14843749-2.28515625-0.87890625-4.48242188-1.84570313-6.76757812-2.81250001-4.921875-2.02148438 3.1640625 1.40625 0.08789062 0l-3.69140625-1.58203125c-4.74609375-2.109375-9.58007813-4.21875-14.32617187-6.328125-8.61328125-3.8671875-17.13867188-7.99804688-25.6640625-12.12890624-17.49023438-8.61328125-34.62890625-17.9296875-51.41601563-27.77343751 3.60351563 6.328125 7.29492188 12.65625 10.8984375 18.98437501 3.77929688-28.828125 7.55859375-57.74414063 11.33789063-86.57226563l17.9296875-137.37304688c1.40625-10.45898438 2.72460938-21.00585938 4.13085937-31.46484374 0.703125-5.18554688-2.90039063-12.04101563-6.41601562-15.55664063-3.77929688-3.77929688-10.10742188-6.6796875-15.55664063-6.41601562-5.71289063 0.26367188-11.6015625 2.109375-15.55664062 6.41601562-4.04296875 4.65820313-5.44921875 9.4921875-6.24023438 15.64453125z" fill="#FFCB40" ></path><path d="M496.61914062 458.73828125c47.54882813 31.640625 101.07421875 54.75585938 156.70898438 67.58789063 11.16210938 2.54882813 24.34570313-3.42773438 27.0703125-15.38085938 2.54882813-11.25-3.33984375-24.2578125-15.38085938-27.0703125-13.18359375-3.07617188-26.27929688-6.6796875-39.19921874-10.8984375-6.41601563-2.109375-12.83203125-4.30664063-19.16015625-6.76757813-3.42773438-1.31835938-6.85546875-2.63671875-10.1953125-3.95507812-1.49414063-0.61523438-2.90039063-1.14257813-4.30664063-1.7578125-4.13085938-1.7578125 4.04296875 1.7578125-1.23046875-0.52734375-25.13671875-10.8984375-49.21875-24.08203125-72.0703125-39.28710938-9.58007813-6.41601563-24.69726563-2.19726563-30.05859375 7.91015625-5.88867188 11.07421875-2.37304688 23.29101563 7.82226563 30.14648438z" fill="#FFCB40" ></path><path d="M245.77929687 729.6171875v-72.50976563-115.04882812V515.515625c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703124 11.07421875 11.42578125 24.16992188 22.8515625 48.42773438 34.18945312 72.59765625 18.01757813 38.23242188 36.12304688 76.55273438 54.140625 114.78515625 4.21875 8.87695313 8.34960938 17.75390625 12.56835938 26.54296875 3.95507813 8.34960938 16.171875 12.91992188 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976563V541.8828125v-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421875-11.42578125-24.16992188-22.8515625-48.42773438-34.18945312-72.59765625-18.01757813-38.23242188-36.12304688-76.55273438-54.140625-114.78515625-4.21875-8.87695313-8.34960938-17.75390625-12.56835938-26.54296875-3.95507813-8.34960938-16.171875-12.91992188-24.78515624-10.10742188-9.22851563 2.98828125-16.171875 11.25-16.17187501 21.18164063v214.1015625c0 11.51367188 10.10742188 22.5 21.97265626 21.97265625 11.953125-0.52734375 21.97265625-9.66796875 21.97265624-21.97265625zM501.8046875 493.63085937H400.90625c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265626v211.55273437c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265625h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H400.90625l21.97265625 21.97265625v-71.27929688-114.16992187-26.10351563l-21.97265625 21.97265626h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265626-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265624z" fill="#4381FF" ></path><path d="M478.16210937 595.75976563c-25.75195313 0.17578125-51.50390625 0.43945313-77.25585937-1e-8-11.51367188-0.17578125-22.5 10.1953125-21.97265625 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.75195313 0.43945313 51.50390625 0.17578125 77.25585938 0 11.51367188-0.08789063 22.5-10.01953125 21.97265624-21.97265625-0.52734375-11.86523438-9.58007813-22.06054688-21.97265625-21.97265625zM553.57226563 515.60351563v214.10156249c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742187 18.72070313-31.20117188 37.44140625-62.40234375 56.25-93.69140626 2.63671875-4.48242188 5.36132813-8.87695313 7.99804687-13.359375h-37.96875c18.72070313 31.20117188 37.44140625 62.40234375 56.25 93.69140625 2.63671875 4.48242188 5.36132813 8.87695313 7.99804688 13.359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976562-115.04882813-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.10156251c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421876-18.72070313-31.20117188-37.44140625-62.40234375-56.25-93.69140624-2.63671875-4.48242188-5.36132813-8.87695313-7.99804687-13.359375-8.52539063-14.23828125-29.44335938-14.23828125-37.96875 0-18.72070313 31.20117188-37.44140625 62.40234375-56.25 93.69140625-2.63671875 4.48242188-5.36132813 8.87695313-7.99804688 13.359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703126 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#4381FF" ></path><path d="M225.30078125 709.49023438v-72.50976563-115.04882813-26.54296874c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703125 11.07421875 11.42578125 24.08203125 22.76367188 48.1640625 34.18945313 72.33398437 18.19335938 38.40820313 36.38671875 76.81640625 54.4921875 115.22460938 4.13085938 8.7890625 8.34960938 17.66601563 12.48046875 26.45507812 3.95507813 8.34960938 16.171875 12.91992188 24.78515625 10.10742187 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164062v-72.50976563-115.04882812V495.30078125c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-11.42578125-24.08203125-22.76367188-48.1640625-34.18945313-72.33398438-18.19335938-38.40820313-36.38671875-76.81640625-54.4921875-115.22460937-4.13085938-8.7890625-8.34960938-17.66601563-12.48046875-26.45507813-3.95507813-8.34960938-16.171875-12.91992188-24.78515625-10.10742187-9.22851563 2.98828125-16.171875 11.25-16.171875 21.18164063v214.10156249c0 11.51367188 10.10742188 22.5 21.97265625 21.97265626 11.86523438-0.52734375 21.97265625-9.66796875 21.97265625-21.97265625zM482.29296875 473.50390625H381.04296875c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265625v211.55273438c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265624h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H381.04296875l21.97265625 21.97265625v-71.27929687-114.16992188-26.10351562l-21.97265625 21.97265625h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625z" fill="#FF642E" ></path><path d="M458.5625 575.6328125c-25.83984375 0.17578125-51.76757813 0.43945313-77.60742188 0-11.51367188-0.17578125-22.5 10.1953125-21.97265624 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.83984375 0.43945313 51.76757813 0.17578125 77.60742187 0 11.51367188-0.08789063 22.5-10.01953125 21.97265625-21.97265625-0.52734375-11.86523438-9.58007813-21.97265625-21.97265625-21.97265625zM534.32421875 495.4765625v214.1015625c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742188 18.80859375-31.2890625 37.6171875-62.49023438 56.51367188-93.77929688 2.63671875-4.39453125 5.2734375-8.7890625 7.99804687-13.18359374h-37.96875c18.80859375 31.2890625 37.6171875 62.49023438 56.51367188 93.77929687 2.63671875 4.39453125 5.2734375 8.7890625 7.99804687 13.18359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515625 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164063v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-18.80859375-31.2890625-37.6171875-62.49023438-56.51367188-93.77929688-2.63671875-4.39453125-5.2734375-8.7890625-7.99804687-13.18359374-8.52539063-14.23828125-29.35546875-14.23828125-37.96875 0-18.80859375 31.2890625-37.6171875 62.49023438-56.51367188 93.77929687-2.63671875 4.39453125-5.2734375 8.7890625-7.99804687 13.18359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703125 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#FF642E" ></path><path d="M629.0703125 793.77734375h74.8828125" fill="#FFFFFF" ></path><path d="M629.0703125 815.75h74.97070313c11.51367188 0 22.5-10.10742188 21.97265624-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625h-74.97070312c-11.51367188 0-22.5 10.10742188-21.97265625 21.97265625 0.52734375 11.86523438 9.66796875 21.97265625 21.97265625 21.97265625z" fill="#FFCB40" ></path><path d="M552.16601563 793.77734375h5.71289062" fill="#FFFFFF" ></path><path d="M552.16601563 815.75h5.71289062c2.98828125 0.08789063 5.88867188-0.52734375 8.4375-1.93359375 2.72460938-0.87890625 5.09765625-2.37304688 7.03125-4.5703125 2.109375-2.02148438 3.69140625-4.30664063 4.5703125-7.03125 1.40625-2.63671875 2.02148438-5.44921875 1.93359375-8.4375l-0.79101562-5.80078125c-1.0546875-3.69140625-2.90039063-6.94335938-5.625-9.66796875-4.30664063-3.95507813-9.58007813-6.41601563-15.55664063-6.41601563h-5.71289062c-2.98828125-0.08789063-5.88867188 0.52734375-8.4375 1.93359376-2.72460938 0.87890625-5.09765625 2.37304688-7.03125 4.5703125-2.109375 2.02148438-3.69140625 4.30664063-4.5703125 7.03125-1.40625 2.63671875-2.02148438 5.44921875-1.93359375 8.43749999l0.79101562 5.80078126c1.0546875 3.69140625 2.90039063 6.94335938 5.625 9.66796874 4.30664063 3.95507813 9.58007813 6.41601563 15.55664063 6.41601563z" fill="#FFCB40" ></path></symbol></svg>',function(r){var o=(o=document.getElementsByTagName("script"))[o.length-1],t=o.getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var s,l,v,x,A,w=function(R,$){$.parentNode.insertBefore(R,$)};if(t&&!r.__iconfont__svg__cssinject__){r.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(R){console&&console.log(R)}}s=function(){var R,$=document.createElement("div");$.innerHTML=r._iconfont_svg_string_2208059,($=$.getElementsByTagName("svg")[0])&&($.setAttribute("aria-hidden","true"),$.style.position="absolute",$.style.width=0,$.style.height=0,$.style.overflow="hidden",$=$,(R=document.body).firstChild?w($,R.firstChild):R.appendChild($))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(s,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),s()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(v=s,x=r.document,A=!1,C(),x.onreadystatechange=function(){x.readyState=="complete"&&(x.onreadystatechange=null,E())})}function E(){A||(A=!0,v())}function C(){try{x.documentElement.doScroll("left")}catch{return void setTimeout(C,50)}E()}}(window);const iconfont="",auth$1={mounted(r,t){var s;const{value:o}=t;if(o)!hasAuth(o)&&((s=r.parentNode)==null||s.removeChild(r));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtils={exports:{}},utils$3=collectionUtils.exports={};utils$3.forEach=function(r,t){for(var o=0;o<r.length;o++){var s=t(r[o]);if(s)return s}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function(r){var t=r.stateHandler.getState;function o(x){var A=t(x);return A&&!!A.isDetectable}function s(x){t(x).isDetectable=!0}function l(x){return!!t(x).busy}function v(x,A){t(x).busy=!!A}return{isDetectable:o,markAsDetectable:s,isBusy:l,markBusy:v}},listenerHandler=function(r){var t={};function o(x){var A=r.get(x);return A===void 0?[]:t[A]||[]}function s(x,A){var w=r.get(x);t[w]||(t[w]=[]),t[w].push(A)}function l(x,A){for(var w=o(x),E=0,C=w.length;E<C;++E)if(w[E]===A){w.splice(E,1);break}}function v(x){var A=o(x);A&&(A.length=0)}return{get:o,add:s,removeListener:l,removeAllListeners:v}},idGenerator=function(){var r=1;function t(){return r++}return{generate:t}},idHandler=function(r){var t=r.idGenerator,o=r.stateHandler.getState;function s(v){var x=o(v);return x&&x.id!==void 0?x.id:null}function l(v){var x=o(v);if(!x)throw new Error("setId required the element to have a resize detection state.");var A=t.generate();return x.id=A,A}return{get:s,set:l}},reporter=function(r){function t(){}var o={log:t,warn:t,error:t};if(!r&&window.console){var s=function(l,v){l[v]=function(){var A=console[v];if(A.apply)A.apply(console,arguments);else for(var w=0;w<arguments.length;w++)A(arguments[w])}};s(o,"log"),s(o,"warn"),s(o,"error")}return o},browserDetector$2={exports:{}},detector=browserDetector$2.exports={};detector.isIE=function(r){function t(){var s=navigator.userAgent.toLowerCase();return s.indexOf("msie")!==-1||s.indexOf("trident")!==-1||s.indexOf(" edge/")!==-1}if(!t())return!1;if(!r)return!0;var o=function(){var s,l=3,v=document.createElement("div"),x=v.getElementsByTagName("i");do v.innerHTML="<!--[if gt IE "+ ++l+"]><i></i><![endif]-->";while(x[0]);return l>4?l:s}();return r===o};detector.isLegacyOpera=function(){return!!window.opera};var browserDetectorExports=browserDetector$2.exports,utils$2={exports:{}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1(r,t,o){var s=r[t];return s==null&&o!==void 0?o:s}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(t){t=t||{};var o=t.reporter,s=utils.getOption(t,"async",!0),l=utils.getOption(t,"auto",!0);l&&!s&&(o&&o.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),s=!0);var v=Batch(),x,A=!1;function w(z,F){!A&&l&&s&&v.size()===0&&R(),v.add(z,F)}function E(){for(A=!0;v.size();){var z=v;v=Batch(),z.process()}A=!1}function C(z){A||(z===void 0&&(z=s),x&&($(x),x=null),z?R():E())}function R(){x=V(E)}function $(z){var F=clearTimeout;return F(z)}function V(z){var F=function(B){return setTimeout(B,0)};return F(z)}return{add:w,force:C}};function Batch(){var r={},t=0,o=0,s=0;function l(A,w){w||(w=A,A=0),A>o?o=A:A<s&&(s=A),r[A]||(r[A]=[]),r[A].push(w),t++}function v(){for(var A=s;A<=o;A++)for(var w=r[A],E=0;E<w.length;E++){var C=w[E];C()}}function x(){return t}return{add:l,process:v,size:x}}var prop="_erd";function initState(r){return r[prop]={},getState(r)}function getState(r){return r[prop]}function cleanState(r){delete r[prop]}var stateHandler$1={initState,getState,cleanState},browserDetector$1=browserDetectorExports,object=function(r){r=r||{};var t=r.reporter,o=r.batchProcessor,s=r.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function l(E,C){function R(){C(E)}if(browserDetector$1.isIE(8))s(E).object={proxy:R},E.attachEvent("onresize",R);else{var $=A(E);if(!$)throw new Error("Element is not detectable by this strategy.");$.contentDocument.defaultView.addEventListener("resize",R)}}function v(E){var C=r.important?" !important; ":"; ";return(E.join(C)+C).trim()}function x(E,C,R){R||(R=C,C=E,E=null),E=E||{},E.debug;function $(V,z){var F=v(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),B=!1,W=window.getComputedStyle(V),Y=V.offsetWidth,Z=V.offsetHeight;s(V).startSize={width:Y,height:Z};function X(){function ae(){if(W.position==="static"){V.style.setProperty("position","relative",E.important?"important":"");var le=function(ve,xe,_e,Te){function Ee(Pe){return Pe.replace(/[^-\d\.]/g,"")}var Ce=_e[Te];Ce!=="auto"&&Ee(Ce)!=="0"&&(ve.warn("An element that is positioned static has style."+Te+"="+Ce+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Te+" will be set to 0. Element: ",xe),xe.style.setProperty(Te,"0",E.important?"important":""))};le(t,V,W,"top"),le(t,V,W,"right"),le(t,V,W,"bottom"),le(t,V,W,"left")}}function ie(){B||ae();function le(xe,_e){if(!xe.contentDocument){var Te=s(xe);Te.checkForObjectDocumentTimeoutId&&window.clearTimeout(Te.checkForObjectDocumentTimeoutId),Te.checkForObjectDocumentTimeoutId=setTimeout(function(){Te.checkForObjectDocumentTimeoutId=0,le(xe,_e)},100);return}_e(xe.contentDocument)}var ve=this;le(ve,function(_e){z(V)})}W.position!==""&&(ae(),B=!0);var oe=document.createElement("object");oe.style.cssText=F,oe.tabIndex=-1,oe.type="text/html",oe.setAttribute("aria-hidden","true"),oe.onload=ie,browserDetector$1.isIE()||(oe.data="about:blank"),s(V)&&(V.appendChild(oe),s(V).object=oe,browserDetector$1.isIE()&&(oe.data="about:blank"))}o?o.add(X):X()}browserDetector$1.isIE(8)?R(C):$(C,R)}function A(E){return s(E).object}function w(E){if(s(E)){var C=A(E);C&&(browserDetector$1.isIE(8)?E.detachEvent("onresize",C.proxy):E.removeChild(C),s(E).checkForObjectDocumentTimeoutId&&window.clearTimeout(s(E).checkForObjectDocumentTimeoutId),delete s(E).object)}}return{makeDetectable:x,addListener:l,uninstall:w}},forEach$1=collectionUtilsExports.forEach,scroll=function(r){r=r||{};var t=r.reporter,o=r.batchProcessor,s=r.stateHandler.getState;r.stateHandler.hasState;var l=r.idHandler;if(!o)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var v=C(),x="erd_scroll_detection_scrollbar_style",A="erd_scroll_detection_container";function w(X){R(X,x,A)}w(window.document);function E(X){var ae=r.important?" !important; ":"; ";return(X.join(ae)+ae).trim()}function C(){var X=500,ae=500,ie=document.createElement("div");ie.style.cssText=E(["position: absolute","width: "+X*2+"px","height: "+ae*2+"px","visibility: hidden","margin: 0","padding: 0"]);var oe=document.createElement("div");oe.style.cssText=E(["position: absolute","width: "+X+"px","height: "+ae+"px","overflow: scroll","visibility: none","top: "+-X*3+"px","left: "+-ae*3+"px","visibility: hidden","margin: 0","padding: 0"]),oe.appendChild(ie),document.body.insertBefore(oe,document.body.firstChild);var le=X-oe.clientWidth,ve=ae-oe.clientHeight;return document.body.removeChild(oe),{width:le,height:ve}}function R(X,ae,ie){function oe(_e,Te){Te=Te||function(Ce){X.head.appendChild(Ce)};var Ee=X.createElement("style");return Ee.innerHTML=_e,Ee.id=ae,Te(Ee),Ee}if(!X.getElementById(ae)){var le=ie+"_animation",ve=ie+"_animation_active",xe=`/* Created by the element-resize-detector library. */
`;xe+="."+ie+" > div::-webkit-scrollbar { "+E(["display: none"])+` }
`,xe+="."+ve+" { "+E(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+le,"animation-name: "+le])+` }
`,xe+="@-webkit-keyframes "+le+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,xe+="@keyframes "+le+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",oe(xe)}}function $(X){X.className+=" "+A+"_animation_active"}function V(X,ae,ie){if(X.addEventListener)X.addEventListener(ae,ie);else if(X.attachEvent)X.attachEvent("on"+ae,ie);else return t.error("[scroll] Don't know how to add event listeners.")}function z(X,ae,ie){if(X.removeEventListener)X.removeEventListener(ae,ie);else if(X.detachEvent)X.detachEvent("on"+ae,ie);else return t.error("[scroll] Don't know how to remove event listeners.")}function F(X){return s(X).container.childNodes[0].childNodes[0].childNodes[0]}function B(X){return s(X).container.childNodes[0].childNodes[0].childNodes[1]}function W(X,ae){var ie=s(X).listeners;if(!ie.push)throw new Error("Cannot add listener to an element that is not detectable.");s(X).listeners.push(ae)}function Y(X,ae,ie){ie||(ie=ae,ae=X,X=null),X=X||{};function oe(){if(X.debug){var $e=Array.prototype.slice.call(arguments);if($e.unshift(l.get(ae),"Scroll: "),t.log.apply)t.log.apply(null,$e);else for(var Ge=0;Ge<$e.length;Ge++)t.log($e[Ge])}}function le($e){function Ge(ke){var Ye=ke.getRootNode&&ke.getRootNode().contains(ke);return ke===ke.ownerDocument.body||ke.ownerDocument.body.contains(ke)||Ye}return!Ge($e)||window.getComputedStyle($e)===null}function ve($e){var Ge=s($e).container.childNodes[0],ke=window.getComputedStyle(Ge);return!ke.width||ke.width.indexOf("px")===-1}function xe(){var $e=window.getComputedStyle(ae),Ge={};return Ge.position=$e.position,Ge.width=ae.offsetWidth,Ge.height=ae.offsetHeight,Ge.top=$e.top,Ge.right=$e.right,Ge.bottom=$e.bottom,Ge.left=$e.left,Ge.widthCSS=$e.width,Ge.heightCSS=$e.height,Ge}function _e(){var $e=xe();s(ae).startSize={width:$e.width,height:$e.height},oe("Element start size",s(ae).startSize)}function Te(){s(ae).listeners=[]}function Ee(){if(oe("storeStyle invoked."),!s(ae)){oe("Aborting because element has been uninstalled");return}var $e=xe();s(ae).style=$e}function Ce($e,Ge,ke){s($e).lastWidth=Ge,s($e).lastHeight=ke}function Pe($e){return F($e).childNodes[0]}function Me(){return 2*v.width+1}function Fe(){return 2*v.height+1}function De($e){return $e+10+Me()}function Re($e){return $e+10+Fe()}function Ne($e){return $e*2+Me()}function Ze($e){return $e*2+Fe()}function je($e,Ge,ke){var Ye=F($e),bt=B($e),gt=De(Ge),At=Re(ke),vt=Ne(Ge),nt=Ze(ke);Ye.scrollLeft=gt,Ye.scrollTop=At,bt.scrollLeft=vt,bt.scrollTop=nt}function Qe(){var $e=s(ae).container;if(!$e){$e=document.createElement("div"),$e.className=A,$e.style.cssText=E(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),s(ae).container=$e,$($e),ae.appendChild($e);var Ge=function(){s(ae).onRendered&&s(ae).onRendered()};V($e,"animationstart",Ge),s(ae).onAnimationStart=Ge}return $e}function ct(){function $e(){var St=s(ae).style;if(St.position==="static"){ae.style.setProperty("position","relative",X.important?"important":"");var Gt=function(Kt,Zt,cr,er){function hr(dr){return dr.replace(/[^-\d\.]/g,"")}var rr=cr[er];rr!=="auto"&&hr(rr)!=="0"&&(Kt.warn("An element that is positioned static has style."+er+"="+rr+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+er+" will be set to 0. Element: ",Zt),Zt.style[er]=0)};Gt(t,ae,St,"top"),Gt(t,ae,St,"right"),Gt(t,ae,St,"bottom"),Gt(t,ae,St,"left")}}function Ge(St,Gt,Kt,Zt){return St=St?St+"px":"0",Gt=Gt?Gt+"px":"0",Kt=Kt?Kt+"px":"0",Zt=Zt?Zt+"px":"0",["left: "+St,"top: "+Gt,"right: "+Zt,"bottom: "+Kt]}if(oe("Injecting elements"),!s(ae)){oe("Aborting because element has been uninstalled");return}$e();var ke=s(ae).container;ke||(ke=Qe());var Ye=v.width,bt=v.height,gt=E(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),At=E(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Ge(-(1+Ye),-(1+bt),-bt,-Ye))),vt=E(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),nt=E(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Ot=E(["position: absolute","left: 0","top: 0"]),Lt=E(["position: absolute","width: 200%","height: 200%"]),Ft=document.createElement("div"),wt=document.createElement("div"),Yt=document.createElement("div"),Jt=document.createElement("div"),tr=document.createElement("div"),ur=document.createElement("div");Ft.dir="ltr",Ft.style.cssText=gt,Ft.className=A,wt.className=A,wt.style.cssText=At,Yt.style.cssText=vt,Jt.style.cssText=Ot,tr.style.cssText=nt,ur.style.cssText=Lt,Yt.appendChild(Jt),tr.appendChild(ur),wt.appendChild(Yt),wt.appendChild(tr),Ft.appendChild(wt),ke.appendChild(Ft);function ar(){var St=s(ae);St&&St.onExpand?St.onExpand():oe("Aborting expand scroll handler: element has been uninstalled")}function or(){var St=s(ae);St&&St.onShrink?St.onShrink():oe("Aborting shrink scroll handler: element has been uninstalled")}V(Yt,"scroll",ar),V(tr,"scroll",or),s(ae).onExpandScroll=ar,s(ae).onShrinkScroll=or}function mt(){function $e(vt,nt,Ot){var Lt=Pe(vt),Ft=De(nt),wt=Re(Ot);Lt.style.setProperty("width",Ft+"px",X.important?"important":""),Lt.style.setProperty("height",wt+"px",X.important?"important":"")}function Ge(vt){var nt=ae.offsetWidth,Ot=ae.offsetHeight,Lt=nt!==s(ae).lastWidth||Ot!==s(ae).lastHeight;oe("Storing current size",nt,Ot),Ce(ae,nt,Ot),o.add(0,function(){if(Lt){if(!s(ae)){oe("Aborting because element has been uninstalled");return}if(!ke()){oe("Aborting because element container has not been initialized");return}if(X.debug){var wt=ae.offsetWidth,Yt=ae.offsetHeight;(wt!==nt||Yt!==Ot)&&t.warn(l.get(ae),"Scroll: Size changed before updating detector elements.")}$e(ae,nt,Ot)}}),o.add(1,function(){if(!s(ae)){oe("Aborting because element has been uninstalled");return}if(!ke()){oe("Aborting because element container has not been initialized");return}je(ae,nt,Ot)}),Lt&&vt&&o.add(2,function(){if(!s(ae)){oe("Aborting because element has been uninstalled");return}if(!ke()){oe("Aborting because element container has not been initialized");return}vt()})}function ke(){return!!s(ae).container}function Ye(){function vt(){return s(ae).lastNotifiedWidth===void 0}oe("notifyListenersIfNeeded invoked");var nt=s(ae);if(vt()&&nt.lastWidth===nt.startSize.width&&nt.lastHeight===nt.startSize.height)return oe("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(nt.lastWidth===nt.lastNotifiedWidth&&nt.lastHeight===nt.lastNotifiedHeight)return oe("Not notifying: Size already notified");oe("Current size not notified, notifying..."),nt.lastNotifiedWidth=nt.lastWidth,nt.lastNotifiedHeight=nt.lastHeight,forEach$1(s(ae).listeners,function(Ot){Ot(ae)})}function bt(){if(oe("startanimation triggered."),ve(ae)){oe("Ignoring since element is still unrendered...");return}oe("Element rendered.");var vt=F(ae),nt=B(ae);(vt.scrollLeft===0||vt.scrollTop===0||nt.scrollLeft===0||nt.scrollTop===0)&&(oe("Scrollbars out of sync. Updating detector elements..."),Ge(Ye))}function gt(){if(oe("Scroll detected."),ve(ae)){oe("Scroll event fired while unrendered. Ignoring...");return}Ge(Ye)}if(oe("registerListenersAndPositionElements invoked."),!s(ae)){oe("Aborting because element has been uninstalled");return}s(ae).onRendered=bt,s(ae).onExpand=gt,s(ae).onShrink=gt;var At=s(ae).style;$e(ae,At.width,At.height)}function ht(){if(oe("finalizeDomMutation invoked."),!s(ae)){oe("Aborting because element has been uninstalled");return}var $e=s(ae).style;Ce(ae,$e.width,$e.height),je(ae,$e.width,$e.height)}function xt(){ie(ae)}function yt(){oe("Installing..."),Te(),_e(),o.add(0,Ee),o.add(1,ct),o.add(2,mt),o.add(3,ht),o.add(4,xt)}oe("Making detectable..."),le(ae)?(oe("Element is detached"),Qe(),oe("Waiting until element is attached..."),s(ae).onRendered=function(){oe("Element is now attached"),yt()}):yt()}function Z(X){var ae=s(X);ae&&(ae.onExpandScroll&&z(F(X),"scroll",ae.onExpandScroll),ae.onShrinkScroll&&z(B(X),"scroll",ae.onShrinkScroll),ae.onAnimationStart&&z(ae.container,"animationstart",ae.onAnimationStart),ae.container&&X.removeChild(ae.container))}return{makeDetectable:Y,addListener:W,uninstall:Z,initDocument:w}},forEach=collectionUtilsExports.forEach,elementUtilsMaker=elementUtils,listenerHandlerMaker=listenerHandler,idGeneratorMaker=idGenerator,idHandlerMaker=idHandler,reporterMaker=reporter,browserDetector=browserDetectorExports,batchProcessorMaker=batchProcessor,stateHandler=stateHandler$1,objectStrategyMaker=object,scrollStrategyMaker=scroll;function isCollection(r){return Array.isArray(r)||r.length!==void 0}function toArray(r){if(Array.isArray(r))return r;var t=[];return forEach(r,function(o){t.push(o)}),t}function isElement(r){return r&&r.nodeType===1}var elementResizeDetector=function(r){r=r||{};var t;if(r.idHandler)t={get:function(Y){return r.idHandler.get(Y,!0)},set:r.idHandler.set};else{var o=idGeneratorMaker(),s=idHandlerMaker({idGenerator:o,stateHandler});t=s}var l=r.reporter;if(!l){var v=l===!1;l=reporterMaker(v)}var x=getOption(r,"batchProcessor",batchProcessorMaker({reporter:l})),A={};A.callOnAdd=!!getOption(r,"callOnAdd",!0),A.debug=!!getOption(r,"debug",!1);var w=listenerHandlerMaker(t),E=elementUtilsMaker({stateHandler}),C,R=getOption(r,"strategy","object"),$=getOption(r,"important",!1),V={reporter:l,batchProcessor:x,stateHandler,idHandler:t,important:$};if(R==="scroll"&&(browserDetector.isLegacyOpera()?(l.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),R="object"):browserDetector.isIE(9)&&(l.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),R="object")),R==="scroll")C=scrollStrategyMaker(V);else if(R==="object")C=objectStrategyMaker(V);else throw new Error("Invalid strategy name: "+R);var z={};function F(Y,Z,X){function ae(_e){var Te=w.get(_e);forEach(Te,function(Ce){Ce(_e)})}function ie(_e,Te,Ee){w.add(Te,Ee),_e&&Ee(Te)}if(X||(X=Z,Z=Y,Y={}),!Z)throw new Error("At least one element required.");if(!X)throw new Error("Listener required.");if(isElement(Z))Z=[Z];else if(isCollection(Z))Z=toArray(Z);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var oe=0,le=getOption(Y,"callOnAdd",A.callOnAdd),ve=getOption(Y,"onReady",function(){}),xe=getOption(Y,"debug",A.debug);forEach(Z,function(Te){stateHandler.getState(Te)||(stateHandler.initState(Te),t.set(Te));var Ee=t.get(Te);if(xe&&l.log("Attaching listener to element",Ee,Te),!E.isDetectable(Te)){if(xe&&l.log(Ee,"Not detectable."),E.isBusy(Te)){xe&&l.log(Ee,"System busy making it detectable"),ie(le,Te,X),z[Ee]=z[Ee]||[],z[Ee].push(function(){oe++,oe===Z.length&&ve()});return}return xe&&l.log(Ee,"Making detectable..."),E.markBusy(Te,!0),C.makeDetectable({debug:xe,important:$},Te,function(Pe){if(xe&&l.log(Ee,"onElementDetectable"),stateHandler.getState(Pe)){E.markAsDetectable(Pe),E.markBusy(Pe,!1),C.addListener(Pe,ae),ie(le,Pe,X);var Me=stateHandler.getState(Pe);if(Me&&Me.startSize){var Fe=Pe.offsetWidth,De=Pe.offsetHeight;(Me.startSize.width!==Fe||Me.startSize.height!==De)&&ae(Pe)}z[Ee]&&forEach(z[Ee],function(Re){Re()})}else xe&&l.log(Ee,"Element uninstalled before being detectable.");delete z[Ee],oe++,oe===Z.length&&ve()})}xe&&l.log(Ee,"Already detecable, adding listener."),ie(le,Te,X),oe++}),oe===Z.length&&ve()}function B(Y){if(!Y)return l.error("At least one element is required.");if(isElement(Y))Y=[Y];else if(isCollection(Y))Y=toArray(Y);else return l.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(Y,function(Z){w.removeAllListeners(Z),C.uninstall(Z),stateHandler.cleanState(Z)})}function W(Y){C.initDocument&&C.initDocument(Y)}return{listenTo:F,removeListener:w.removeListener,removeAllListeners:w.removeAllListeners,uninstall:B,initDocument:W}};function getOption(r,t,o){var s=r[t];return s==null&&o!==void 0?o:s}const elementResizeDetectorMaker=getDefaultExportFromCjs(elementResizeDetector);function mitt(r){return{all:r=r||new Map,on:function(t,o){var s=r.get(t);s?s.push(o):r.set(t,[o])},off:function(t,o){var s=r.get(t);s&&(o?s.splice(s.indexOf(o)>>>0,1):r.set(t,[]))},emit:function(t,o){var s=r.get(t);s&&s.slice().map(function(l){l(o)}),(s=r.get("*"))&&s.slice().map(function(l){l(t,o)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted(r,t,o){erd.listenTo(r,s=>{const l=s.offsetWidth,v=s.offsetHeight;t!=null&&t.instance?emitter.emit("resize",{detail:{width:l,height:v}}):o.el.dispatchEvent(new CustomEvent("resize",{detail:{width:l,height:v}}))})},unmounted(r){erd.uninstall(r)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},Symbol.toStringTag,{value:"Module"})),defaultIconDimensions$1=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations$1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps$1=Object.freeze({...defaultIconDimensions$1,...defaultIconTransformations$1});Object.freeze({...defaultIconProps$1,body:"",hidden:!1});({...defaultIconDimensions$1});const defaultIconSizeCustomisations$1=Object.freeze({width:null,height:null}),defaultIconCustomisations$1=Object.freeze({...defaultIconSizeCustomisations$1,...defaultIconTransformations$1});function mergeCustomisations$1(r,t){const o={...r};for(const s in t){const l=t[s],v=typeof l;s in defaultIconSizeCustomisations$1?(l===null||l&&(v==="string"||v==="number"))&&(o[s]=l):v===typeof o[s]&&(o[s]=s==="rotate"?l%4:l)}return o}const separator$1=/[\s,]+/;function flipFromString$1(r,t){t.split(separator$1).forEach(o=>{switch(o.trim()){case"horizontal":r.hFlip=!0;break;case"vertical":r.vFlip=!0;break}})}function rotateFromString$1(r,t=0){const o=r.replace(/^-?[0-9.]*/,"");function s(l){for(;l<0;)l+=4;return l%4}if(o===""){const l=parseInt(r);return isNaN(l)?0:s(l)}else if(o!==r){let l=0;switch(o){case"%":l=25;break;case"deg":l=90}if(l){let v=parseFloat(r.slice(0,r.length-o.length));return isNaN(v)?0:(v=v/l,v%1===0?s(v):0)}}return t}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1(r,t,o){if(t===1)return r;if(o=o||100,typeof r=="number")return Math.ceil(r*t*o)/o;if(typeof r!="string")return r;const s=r.split(unitsSplit$1);if(s===null||!s.length)return r;const l=[];let v=s.shift(),x=unitsTest$1.test(v);for(;;){if(x){const A=parseFloat(v);isNaN(A)?l.push(v):l.push(Math.ceil(A*t*o)/o)}else l.push(v);if(v=s.shift(),v===void 0)return l.join("");x=!x}}const isUnsetKeyword$1=r=>r==="unset"||r==="undefined"||r==="none";function iconToSVG$1(r,t){const o={...defaultIconProps$1,...r},s={...defaultIconCustomisations$1,...t},l={left:o.left,top:o.top,width:o.width,height:o.height};let v=o.body;[o,s].forEach(z=>{const F=[],B=z.hFlip,W=z.vFlip;let Y=z.rotate;B?W?Y+=2:(F.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),F.push("scale(-1 1)"),l.top=l.left=0):W&&(F.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),F.push("scale(1 -1)"),l.top=l.left=0);let Z;switch(Y<0&&(Y-=Math.floor(Y/4)*4),Y=Y%4,Y){case 1:Z=l.height/2+l.top,F.unshift("rotate(90 "+Z.toString()+" "+Z.toString()+")");break;case 2:F.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:Z=l.width/2+l.left,F.unshift("rotate(-90 "+Z.toString()+" "+Z.toString()+")");break}Y%2===1&&(l.left!==l.top&&(Z=l.left,l.left=l.top,l.top=Z),l.width!==l.height&&(Z=l.width,l.width=l.height,l.height=Z)),F.length&&(v='<g transform="'+F.join(" ")+'">'+v+"</g>")});const x=s.width,A=s.height,w=l.width,E=l.height;let C,R;x===null?(R=A===null?"1em":A==="auto"?E:A,C=calculateSize$1(R,w/E)):(C=x==="auto"?w:x,R=A===null?calculateSize$1(C,E/w):A==="auto"?E:A);const $={},V=(z,F)=>{isUnsetKeyword$1(F)||($[z]=F.toString())};return V("width",C),V("height",R),$.viewBox=l.left.toString()+" "+l.top.toString()+" "+w.toString()+" "+E.toString(),{attributes:$,body:v}}const regex$1=/\sid="(\S+)"/g,randomPrefix$1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter$1=0;function replaceIDs$1(r,t=randomPrefix$1){const o=[];let s;for(;s=regex$1.exec(r);)o.push(s[1]);if(!o.length)return r;const l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(v=>{const x=typeof t=="function"?t(v):t+(counter$1++).toString(),A=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+A+')([")]|\\.[a-z])',"g"),"$1"+x+l+"$3")}),r=r.replace(new RegExp(l,"g"),""),r}function iconToHTML$1(r,t){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)o+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}function encodeSVGforURL$1(r){return r.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData$1(r){return"data:image/svg+xml,"+encodeSVGforURL$1(r)}function svgToURL$1(r){return'url("'+svgToData$1(r)+'")'}const defaultExtendedIconCustomisations$1={...defaultIconCustomisations$1,inline:!1},svgDefaults$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps$1={display:"inline-block"},monotoneProps$1={backgroundColor:"currentColor"},coloredProps$1={backgroundColor:"transparent"},propsToAdd$1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo$1={webkitMask:monotoneProps$1,mask:monotoneProps$1,background:coloredProps$1};for(const r in propsToAddTo$1){const t=propsToAddTo$1[r];for(const o in propsToAdd$1)t[r+o]=propsToAdd$1[o]}const customisationAliases$1={};["horizontal","vertical"].forEach(r=>{const t=r.slice(0,1)+"Flip";customisationAliases$1[r+"-flip"]=t,customisationAliases$1[r.slice(0,1)+"-flip"]=t,customisationAliases$1[r+"Flip"]=t});function fixSize$1(r){return r+(r.match(/^[-0-9.]+$/)?"px":"")}const render$1=(r,t)=>{const o=mergeCustomisations$1(defaultExtendedIconCustomisations$1,t),s={...svgDefaults$1},l=t.mode||"svg",v={},x=t.style,A=typeof x=="object"&&!(x instanceof Array)?x:{};for(let F in t){const B=t[F];if(B!==void 0)switch(F){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[F]=B===!0||B==="true"||B===1;break;case"flip":typeof B=="string"&&flipFromString$1(o,B);break;case"color":v.color=B;break;case"rotate":typeof B=="string"?o[F]=rotateFromString$1(B):typeof B=="number"&&(o[F]=B);break;case"ariaHidden":case"aria-hidden":B!==!0&&B!=="true"&&delete s["aria-hidden"];break;default:{const W=customisationAliases$1[F];W?(B===!0||B==="true"||B===1)&&(o[W]=!0):defaultExtendedIconCustomisations$1[F]===void 0&&(s[F]=B)}}}const w=iconToSVG$1(r,o),E=w.attributes;if(o.inline&&(v.verticalAlign="-0.125em"),l==="svg"){s.style={...v,...A},Object.assign(s,E);let F=0,B=t.id;return typeof B=="string"&&(B=B.replace(/-/g,"_")),s.innerHTML=replaceIDs$1(w.body,B?()=>B+"ID"+F++:"iconifyVue"),Vue.h("svg",s)}const{body:C,width:R,height:$}=r,V=l==="mask"||(l==="bg"?!1:C.indexOf("currentColor")!==-1),z=iconToHTML$1(C,{...E,width:R+"",height:$+""});return s.style={...v,"--svg":svgToURL$1(z),width:fixSize$1(E.width),height:fixSize$1(E.height),...commonProps$1,...V?monotoneProps$1:coloredProps$1,...A},Vue.h("span",s)},storage$1=Object.create(null);function addIcon$1(r,t){storage$1[r]=t}const Icon$1=Vue.defineComponent({inheritAttrs:!1,render(){const r=this.$attrs,t=r.icon,o=typeof t=="string"?storage$1[t]:typeof t=="object"?t:null;return o===null||typeof o!="object"||typeof o.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...o},r)}}),iconifyIconOffline=Vue.defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const r=this.$attrs;return Vue.h(Icon$1,{icon:this.icon,style:r!=null&&r.style?Object.assign(r.style,{outline:"none"}):{outline:"none"},...r},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(r,t,o,s="")=>{const l=r.split(":");if(r.slice(0,1)==="@"){if(l.length<2||l.length>3)return null;s=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){const A=l.pop(),w=l.pop(),E={provider:l.length>0?l[0]:s,prefix:w,name:A};return t&&!validateIconName(E)?null:E}const v=l[0],x=v.split("-");if(x.length>1){const A={provider:s,prefix:x.shift(),name:x.join("-")};return t&&!validateIconName(A)?null:A}if(o&&s===""){const A={provider:s,prefix:"",name:v};return t&&!validateIconName(A,o)?null:A}return null},validateIconName=(r,t)=>r?!!((r.provider===""||r.provider.match(matchIconName))&&(t&&r.prefix===""||r.prefix.match(matchIconName))&&r.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(r,t){const o={};!r.hFlip!=!t.hFlip&&(o.hFlip=!0),!r.vFlip!=!t.vFlip&&(o.vFlip=!0);const s=((r.rotate||0)+(t.rotate||0))%4;return s&&(o.rotate=s),o}function mergeIconData(r,t){const o=mergeIconTransformations(r,t);for(const s in defaultExtendedIconProps)s in defaultIconTransformations?s in r&&!(s in o)&&(o[s]=defaultIconTransformations[s]):s in t?o[s]=t[s]:s in r&&(o[s]=r[s]);return o}function getIconsTree(r,t){const o=r.icons,s=r.aliases||Object.create(null),l=Object.create(null);function v(x){if(o[x])return l[x]=[];if(!(x in l)){l[x]=null;const A=s[x]&&s[x].parent,w=A&&v(A);w&&(l[x]=[A].concat(w))}return l[x]}return(t||Object.keys(o).concat(Object.keys(s))).forEach(v),l}function internalGetIconData(r,t,o){const s=r.icons,l=r.aliases||Object.create(null);let v={};function x(A){v=mergeIconData(s[A]||l[A],v)}return x(t),o.forEach(x),mergeIconData(r,v)}function parseIconSet(r,t){const o=[];if(typeof r!="object"||typeof r.icons!="object")return o;r.not_found instanceof Array&&r.not_found.forEach(l=>{t(l,null),o.push(l)});const s=getIconsTree(r);for(const l in s){const v=s[l];v&&(t(l,internalGetIconData(r,l,v)),o.push(l))}return o}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(r,t){for(const o in t)if(o in r&&typeof r[o]!=typeof t[o])return!1;return!0}function quicklyValidateIconSet(r){if(typeof r!="object"||r===null)return null;const t=r;if(typeof t.prefix!="string"||!r.icons||typeof r.icons!="object"||!checkOptionalProps(r,optionalPropertyDefaults))return null;const o=t.icons;for(const l in o){const v=o[l];if(!l.match(matchIconName)||typeof v.body!="string"||!checkOptionalProps(v,defaultExtendedIconProps))return null}const s=t.aliases||Object.create(null);for(const l in s){const v=s[l],x=v.parent;if(!l.match(matchIconName)||typeof x!="string"||!o[x]&&!s[x]||!checkOptionalProps(v,defaultExtendedIconProps))return null}return t}const dataStorage=Object.create(null);function newStorage(r,t){return{provider:r,prefix:t,icons:Object.create(null),missing:new Set}}function getStorage(r,t){const o=dataStorage[r]||(dataStorage[r]=Object.create(null));return o[t]||(o[t]=newStorage(r,t))}function addIconSet(r,t){return quicklyValidateIconSet(t)?parseIconSet(t,(o,s)=>{s?r.icons[o]=s:r.missing.add(o)}):[]}function addIconToStorage(r,t,o){try{if(typeof o.body=="string")return r.icons[t]={...o},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(r){return typeof r=="boolean"&&(simpleNames=r),simpleNames}function getIconData(r){const t=typeof r=="string"?stringToIcon(r,!0,simpleNames):r;if(t){const o=getStorage(t.provider,t.prefix),s=t.name;return o.icons[s]||(o.missing.has(s)?null:void 0)}}function addIcon(r,t){const o=stringToIcon(r,!0,simpleNames);if(!o)return!1;const s=getStorage(o.provider,o.prefix);return addIconToStorage(s,o.name,t)}function addCollection(r,t){if(typeof r!="object")return!1;if(typeof t!="string"&&(t=r.provider||""),simpleNames&&!t&&!r.prefix){let l=!1;return quicklyValidateIconSet(r)&&(r.prefix="",parseIconSet(r,(v,x)=>{x&&addIcon(v,x)&&(l=!0)})),l}const o=r.prefix;if(!validateIconName({provider:t,prefix:o,name:"a"}))return!1;const s=getStorage(t,o);return!!addIconSet(s,r)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(r,t,o){if(t===1)return r;if(o=o||100,typeof r=="number")return Math.ceil(r*t*o)/o;if(typeof r!="string")return r;const s=r.split(unitsSplit);if(s===null||!s.length)return r;const l=[];let v=s.shift(),x=unitsTest.test(v);for(;;){if(x){const A=parseFloat(v);isNaN(A)?l.push(v):l.push(Math.ceil(A*t*o)/o)}else l.push(v);if(v=s.shift(),v===void 0)return l.join("");x=!x}}const isUnsetKeyword=r=>r==="unset"||r==="undefined"||r==="none";function iconToSVG(r,t){const o={...defaultIconProps,...r},s={...defaultIconCustomisations,...t},l={left:o.left,top:o.top,width:o.width,height:o.height};let v=o.body;[o,s].forEach(z=>{const F=[],B=z.hFlip,W=z.vFlip;let Y=z.rotate;B?W?Y+=2:(F.push("translate("+(l.width+l.left).toString()+" "+(0-l.top).toString()+")"),F.push("scale(-1 1)"),l.top=l.left=0):W&&(F.push("translate("+(0-l.left).toString()+" "+(l.height+l.top).toString()+")"),F.push("scale(1 -1)"),l.top=l.left=0);let Z;switch(Y<0&&(Y-=Math.floor(Y/4)*4),Y=Y%4,Y){case 1:Z=l.height/2+l.top,F.unshift("rotate(90 "+Z.toString()+" "+Z.toString()+")");break;case 2:F.unshift("rotate(180 "+(l.width/2+l.left).toString()+" "+(l.height/2+l.top).toString()+")");break;case 3:Z=l.width/2+l.left,F.unshift("rotate(-90 "+Z.toString()+" "+Z.toString()+")");break}Y%2===1&&(l.left!==l.top&&(Z=l.left,l.left=l.top,l.top=Z),l.width!==l.height&&(Z=l.width,l.width=l.height,l.height=Z)),F.length&&(v='<g transform="'+F.join(" ")+'">'+v+"</g>")});const x=s.width,A=s.height,w=l.width,E=l.height;let C,R;x===null?(R=A===null?"1em":A==="auto"?E:A,C=calculateSize(R,w/E)):(C=x==="auto"?w:x,R=A===null?calculateSize(C,E/w):A==="auto"?E:A);const $={},V=(z,F)=>{isUnsetKeyword(F)||($[z]=F.toString())};return V("width",C),V("height",R),$.viewBox=l.left.toString()+" "+l.top.toString()+" "+w.toString()+" "+E.toString(),{attributes:$,body:v}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(r,t=randomPrefix){const o=[];let s;for(;s=regex.exec(r);)o.push(s[1]);if(!o.length)return r;const l="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(v=>{const x=typeof t=="function"?t(v):t+(counter++).toString(),A=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp('([#;"])('+A+')([")]|\\.[a-z])',"g"),"$1"+x+l+"$3")}),r=r.replace(new RegExp(l,"g"),""),r}const storage=Object.create(null);function setAPIModule(r,t){storage[r]=t}function getAPIModule(r){return storage[r]||storage[""]}function createAPIConfig(r){let t;if(typeof r.resources=="string")t=[r.resources];else if(t=r.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:r.path||"/",maxURL:r.maxURL||500,rotate:r.rotate||750,timeout:r.timeout||5e3,random:r.random===!0,index:r.index||0,dataAfterTimeout:r.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(r,t){const o=createAPIConfig(t);return o===null?!1:(configStorage[r]=o,!0)}function getAPIConfig(r){return configStorage[r]}const detectFetch=()=>{let r;try{if(r=fetch,typeof r=="function")return r}catch{}};let fetchModule=detectFetch();function calculateMaxLength(r,t){const o=getAPIConfig(r);if(!o)return 0;let s;if(!o.maxURL)s=0;else{let l=0;o.resources.forEach(x=>{l=Math.max(l,x.length)});const v=t+".json?icons=";s=o.maxURL-l-o.path.length-v.length}return s}function shouldAbort(r){return r===404}const prepare=(r,t,o)=>{const s=[],l=calculateMaxLength(r,t),v="icons";let x={type:v,provider:r,prefix:t,icons:[]},A=0;return o.forEach((w,E)=>{A+=w.length+1,A>=l&&E>0&&(s.push(x),x={type:v,provider:r,prefix:t,icons:[]},A=w.length),x.icons.push(w)}),s.push(x),s};function getPath(r){if(typeof r=="string"){const t=getAPIConfig(r);if(t)return t.path}return"/"}const send=(r,t,o)=>{if(!fetchModule){o("abort",424);return}let s=getPath(t.provider);switch(t.type){case"icons":{const v=t.prefix,A=t.icons.join(","),w=new URLSearchParams({icons:A});s+=v+".json?"+w.toString();break}case"custom":{const v=t.uri;s+=v.slice(0,1)==="/"?v.slice(1):v;break}default:o("abort",400);return}let l=503;fetchModule(r+s).then(v=>{const x=v.status;if(x!==200){setTimeout(()=>{o(shouldAbort(x)?"abort":"next",x)});return}return l=501,v.json()}).then(v=>{if(typeof v!="object"||v===null){setTimeout(()=>{v===404?o("abort",v):o("next",l)});return}setTimeout(()=>{o("success",v)})}).catch(()=>{o("next",l)})},fetchAPIModule={prepare,send};function sortIcons(r){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);r.sort((l,v)=>l.provider!==v.provider?l.provider.localeCompare(v.provider):l.prefix!==v.prefix?l.prefix.localeCompare(v.prefix):l.name.localeCompare(v.name));let s={provider:"",prefix:"",name:""};return r.forEach(l=>{if(s.name===l.name&&s.prefix===l.prefix&&s.provider===l.provider)return;s=l;const v=l.provider,x=l.prefix,A=l.name,w=o[v]||(o[v]=Object.create(null)),E=w[x]||(w[x]=getStorage(v,x));let C;A in E.icons?C=t.loaded:x===""||E.missing.has(A)?C=t.missing:C=t.pending;const R={provider:v,prefix:x,name:A};C.push(R)}),t}function removeCallback(r,t){r.forEach(o=>{const s=o.loaderCallbacks;s&&(o.loaderCallbacks=s.filter(l=>l.id!==t))})}function updateCallbacks(r){r.pendingCallbacksFlag||(r.pendingCallbacksFlag=!0,setTimeout(()=>{r.pendingCallbacksFlag=!1;const t=r.loaderCallbacks?r.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const s=r.provider,l=r.prefix;t.forEach(v=>{const x=v.icons,A=x.pending.length;x.pending=x.pending.filter(w=>{if(w.prefix!==l)return!0;const E=w.name;if(r.icons[E])x.loaded.push({provider:s,prefix:l,name:E});else if(r.missing.has(E))x.missing.push({provider:s,prefix:l,name:E});else return o=!0,!0;return!1}),x.pending.length!==A&&(o||removeCallback([r],v.id),v.callback(x.loaded.slice(0),x.missing.slice(0),x.pending.slice(0),v.abort))})}))}let idCounter=0;function storeCallback(r,t,o){const s=idCounter++,l=removeCallback.bind(null,o,s);if(!t.pending.length)return l;const v={id:s,icons:t,callback:r,abort:l};return o.forEach(x=>{(x.loaderCallbacks||(x.loaderCallbacks=[])).push(v)}),l}function listToIcons(r,t=!0,o=!1){const s=[];return r.forEach(l=>{const v=typeof l=="string"?stringToIcon(l,t,o):l;v&&s.push(v)}),s}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(r,t,o,s){const l=r.resources.length,v=r.random?Math.floor(Math.random()*l):r.index;let x;if(r.random){let ie=r.resources.slice(0);for(x=[];ie.length>1;){const oe=Math.floor(Math.random()*ie.length);x.push(ie[oe]),ie=ie.slice(0,oe).concat(ie.slice(oe+1))}x=x.concat(ie)}else x=r.resources.slice(v).concat(r.resources.slice(0,v));const A=Date.now();let w="pending",E=0,C,R=null,$=[],V=[];typeof s=="function"&&V.push(s);function z(){R&&(clearTimeout(R),R=null)}function F(){w==="pending"&&(w="aborted"),z(),$.forEach(ie=>{ie.status==="pending"&&(ie.status="aborted")}),$=[]}function B(ie,oe){oe&&(V=[]),typeof ie=="function"&&V.push(ie)}function W(){return{startTime:A,payload:t,status:w,queriesSent:E,queriesPending:$.length,subscribe:B,abort:F}}function Y(){w="failed",V.forEach(ie=>{ie(void 0,C)})}function Z(){$.forEach(ie=>{ie.status==="pending"&&(ie.status="aborted")}),$=[]}function X(ie,oe,le){const ve=oe!=="success";switch($=$.filter(xe=>xe!==ie),w){case"pending":break;case"failed":if(ve||!r.dataAfterTimeout)return;break;default:return}if(oe==="abort"){C=le,Y();return}if(ve){C=le,$.length||(x.length?ae():Y());return}if(z(),Z(),!r.random){const xe=r.resources.indexOf(ie.resource);xe!==-1&&xe!==r.index&&(r.index=xe)}w="completed",V.forEach(xe=>{xe(le)})}function ae(){if(w!=="pending")return;z();const ie=x.shift();if(ie===void 0){if($.length){R=setTimeout(()=>{z(),w==="pending"&&(Z(),Y())},r.timeout);return}Y();return}const oe={status:"pending",resource:ie,callback:(le,ve)=>{X(oe,le,ve)}};$.push(oe),E++,R=setTimeout(ae,r.rotate),o(ie,t,oe.callback)}return setTimeout(ae),W}function initRedundancy(r){const t={...defaultConfig,...r};let o=[];function s(){o=o.filter(A=>A().status==="pending")}function l(A,w,E){const C=sendQuery(t,A,w,(R,$)=>{s(),E&&E(R,$)});return o.push(C),C}function v(A){return o.find(w=>A(w))||null}return{query:l,find:v,setIndex:A=>{t.index=A},getIndex:()=>t.index,cleanup:s}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(r){if(!redundancyCache[r]){const t=getAPIConfig(r);if(!t)return;const o=initRedundancy(t),s={config:t,redundancy:o};redundancyCache[r]=s}return redundancyCache[r]}function sendAPIQuery(r,t,o){let s,l;if(typeof r=="string"){const v=getAPIModule(r);if(!v)return o(void 0,424),emptyCallback$1;l=v.send;const x=getRedundancyCache(r);x&&(s=x.redundancy)}else{const v=createAPIConfig(r);if(v){s=initRedundancy(v);const x=r.resources?r.resources[0]:"",A=getAPIModule(x);A&&(l=A.send)}}return!s||!l?(o(void 0,424),emptyCallback$1):s.query(t,l,o)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(r,t){try{return r.getItem(t)}catch{}}function setStoredItem(r,t,o){try{return r.setItem(t,o),!0}catch{}}function removeStoredItem(r,t){try{r.removeItem(t)}catch{}}function setBrowserStorageItemsCount(r,t){return setStoredItem(r,browserCacheCountKey,t.toString())}function getBrowserStorageItemsCount(r){return parseInt(getStoredItem(r,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(r){browserStorageStatus=r}let _window=typeof window>"u"?{}:window;function getBrowserStorage(r){const t=r+"Storage";try{if(_window&&_window[t]&&typeof _window[t].length=="number")return _window[t]}catch{}browserStorageConfig[r]=!1}function iterateBrowserStorage(r,t){const o=getBrowserStorage(r);if(!o)return;const s=getStoredItem(o,browserCacheVersionKey);if(s!==browserCacheVersion){if(s){const A=getBrowserStorageItemsCount(o);for(let w=0;w<A;w++)removeStoredItem(o,browserCachePrefix+w.toString())}setStoredItem(o,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(o,0);return}const l=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,v=A=>{const w=browserCachePrefix+A.toString(),E=getStoredItem(o,w);if(typeof E=="string"){try{const C=JSON.parse(E);if(typeof C=="object"&&typeof C.cached=="number"&&C.cached>l&&typeof C.provider=="string"&&typeof C.data=="object"&&typeof C.data.prefix=="string"&&t(C,A))return!0}catch{}removeStoredItem(o,w)}};let x=getBrowserStorageItemsCount(o);for(let A=x-1;A>=0;A--)v(A)||(A===x-1?(x--,setBrowserStorageItemsCount(o,x)):browserStorageEmptyItems[r].add(A))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const r in browserStorageConfig)iterateBrowserStorage(r,t=>{const o=t.data,s=t.provider,l=o.prefix,v=getStorage(s,l);if(!addIconSet(v,o).length)return!1;const x=o.lastModified||-1;return v.lastModifiedCached=v.lastModifiedCached?Math.min(v.lastModifiedCached,x):x,!0})}}function updateLastModified(r,t){const o=r.lastModifiedCached;if(o&&o>=t)return o===t;if(r.lastModifiedCached=t,o)for(const s in browserStorageConfig)iterateBrowserStorage(s,l=>{const v=l.data;return l.provider!==r.provider||v.prefix!==r.prefix||v.lastModified===t});return!0}function storeInBrowserStorage(r,t){browserStorageStatus||initBrowserStorage();function o(s){let l;if(!browserStorageConfig[s]||!(l=getBrowserStorage(s)))return;const v=browserStorageEmptyItems[s];let x;if(v.size)v.delete(x=Array.from(v).shift());else if(x=getBrowserStorageItemsCount(l),!setBrowserStorageItemsCount(l,x+1))return;const A={cached:Math.floor(Date.now()/browserStorageHour),provider:r.provider,data:t};return setStoredItem(l,browserCachePrefix+x.toString(),JSON.stringify(A))}t.lastModified&&!updateLastModified(r,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),o("local")||o("session"))}function emptyCallback(){}function loadedNewIcons(r){r.iconsLoaderFlag||(r.iconsLoaderFlag=!0,setTimeout(()=>{r.iconsLoaderFlag=!1,updateCallbacks(r)}))}function loadNewIcons(r,t){r.iconsToLoad?r.iconsToLoad=r.iconsToLoad.concat(t).sort():r.iconsToLoad=t,r.iconsQueueFlag||(r.iconsQueueFlag=!0,setTimeout(()=>{r.iconsQueueFlag=!1;const{provider:o,prefix:s}=r,l=r.iconsToLoad;delete r.iconsToLoad;let v;if(!l||!(v=getAPIModule(o)))return;v.prepare(o,s,l).forEach(A=>{sendAPIQuery(o,A,w=>{if(typeof w!="object")A.icons.forEach(E=>{r.missing.add(E)});else try{const E=addIconSet(r,w);if(!E.length)return;const C=r.pendingIcons;C&&E.forEach(R=>{C.delete(R)}),storeInBrowserStorage(r,w)}catch(E){console.error(E)}loadedNewIcons(r)})})}))}const loadIcons=(r,t)=>{const o=listToIcons(r,!0,allowSimpleNames()),s=sortIcons(o);if(!s.pending.length){let w=!0;return t&&setTimeout(()=>{w&&t(s.loaded,s.missing,s.pending,emptyCallback)}),()=>{w=!1}}const l=Object.create(null),v=[];let x,A;return s.pending.forEach(w=>{const{provider:E,prefix:C}=w;if(C===A&&E===x)return;x=E,A=C,v.push(getStorage(E,C));const R=l[E]||(l[E]=Object.create(null));R[C]||(R[C]=[])}),s.pending.forEach(w=>{const{provider:E,prefix:C,name:R}=w,$=getStorage(E,C),V=$.pendingIcons||($.pendingIcons=new Set);V.has(R)||(V.add(R),l[E][C].push(R))}),v.forEach(w=>{const{provider:E,prefix:C}=w;l[E][C].length&&loadNewIcons(w,l[E][C])}),t?storeCallback(t,s,v):emptyCallback};function mergeCustomisations(r,t){const o={...r};for(const s in t){const l=t[s],v=typeof l;s in defaultIconSizeCustomisations?(l===null||l&&(v==="string"||v==="number"))&&(o[s]=l):v===typeof o[s]&&(o[s]=s==="rotate"?l%4:l)}return o}const separator=/[\s,]+/;function flipFromString(r,t){t.split(separator).forEach(o=>{switch(o.trim()){case"horizontal":r.hFlip=!0;break;case"vertical":r.vFlip=!0;break}})}function rotateFromString(r,t=0){const o=r.replace(/^-?[0-9.]*/,"");function s(l){for(;l<0;)l+=4;return l%4}if(o===""){const l=parseInt(r);return isNaN(l)?0:s(l)}else if(o!==r){let l=0;switch(o){case"%":l=25;break;case"deg":l=90}if(l){let v=parseFloat(r.slice(0,r.length-o.length));return isNaN(v)?0:(v=v/l,v%1===0?s(v):0)}}return t}function iconToHTML(r,t){let o=r.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)o+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+r+"</svg>"}function encodeSVGforURL(r){return r.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(r){return"data:image/svg+xml,"+encodeSVGforURL(r)}function svgToURL(r){return'url("'+svgToData(r)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const r in propsToAddTo){const t=propsToAddTo[r];for(const o in propsToAdd)t[r+o]=propsToAdd[o]}const customisationAliases={};["horizontal","vertical"].forEach(r=>{const t=r.slice(0,1)+"Flip";customisationAliases[r+"-flip"]=t,customisationAliases[r.slice(0,1)+"-flip"]=t,customisationAliases[r+"Flip"]=t});function fixSize(r){return r+(r.match(/^[-0-9.]+$/)?"px":"")}const render=(r,t)=>{const o=mergeCustomisations(defaultExtendedIconCustomisations,t),s={...svgDefaults},l=t.mode||"svg",v={},x=t.style,A=typeof x=="object"&&!(x instanceof Array)?x:{};for(let F in t){const B=t[F];if(B!==void 0)switch(F){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[F]=B===!0||B==="true"||B===1;break;case"flip":typeof B=="string"&&flipFromString(o,B);break;case"color":v.color=B;break;case"rotate":typeof B=="string"?o[F]=rotateFromString(B):typeof B=="number"&&(o[F]=B);break;case"ariaHidden":case"aria-hidden":B!==!0&&B!=="true"&&delete s["aria-hidden"];break;default:{const W=customisationAliases[F];W?(B===!0||B==="true"||B===1)&&(o[W]=!0):defaultExtendedIconCustomisations[F]===void 0&&(s[F]=B)}}}const w=iconToSVG(r,o),E=w.attributes;if(o.inline&&(v.verticalAlign="-0.125em"),l==="svg"){s.style={...v,...A},Object.assign(s,E);let F=0,B=t.id;return typeof B=="string"&&(B=B.replace(/-/g,"_")),s.innerHTML=replaceIDs(w.body,B?()=>B+"ID"+F++:"iconifyVue"),Vue.h("svg",s)}const{body:C,width:R,height:$}=r,V=l==="mask"||(l==="bg"?!1:C.indexOf("currentColor")!==-1),z=iconToHTML(C,{...E,width:R+"",height:$+""});return s.style={...v,"--svg":svgToURL(z),width:fixSize(E.width),height:fixSize(E.height),...commonProps,...V?monotoneProps:coloredProps,...A},Vue.h("span",s)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const r=window;if(r.IconifyPreload!==void 0){const t=r.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!addCollection(s))&&console.error(o)}catch{console.error(o)}})}if(r.IconifyProviders!==void 0){const t=r.IconifyProviders;if(typeof t=="object"&&t!==null)for(let o in t){const s="IconifyProviders["+o+"] is invalid.";try{const l=t[o];if(typeof l!="object"||!l||l.resources===void 0)continue;addAPIProvider(o,l)||console.error(s)}catch{console.error(s)}}}}const emptyIcon={...defaultIconProps,body:""},Icon=Vue.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(r,t){if(typeof r=="object"&&r!==null&&typeof r.body=="string")return this._name="",this.abortLoading(),{data:r};let o;if(typeof r!="string"||(o=stringToIcon(r,!1,!0))===null)return this.abortLoading(),null;const s=getIconData(o);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==r)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:r,abort:loadIcons([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==r&&(this._name=r,t&&t(r));const l=["iconify"];return o.prefix!==""&&l.push("iconify--"+o.prefix),o.provider!==""&&l.push("iconify--"+o.provider),{data:s,classes:l}}},render(){this.counter;const r=this.$attrs,t=this.iconMounted?this.getIcon(r.icon,r.onLoad):null;if(!t)return render(emptyIcon,r);let o=r;return t.classes&&(o={...r,class:(typeof r.class=="string"?r.class+" ":"")+t.classes.join(" ")}),render({...defaultIconProps,...t.data},o)}}),iconifyIconOnline=Vue.defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const r=this.$attrs;return Vue.h(Icon,{icon:`${this.icon}`,style:r!=null&&r.style?Object.assign(r.style,{outline:"none"}):{outline:"none"},...r},{default:()=>[]})}}),fontIcon=Vue.defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const r=this.$attrs;return Object.keys(r).includes("uni")||(r==null?void 0:r.iconType)==="uni"?Vue.h("i",{class:"iconfont",...r},this.icon):Object.keys(r).includes("svg")||(r==null?void 0:r.iconType)==="svg"?Vue.h("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[Vue.h("use",{"xlink:href":`#${this.icon}`})]}):Vue.h("i",{class:`iconfont ${this.icon}`,...r})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=Vue.defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup(r,{slots:t}){return()=>{var o;return t&&hasAuth(r.value)?Vue.createVNode(Vue.Fragment,null,[(o=t.default)==null?void 0:o.call(t)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-pure-iconfont-tabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:r})=>r.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const r=[];for(let t=0;t<200;t++)r.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return r},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:r})=>r.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/role",method:"post",response:()=>({success:!0,data:{list:[{createTime:1605456e6,updateTime:1645477701e3,creator:"admin",updater:"",deleted:!1,tenantId:1,id:1,name:"超级管理员",code:"super_admin",sort:1,status:0,type:1,remark:"超级管理员",dataScope:1,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:16454777e5,creator:"admin",updater:"",deleted:!1,tenantId:1,id:2,name:"普通角色",code:"common",sort:2,status:0,type:1,remark:"普通角色",dataScope:2,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:1647698441e3,creator:"",updater:"1",deleted:!1,tenantId:1,id:101,name:"测试账号",code:"test",sort:0,status:0,type:2,remark:"132",dataScope:1,dataScopeDeptIds:[]}],total:3}})},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",parentId:0,id:100,sort:0,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:1,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"郑州分公司",parentId:100,id:101,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"研发部门",parentId:101,id:103,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:102,id:108,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"深圳分公司",parentId:100,id:102,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:101,id:104,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:102,id:109,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"测试部门",parentId:101,id:105,sort:3,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:101,id:106,sort:4,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"运维部门",parentId:101,id:107,sort:5,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"}]})},{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1605456e6,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1605456e6,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1605456e6,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1605456e6,dept:{id:107,name:"运维部门"}}],total:4}})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(t,o){module.exports=o()})(commonjsGlobal,function(){return function(r){var t={};function o(s){if(t[s])return t[s].exports;var l=t[s]={exports:{},id:s,loaded:!1};return r[s].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}return o.m=r,o.c=t,o.p="",o(0)}([function(r,t,o){var s=o(1),l=o(3),v=o(5),x=o(20),A=o(23),w=o(25),E;typeof window<"u"&&(E=o(27));/*!
Mock - 模拟请求 & 模拟数据
https://github.com/nuysoft/Mock
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
*/var C={Handler:s,Random:v,Util:l,XHR:E,RE:x,toJSONSchema:A,valid:w,heredoc:l.heredoc,setup:function(R){return E.setup(R)},_mocked:{}};C.version="1.0.1-beta3",E&&(E.Mock=C),C.mock=function(R,$,V){return arguments.length===1?s.gen(R):(arguments.length===2&&(V=$,$=void 0),E&&(window.XMLHttpRequest=E),C._mocked[R+($||"")]={rurl:R,rtype:$,template:V},C)},r.exports=C},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(r,t,o){t=t==null?"":t+"",o=o||{},o={path:o.path||[Constant.GUID],templatePath:o.templatePath||[Constant.GUID++],currentContext:o.currentContext,templateCurrentContext:o.templateCurrentContext||r,root:o.root||o.currentContext,templateRoot:o.templateRoot||o.templateCurrentContext||r};var s=Parser.parse(t),l=Util.type(r),v;return Handler[l]?(v=Handler[l]({type:l,template:r,name:t,parsedName:t&&t.replace(Constant.RE_KEY,"$1"),rule:s,context:o}),o.root||(o.root=v),v):r},Handler.extend({array:function(r){var t=[],o,s;if(r.template.length===0)return t;if(r.rule.parameters)if(r.rule.min===1&&r.rule.max===void 0)r.context.path.push(r.name),r.context.templatePath.push(r.name),t=Random.pick(Handler.gen(r.template,void 0,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})),r.context.path.pop(),r.context.templatePath.pop();else if(r.rule.parameters[2])r.template.__order_index=r.template.__order_index||0,r.context.path.push(r.name),r.context.templatePath.push(r.name),t=Handler.gen(r.template,void 0,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})[r.template.__order_index%r.template.length],r.template.__order_index+=+r.rule.parameters[2],r.context.path.pop(),r.context.templatePath.pop();else for(o=0;o<r.rule.count;o++)for(s=0;s<r.template.length;s++)r.context.path.push(t.length),r.context.templatePath.push(s),t.push(Handler.gen(r.template[s],t.length,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})),r.context.path.pop(),r.context.templatePath.pop();else for(o=0;o<r.template.length;o++)r.context.path.push(o),r.context.templatePath.push(o),t.push(Handler.gen(r.template[o],o,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template})),r.context.path.pop(),r.context.templatePath.pop();return t},object:function(r){var t={},o,s,l,v,x,A;if(r.rule.min!=null)for(o=Util.keys(r.template),o=Random.shuffle(o),o=o.slice(0,r.rule.count),A=0;A<o.length;A++)l=o[A],v=l.replace(Constant.RE_KEY,"$1"),r.context.path.push(v),r.context.templatePath.push(l),t[v]=Handler.gen(r.template[l],l,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template}),r.context.path.pop(),r.context.templatePath.pop();else{o=[],s=[];for(l in r.template)(typeof r.template[l]=="function"?s:o).push(l);for(o=o.concat(s),A=0;A<o.length;A++)l=o[A],v=l.replace(Constant.RE_KEY,"$1"),r.context.path.push(v),r.context.templatePath.push(l),t[v]=Handler.gen(r.template[l],l,{path:r.context.path,templatePath:r.context.templatePath,currentContext:t,templateCurrentContext:r.template,root:r.context.root||t,templateRoot:r.context.templateRoot||r.template}),r.context.path.pop(),r.context.templatePath.pop(),x=l.match(Constant.RE_KEY),x&&x[2]&&Util.type(r.template[l])==="number"&&(r.template[l]+=parseInt(x[2],10))}return t},number:function(r){var t,o;if(r.rule.decimal){for(r.template+="",o=r.template.split("."),o[0]=r.rule.range?r.rule.count:o[0],o[1]=(o[1]||"").slice(0,r.rule.dcount);o[1].length<r.rule.dcount;)o[1]+=o[1].length<r.rule.dcount-1?Random.character("number"):Random.character("123456789");t=parseFloat(o.join("."),10)}else t=r.rule.range&&!r.rule.parameters[2]?r.rule.count:r.template;return t},boolean:function(r){var t;return t=r.rule.parameters?Random.bool(r.rule.min,r.rule.max,r.template):r.template,t},string:function(r){var t="",o,s,l,v;if(r.template.length){for(r.rule.count==null&&(t+=r.template),o=0;o<r.rule.count;o++)t+=r.template;for(s=t.match(Constant.RE_PLACEHOLDER)||[],o=0;o<s.length;o++){if(l=s[o],/^\\/.test(l)){s.splice(o--,1);continue}if(v=Handler.placeholder(l,r.context.currentContext,r.context.templateCurrentContext,r),s.length===1&&l===t&&typeof v!=typeof t){t=v;break}t=t.replace(l,v)}}else t=r.rule.range?Random.string(r.rule.count):r.template;return t},function:function(r){return r.template.call(r.context.currentContext,r)},regexp:function(r){var t="";r.rule.count==null&&(t+=r.template.source);for(var o=0;o<r.rule.count;o++)t+=r.template.source;return RE.Handler.gen(RE.Parser.parse(t))}}),Handler.extend({_all:function(){var r={};for(var t in Random)r[t.toLowerCase()]=t;return r},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch(r){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if(key.charAt(0)==="/"||pathParts.length>1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return re===void 0&&(re=""),delete handle.options,re}},getValueByKeyPath:function(r,t){var o=r,s=this.splitPathToArray(r),l=[];r.charAt(0)==="/"?l=[t.context.path[0]].concat(this.normalizePath(s)):s.length>1&&(l=t.context.path.slice(0),l.pop(),l=this.normalizePath(l.concat(s)));try{r=s[s.length-1];for(var v=t.context.root,x=t.context.templateRoot,A=1;A<l.length-1;A++)v=v[l[A]],x=x[l[A]];if(v&&r in v)return v[r];if(x&&typeof x=="object"&&r in x&&o!==x[r])return x[r]=Handler.gen(x[r],r,{currentContext:v,templateCurrentContext:x}),x[r]}catch{}return"@"+s.join("/")},normalizePath:function(r){for(var t=[],o=0;o<r.length;o++)switch(r[o]){case"..":t.pop();break;case".":break;default:t.push(r[o])}return t},splitPathToArray:function(r){var t=r.split(/\/+/);return t[t.length-1]||(t=t.slice(0,-1)),t[0]||(t=t.slice(1)),t}}),module.exports=Handler},function(r,t){r.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function(r,t){var o={};o.extend=function(){var l=arguments[0]||{},v=1,x=arguments.length,A,w,E,C,R;for(x===1&&(l=this,v=0);v<x;v++)if(A=arguments[v],!!A)for(w in A)E=l[w],C=A[w],l!==C&&C!==void 0&&(o.isArray(C)||o.isObject(C)?(o.isArray(C)&&(R=E&&o.isArray(E)?E:[]),o.isObject(C)&&(R=E&&o.isObject(E)?E:{}),l[w]=o.extend(R,C)):l[w]=C);return l},o.each=function(l,v,x){var A,w;if(this.type(l)==="number")for(A=0;A<l;A++)v(A,A);else if(l.length===+l.length)for(A=0;A<l.length&&v.call(x,l[A],A,l)!==!1;A++);else for(w in l)if(v.call(x,l[w],w,l)===!1)break},o.type=function(l){return l==null?String(l):Object.prototype.toString.call(l).match(/\[object (\w+)\]/)[1].toLowerCase()},o.each("String Object Array RegExp Function".split(" "),function(s){o["is"+s]=function(l){return o.type(l)===s.toLowerCase()}}),o.isObjectOrArray=function(s){return o.isObject(s)||o.isArray(s)},o.isNumeric=function(s){return!isNaN(parseFloat(s))&&isFinite(s)},o.keys=function(s){var l=[];for(var v in s)s.hasOwnProperty(v)&&l.push(v);return l},o.values=function(s){var l=[];for(var v in s)s.hasOwnProperty(v)&&l.push(s[v]);return l},o.heredoc=function(l){return l.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},o.noop=function(){},r.exports=o},function(r,t,o){var s=o(2),l=o(5);r.exports={parse:function(v){v=v==null?"":v+"";var x=(v||"").match(s.RE_KEY),A=x&&x[3]&&x[3].match(s.RE_RANGE),w=A&&A[1]&&parseInt(A[1],10),E=A&&A[2]&&parseInt(A[2],10),C=A?A[2]?l.integer(w,E):parseInt(A[1],10):void 0,R=x&&x[4]&&x[4].match(s.RE_RANGE),$=R&&R[1]&&parseInt(R[1],10),V=R&&R[2]&&parseInt(R[2],10),z=R?!R[2]&&parseInt(R[1],10)||l.integer($,V):void 0,F={parameters:x,range:A,min:w,max:E,count:C,decimal:R,dmin:$,dmax:V,dcount:z};for(var B in F)if(F[B]!=null)return F;return{}}}},function(r,t,o){var s=o(3),l={extend:s.extend};l.extend(o(6)),l.extend(o(7)),l.extend(o(8)),l.extend(o(10)),l.extend(o(13)),l.extend(o(15)),l.extend(o(16)),l.extend(o(17)),l.extend(o(14)),l.extend(o(19)),r.exports=l},function(r,t){r.exports={boolean:function(o,s,l){return l!==void 0?(o=typeof o<"u"&&!isNaN(o)?parseInt(o,10):1,s=typeof s<"u"&&!isNaN(s)?parseInt(s,10):1,Math.random()>1/(o+s)*o?!l:l):Math.random()>=.5},bool:function(o,s,l){return this.boolean(o,s,l)},natural:function(o,s){return o=typeof o<"u"?parseInt(o,10):0,s=typeof s<"u"?parseInt(s,10):9007199254740992,Math.round(Math.random()*(s-o))+o},integer:function(o,s){return o=typeof o<"u"?parseInt(o,10):-9007199254740992,s=typeof s<"u"?parseInt(s,10):9007199254740992,Math.round(Math.random()*(s-o))+o},int:function(o,s){return this.integer(o,s)},float:function(o,s,l,v){l=l===void 0?0:l,l=Math.max(Math.min(l,17),0),v=v===void 0?17:v,v=Math.max(Math.min(v,17),0);for(var x=this.integer(o,s)+".",A=0,w=this.natural(l,v);A<w;A++)x+=A<w-1?this.character("number"):this.character("123456789");return parseFloat(x,10)},character:function(o){var s={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return s.alpha=s.lower+s.upper,s.undefined=s.lower+s.upper+s.number+s.symbol,o=s[(""+o).toLowerCase()]||o,o.charAt(this.natural(0,o.length-1))},char:function(o){return this.character(o)},string:function(o,s,l){var v;switch(arguments.length){case 0:v=this.natural(3,7);break;case 1:v=o,o=void 0;break;case 2:typeof arguments[0]=="string"?v=s:(v=this.natural(o,s),o=void 0);break;case 3:v=this.natural(s,l);break}for(var x="",A=0;A<v;A++)x+=this.character(o);return x},str:function(){return this.string.apply(this,arguments)},range:function(o,s,l){arguments.length<=1&&(s=o||0,o=0),l=arguments[2]||1,o=+o,s=+s,l=+l;for(var v=Math.max(Math.ceil((s-o)/l),0),x=0,A=new Array(v);x<v;)A[x++]=o,o+=l;return A}}},function(r,t){var o={yyyy:"getFullYear",yy:function(s){return(""+s.getFullYear()).slice(2)},y:"yy",MM:function(s){var l=s.getMonth()+1;return l<10?"0"+l:l},M:function(s){return s.getMonth()+1},dd:function(s){var l=s.getDate();return l<10?"0"+l:l},d:"getDate",HH:function(s){var l=s.getHours();return l<10?"0"+l:l},H:"getHours",hh:function(s){var l=s.getHours()%12;return l<10?"0"+l:l},h:function(s){return s.getHours()%12},mm:function(s){var l=s.getMinutes();return l<10?"0"+l:l},m:"getMinutes",ss:function(s){var l=s.getSeconds();return l<10?"0"+l:l},s:"getSeconds",SS:function(s){var l=s.getMilliseconds();return l<10&&"00"+l||l<100&&"0"+l||l},S:"getMilliseconds",A:function(s){return s.getHours()<12?"AM":"PM"},a:function(s){return s.getHours()<12?"am":"pm"},T:"getTime"};r.exports={_patternLetters:o,_rformat:new RegExp(function(){var s=[];for(var l in o)s.push(l);return"("+s.join("|")+")"}(),"g"),_formatDate:function(s,l){return l.replace(this._rformat,function v(x,A){return typeof o[A]=="function"?o[A](s):o[A]in o?v(x,o[A]):s[o[A]]()})},_randomDate:function(s,l){return s=s===void 0?new Date(0):s,l=l===void 0?new Date:l,new Date(Math.random()*(l.getTime()-s.getTime()))},date:function(s){return s=s||"yyyy-MM-dd",this._formatDate(this._randomDate(),s)},time:function(s){return s=s||"HH:mm:ss",this._formatDate(this._randomDate(),s)},datetime:function(s){return s=s||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),s)},now:function(s,l){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(s)||(l=s,s="")),s=(s||"").toLowerCase(),l=l||"yyyy-MM-dd HH:mm:ss";var v=new Date;switch(s){case"year":v.setMonth(0);case"month":v.setDate(1);case"week":case"day":v.setHours(0);case"hour":v.setMinutes(0);case"minute":v.setSeconds(0);case"second":v.setMilliseconds(0)}switch(s){case"week":v.setDate(v.getDate()-v.getDay())}return this._formatDate(v,l)}}},function(r,t,o){(function(s){s.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(l,v,x,A,w){return arguments.length===4&&(w=A,A=void 0),arguments.length===3&&(w=x,x=void 0),l||(l=this.pick(this._adSize)),v&&~v.indexOf("#")&&(v=v.slice(1)),x&&~x.indexOf("#")&&(x=x.slice(1)),"http://dummyimage.com/"+l+(v?"/"+v:"")+(x?"/"+x:"")+(A?"."+A:"")+(w?"&text="+w:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var l=[];for(var v in this._brandColors)l.push(v);return l},dataImage:function(l,v){var x;if(typeof document<"u")x=document.createElement("canvas");else{var A=s.require("canvas");x=new A}var w=x&&x.getContext&&x.getContext("2d");if(!x||!w)return"";l||(l=this.pick(this._adSize)),v=v!==void 0?v:l,l=l.split("x");var E=parseInt(l[0],10),C=parseInt(l[1],10),R=this._brandColors[this.pick(this._brandNames())],$="#FFF",V=14,z="sans-serif";return x.width=E,x.height=C,w.textAlign="center",w.textBaseline="middle",w.fillStyle=R,w.fillRect(0,0,E,C),w.fillStyle=$,w.font="bold "+V+"px "+z,w.fillText(v,E/2,C/2,E),x.toDataURL("image/png")}}}).call(t,o(9)(r))},function(r,t){r.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children=[],o.webpackPolyfill=1),o}},function(r,t,o){var s=o(11),l=o(12);r.exports={color:function(v){return v||l[v]?l[v].nicer:this.hex()},hex:function(){var v=this._goldenRatioColor(),x=s.hsv2rgb(v),A=s.rgb2hex(x[0],x[1],x[2]);return A},rgb:function(){var v=this._goldenRatioColor(),x=s.hsv2rgb(v);return"rgb("+parseInt(x[0],10)+", "+parseInt(x[1],10)+", "+parseInt(x[2],10)+")"},rgba:function(){var v=this._goldenRatioColor(),x=s.hsv2rgb(v);return"rgba("+parseInt(x[0],10)+", "+parseInt(x[1],10)+", "+parseInt(x[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var v=this._goldenRatioColor(),x=s.hsv2hsl(v);return"hsl("+parseInt(x[0],10)+", "+parseInt(x[1],10)+", "+parseInt(x[2],10)+")"},_goldenRatioColor:function(v,x){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof v!="number"&&(v=.5),typeof x!="number"&&(x=.95),[this._hue*360,v*100,x*100]}}},function(r,t){r.exports={rgb2hsl:function(s){var l=s[0]/255,v=s[1]/255,x=s[2]/255,A=Math.min(l,v,x),w=Math.max(l,v,x),E=w-A,C,R,$;return w==A?C=0:l==w?C=(v-x)/E:v==w?C=2+(x-l)/E:x==w&&(C=4+(l-v)/E),C=Math.min(C*60,360),C<0&&(C+=360),$=(A+w)/2,w==A?R=0:$<=.5?R=E/(w+A):R=E/(2-w-A),[C,R*100,$*100]},rgb2hsv:function(s){var l=s[0],v=s[1],x=s[2],A=Math.min(l,v,x),w=Math.max(l,v,x),E=w-A,C,R,$;return w===0?R=0:R=E/w*1e3/10,w==A?C=0:l==w?C=(v-x)/E:v==w?C=2+(x-l)/E:x==w&&(C=4+(l-v)/E),C=Math.min(C*60,360),C<0&&(C+=360),$=w/255*1e3/10,[C,R,$]},hsl2rgb:function(s){var l=s[0]/360,v=s[1]/100,x=s[2]/100,A,w,E,C,R;if(v===0)return R=x*255,[R,R,R];x<.5?w=x*(1+v):w=x+v-x*v,A=2*x-w,C=[0,0,0];for(var $=0;$<3;$++)E=l+1/3*-($-1),E<0&&E++,E>1&&E--,6*E<1?R=A+(w-A)*6*E:2*E<1?R=w:3*E<2?R=A+(w-A)*(2/3-E)*6:R=A,C[$]=R*255;return C},hsl2hsv:function(s){var l=s[0],v=s[1]/100,x=s[2]/100,A,w;return x*=2,v*=x<=1?x:2-x,w=(x+v)/2,A=2*v/(x+v),[l,A*100,w*100]},hsv2rgb:function(s){var l=s[0]/60,v=s[1]/100,x=s[2]/100,A=Math.floor(l)%6,w=l-Math.floor(l),E=255*x*(1-v),C=255*x*(1-v*w),R=255*x*(1-v*(1-w));switch(x=255*x,A){case 0:return[x,R,E];case 1:return[C,x,E];case 2:return[E,x,R];case 3:return[E,C,x];case 4:return[R,E,x];case 5:return[x,E,C]}},hsv2hsl:function(s){var l=s[0],v=s[1]/100,x=s[2]/100,A,w;return w=(2-v)*x,A=v*x,A/=w<=1?w:2-w,w/=2,[l,A*100,w*100]},rgb2hex:function(o,s,l){return"#"+((256+o<<8|s)<<8|l).toString(16).slice(1)},hex2rgb:function(o){return o="0x"+o.slice(1).replace(o.length>4?o:/./g,"$&$&")|0,[o>>16,o>>8&255,o&255]}}},function(r,t){r.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(r,t,o){var s=o(6),l=o(14);function v(x,A,w,E){return w===void 0?s.natural(x,A):E===void 0?w:s.natural(parseInt(w,10),parseInt(E,10))}r.exports={paragraph:function(x,A){for(var w=v(3,7,x,A),E=[],C=0;C<w;C++)E.push(this.sentence());return E.join(" ")},cparagraph:function(x,A){for(var w=v(3,7,x,A),E=[],C=0;C<w;C++)E.push(this.csentence());return E.join("")},sentence:function(x,A){for(var w=v(12,18,x,A),E=[],C=0;C<w;C++)E.push(this.word());return l.capitalize(E.join(" "))+"."},csentence:function(x,A){for(var w=v(12,18,x,A),E=[],C=0;C<w;C++)E.push(this.cword());return E.join("")+"。"},word:function(x,A){for(var w=v(3,10,x,A),E="",C=0;C<w;C++)E+=s.character("lower");return E},cword:function(x,A,w){var E="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",C;switch(arguments.length){case 0:x=E,C=1;break;case 1:typeof arguments[0]=="string"?C=1:(C=x,x=E);break;case 2:typeof arguments[0]=="string"?C=A:(C=this.natural(x,A),x=E);break;case 3:C=this.natural(A,w);break}for(var R="",$=0;$<C;$++)R+=x.charAt(this.natural(0,x.length-1));return R},title:function(x,A){for(var w=v(3,7,x,A),E=[],C=0;C<w;C++)E.push(this.capitalize(this.word()));return E.join(" ")},ctitle:function(x,A){for(var w=v(3,7,x,A),E=[],C=0;C<w;C++)E.push(this.cword());return E.join("")}}},function(r,t,o){var s=o(3);r.exports={capitalize:function(l){return(l+"").charAt(0).toUpperCase()+(l+"").substr(1)},upper:function(l){return(l+"").toUpperCase()},lower:function(l){return(l+"").toLowerCase()},pick:function(v,x,A){return s.isArray(v)?(x===void 0&&(x=1),A===void 0&&(A=x)):(v=[].slice.call(arguments),x=1,A=1),x===1&&A===1?v[this.natural(0,v.length-1)]:this.shuffle(v,x,A)},shuffle:function(v,x,A){v=v||[];for(var w=v.slice(0),E=[],C=0,R=w.length,$=0;$<R;$++)C=this.natural(0,w.length-1),E.push(w[C]),w.splice(C,1);switch(arguments.length){case 0:case 1:return E;case 2:A=x;case 3:return x=parseInt(x,10),A=parseInt(A,10),E.slice(0,this.natural(x,A))}},order:function l(v){l.cache=l.cache||{},arguments.length>1&&(v=[].slice.call(arguments,0));var x=l.options,A=x.context.templatePath.join("."),w=l.cache[A]=l.cache[A]||{index:0,array:v};return w.array[w.index++%w.array.length]}}},function(r,t){r.exports={first:function(){var o=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(o)},last:function(){var o=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(o)},name:function(o){return this.first()+" "+(o?this.first()+" ":"")+this.last()},cfirst:function(){var o="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(o)},clast:function(){var o="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(o)},cname:function(){return this.cfirst()+this.clast()}}},function(r,t){r.exports={url:function(o,s){return(o||this.protocol())+"://"+(s||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(o){return this.word()+"."+(o||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(o){return this.character("lower")+"."+this.word()+"@"+(o||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(r,t,o){var s=o(18),l=["东北","华北","华东","华中","华南","西南","西北"];r.exports={region:function(){return this.pick(l)},province:function(){return this.pick(s).name},city:function(v){var x=this.pick(s),A=this.pick(x.children);return v?[x.name,A.name].join(" "):A.name},county:function(v){var x=this.pick(s),A=this.pick(x.children),w=this.pick(A.children)||{name:"-"};return v?[x.name,A.name,w.name].join(" "):w.name},zip:function(v){for(var x="",A=0;A<(v||6);A++)x+=this.natural(0,9);return x}}},function(r,t){var o={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function s(v){for(var x={},A=0,w;A<v.length;A++)w=v[A],!(!w||!w.id)&&(x[w.id]=w);for(var E=[],C=0;C<v.length;C++)if(w=v[C],!!w){if(w.pid==null&&w.parentId==null){E.push(w);continue}var R=x[w.pid]||x[w.parentId];R&&(R.children||(R.children=[]),R.children.push(w))}return E}var l=function(){var v=[];for(var x in o){var A=x.slice(2,6)==="0000"?void 0:x.slice(4,6)=="00"?x.slice(0,2)+"0000":x.slice(0,4)+"00";v.push({id:x,pid:A,name:o[x]})}return s(v)}();r.exports=l},function(r,t,o){var s=o(18);r.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var l="abcdefABCDEF1234567890",v=this.string(l,8)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,4)+"-"+this.string(l,12);return v},uuid:function(){return this.guid()},id:function(){var l,v=0,x=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],A=["1","0","X","9","8","7","6","5","4","3","2"];l=this.pick(s).id+this.date("yyyyMMdd")+this.string("number",3);for(var w=0;w<l.length;w++)v+=l[w]*x[w];return l+=A[v%11],l},increment:function(){var l=0;return function(v){return l+=+v||1}}(),inc:function(l){return this.increment(l)}}},function(r,t,o){var s=o(21),l=o(22);r.exports={Parser:s,Handler:l}},function(r,t){function o(X){this.type=X,this.offset=o.offset(),this.text=o.text()}function s(X,ae){o.call(this,"alternate"),this.left=X,this.right=ae}function l(X){o.call(this,"match"),this.body=X.filter(Boolean)}function v(X,ae){o.call(this,X),this.body=ae}function x(X){v.call(this,"capture-group"),this.index=Z[this.offset]||(Z[this.offset]=Y++),this.body=X}function A(X,ae){o.call(this,"quantified"),this.body=X,this.quantifier=ae}function w(X,ae){o.call(this,"quantifier"),this.min=X,this.max=ae,this.greedy=!0}function E(X,ae){o.call(this,"charset"),this.invert=X,this.body=ae}function C(X,ae){o.call(this,"range"),this.start=X,this.end=ae}function R(X){o.call(this,"literal"),this.body=X,this.escaped=this.body!=this.text}function $(X){o.call(this,"unicode"),this.code=X.toUpperCase()}function V(X){o.call(this,"hex"),this.code=X.toUpperCase()}function z(X){o.call(this,"octal"),this.code=X.toUpperCase()}function F(X){o.call(this,"back-reference"),this.code=X.toUpperCase()}function B(X){o.call(this,"control-character"),this.code=X.toUpperCase()}var W=function(){function X(oe,le){function ve(){this.constructor=oe}ve.prototype=le.prototype,oe.prototype=new ve}function ae(oe,le,ve,xe,_e){function Te(Ee,Ce){function Pe(De){function Re(Ne){return Ne.charCodeAt(0).toString(16).toUpperCase()}return De.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(Ne){return"\\x0"+Re(Ne)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(Ne){return"\\x"+Re(Ne)}).replace(/[\u0180-\u0FFF]/g,function(Ne){return"\\u0"+Re(Ne)}).replace(/[\u1080-\uFFFF]/g,function(Ne){return"\\u"+Re(Ne)})}var Me,Fe;switch(Ee.length){case 0:Me="end of input";break;case 1:Me=Ee[0];break;default:Me=Ee.slice(0,-1).join(", ")+" or "+Ee[Ee.length-1]}return Fe=Ce?'"'+Pe(Ce)+'"':"end of input","Expected "+Me+" but "+Fe+" found."}this.expected=oe,this.found=le,this.offset=ve,this.line=xe,this.column=_e,this.name="SyntaxError",this.message=Te(oe,le)}function ie(oe){function le(){return oe.substring(We,we)}function ve(){return We}function xe(te){function pe(Ie,ze,st){var Qt,lr;for(Qt=ze;st>Qt;Qt++)lr=oe.charAt(Qt),lr===`
`?(Ie.seenCR||Ie.line++,Ie.column=1,Ie.seenCR=!1):lr==="\r"||lr==="\u2028"||lr==="\u2029"?(Ie.line++,Ie.column=1,Ie.seenCR=!0):(Ie.column++,Ie.seenCR=!1)}return sr!==te&&(sr>te&&(sr=0,Mr={line:1,column:1,seenCR:!1}),pe(Mr,sr,te),sr=te),Mr}function _e(te){xr>we||(we>xr&&(xr=we,Tr=[]),Tr.push(te))}function Te(te){var pe=0;for(te.sort();pe<te.length;)te[pe-1]===te[pe]?te.splice(pe,1):pe++}function Ee(){var te,pe,Ie,ze,st;return te=we,pe=Ce(),pe!==null?(Ie=we,oe.charCodeAt(we)===124?(ze=En,we++):(ze=null,Le===0&&_e(Cn)),ze!==null?(st=Ee(),st!==null?(ze=[ze,st],Ie=ze):(we=Ie,Ie=He)):(we=Ie,Ie=He),Ie===null&&(Ie=nr),Ie!==null?(We=te,pe=Mn(pe,Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function Ce(){var te,pe,Ie,ze,st;if(te=we,pe=Me(),pe===null&&(pe=nr),pe!==null)if(Ie=we,Le++,ze=Re(),Le--,ze===null?Ie=nr:(we=Ie,Ie=He),Ie!==null){for(ze=[],st=De(),st===null&&(st=Pe());st!==null;)ze.push(st),st=De(),st===null&&(st=Pe());ze!==null?(st=Fe(),st===null&&(st=nr),st!==null?(We=te,pe=Dn(pe,ze,st),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)}else we=te,te=He;else we=te,te=He;return te}function Pe(){var te;return te=$e(),te===null&&(te=gt(),te===null&&(te=Lt())),te}function Me(){var te,pe;return te=we,oe.charCodeAt(we)===94?(pe=Vr,we++):(pe=null,Le===0&&_e(zr)),pe!==null&&(We=te,pe=Rn()),pe===null&&(we=te),te=pe,te}function Fe(){var te,pe;return te=we,oe.charCodeAt(we)===36?(pe=On,we++):(pe=null,Le===0&&_e($n)),pe!==null&&(We=te,pe=kn()),pe===null&&(we=te),te=pe,te}function De(){var te,pe,Ie;return te=we,pe=Pe(),pe!==null?(Ie=Re(),Ie!==null?(We=te,pe=Nn(pe,Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function Re(){var te,pe,Ie;return Le++,te=we,pe=Ne(),pe!==null?(Ie=xt(),Ie===null&&(Ie=nr),Ie!==null?(We=te,pe=zn(pe,Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),Le--,te===null&&(pe=null,Le===0&&_e(Vn)),te}function Ne(){var te;return te=Ze(),te===null&&(te=je(),te===null&&(te=Qe(),te===null&&(te=ct(),te===null&&(te=mt(),te===null&&(te=ht()))))),te}function Ze(){var te,pe,Ie,ze,st,Qt;return te=we,oe.charCodeAt(we)===123?(pe=Er,we++):(pe=null,Le===0&&_e(Cr)),pe!==null?(Ie=yt(),Ie!==null?(oe.charCodeAt(we)===44?(ze=Fn,we++):(ze=null,Le===0&&_e(Bn)),ze!==null?(st=yt(),st!==null?(oe.charCodeAt(we)===125?(Qt=Fr,we++):(Qt=null,Le===0&&_e(Hr)),Qt!==null?(We=te,pe=Un(Ie,st),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)):(we=te,te=He)):(we=te,te=He)):(we=te,te=He),te}function je(){var te,pe,Ie,ze;return te=we,oe.charCodeAt(we)===123?(pe=Er,we++):(pe=null,Le===0&&_e(Cr)),pe!==null?(Ie=yt(),Ie!==null?(oe.substr(we,2)===Ur?(ze=Ur,we+=2):(ze=null,Le===0&&_e(Gn)),ze!==null?(We=te,pe=Wn(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)):(we=te,te=He),te}function Qe(){var te,pe,Ie,ze;return te=we,oe.charCodeAt(we)===123?(pe=Er,we++):(pe=null,Le===0&&_e(Cr)),pe!==null?(Ie=yt(),Ie!==null?(oe.charCodeAt(we)===125?(ze=Fr,we++):(ze=null,Le===0&&_e(Hr)),ze!==null?(We=te,pe=Yn(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)):(we=te,te=He),te}function ct(){var te,pe;return te=we,oe.charCodeAt(we)===43?(pe=jn,we++):(pe=null,Le===0&&_e(Zn)),pe!==null&&(We=te,pe=qn()),pe===null&&(we=te),te=pe,te}function mt(){var te,pe;return te=we,oe.charCodeAt(we)===42?(pe=Xn,we++):(pe=null,Le===0&&_e(Jn)),pe!==null&&(We=te,pe=ei()),pe===null&&(we=te),te=pe,te}function ht(){var te,pe;return te=we,oe.charCodeAt(we)===63?(pe=Gr,we++):(pe=null,Le===0&&_e(Wr)),pe!==null&&(We=te,pe=ti()),pe===null&&(we=te),te=pe,te}function xt(){var te;return oe.charCodeAt(we)===63?(te=Gr,we++):(te=null,Le===0&&_e(Wr)),te}function yt(){var te,pe,Ie;if(te=we,pe=[],Yr.test(oe.charAt(we))?(Ie=oe.charAt(we),we++):(Ie=null,Le===0&&_e(jr)),Ie!==null)for(;Ie!==null;)pe.push(Ie),Yr.test(oe.charAt(we))?(Ie=oe.charAt(we),we++):(Ie=null,Le===0&&_e(jr));else pe=He;return pe!==null&&(We=te,pe=ri(pe)),pe===null&&(we=te),te=pe,te}function $e(){var te,pe,Ie,ze;return te=we,oe.charCodeAt(we)===40?(pe=ni,we++):(pe=null,Le===0&&_e(ii)),pe!==null?(Ie=Ye(),Ie===null&&(Ie=bt(),Ie===null&&(Ie=ke(),Ie===null&&(Ie=Ge()))),Ie!==null?(oe.charCodeAt(we)===41?(ze=ai,we++):(ze=null,Le===0&&_e(oi)),ze!==null?(We=te,pe=si(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)):(we=te,te=He),te}function Ge(){var te,pe;return te=we,pe=Ee(),pe!==null&&(We=te,pe=li(pe)),pe===null&&(we=te),te=pe,te}function ke(){var te,pe,Ie;return te=we,oe.substr(we,2)===qr?(pe=qr,we+=2):(pe=null,Le===0&&_e(ui)),pe!==null?(Ie=Ee(),Ie!==null?(We=te,pe=ci(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function Ye(){var te,pe,Ie;return te=we,oe.substr(we,2)===Xr?(pe=Xr,we+=2):(pe=null,Le===0&&_e(fi)),pe!==null?(Ie=Ee(),Ie!==null?(We=te,pe=hi(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function bt(){var te,pe,Ie;return te=we,oe.substr(we,2)===Kr?(pe=Kr,we+=2):(pe=null,Le===0&&_e(di)),pe!==null?(Ie=Ee(),Ie!==null?(We=te,pe=pi(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function gt(){var te,pe,Ie,ze,st;if(Le++,te=we,oe.charCodeAt(we)===91?(pe=gi,we++):(pe=null,Le===0&&_e(mi)),pe!==null)if(oe.charCodeAt(we)===94?(Ie=Vr,we++):(Ie=null,Le===0&&_e(zr)),Ie===null&&(Ie=nr),Ie!==null){for(ze=[],st=At(),st===null&&(st=vt());st!==null;)ze.push(st),st=At(),st===null&&(st=vt());ze!==null?(oe.charCodeAt(we)===93?(st=yi,we++):(st=null,Le===0&&_e(_i)),st!==null?(We=te,pe=Si(Ie,ze),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)}else we=te,te=He;else we=te,te=He;return Le--,te===null&&(pe=null,Le===0&&_e(vi)),te}function At(){var te,pe,Ie,ze;return Le++,te=we,pe=vt(),pe!==null?(oe.charCodeAt(we)===45?(Ie=xi,we++):(Ie=null,Le===0&&_e(Ti)),Ie!==null?(ze=vt(),ze!==null?(We=te,pe=Ai(pe,ze),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He)):(we=te,te=He),Le--,te===null&&(pe=null,Le===0&&_e(bi)),te}function vt(){var te;return Le++,te=Ot(),te===null&&(te=nt()),Le--,te===null&&Le===0&&_e(wi),te}function nt(){var te,pe;return te=we,Ei.test(oe.charAt(we))?(pe=oe.charAt(we),we++):(pe=null,Le===0&&_e(Ci)),pe!==null&&(We=te,pe=Pr(pe)),pe===null&&(we=te),te=pe,te}function Ot(){var te;return te=Jt(),te===null&&(te=Ir(),te===null&&(te=ar(),te===null&&(te=or(),te===null&&(te=St(),te===null&&(te=Gt(),te===null&&(te=Kt(),te===null&&(te=Zt(),te===null&&(te=cr(),te===null&&(te=er(),te===null&&(te=hr(),te===null&&(te=rr(),te===null&&(te=dr(),te===null&&(te=Dr(),te===null&&(te=Rr(),te===null&&(te=Or(),te===null&&(te=$r(),te===null&&(te=Lr()))))))))))))))))),te}function Lt(){var te;return te=Ft(),te===null&&(te=Yt(),te===null&&(te=wt())),te}function Ft(){var te,pe;return te=we,oe.charCodeAt(we)===46?(pe=Pi,we++):(pe=null,Le===0&&_e(Mi)),pe!==null&&(We=te,pe=Ii()),pe===null&&(we=te),te=pe,te}function wt(){var te,pe;return Le++,te=we,Ri.test(oe.charAt(we))?(pe=oe.charAt(we),we++):(pe=null,Le===0&&_e(Oi)),pe!==null&&(We=te,pe=Pr(pe)),pe===null&&(we=te),te=pe,Le--,te===null&&(pe=null,Le===0&&_e(Di)),te}function Yt(){var te;return te=tr(),te===null&&(te=ur(),te===null&&(te=Ir(),te===null&&(te=ar(),te===null&&(te=or(),te===null&&(te=St(),te===null&&(te=Gt(),te===null&&(te=Kt(),te===null&&(te=Zt(),te===null&&(te=cr(),te===null&&(te=er(),te===null&&(te=hr(),te===null&&(te=rr(),te===null&&(te=dr(),te===null&&(te=wn(),te===null&&(te=Dr(),te===null&&(te=Rr(),te===null&&(te=Or(),te===null&&(te=$r(),te===null&&(te=Lr()))))))))))))))))))),te}function Jt(){var te,pe;return te=we,oe.substr(we,2)===gr?(pe=gr,we+=2):(pe=null,Le===0&&_e(Jr)),pe!==null&&(We=te,pe=$i()),pe===null&&(we=te),te=pe,te}function tr(){var te,pe;return te=we,oe.substr(we,2)===gr?(pe=gr,we+=2):(pe=null,Le===0&&_e(Jr)),pe!==null&&(We=te,pe=Li()),pe===null&&(we=te),te=pe,te}function ur(){var te,pe;return te=we,oe.substr(we,2)===Qr?(pe=Qr,we+=2):(pe=null,Le===0&&_e(ki)),pe!==null&&(We=te,pe=Ni()),pe===null&&(we=te),te=pe,te}function ar(){var te,pe;return te=we,oe.substr(we,2)===rn?(pe=rn,we+=2):(pe=null,Le===0&&_e(Vi)),pe!==null&&(We=te,pe=zi()),pe===null&&(we=te),te=pe,te}function or(){var te,pe;return te=we,oe.substr(we,2)===nn?(pe=nn,we+=2):(pe=null,Le===0&&_e(Fi)),pe!==null&&(We=te,pe=Bi()),pe===null&&(we=te),te=pe,te}function St(){var te,pe;return te=we,oe.substr(we,2)===an?(pe=an,we+=2):(pe=null,Le===0&&_e(Hi)),pe!==null&&(We=te,pe=Ui()),pe===null&&(we=te),te=pe,te}function Gt(){var te,pe;return te=we,oe.substr(we,2)===on?(pe=on,we+=2):(pe=null,Le===0&&_e(Gi)),pe!==null&&(We=te,pe=Wi()),pe===null&&(we=te),te=pe,te}function Kt(){var te,pe;return te=we,oe.substr(we,2)===sn?(pe=sn,we+=2):(pe=null,Le===0&&_e(Yi)),pe!==null&&(We=te,pe=ji()),pe===null&&(we=te),te=pe,te}function Zt(){var te,pe;return te=we,oe.substr(we,2)===ln?(pe=ln,we+=2):(pe=null,Le===0&&_e(Zi)),pe!==null&&(We=te,pe=qi()),pe===null&&(we=te),te=pe,te}function cr(){var te,pe;return te=we,oe.substr(we,2)===un?(pe=un,we+=2):(pe=null,Le===0&&_e(Xi)),pe!==null&&(We=te,pe=Ki()),pe===null&&(we=te),te=pe,te}function er(){var te,pe;return te=we,oe.substr(we,2)===cn?(pe=cn,we+=2):(pe=null,Le===0&&_e(Ji)),pe!==null&&(We=te,pe=Qi()),pe===null&&(we=te),te=pe,te}function hr(){var te,pe;return te=we,oe.substr(we,2)===fn?(pe=fn,we+=2):(pe=null,Le===0&&_e(ea)),pe!==null&&(We=te,pe=ta()),pe===null&&(we=te),te=pe,te}function rr(){var te,pe;return te=we,oe.substr(we,2)===hn?(pe=hn,we+=2):(pe=null,Le===0&&_e(ra)),pe!==null&&(We=te,pe=na()),pe===null&&(we=te),te=pe,te}function dr(){var te,pe;return te=we,oe.substr(we,2)===dn?(pe=dn,we+=2):(pe=null,Le===0&&_e(ia)),pe!==null&&(We=te,pe=aa()),pe===null&&(we=te),te=pe,te}function Ir(){var te,pe,Ie;return te=we,oe.substr(we,2)===pn?(pe=pn,we+=2):(pe=null,Le===0&&_e(oa)),pe!==null?(oe.length>we?(Ie=oe.charAt(we),we++):(Ie=null,Le===0&&_e(vn)),Ie!==null?(We=te,pe=sa(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function wn(){var te,pe,Ie;return te=we,oe.charCodeAt(we)===92?(pe=gn,we++):(pe=null,Le===0&&_e(mn)),pe!==null?(la.test(oe.charAt(we))?(Ie=oe.charAt(we),we++):(Ie=null,Le===0&&_e(ua)),Ie!==null?(We=te,pe=fa(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}function Dr(){var te,pe,Ie,ze;if(te=we,oe.substr(we,2)===mr?(pe=mr,we+=2):(pe=null,Le===0&&_e(yn)),pe!==null){if(Ie=[],_n.test(oe.charAt(we))?(ze=oe.charAt(we),we++):(ze=null,Le===0&&_e(bn)),ze!==null)for(;ze!==null;)Ie.push(ze),_n.test(oe.charAt(we))?(ze=oe.charAt(we),we++):(ze=null,Le===0&&_e(bn));else Ie=He;Ie!==null?(We=te,pe=ha(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)}else we=te,te=He;return te}function Rr(){var te,pe,Ie,ze;if(te=we,oe.substr(we,2)===xn?(pe=xn,we+=2):(pe=null,Le===0&&_e(da)),pe!==null){if(Ie=[],_r.test(oe.charAt(we))?(ze=oe.charAt(we),we++):(ze=null,Le===0&&_e(Sr)),ze!==null)for(;ze!==null;)Ie.push(ze),_r.test(oe.charAt(we))?(ze=oe.charAt(we),we++):(ze=null,Le===0&&_e(Sr));else Ie=He;Ie!==null?(We=te,pe=pa(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)}else we=te,te=He;return te}function Or(){var te,pe,Ie,ze;if(te=we,oe.substr(we,2)===Tn?(pe=Tn,we+=2):(pe=null,Le===0&&_e(va)),pe!==null){if(Ie=[],_r.test(oe.charAt(we))?(ze=oe.charAt(we),we++):(ze=null,Le===0&&_e(Sr)),ze!==null)for(;ze!==null;)Ie.push(ze),_r.test(oe.charAt(we))?(ze=oe.charAt(we),we++):(ze=null,Le===0&&_e(Sr));else Ie=He;Ie!==null?(We=te,pe=ga(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)}else we=te,te=He;return te}function $r(){var te,pe;return te=we,oe.substr(we,2)===mr?(pe=mr,we+=2):(pe=null,Le===0&&_e(yn)),pe!==null&&(We=te,pe=ma()),pe===null&&(we=te),te=pe,te}function Lr(){var te,pe,Ie;return te=we,oe.charCodeAt(we)===92?(pe=gn,we++):(pe=null,Le===0&&_e(mn)),pe!==null?(oe.length>we?(Ie=oe.charAt(we),we++):(Ie=null,Le===0&&_e(vn)),Ie!==null?(We=te,pe=Pr(Ie),pe===null&&(we=te),te=pe):(we=te,te=He)):(we=te,te=He),te}var Ar,pr=arguments.length>1?arguments[1]:{},kr={regexp:Ee},Nr=Ee,He=null,nr="",En="|",Cn='"|"',Mn=function(te,pe){return pe?new s(te,pe[1]):te},Dn=function(te,pe,Ie){return new l([te].concat(pe).concat([Ie]))},Vr="^",zr='"^"',Rn=function(){return new o("start")},On="$",$n='"$"',kn=function(){return new o("end")},Nn=function(te,pe){return new A(te,pe)},Vn="Quantifier",zn=function(te,pe){return pe&&(te.greedy=!1),te},Er="{",Cr='"{"',Fn=",",Bn='","',Fr="}",Hr='"}"',Un=function(te,pe){return new w(te,pe)},Ur=",}",Gn='",}"',Wn=function(te){return new w(te,1/0)},Yn=function(te){return new w(te,te)},jn="+",Zn='"+"',qn=function(){return new w(1,1/0)},Xn="*",Jn='"*"',ei=function(){return new w(0,1/0)},Gr="?",Wr='"?"',ti=function(){return new w(0,1)},Yr=/^[0-9]/,jr="[0-9]",ri=function(te){return+te.join("")},ni="(",ii='"("',ai=")",oi='")"',si=function(te){return te},li=function(te){return new x(te)},qr="?:",ui='"?:"',ci=function(te){return new v("non-capture-group",te)},Xr="?=",fi='"?="',hi=function(te){return new v("positive-lookahead",te)},Kr="?!",di='"?!"',pi=function(te){return new v("negative-lookahead",te)},vi="CharacterSet",gi="[",mi='"["',yi="]",_i='"]"',Si=function(te,pe){return new E(!!te,pe)},bi="CharacterRange",xi="-",Ti='"-"',Ai=function(te,pe){return new C(te,pe)},wi="Character",Ei=/^[^\\\]]/,Ci="[^\\\\\\]]",Pr=function(te){return new R(te)},Pi=".",Mi='"."',Ii=function(){return new o("any-character")},Di="Literal",Ri=/^[^|\\\/.[()?+*$\^]/,Oi="[^|\\\\\\/.[()?+*$\\^]",gr="\\b",Jr='"\\\\b"',$i=function(){return new o("backspace")},Li=function(){return new o("word-boundary")},Qr="\\B",ki='"\\\\B"',Ni=function(){return new o("non-word-boundary")},rn="\\d",Vi='"\\\\d"',zi=function(){return new o("digit")},nn="\\D",Fi='"\\\\D"',Bi=function(){return new o("non-digit")},an="\\f",Hi='"\\\\f"',Ui=function(){return new o("form-feed")},on="\\n",Gi='"\\\\n"',Wi=function(){return new o("line-feed")},sn="\\r",Yi='"\\\\r"',ji=function(){return new o("carriage-return")},ln="\\s",Zi='"\\\\s"',qi=function(){return new o("white-space")},un="\\S",Xi='"\\\\S"',Ki=function(){return new o("non-white-space")},cn="\\t",Ji='"\\\\t"',Qi=function(){return new o("tab")},fn="\\v",ea='"\\\\v"',ta=function(){return new o("vertical-tab")},hn="\\w",ra='"\\\\w"',na=function(){return new o("word")},dn="\\W",ia='"\\\\W"',aa=function(){return new o("non-word")},pn="\\c",oa='"\\\\c"',vn="any character",sa=function(te){return new B(te)},gn="\\",mn='"\\\\"',la=/^[1-9]/,ua="[1-9]",fa=function(te){return new F(te)},mr="\\0",yn='"\\\\0"',_n=/^[0-7]/,bn="[0-7]",ha=function(te){return new z(te.join(""))},xn="\\x",da='"\\\\x"',_r=/^[0-9a-fA-F]/,Sr="[0-9a-fA-F]",pa=function(te){return new V(te.join(""))},Tn="\\u",va='"\\\\u"',ga=function(te){return new $(te.join(""))},ma=function(){return new o("null-character")},we=0,We=0,sr=0,Mr={line:1,column:1,seenCR:!1},xr=0,Tr=[],Le=0;if("startRule"in pr){if(!(pr.startRule in kr))throw new Error(`Can't start parsing from rule "`+pr.startRule+'".');Nr=kr[pr.startRule]}if(o.offset=ve,o.text=le,Ar=Nr(),Ar!==null&&we===oe.length)return Ar;throw Te(Tr),We=Math.max(we,xr),new ae(Tr,We<oe.length?oe.charAt(We):null,We,xe(We).line,xe(We).column)}return X(ae,Error),{SyntaxError:ae,parse:ie}}(),Y=1,Z={};r.exports=W},function(r,t,o){var s=o(3),l=o(5),v={extend:s.extend},x=V(97,122),A=V(65,90),w=V(48,57),E=V(32,47)+V(58,64)+V(91,96)+V(123,126),C=V(32,126),R=` \f
\r \v \u2028\u2029`,$={"\\w":x+A+w+"_","\\W":E.replace("_",""),"\\s":R,"\\S":function(){for(var z=C,F=0;F<R.length;F++)z=z.replace(R[F],"");return z}(),"\\d":w,"\\D":x+A+E};function V(z,F){for(var B="",W=z;W<=F;W++)B+=String.fromCharCode(W);return B}v.gen=function(z,F,B){return B=B||{guid:1},v[z.type]?v[z.type](z,F,B):v.token(z,F,B)},v.extend({token:function(z,F,B){switch(z.type){case"start":case"end":return"";case"any-character":return l.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return l.pick(w.split(""));case"non-digit":return l.pick((x+A+E).split(""));case"form-feed":break;case"line-feed":return z.body||z.text;case"carriage-return":break;case"white-space":return l.pick(R.split(""));case"non-white-space":return l.pick((x+A+w).split(""));case"tab":break;case"vertical-tab":break;case"word":return l.pick((x+A+w).split(""));case"non-word":return l.pick(E.replace("_","").split(""))}return z.body||z.text},alternate:function(z,F,B){return this.gen(l.boolean()?z.left:z.right,F,B)},match:function(z,F,B){F="";for(var W=0;W<z.body.length;W++)F+=this.gen(z.body[W],F,B);return F},"capture-group":function(z,F,B){return F=this.gen(z.body,F,B),B[B.guid++]=F,F},"non-capture-group":function(z,F,B){return this.gen(z.body,F,B)},"positive-lookahead":function(z,F,B){return this.gen(z.body,F,B)},"negative-lookahead":function(z,F,B){return""},quantified:function(z,F,B){F="";for(var W=this.quantifier(z.quantifier),Y=0;Y<W;Y++)F+=this.gen(z.body,F,B);return F},quantifier:function(z,F,B){var W=Math.max(z.min,0),Y=isFinite(z.max)?z.max:W+l.integer(3,7);return l.integer(W,Y)},charset:function(z,F,B){if(z.invert)return this["invert-charset"](z,F,B);var W=l.pick(z.body);return this.gen(W,F,B)},"invert-charset":function(z,F,B){for(var W=C,Y=0,Z;Y<z.body.length;Y++)switch(Z=z.body[Y],Z.type){case"literal":W=W.replace(Z.body,"");break;case"range":for(var X=this.gen(Z.start,F,B).charCodeAt(),ae=this.gen(Z.end,F,B).charCodeAt(),ie=X;ie<=ae;ie++)W=W.replace(String.fromCharCode(ie),"");default:var oe=$[Z.text];if(oe)for(var le=0;le<=oe.length;le++)W=W.replace(oe[le],"")}return l.pick(W.split(""))},range:function(z,F,B){var W=this.gen(z.start,F,B).charCodeAt(),Y=this.gen(z.end,F,B).charCodeAt();return String.fromCharCode(l.integer(W,Y))},literal:function(z,F,B){return z.escaped?z.body:z.text},unicode:function(z,F,B){return String.fromCharCode(parseInt(z.code,16))},hex:function(z,F,B){return String.fromCharCode(parseInt(z.code,16))},octal:function(z,F,B){return String.fromCharCode(parseInt(z.code,8))},"back-reference":function(z,F,B){return B[z.code]||""},CONTROL_CHARACTER_MAP:function(){for(var z="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),F=`\0       \x07 \b
\v \f \r              \x1B    `.split(" "),B={},W=0;W<z.length;W++)B[z[W]]=F[W];return B}(),"control-character":function(z,F,B){return this.CONTROL_CHARACTER_MAP[z.code]}}),r.exports=v},function(r,t,o){r.exports=o(24)},function(r,t,o){var s=o(2),l=o(3),v=o(4);function x(A,w,E){E=E||[];var C={name:typeof w=="string"?w.replace(s.RE_KEY,"$1"):w,template:A,type:l.type(A),rule:v.parse(w)};switch(C.path=E.slice(0),C.path.push(w===void 0?"ROOT":C.name),C.type){case"array":C.items=[],l.each(A,function(R,$){C.items.push(x(R,$,C.path))});break;case"object":C.properties=[],l.each(A,function(R,$){C.properties.push(x(R,$,C.path))});break}return C}r.exports=x},function(r,t,o){r.exports=o(26)},function(r,t,o){var s=o(2),l=o(3),v=o(23);function x(E,C){for(var R=v(E),$=A.diff(R,C),V=0;V<$.length;V++);return $}var A={diff:function(C,R,$){var V=[];return this.name(C,R,$,V)&&this.type(C,R,$,V)&&(this.value(C,R,$,V),this.properties(C,R,$,V),this.items(C,R,$,V)),V},name:function(E,C,R,$){var V=$.length;return w.equal("name",E.path,R+"",E.name+"",$),$.length===V},type:function(E,C,R,$){var V=$.length;switch(E.type){case"string":if(E.template.match(s.RE_PLACEHOLDER))return!0;break;case"array":if(E.rule.parameters&&(E.rule.min!==void 0&&E.rule.max===void 0&&E.rule.count===1||E.rule.parameters[2]))return!0;break;case"function":return!0}return w.equal("type",E.path,l.type(C),E.type,$),$.length===V},value:function(E,C,R,$){var V=$.length,z=E.rule,F=E.type;if(F==="object"||F==="array"||F==="function")return!0;if(!z.parameters){switch(F){case"regexp":return w.match("value",E.path,C,E.template,$),$.length===V;case"string":if(E.template.match(s.RE_PLACEHOLDER))return $.length===V;break}return w.equal("value",E.path,C,E.template,$),$.length===V}var B;switch(F){case"number":var W=(C+"").split(".");W[0]=+W[0],z.min!==void 0&&z.max!==void 0&&(w.greaterThanOrEqualTo("value",E.path,W[0],Math.min(z.min,z.max),$),w.lessThanOrEqualTo("value",E.path,W[0],Math.max(z.min,z.max),$)),z.min!==void 0&&z.max===void 0&&w.equal("value",E.path,W[0],z.min,$,"[value] "+R),z.decimal&&(z.dmin!==void 0&&z.dmax!==void 0&&(w.greaterThanOrEqualTo("value",E.path,W[1].length,z.dmin,$),w.lessThanOrEqualTo("value",E.path,W[1].length,z.dmax,$)),z.dmin!==void 0&&z.dmax===void 0&&w.equal("value",E.path,W[1].length,z.dmin,$));break;case"boolean":break;case"string":B=C.match(new RegExp(E.template,"g")),B=B?B.length:0,z.min!==void 0&&z.max!==void 0&&(w.greaterThanOrEqualTo("repeat count",E.path,B,z.min,$),w.lessThanOrEqualTo("repeat count",E.path,B,z.max,$)),z.min!==void 0&&z.max===void 0&&w.equal("repeat count",E.path,B,z.min,$);break;case"regexp":B=C.match(new RegExp(E.template.source.replace(/^\^|\$$/g,""),"g")),B=B?B.length:0,z.min!==void 0&&z.max!==void 0&&(w.greaterThanOrEqualTo("repeat count",E.path,B,z.min,$),w.lessThanOrEqualTo("repeat count",E.path,B,z.max,$)),z.min!==void 0&&z.max===void 0&&w.equal("repeat count",E.path,B,z.min,$);break}return $.length===V},properties:function(E,C,R,$){var V=$.length,z=E.rule,F=l.keys(C);if(E.properties){if(E.rule.parameters?(z.min!==void 0&&z.max!==void 0&&(w.greaterThanOrEqualTo("properties length",E.path,F.length,Math.min(z.min,z.max),$),w.lessThanOrEqualTo("properties length",E.path,F.length,Math.max(z.min,z.max),$)),z.min!==void 0&&z.max===void 0&&z.count!==1&&w.equal("properties length",E.path,F.length,z.min,$)):w.equal("properties length",E.path,F.length,E.properties.length,$),$.length!==V)return!1;for(var B=0;B<F.length;B++)$.push.apply($,this.diff(function(){var W;return l.each(E.properties,function(Y){Y.name===F[B]&&(W=Y)}),W||E.properties[B]}(),C[F[B]],F[B]));return $.length===V}},items:function(E,C,R,$){var V=$.length;if(E.items){var z=E.rule;if(!E.rule.parameters)w.equal("items length",E.path,C.length,E.items.length,$);else{if(z.min!==void 0&&z.max!==void 0&&(w.greaterThanOrEqualTo("items",E.path,C.length,Math.min(z.min,z.max)*E.items.length,$,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),w.lessThanOrEqualTo("items",E.path,C.length,Math.max(z.min,z.max)*E.items.length,$,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),z.min!==void 0&&z.max===void 0){if(z.count===1)return $.length===V;w.equal("items length",E.path,C.length,z.min*E.items.length,$)}if(z.parameters[2])return $.length===V}if($.length!==V)return!1;for(var F=0;F<C.length;F++)$.push.apply($,this.diff(E.items[F%E.items.length],C[F],F%E.items.length));return $.length===V}}},w={message:function(E){return(E.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",E.type.toUpperCase()).replace("{ltype}",E.type.toLowerCase()).replace("{path}",l.isArray(E.path)&&E.path.join(".")||E.path).replace("{action}",E.action).replace("{expected}",E.expected).replace("{actual}",E.actual)},equal:function(E,C,R,$,V,z){if(R===$)return!0;switch(E){case"type":if($==="regexp"&&R==="string")return!0;break}var F={path:C,type:E,actual:R,expected:$,action:"is equal to",message:z};return F.message=w.message(F),V.push(F),!1},match:function(E,C,R,$,V,z){if($.test(R))return!0;var F={path:C,type:E,actual:R,expected:$,action:"matches",message:z};return F.message=w.message(F),V.push(F),!1},notEqual:function(E,C,R,$,V,z){if(R!==$)return!0;var F={path:C,type:E,actual:R,expected:$,action:"is not equal to",message:z};return F.message=w.message(F),V.push(F),!1},greaterThan:function(E,C,R,$,V,z){if(R>$)return!0;var F={path:C,type:E,actual:R,expected:$,action:"is greater than",message:z};return F.message=w.message(F),V.push(F),!1},lessThan:function(E,C,R,$,V,z){if(R<$)return!0;var F={path:C,type:E,actual:R,expected:$,action:"is less to",message:z};return F.message=w.message(F),V.push(F),!1},greaterThanOrEqualTo:function(E,C,R,$,V,z){if(R>=$)return!0;var F={path:C,type:E,actual:R,expected:$,action:"is greater than or equal to",message:z};return F.message=w.message(F),V.push(F),!1},lessThanOrEqualTo:function(E,C,R,$,V,z){if(R<=$)return!0;var F={path:C,type:E,actual:R,expected:$,action:"is less than or equal to",message:z};return F.message=w.message(F),V.push(F),!1}};x.Diff=A,x.Assert=w,r.exports=x},function(r,t,o){r.exports=o(28)},function(r,t,o){var s=o(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(z,F,B,W){var Y=document.createEvent("CustomEvent");return Y.initCustomEvent(z,F,B,W),Y}}var l={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},v="readystatechange loadstart progress abort error load timeout loadend".split(" "),x="timeout withCredentials".split(" "),A="readyState responseURL status statusText responseType response responseText responseXML".split(" "),w={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function E(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}E._settings={timeout:"10-100"},E.setup=function(V){return s.extend(E._settings,V),E._settings},s.extend(E,l),s.extend(E.prototype,l),E.prototype.mock=!0,E.prototype.match=!1,s.extend(E.prototype,{open:function(V,z,F,B,W){var Y=this;s.extend(this.custom,{method:V,url:z,async:typeof F=="boolean"?F:!0,username:B,password:W,options:{url:z,type:V}}),this.custom.timeout=function(le){if(typeof le=="number")return le;if(typeof le=="string"&&!~le.indexOf("-"))return parseInt(le,10);if(typeof le=="string"&&~le.indexOf("-")){var ve=le.split("-"),xe=parseInt(ve[0],10),_e=parseInt(ve[1],10);return Math.round(Math.random()*(_e-xe))+xe}}(E._settings.timeout);var Z=R(this.custom.options);function X(le){for(var ve=0;ve<A.length;ve++)try{Y[A[ve]]=ae[A[ve]]}catch{}Y.dispatchEvent(new Event(le.type))}if(!Z){var ae=C();this.custom.xhr=ae;for(var ie=0;ie<v.length;ie++)ae.addEventListener(v[ie],X);B?ae.open(V,z,F,B,W):ae.open(V,z,F);for(var oe=0;oe<x.length;oe++)try{ae[x[oe]]=Y[x[oe]]}catch{}return}this.match=!0,this.custom.template=Z,this.readyState=E.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(V,z){if(!this.match){this.custom.xhr.setRequestHeader(V,z);return}var F=this.custom.requestHeaders;F[V]?F[V]+=","+z:F[V]=z},timeout:0,withCredentials:!1,upload:{},send:function(z){var F=this;if(this.custom.options.body=z,!this.match){this.custom.xhr.send(z);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(B,this.custom.timeout):B();function B(){F.readyState=E.HEADERS_RECEIVED,F.dispatchEvent(new Event("readystatechange")),F.readyState=E.LOADING,F.dispatchEvent(new Event("readystatechange")),F.status=200,F.statusText=w[200],F.response=F.responseText=JSON.stringify($(F.custom.template,F.custom.options),null,4),F.readyState=E.DONE,F.dispatchEvent(new Event("readystatechange")),F.dispatchEvent(new Event("load")),F.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=E.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),s.extend(E.prototype,{responseURL:"",status:E.UNSENT,statusText:"",getResponseHeader:function(V){return this.match?this.custom.responseHeaders[V.toLowerCase()]:this.custom.xhr.getResponseHeader(V)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var V=this.custom.responseHeaders,z="";for(var F in V)V.hasOwnProperty(F)&&(z+=F+": "+V[F]+`\r
`);return z},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),s.extend(E.prototype,{addEventListener:function(z,F){var B=this.custom.events;B[z]||(B[z]=[]),B[z].push(F)},removeEventListener:function(z,F){for(var B=this.custom.events[z]||[],W=0;W<B.length;W++)B[W]===F&&B.splice(W--,1)},dispatchEvent:function(z){for(var F=this.custom.events[z.type]||[],B=0;B<F.length;B++)F[B].call(this,z);var W="on"+z.type;this[W]&&this[W](z)}});function C(){var V=function(){var B=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,W=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Y=location.href,Z=W.exec(Y.toLowerCase())||[];return B.test(Z[1])}();return window.ActiveXObject?!V&&z()||F():z();function z(){try{return new window._XMLHttpRequest}catch{}}function F(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function R(V){for(var z in E.Mock._mocked){var F=E.Mock._mocked[z];if((!F.rurl||B(F.rurl,V.url))&&(!F.rtype||B(F.rtype,V.type.toLowerCase())))return F}function B(W,Y){if(s.type(W)==="string")return W===Y;if(s.type(W)==="regexp")return W.test(Y)}}function $(V,z){return s.isFunction(V.template)?V.template(z):E.Mock.mock(V.template)}r.exports=E}])})})(mock);var mockExports=mock.exports;const mockJs=getDefaultExportFromCjs(mockExports);function lexer(r){for(var t=[],o=0;o<r.length;){var s=r[o];if(s==="*"||s==="+"||s==="?"){t.push({type:"MODIFIER",index:o,value:r[o++]});continue}if(s==="\\"){t.push({type:"ESCAPED_CHAR",index:o++,value:r[o++]});continue}if(s==="{"){t.push({type:"OPEN",index:o,value:r[o++]});continue}if(s==="}"){t.push({type:"CLOSE",index:o,value:r[o++]});continue}if(s===":"){for(var l="",v=o+1;v<r.length;){var x=r.charCodeAt(v);if(x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||x===95){l+=r[v++];continue}break}if(!l)throw new TypeError("Missing parameter name at ".concat(o));t.push({type:"NAME",index:o,value:l}),o=v;continue}if(s==="("){var A=1,w="",v=o+1;if(r[v]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(v));for(;v<r.length;){if(r[v]==="\\"){w+=r[v++]+r[v++];continue}if(r[v]===")"){if(A--,A===0){v++;break}}else if(r[v]==="("&&(A++,r[v+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(v));w+=r[v++]}if(A)throw new TypeError("Unbalanced pattern at ".concat(o));if(!w)throw new TypeError("Missing pattern at ".concat(o));t.push({type:"PATTERN",index:o,value:w}),o=v;continue}t.push({type:"CHAR",index:o,value:r[o++]})}return t.push({type:"END",index:o,value:""}),t}function parse(r,t){t===void 0&&(t={});for(var o=lexer(r),s=t.prefixes,l=s===void 0?"./":s,v="[^".concat(escapeString(t.delimiter||"/#?"),"]+?"),x=[],A=0,w=0,E="",C=function(ie){if(w<o.length&&o[w].type===ie)return o[w++].value},R=function(ie){var oe=C(ie);if(oe!==void 0)return oe;var le=o[w],ve=le.type,xe=le.index;throw new TypeError("Unexpected ".concat(ve," at ").concat(xe,", expected ").concat(ie))},$=function(){for(var ie="",oe;oe=C("CHAR")||C("ESCAPED_CHAR");)ie+=oe;return ie};w<o.length;){var V=C("CHAR"),z=C("NAME"),F=C("PATTERN");if(z||F){var B=V||"";l.indexOf(B)===-1&&(E+=B,B=""),E&&(x.push(E),E=""),x.push({name:z||A++,prefix:B,suffix:"",pattern:F||v,modifier:C("MODIFIER")||""});continue}var W=V||C("ESCAPED_CHAR");if(W){E+=W;continue}E&&(x.push(E),E="");var Y=C("OPEN");if(Y){var B=$(),Z=C("NAME")||"",X=C("PATTERN")||"",ae=$();R("CLOSE"),x.push({name:Z||(X?A++:""),pattern:Z&&!X?v:X,prefix:B,suffix:ae,modifier:C("MODIFIER")||""});continue}R("END")}return x}function escapeString(r){return r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(r){return r&&r.sensitive?"":"i"}function regexpToRegexp(r,t){if(!t)return r;for(var o=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,l=o.exec(r.source);l;)t.push({name:l[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),l=o.exec(r.source);return r}function arrayToRegexp(r,t,o){var s=r.map(function(l){return pathToRegexp(l,t,o).source});return new RegExp("(?:".concat(s.join("|"),")"),flags(o))}function stringToRegexp(r,t,o){return tokensToRegexp(parse(r,o),t,o)}function tokensToRegexp(r,t,o){o===void 0&&(o={});for(var s=o.strict,l=s===void 0?!1:s,v=o.start,x=v===void 0?!0:v,A=o.end,w=A===void 0?!0:A,E=o.encode,C=E===void 0?function(xe){return xe}:E,R=o.delimiter,$=R===void 0?"/#?":R,V=o.endsWith,z=V===void 0?"":V,F="[".concat(escapeString(z),"]|$"),B="[".concat(escapeString($),"]"),W=x?"^":"",Y=0,Z=r;Y<Z.length;Y++){var X=Z[Y];if(typeof X=="string")W+=escapeString(C(X));else{var ae=escapeString(C(X.prefix)),ie=escapeString(C(X.suffix));if(X.pattern)if(t&&t.push(X),ae||ie)if(X.modifier==="+"||X.modifier==="*"){var oe=X.modifier==="*"?"?":"";W+="(?:".concat(ae,"((?:").concat(X.pattern,")(?:").concat(ie).concat(ae,"(?:").concat(X.pattern,"))*)").concat(ie,")").concat(oe)}else W+="(?:".concat(ae,"(").concat(X.pattern,")").concat(ie,")").concat(X.modifier);else X.modifier==="+"||X.modifier==="*"?W+="((?:".concat(X.pattern,")").concat(X.modifier,")"):W+="(".concat(X.pattern,")").concat(X.modifier);else W+="(?:".concat(ae).concat(ie,")").concat(X.modifier)}}if(w)l||(W+="".concat(B,"?")),W+=o.endsWith?"(?=".concat(F,")"):"$";else{var le=r[r.length-1],ve=typeof le=="string"?B.indexOf(le[le.length-1])>-1:le===void 0;l||(W+="(?:".concat(B,"(?=").concat(F,"))?")),ve||(W+="(?=".concat(B,"|").concat(F,")"))}return new RegExp(W,flags(o))}function pathToRegexp(r,t,o){return r instanceof RegExp?regexpToRegexp(r,t):Array.isArray(r)?arrayToRegexp(r,t,o):stringToRegexp(r,t,o)}const Mock=mockJs;function createProdMockServer(r){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const t={};for(let o in this.custom.requestHeaders)t[o.toString().toLowerCase()]=this.custom.requestHeaders[o];this.custom.options=Object.assign({},this.custom.options,{headers:t})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let t=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&t&&(this.custom.xhr.responseType=t)};for(const{url:t,method:o,response:s,timeout:l}of r)__setupMock__(l),Mock.mock(pathToRegexp(t,void 0,{end:!1}),o||"get",__XHR2ExpressReqWrapper__(s))}function __param2Obj__(r){const t=r.split("?")[1];return t?JSON.parse('{"'+decodeURIComponent(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(r){return function(t){let o=null;if(typeof r=="function"){const{body:s,type:l,url:v,headers:x}=t;let A=s;try{A=JSON.parse(s)}catch{}o=r({method:l,body:A,query:__param2Obj__(v),headers:x})}else o=r;return Mock.mock(o)}}function __setupMock__(r=0){r&&Mock.setup({timeout:r})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach(r=>{mockModules.push(...modules[r].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=Vue.createApp(App);Object.keys(directives).forEach(r=>{app.directive(r,directives[r])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async r=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,r),setupStore(app),app.use(MotionPlugin).use(useI18n).use(ElementPlus).use(Se).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{useMultiTagsStoreHook as $,IconifyIconOffline as A,Br as B,IconifyIconOnline as C,D$1 as D,Et as E,FontIcon as F,S as G,Hn as H,In as I,Je as J,Ke as K,Ln as L,noop$2 as M,toValue as N,tryOnScopeDispose$1 as O,Pn as P,isIOS as Q,isClient$1 as R,Sn as S,toRef as T,addIcon$1 as U,Ve as V,getParentPaths as W,Xe as X,findRouteByPath as Y,Zr as Z,_export_sfc as _,_t as a,Mt as a0,$t as a1,Ae as a2,j$2 as a3,getTopMenu as a4,emitter as a5,handleAliveRoute as a6,P$1 as a7,routerArrays as a8,Ct as a9,removeToken as aa,Qn as ab,resetRouter as ac,useMultiTagsStore as ad,useUserStoreHook as ae,router as af,remainingPaths as ag,tn as ah,LinearGradient$1 as ai,Ue as aj,initRouter as ak,getAuths as al,hasAuth as am,Be as an,handleTree as ao,wr as ap,appendFieldByUniqueId as aq,getNodeByUniqueId as ar,ut as b,commonjsGlobal as c,deleteChildren as d,extractPathList as e,addDialog as f,getDefaultExportFromCjs as g,closeDialog as h,closeAllDialog as i,hot as j,http as k,tryOnMounted as l,tryOnUnmounted$1 as m,useDebounceFn as n,oo as o,pt as p,qe as q,useIntervalFn as r,Kn as s,transformI18n as t,usePermissionStoreHook as u,vr as v,responsiveStorageNameSpace as w,getConfig as x,store as y,zt as z};