import{a as X,r as Y}from"./resize-detector.4e96b72b.js";import{i as ee,t as te}from"./echarts.42bea269.js";import{d as ne,s as A,D as T,_ as re,b as y,g as ae,w as k,k as I,e as oe,C as ie,h as N,u as ue,n as se}from"./@vue.821a47ec.js";var g=function(){return g=Object.assign||function(e){for(var r,n=1,l=arguments.length;n"u"||typeof customElements>"u")return E=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { __dispose = null; disconnectedCallback() { if (this.__dispose) { this.__dispose(); this.__dispose = null; } } } if (customElements.get(tag) == null) { customElements.define(tag, EChartsElement); } `)(W)}catch{return E=!1}return E=!0}(),me="ecTheme",Oe="ecInitOptions",be="ecUpdateOptions",je=ne({name:"echarts",props:g(g({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},fe),ge),emits:{},inheritAttrs:!1,setup:function(e,r){var n=r.attrs,l=A(),c=A(),t=A(),f=A(),x=T(me,null),O=T(Oe,null),_=T(be,null),v=re(e),w=v.autoresize,Z=v.manualUpdate,$=v.loading,G=v.loadingOptions,J=y(function(){return f.value||e.option||null}),U=y(function(){return e.theme||D(x,{})}),B=y(function(){return e.initOptions||D(O,{})}),R=y(function(){return e.updateOptions||D(_,{})}),K=y(function(){return function(s){var a={};for(var u in s)ve(u)||(a[u]=s[u]);return a}(n)}),Q=ae().proxy.$listeners;function C(s){if(c.value){var a=t.value=ee(c.value,U.value,B.value);e.group&&(a.group=e.group);var u=Q;u||(u={},Object.keys(n).filter(function(i){return i.indexOf("on")===0&&i.length>2}).forEach(function(i){var o=i.charAt(2).toLowerCase()+i.slice(3);o.substring(o.length-4)==="Once"&&(o="~".concat(o.substring(0,o.length-4))),u[o]=n[i]})),Object.keys(u).forEach(function(i){var o=u[i];if(o){var p=i.toLowerCase();p.charAt(0)==="~"&&(p=p.substring(1),o.__once__=!0);var h=a;if(p.indexOf("zr:")===0&&(h=a.getZr(),p=p.substring(3)),o.__once__){delete o.__once__;var z=o;o=function(){for(var b=[],m=0;m