var VueDemi=function(e,t,n){if(e.install)return e;if(!t)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),e;if("2.7."===t.version.slice(0,4)){for(var i in t)e[i]=t[i];e.isVue2=!0,e.isVue3=!1,e.install=function(){},e.Vue=t,e.Vue2=t,e.version=t.version,e.warn=t.util.warn,e.createApp=function(e,n){var i,r={},o={config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),provide:function(e,t){return r[e]=t,this},directive:function(e,n){return n?(t.directive(e,n),o):t.directive(e)},mount:function(o,s){return i||((i=new t(Object.assign({propsData:n},e,{provide:Object.assign(r,e.provide)}))).$mount(o,s),i)},unmount:function(){i&&(i.$destroy(),i=void 0)}};return o}}else if("2."===t.version.slice(0,2))if(n){for(var i in n)e[i]=n[i];e.isVue2=!0,e.isVue3=!1,e.install=function(){},e.Vue=t,e.Vue2=t,e.version=t.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if("3."===t.version.slice(0,2)){for(var i in t)e[i]=t[i];e.isVue2=!1,e.isVue3=!0,e.install=function(){},e.Vue=t,e.Vue2=void 0,e.version=t.version,e.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},e.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}}else console.error("[vue-demi] Vue version "+t.version+" is unsupported.");return e}(this.VueDemi=this.VueDemi||(void 0!==VueDemi?VueDemi:{}),this.Vue||("undefined"!=typeof Vue?Vue:void 0),this.VueCompositionAPI||("undefined"!=typeof VueCompositionAPI?VueCompositionAPI:void 0));!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("echarts"),require("vue-demi"),require("echarts/core")):"function"==typeof define&&define.amd?define(["echarts","vue-demi","echarts/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VueECharts=t(e.echarts,e.VueDemi,e.echarts)}(this,(function(e,t,n){"use strict";var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;ndiv{width:100%;height:100%}\n",{});var T=function(){if(null!=V)return V;if("undefined"==typeof HTMLElement||"undefined"==typeof customElements)return V=!1;try{new Function("tag","class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n")(C)}catch(e){return V=!1}return V=!0}();t.Vue2&&t.Vue2.config.ignoredElements.push(C);var L="ecTheme",D="ecInitOptions",S="ecUpdateOptions",N=t.defineComponent({name:"echarts",props:i(i({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},z),x),emits:{},inheritAttrs:!1,setup:function(e,r){var s=r.attrs,a=t.shallowRef(),u=t.shallowRef(),c=t.shallowRef(),l=t.shallowRef(),_=t.inject(L,null),d=t.inject(D,null),f=t.inject(S,null),v=t.toRefs(e),h=v.autoresize,p=v.manualUpdate,g=v.loading,m=v.loadingOptions,z=t.computed((function(){return l.value||e.option||null})),w=t.computed((function(){return e.theme||E(_,{})})),x=t.computed((function(){return e.initOptions||E(d,{})})),V=t.computed((function(){return e.updateOptions||E(f,{})})),C=t.computed((function(){return function(e){var t={};for(var n in e)y(n)||(t[n]=e[n]);return t}(s)})),A=t.getCurrentInstance().proxy.$listeners;function j(i){if(u.value){var r=c.value=n.init(u.value,w.value,x.value);e.group&&(r.group=e.group);var o=A;o||(o={},Object.keys(s).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);"Once"===t.substring(t.length-4)&&(t="~".concat(t.substring(0,t.length-4))),o[t]=s[e]}))),Object.keys(o).forEach((function(e){var t=o[e];if(t){var n=e.toLowerCase();"~"===n.charAt(0)&&(n=n.substring(1),t.__once__=!0);var i=r;if(0===n.indexOf("zr:")&&(i=r.getZr(),n=n.substring(3)),t.__once__){delete t.__once__;var s=t;t=function(){for(var e=[],r=0;r