@concepttocloud/saiku-embed 3.18.2 → 3.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/saiku-embed.js CHANGED
@@ -1,6 +1,6 @@
1
- var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>{throw TypeError(Oe)};var eB=(Oe,Re,Ze)=>Re in Oe?JR(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Oe[Re]=Ze;var Ne=(Oe,Re,Ze)=>eB(Oe,typeof Re!="symbol"?Re+"":Re,Ze),og=(Oe,Re,Ze)=>Re.has(Oe)||gx("Cannot "+Ze);var I=(Oe,Re,Ze)=>(og(Oe,Re,"read from private field"),Ze?Ze.call(Oe):Re.get(Oe)),ae=(Oe,Re,Ze)=>Re.has(Oe)?gx("Cannot add the same private member more than once"):Re instanceof WeakSet?Re.add(Oe):Re.set(Oe,Ze),ee=(Oe,Re,Ze,zo)=>(og(Oe,Re,"write to private field"),zo?zo.call(Oe,Ze):Re.set(Oe,Ze),Ze),he=(Oe,Re,Ze)=>(og(Oe,Re,"access private method"),Ze);var px,Io,_i,wa,Po,ko,Sa,No,Pn,hl,qt,cl,bi,un,fn,Oo,Ro,_e,sg,_l,lg,mx,yx,gh,tB,ug,Fo,Zt,vl,Sr,xa,Ht,xr,Et,Kt,kn,Ta,wi,Bo,dl,pl,Nn,dh,ke,_x,bx,Sx,fg,mh,yh,hg,cg,Vr,hn,jt,Ca,gl,ml,ph,On,Tr;typeof window<"u"&&((px=window.__svelte??(window.__svelte={})).v??(px.v=new Set)).add("5");const Re=1,Ze=2,zo=4,xx=8,Tx=16,Cx=2,vg="[",_h="[!",dg="[?",bh="]",Da={},Qe=Symbol(),Dx="http://www.w3.org/1999/xhtml",pg=!1;var gg=Array.isArray,Ex=Array.prototype.indexOf,Ea=Array.prototype.includes,bl=Array.from,wl=Object.keys,Sl=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Ax=Object.prototype,Mx=Array.prototype,Lx=Object.getPrototypeOf,mg=Object.isExtensible;const Ix=()=>{};function Px(t){for(var e=0;e<t.length;e++)t[e]()}function yg(){var t,e,r=new Promise((n,i)=>{t=n,e=i});return{promise:r,resolve:t,reject:e}}const at=2,Ma=4,xl=8,_g=1<<24,Cr=16,Dr=32,vn=64,wh=128,Qt=512,Ke=1024,Je=2048,Fr=4096,bt=8192,Jt=16384,Bn=32768,Sh=1<<25,La=65536,Tl=1<<17,kx=1<<18,xi=1<<19,Nx=1<<20,zr=1<<25,Ti=65536,Cl=1<<21,Ia=1<<22,Vn=1<<23,Dl=Symbol("$state"),Ox=Symbol("legacy props"),Rx=Symbol("attributes"),xh=Symbol("class"),Th=Symbol("style"),Ho=Symbol("text"),El=new class extends Error{constructor(){super(...arguments);Ne(this,"name","StaleReactionError");Ne(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Al=3,Go=8;function Bx(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Vx(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Fx(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zx(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hx(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gx(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Wx(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $x(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ux(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yx(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xx(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qx(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Zx(){console.warn("https://svelte.dev/e/derived_inert")}function Ml(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Kx(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let be=!1;function dn(t){be=t}let pe;function Mt(t){if(t===null)throw Ml(),Da;return pe=t}function Ll(){return Mt(Hr(pe))}function vt(t){if(be){if(Hr(pe)!==null)throw Ml(),Da;pe=t}}function jx(t=1){if(be){for(var e=t,r=pe;e--;)r=Hr(r);pe=r}}function Il(t=!0){for(var e=0,r=pe;;){if(r.nodeType===Go){var n=r.data;if(n===bh){if(e===0)return r;e-=1}else(n===vg||n===_h||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=Hr(r);t&&r.remove(),r=i}}function bg(t){if(!t||t.nodeType!==Go)throw Ml(),Da;return t.data}function wg(t){return t===this.v}function Qx(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sg(t){return!Qx(t,this.v)}let Jx=!1,Lt=null;function Pa(t){Lt=t}function Wo(t,e=!1,r){Lt={p:Lt,i:!1,c:null,e:null,s:t,x:null,r:le,l:null}}function $o(t){var e=Lt,r=e.e;if(r!==null){e.e=null;for(var n of r)Xg(n)}return t!==void 0&&(e.x=t),e.i=!0,Lt=e.p,t??{}}function xg(){return!0}let Ci=[];function Tg(){var t=Ci;Ci=[],Px(t)}function Di(t){if(Ci.length===0&&!Uo){var e=Ci;queueMicrotask(()=>{e===Ci&&Tg()})}Ci.push(t)}function eT(){for(;Ci.length>0;)Tg()}function Cg(t){var e=le;if(e===null)return ce.f|=Vn,t;if((e.f&Bn)===0&&(e.f&Ma)===0)throw t;Fn(t,e)}function Fn(t,e){for(;e!==null;){if((e.f&wh)!==0){if((e.f&Bn)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}const tT=-7169;function ze(t,e){t.f=t.f&tT|e}function Ch(t){(t.f&Qt)!==0||t.deps===null?ze(t,Ke):ze(t,Fr)}function Dg(t){if(t!==null)for(const e of t)(e.f&at)===0||(e.f&Ti)===0||(e.f^=Ti,Dg(e.deps))}function Eg(t,e,r){(t.f&Je)!==0?e.add(t):(t.f&Fr)!==0&&r.add(t),Dg(t.deps),ze(t,Ke)}let Dh=null,ka=null,ve=null,Eh=null,Er=null,Ah=null,Uo=!1,Mh=!1,Na=null,Pl=null;var Ag=0,rB=new Set;let rT=1;const vh=class vh{constructor(){ae(this,_e);Ne(this,"id",rT++);ae(this,Io,!1);Ne(this,"linked",!0);ae(this,_i,null);ae(this,wa,null);Ne(this,"async_deriveds",new Map);Ne(this,"current",new Map);Ne(this,"previous",new Map);Ne(this,"unblocked",new Set);ae(this,Po,new Set);ae(this,ko,new Set);ae(this,Sa,new Set);ae(this,No,0);ae(this,Pn,new Map);ae(this,hl,null);ae(this,qt,[]);ae(this,cl,[]);ae(this,bi,new Set);ae(this,un,new Set);ae(this,fn,new Map);ae(this,Oo,new Set);Ne(this,"is_fork",!1);ae(this,Ro,!1)}skip_effect(e){I(this,fn).has(e)||I(this,fn).set(e,{d:[],m:[]}),I(this,Oo).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=I(this,fn).get(e);if(n){I(this,fn).delete(e);for(var i of n.d)ze(i,Je),r(i);for(i of n.m)ze(i,Fr),r(i)}I(this,Oo).add(e)}capture(e,r,n=!1){e.v!==Qe&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&Vn)===0&&(this.current.set(e,[r,n]),Er?.set(e,r)),this.is_fork||(e.v=r)}activate(){ve=this}deactivate(){ve=null,Er=null}flush(){try{Mh=!0,ve=this,he(this,_e,_l).call(this)}finally{Ag=0,Ah=null,Na=null,Pl=null,Mh=!1,ve=null,Er=null,Ei.clear()}}discard(){for(const e of I(this,ko))e(this);I(this,ko).clear(),I(this,Sa).clear(),he(this,_e,Fo).call(this)}register_created_effect(e){I(this,cl).push(e)}increment(e,r){if(ee(this,No,I(this,No)+1),e){let n=I(this,Pn).get(r)??0;I(this,Pn).set(r,n+1)}}decrement(e,r){if(ee(this,No,I(this,No)-1),e){let n=I(this,Pn).get(r)??0;n===1?I(this,Pn).delete(r):I(this,Pn).set(r,n-1)}I(this,Ro)||(ee(this,Ro,!0),Di(()=>{ee(this,Ro,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)I(this,bi).add(n);for(const n of r)I(this,un).add(n);e.clear(),r.clear()}oncommit(e){I(this,Po).add(e)}ondiscard(e){I(this,ko).add(e)}on_fork_commit(e){I(this,Sa).add(e)}run_fork_commit_callbacks(){for(const e of I(this,Sa))e(this);I(this,Sa).clear()}settled(){return(I(this,hl)??ee(this,hl,yg())).promise}static ensure(){var e;if(ve===null){const r=ve=new vh;he(e=r,_e,ug).call(e),!Mh&&!Uo&&Di(()=>{I(r,Io)||r.flush()})}return ve}apply(){{Er=null;return}}schedule(e){if(Ah=e,e.b?.is_pending&&(e.f&(Ma|xl|_g))!==0&&(e.f&Bn)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(Na!==null&&r===le&&(ce===null||(ce.f&at)===0))return;if((n&(vn|Dr))!==0){if((n&Ke)===0)return;r.f^=Ke}}I(this,qt).push(r)}};Io=new WeakMap,_i=new WeakMap,wa=new WeakMap,Po=new WeakMap,ko=new WeakMap,Sa=new WeakMap,No=new WeakMap,Pn=new WeakMap,hl=new WeakMap,qt=new WeakMap,cl=new WeakMap,bi=new WeakMap,un=new WeakMap,fn=new WeakMap,Oo=new WeakMap,Ro=new WeakMap,_e=new WeakSet,sg=function(){if(this.is_fork)return!0;for(const n of I(this,Pn).keys()){for(var e=n,r=!1;e.parent!==null;){if(I(this,fn).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},_l=function(){var l,u,f;if(ee(this,Io,!0),Ag++>1e3&&(he(this,_e,Fo).call(this),nT()),!he(this,_e,sg).call(this)){for(const h of I(this,bi))I(this,un).delete(h),ze(h,Je),this.schedule(h);for(const h of I(this,un))ze(h,Fr),this.schedule(h)}const e=I(this,qt);ee(this,qt,[]),this.apply();var r=Na=[],n=[],i=Pl=[];for(const h of e)try{he(this,_e,lg).call(this,h,r,n)}catch(c){throw Pg(h),c}if(ve=null,i.length>0){var a=vh.ensure();for(const h of i)a.schedule(h)}if(Na=null,Pl=null,he(this,_e,sg).call(this)){he(this,_e,gh).call(this,n),he(this,_e,gh).call(this,r);for(const[h,c]of I(this,fn))Ig(h,c);i.length>0&&he(l=ve,_e,_l).call(l);return}const o=he(this,_e,mx).call(this);if(o){he(u=o,_e,yx).call(u,this);return}I(this,bi).clear(),I(this,un).clear();for(const h of I(this,Po))h(this);I(this,Po).clear(),Eh=this,Mg(n),Mg(r),Eh=null,I(this,hl)?.resolve();var s=ve;if(this.linked&&I(this,No)===0&&he(this,_e,Fo).call(this),I(this,qt).length>0){s===null&&(s=this,he(this,_e,ug).call(this));const h=s;I(h,qt).push(...I(this,qt).filter(c=>!I(h,qt).includes(c)))}s!==null&&he(f=s,_e,_l).call(f)},lg=function(e,r,n){e.f^=Ke;for(var i=e.first;i!==null;){var a=i.f,o=(a&(Dr|vn))!==0,s=o&&(a&Ke)!==0,l=s||(a&bt)!==0||I(this,fn).has(i);if(!l&&i.fn!==null){o?i.f^=Ke:(a&Ma)!==0?r.push(i):Xo(i)&&((a&Cr)!==0&&I(this,un).add(i),Va(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},mx=function(){for(var e=I(this,_i);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=I(e,_i)}return null},yx=function(e){var n;for(const[i,a]of e.current)!this.previous.has(i)&&e.previous.has(i)&&this.previous.set(i,e.previous.get(i)),this.current.set(i,a);for(const[i,a]of e.async_deriveds){const o=this.async_deriveds.get(i);o&&a.promise.then(o.resolve)}const r=i=>{var a=i.reactions;if(a!==null)for(const l of a){var o=l.f;if((o&at)!==0)r(l);else{var s=l;o&(Ia|Cr)&&!this.async_deriveds.has(s)&&(I(this,un).delete(s),ze(s,Je),this.schedule(s))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>e.discard()),he(n=e,_e,Fo).call(n),ve=this,he(this,_e,_l).call(this)},gh=function(e){for(var r=0;r<e.length;r+=1)Eg(e[r],I(this,bi),I(this,un))},tB=function(){var f;he(this,_e,Fo).call(this);for(let h=Dh;h!==null;h=I(h,wa)){var e=h.id<this.id,r=[];for(const[c,[v,d]]of this.current){if(h.current.has(c)){var n=h.current.get(c)[0];if(e&&v!==n)h.current.set(c,[v,d]);else continue}r.push(c)}if(e)for(const[c,v]of this.async_deriveds){const d=h.async_deriveds.get(c);d&&v.promise.then(d.resolve)}if(I(h,Io)){var i=[...h.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)e&&h.discard();else if(r.length>0){if(e)for(const c of I(this,Oo))h.unskip_effect(c,v=>{var d;(v.f&(Cr|Ia))!==0?h.schedule(v):he(d=h,_e,gh).call(d,[v])});h.activate();var a=new Set,o=new Map;for(var s of r)Lg(s,i,a,o);o=new Map;var l=[...h.current.keys()].filter(c=>this.current.has(c)?this.current.get(c)[0]!==c.v:!0);if(l.length>0)for(const c of I(this,cl))(c.f&(Jt|bt|Tl))===0&&Lh(c,l,o)&&((c.f&(Ia|Cr))!==0?(ze(c,Je),h.schedule(c)):I(h,bi).add(c));if(I(h,qt).length>0){h.apply();for(var u of I(h,qt))he(f=h,_e,lg).call(f,u,[],[]);ee(h,qt,[])}h.deactivate()}}}},ug=function(){ka===null?Dh=ka=this:(ee(ka,wa,this),ee(this,_i,ka)),ka=this},Fo=function(){var e=I(this,_i),r=I(this,wa);e===null?Dh=r:ee(e,wa,r),r===null?ka=e:ee(r,_i,e),this.linked=!1};let zn=vh;function It(t){var e=Uo;Uo=!0;try{for(var r;;){if(eT(),ve===null)return r;ve.flush()}}finally{Uo=e}}function nT(){try{Wx()}catch(t){Fn(t,Ah)}}let pn=null;function Mg(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Jt|bt))===0&&Xo(n)&&(pn=new Set,Va(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Kg(n),pn?.size>0)){Ei.clear();for(const i of pn){if((i.f&(Jt|bt))!==0)continue;const a=[i];let o=i.parent;for(;o!==null;)pn.has(o)&&(pn.delete(o),a.push(o)),o=o.parent;for(let s=a.length-1;s>=0;s--){const l=a[s];(l.f&(Jt|bt))===0&&Va(l)}}pn.clear()}}pn=null}}function Lg(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const i of t.reactions){const a=i.f;(a&at)!==0?Lg(i,e,r,n):(a&(Ia|Cr))!==0&&(a&Je)===0&&Lh(i,e,n)&&(ze(i,Je),Ih(i))}}function Lh(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const i of t.deps){if(Ea.call(e,i))return!0;if((i.f&at)!==0&&Lh(i,e,r))return r.set(i,!0),!0}return r.set(t,!1),!1}function Ih(t){ve.schedule(t)}function Ig(t,e){if(!((t.f&Dr)!==0&&(t.f&Ke)!==0)){(t.f&Je)!==0?e.d.push(t):(t.f&Fr)!==0&&e.m.push(t),ze(t,Ke);for(var r=t.first;r!==null;)Ig(r,e),r=r.next}}function Pg(t){ze(t,Ke);for(var e=t.first;e!==null;)Pg(e),e=e.next}function iT(t){let e=0,r=Ai(0),n;return()=>{Rh()&&(U(r),Bh(()=>(e===0&&(n=Gh(()=>t(()=>Yo(r)))),e+=1,()=>{Di(()=>{e-=1,e===0&&(n?.(),n=void 0,Yo(r))})})))}}var aT=La|xi;function oT(t,e,r,n){new sT(t,e,r,n)}class sT{constructor(e,r,n,i){ae(this,ke);Ne(this,"parent");Ne(this,"is_pending",!1);Ne(this,"transform_error");ae(this,Zt);ae(this,vl,be?pe:null);ae(this,Sr);ae(this,xa);ae(this,Ht);ae(this,xr,null);ae(this,Et,null);ae(this,Kt,null);ae(this,kn,null);ae(this,Ta,0);ae(this,wi,0);ae(this,Bo,!1);ae(this,dl,new Set);ae(this,pl,new Set);ae(this,Nn,null);ae(this,dh,iT(()=>(ee(this,Nn,Ai(I(this,Ta))),()=>{ee(this,Nn,null)})));ee(this,Zt,e),ee(this,Sr,r),ee(this,xa,a=>{var o=le;o.b=this,o.f|=wh,n(a)}),this.parent=le.b,this.transform_error=i??this.parent?.transform_error??(a=>a),ee(this,Ht,Vh(()=>{if(be){const a=I(this,vl);Ll();const o=a.data===_h;if(a.data.startsWith(dg)){const l=JSON.parse(a.data.slice(dg.length));he(this,ke,bx).call(this,l)}else o?he(this,ke,Sx).call(this):he(this,ke,_x).call(this)}else he(this,ke,fg).call(this)},aT)),be&&ee(this,Zt,pe)}defer_effect(e){Eg(e,I(this,dl),I(this,pl))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!I(this,Sr).pending}update_pending_count(e,r){he(this,ke,hg).call(this,e,r),ee(this,Ta,I(this,Ta)+e),!(!I(this,Nn)||I(this,Bo))&&(ee(this,Bo,!0),Di(()=>{ee(this,Bo,!1),I(this,Nn)&&Oa(I(this,Nn),I(this,Ta))}))}get_effect_pending(){return I(this,dh).call(this),U(I(this,Nn))}error(e){if(!I(this,Sr).onerror&&!I(this,Sr).failed)throw e;ve?.is_fork?(I(this,xr)&&ve.skip_effect(I(this,xr)),I(this,Et)&&ve.skip_effect(I(this,Et)),I(this,Kt)&&ve.skip_effect(I(this,Kt)),ve.on_fork_commit(()=>{he(this,ke,cg).call(this,e)})):he(this,ke,cg).call(this,e)}}Zt=new WeakMap,vl=new WeakMap,Sr=new WeakMap,xa=new WeakMap,Ht=new WeakMap,xr=new WeakMap,Et=new WeakMap,Kt=new WeakMap,kn=new WeakMap,Ta=new WeakMap,wi=new WeakMap,Bo=new WeakMap,dl=new WeakMap,pl=new WeakMap,Nn=new WeakMap,dh=new WeakMap,ke=new WeakSet,_x=function(){try{ee(this,xr,rr(()=>I(this,xa).call(this,I(this,Zt))))}catch(e){this.error(e)}},bx=function(e){const r=I(this,Sr).failed;r&&ee(this,Kt,rr(()=>{r(I(this,Zt),()=>e,()=>()=>{})}))},Sx=function(){const e=I(this,Sr).pending;e&&(this.is_pending=!0,ee(this,Et,rr(()=>e(I(this,Zt)))),Di(()=>{var r=ee(this,kn,document.createDocumentFragment()),n=er();r.append(n),ee(this,xr,he(this,ke,yh).call(this,()=>rr(()=>I(this,xa).call(this,n)))),I(this,wi)===0&&(I(this,Zt).before(r),ee(this,kn,null),Mi(I(this,Et),()=>{ee(this,Et,null)}),he(this,ke,mh).call(this,ve))}))},fg=function(){try{if(this.is_pending=this.has_pending_snippet(),ee(this,wi,0),ee(this,Ta,0),ee(this,xr,rr(()=>{I(this,xa).call(this,I(this,Zt))})),I(this,wi)>0){var e=ee(this,kn,document.createDocumentFragment());Hh(I(this,xr),e);const r=I(this,Sr).pending;ee(this,Et,rr(()=>r(I(this,Zt))))}else he(this,ke,mh).call(this,ve)}catch(r){this.error(r)}},mh=function(e){this.is_pending=!1,e.transfer_effects(I(this,dl),I(this,pl))},yh=function(e){var r=le,n=ce,i=Lt;$r(I(this,Ht)),nr(I(this,Ht)),Pa(I(this,Ht).ctx);try{return zn.ensure(),e()}catch(a){return Cg(a),null}finally{$r(r),nr(n),Pa(i)}},hg=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&he(n=this.parent,ke,hg).call(n,e,r);return}ee(this,wi,I(this,wi)+e),I(this,wi)===0&&(he(this,ke,mh).call(this,r),I(this,Et)&&Mi(I(this,Et),()=>{ee(this,Et,null)}),I(this,kn)&&(I(this,Zt).before(I(this,kn)),ee(this,kn,null)))},cg=function(e){I(this,xr)&&(wt(I(this,xr)),ee(this,xr,null)),I(this,Et)&&(wt(I(this,Et)),ee(this,Et,null)),I(this,Kt)&&(wt(I(this,Kt)),ee(this,Kt,null)),be&&(Mt(I(this,vl)),jx(),Mt(Il()));var r=I(this,Sr).onerror;let n=I(this,Sr).failed;var i=!1,a=!1;const o=()=>{if(i){Kx();return}i=!0,a&&qx(),I(this,Kt)!==null&&Mi(I(this,Kt),()=>{ee(this,Kt,null)}),he(this,ke,yh).call(this,()=>{he(this,ke,fg).call(this)})},s=l=>{try{a=!0,r?.(l,o),a=!1}catch(u){Fn(u,I(this,Ht)&&I(this,Ht).parent)}n&&ee(this,Kt,he(this,ke,yh).call(this,()=>{try{return rr(()=>{var u=le;u.b=this,u.f|=wh,n(I(this,Zt),()=>l,()=>o)})}catch(u){return Fn(u,I(this,Ht).parent),null}}))};Di(()=>{var l;try{l=this.transform_error(e)}catch(u){Fn(u,I(this,Ht)&&I(this,Ht).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(s,u=>Fn(u,I(this,Ht)&&I(this,Ht).parent)):s(l)})};function lT(t,e,r,n){const i=Nl;var a=t.filter(c=>!c.settled);if(r.length===0&&a.length===0){n(e.map(i));return}var o=le,s=uT(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function u(c){if((o.f&Jt)===0){s();try{n(c)}catch(v){Fn(v,o)}kl()}}var f=kg();if(r.length===0){l.then(()=>u(e.map(i))).finally(f);return}function h(){Promise.all(r.map(c=>fT(c))).then(c=>u([...e.map(i),...c])).catch(c=>Fn(c,o)).finally(f)}l?l.then(()=>{s(),h(),kl()}):h()}function uT(){var t=le,e=ce,r=Lt,n=ve;return function(a=!0){$r(t),nr(e),Pa(r),a&&(t.f&Jt)===0&&(n?.activate(),n?.apply())}}function kl(t=!0){$r(null),nr(null),Pa(null),t&&ve?.deactivate()}function kg(){var t=le,e=t.b,r=ve,n=e.is_rendered();return e.update_pending_count(1,r),r.increment(n,t),()=>{e.update_pending_count(-1,r),r.decrement(n,t)}}function Nl(t){var e=at|Je;return le!==null&&(le.f|=xi),{ctx:Lt,deps:null,effects:null,equals:wg,f:e,fn:t,reactions:null,rv:0,v:Qe,wv:0,parent:le,ac:null}}const Ol=Symbol("obsolete");function fT(t,e,r){let n=le;n===null&&Vx();var i=void 0,a=Ai(Qe),o=!ce,s=new Set;return bT(()=>{var l=le,u=yg();i=u.promise;try{Promise.resolve(t()).then(u.resolve,v=>{v!==El&&u.reject(v)}).finally(kl)}catch(v){u.reject(v),kl()}var f=ve;if(o){if((l.f&Bn)!==0)var h=kg();if(n.b.is_rendered())f.async_deriveds.get(l)?.reject(Ol);else for(const v of s.values())v.reject(Ol);s.add(u),f.async_deriveds.set(l,u)}const c=(v,d=void 0)=>{h?.(),s.delete(u),d!==Ol&&(f.activate(),d?(a.f|=Vn,Oa(a,d)):((a.f&Vn)!==0&&(a.f^=Vn),Oa(a,v)),f.deactivate())};u.promise.then(c,v=>c(null,v||"unknown"))}),mT(()=>{for(const l of s)l.reject(Ol)}),new Promise(l=>{function u(f){function h(){f===i?l(a):u(i)}f.then(h,h)}u(i)})}function Rl(t){const e=Nl(t);return em(e),e}function hT(t){const e=Nl(t);return e.equals=Sg,e}function cT(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)wt(e[r])}}function Ph(t){var e,r=le,n=t.parent;if(!gn&&n!==null&&(n.f&(Jt|bt))!==0)return Zx(),t.v;$r(n);try{t.f&=~Ti,cT(t),e=am(t)}finally{$r(r)}return e}function Ng(t){var e=Ph(t);if(!t.equals(e)&&(t.wv=nm(),(!ve?.is_fork||t.deps===null)&&(ve!==null?(ve.capture(t,e,!0),Eh?.capture(t,e,!0)):t.v=e,t.deps===null))){ze(t,Ke);return}gn||(Er!==null?(Rh()||ve?.is_fork)&&Er.set(t,e):Ch(t))}function vT(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(El),e.teardown=Ix,e.ac=null,qo(e,0),Fh(e))}function Og(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Va(e)}let Bl=new Set;const Ei=new Map;let Rg=!1;function Ai(t,e){var r={f:0,v:t,reactions:null,equals:wg,rv:0,wv:0};return r}function dt(t,e){const r=Ai(t);return em(r),r}function Bg(t,e=!1,r=!0){const n=Ai(t);return e||(n.equals=Sg),n}function ge(t,e,r=!1){ce!==null&&(!Ar||(ce.f&Tl)!==0)&&xg()&&(ce.f&(at|Cr|Ia|Tl))!==0&&(ir===null||!Ea.call(ir,t))&&Xx();let n=r?Ra(e):e;return Oa(t,n,Pl)}function Oa(t,e,r=null){if(!t.equals(e)){Ei.set(t,gn?e:t.v);var n=zn.ensure();if(n.capture(t,e),(t.f&at)!==0){const i=t;(t.f&Je)!==0&&Ph(i),Er===null&&Ch(i)}t.wv=nm(),Vg(t,Je,r),le!==null&&(le.f&Ke)!==0&&(le.f&(Dr|vn))===0&&(ar===null?xT([t]):ar.push(t)),!n.is_fork&&Bl.size>0&&!Rg&&dT()}return e}function dT(){Rg=!1;for(const t of Bl){(t.f&Ke)!==0&&ze(t,Fr);let e;try{e=Xo(t)}catch{e=!0}e&&Va(t)}Bl.clear()}function Yo(t){ge(t,t.v+1)}function Vg(t,e,r){var n=t.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var o=n[a],s=o.f,l=(s&Je)===0;if(l&&ze(o,e),(s&Tl)!==0)Bl.add(o);else if((s&at)!==0){var u=o;Er?.delete(u),(s&Ti)===0&&(s&Qt&&(le===null||(le.f&Cl)===0)&&(o.f|=Ti),Vg(u,Fr,r))}else if(l){var f=o;(s&Cr)!==0&&pn!==null&&pn.add(f),r!==null?r.push(f):Ih(f)}}}function Ra(t){if(typeof t!="object"||t===null||Dl in t)return t;const e=Lx(t);if(e!==Ax&&e!==Mx)return t;var r=new Map,n=gg(t),i=dt(0),a=Ii,o=s=>{if(Ii===a)return s();var l=ce,u=Ii;nr(null),rm(a);var f=s();return nr(l),rm(u),f};return n&&r.set("length",dt(t.length)),new Proxy(t,{defineProperty(s,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ux();var f=r.get(l);return f===void 0?o(()=>{var h=dt(u.value);return r.set(l,h),h}):ge(f,u.value,!0),!0},deleteProperty(s,l){var u=r.get(l);if(u===void 0){if(l in s){const f=o(()=>dt(Qe));r.set(l,f),Yo(i)}}else ge(u,Qe),Yo(i);return!0},get(s,l,u){if(l===Dl)return t;var f=r.get(l),h=l in s;if(f===void 0&&(!h||Aa(s,l)?.writable)&&(f=o(()=>{var v=Ra(h?s[l]:Qe),d=dt(v);return d}),r.set(l,f)),f!==void 0){var c=U(f);return c===Qe?void 0:c}return Reflect.get(s,l,u)},getOwnPropertyDescriptor(s,l){var u=Reflect.getOwnPropertyDescriptor(s,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=U(f))}else if(u===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==Qe)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(s,l){if(l===Dl)return!0;var u=r.get(l),f=u!==void 0&&u.v!==Qe||Reflect.has(s,l);if(u!==void 0||le!==null&&(!f||Aa(s,l)?.writable)){u===void 0&&(u=o(()=>{var c=f?Ra(s[l]):Qe,v=dt(c);return v}),r.set(l,u));var h=U(u);if(h===Qe)return!1}return f},set(s,l,u,f){var h=r.get(l),c=l in s;if(n&&l==="length")for(var v=u;v<h.v;v+=1){var d=r.get(v+"");d!==void 0?ge(d,Qe):v in s&&(d=o(()=>dt(Qe)),r.set(v+"",d))}if(h===void 0)(!c||Aa(s,l)?.writable)&&(h=o(()=>dt(void 0)),ge(h,Ra(u)),r.set(l,h));else{c=h.v!==Qe;var m=o(()=>Ra(u));ge(h,m)}var p=Reflect.getOwnPropertyDescriptor(s,l);if(p?.set&&p.set.call(f,u),!c){if(n&&typeof l=="string"){var g=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=g.v&&ge(g,y+1)}Yo(i)}return!0},ownKeys(s){U(i);var l=Reflect.ownKeys(s).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Qe});for(var[u,f]of r)f.v!==Qe&&!(u in s)&&l.push(u);return l},setPrototypeOf(){Yx()}})}var Fg,zg,Hg,Gg;function kh(){if(Fg===void 0){Fg=window,zg=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Hg=Aa(e,"firstChild").get,Gg=Aa(e,"nextSibling").get,mg(t)&&(t[xh]=void 0,t[Rx]=null,t[Th]=void 0,t.__e=void 0),mg(r)&&(r[Ho]=void 0)}}function er(t=""){return document.createTextNode(t)}function Ba(t){return Hg.call(t)}function Hr(t){return Gg.call(t)}function tr(t,e){if(!be)return Ba(t);var r=Ba(pe);if(r===null)r=pe.appendChild(er());else if(e&&r.nodeType!==Al){var n=er();return r?.before(n),Mt(n),n}return e&&Oh(r),Mt(r),r}function Vl(t,e=!1){if(!be){var r=Ba(t);return r instanceof Comment&&r.data===""?Hr(r):r}if(e){if(pe?.nodeType!==Al){var n=er();return pe?.before(n),Mt(n),n}Oh(pe)}return pe}function Wg(t,e=1,r=!1){let n=be?pe:t;for(var i;e--;)i=n,n=Hr(n);if(!be)return n;if(r){if(n?.nodeType!==Al){var a=er();return n===null?i?.after(a):n.before(a),Mt(a),a}Oh(n)}return Mt(n),n}function $g(t){t.textContent=""}function Ug(){return!1}function Nh(t,e,r){return document.createElementNS(Dx,t,void 0)}function Oh(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Al;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Yg(t){var e=ce,r=le;nr(null),$r(null);try{return t()}finally{nr(e),$r(r)}}function pT(t){le===null&&(ce===null&&Gx(),Hx()),gn&&zx()}function gT(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Gr(t,e){var r=le;r!==null&&(r.f&bt)!==0&&(t|=bt);var n={ctx:Lt,deps:null,nodes:null,f:t|Je|Qt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};ve?.register_created_effect(n);var i=n;if((t&Ma)!==0)Na!==null?Na.push(n):zn.ensure().schedule(n);else if(e!==null){try{Va(n)}catch(o){throw wt(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&xi)===0&&(i=i.first,(t&Cr)!==0&&(t&La)!==0&&i!==null&&(i.f|=La))}if(i!==null&&(i.parent=r,r!==null&&gT(i,r),ce!==null&&(ce.f&at)!==0&&(t&vn)===0)){var a=ce;(a.effects??(a.effects=[])).push(i)}return n}function Rh(){return ce!==null&&!Ar}function mT(t){const e=Gr(xl,null);return ze(e,Ke),e.teardown=t,e}function Fl(t){pT();var e=le.f,r=!ce&&(e&Dr)!==0&&(e&Bn)===0;if(r){var n=Lt;(n.e??(n.e=[])).push(t)}else return Xg(t)}function Xg(t){return Gr(Ma|Nx,t)}function yT(t){zn.ensure();const e=Gr(vn|xi,t);return()=>{wt(e)}}function _T(t){zn.ensure();const e=Gr(vn|xi,t);return(r={})=>new Promise(n=>{r.outro?Mi(e,()=>{wt(e),n(void 0)}):(wt(e),n(void 0))})}function qg(t){return Gr(Ma,t)}function bT(t){return Gr(Ia|xi,t)}function Bh(t,e=0){return Gr(xl|e,t)}function Wr(t,e=[],r=[],n=[]){lT(n,e,r,i=>{Gr(xl,()=>t(...i.map(U)))})}function Vh(t,e=0){var r=Gr(Cr|e,t);return r}function rr(t){return Gr(Dr|xi,t)}function Zg(t){var e=t.teardown;if(e!==null){const r=gn,n=ce;Jg(!0),nr(null);try{e.call(null)}finally{Jg(r),nr(n)}}}function Fh(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&Yg(()=>{i.abort(El)});var n=r.next;(r.f&vn)!==0?r.parent=null:wt(r,e),r=n}}function wT(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Dr)===0&&wt(e),e=r}}function wt(t,e=!0){var r=!1;(e||(t.f&kx)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(ST(t.nodes.start,t.nodes.end),r=!0),ze(t,Sh),Fh(t,e&&!r),qo(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)a.stop();Zg(t),t.f^=Sh,t.f|=Jt;var i=t.parent;i!==null&&i.first!==null&&Kg(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function ST(t,e){for(;t!==null;){var r=t===e?null:Hr(t);t.remove(),t=r}}function Kg(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mi(t,e,r=!0){var n=[];jg(t,n,!0);var i=()=>{r&&wt(t),e&&e()},a=n.length;if(a>0){var o=()=>--a||i();for(var s of n)s.out(o)}else i()}function jg(t,e,r){if((t.f&bt)===0){t.f^=bt;var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&e.push(s);for(var i=t.first;i!==null;){var a=i.next;if((i.f&vn)===0){var o=(i.f&La)!==0||(i.f&Dr)!==0&&(t.f&Cr)!==0;jg(i,e,o?r:!1)}i=a}}}function zh(t){Qg(t,!0)}function Qg(t,e){if((t.f&bt)!==0){t.f^=bt,(t.f&Ke)===0&&(ze(t,Je),zn.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&La)!==0||(r.f&Dr)!==0;Qg(r,i?e:!1),r=n}var a=t.nodes&&t.nodes.t;if(a!==null)for(const o of a)(o.is_global||e)&&o.in()}}function Hh(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:Hr(r);e.append(r),r=i}}let zl=!1,gn=!1;function Jg(t){gn=t}let ce=null,Ar=!1;function nr(t){ce=t}let le=null;function $r(t){le=t}let ir=null;function em(t){ce!==null&&(ir===null?ir=[t]:ir.push(t))}let Pt=null,Gt=0,ar=null;function xT(t){ar=t}let tm=1,Li=0,Ii=Li;function rm(t){Ii=t}function nm(){return++tm}function Xo(t){var e=t.f;if((e&Je)!==0)return!0;if(e&at&&(t.f&=~Ti),(e&Fr)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var a=r[i];if(Xo(a)&&Ng(a),a.wv>t.wv)return!0}(e&Qt)!==0&&Er===null&&ze(t,Ke)}return!1}function im(t,e,r=!0){var n=t.reactions;if(n!==null&&!(ir!==null&&Ea.call(ir,t)))for(var i=0;i<n.length;i++){var a=n[i];(a.f&at)!==0?im(a,e,!1):e===a&&(r?ze(a,Je):(a.f&Ke)!==0&&ze(a,Fr),Ih(a))}}function am(t){var m;var e=Pt,r=Gt,n=ar,i=ce,a=ir,o=Lt,s=Ar,l=Ii,u=t.f;Pt=null,Gt=0,ar=null,ce=(u&(Dr|vn))===0?t:null,ir=null,Pa(t.ctx),Ar=!1,Ii=++Li,t.ac!==null&&(Yg(()=>{t.ac.abort(El)}),t.ac=null);try{t.f|=Cl;var f=t.fn,h=f();t.f|=Bn;var c=t.deps,v=ve?.is_fork;if(Pt!==null){var d;if(v||qo(t,Gt),c!==null&&Gt>0)for(c.length=Gt+Pt.length,d=0;d<Pt.length;d++)c[Gt+d]=Pt[d];else t.deps=c=Pt;if(Rh()&&(t.f&Qt)!==0)for(d=Gt;d<c.length;d++)((m=c[d]).reactions??(m.reactions=[])).push(t)}else!v&&c!==null&&Gt<c.length&&(qo(t,Gt),c.length=Gt);if(xg()&&ar!==null&&!Ar&&c!==null&&(t.f&(at|Fr|Je))===0)for(d=0;d<ar.length;d++)im(ar[d],t);if(i!==null&&i!==t){if(Li++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=Li;if(e!==null)for(const p of e)p.rv=Li;ar!==null&&(n===null?n=ar:n.push(...ar))}return(t.f&Vn)!==0&&(t.f^=Vn),h}catch(p){return Cg(p)}finally{t.f^=Cl,Pt=e,Gt=r,ar=n,ce=i,ir=a,Pa(o),Ar=s,Ii=l}}function TT(t,e){let r=e.reactions;if(r!==null){var n=Ex.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&at)!==0&&(Pt===null||!Ea.call(Pt,e))){var a=e;(a.f&Qt)!==0&&(a.f^=Qt,a.f&=~Ti),a.v!==Qe&&Ch(a),vT(a),qo(a,0)}}function qo(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)TT(t,r[n])}function Va(t){var e=t.f;if((e&Jt)===0){ze(t,Ke);var r=le,n=zl;le=t,zl=!0;try{(e&(Cr|_g))!==0?wT(t):Fh(t),Zg(t);var i=am(t);t.teardown=typeof i=="function"?i:null,t.wv=tm;var a;pg&&Jx&&(t.f&Je)!==0&&t.deps}finally{zl=n,le=r}}}function U(t){var e=t.f,r=(e&at)!==0;if(ce!==null&&!Ar){var n=le!==null&&(le.f&Jt)!==0;if(!n&&(ir===null||!Ea.call(ir,t))){var i=ce.deps;if((ce.f&Cl)!==0)t.rv<Li&&(t.rv=Li,Pt===null&&i!==null&&i[Gt]===t?Gt++:Pt===null?Pt=[t]:Pt.push(t));else{(ce.deps??(ce.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[ce]:Ea.call(a,ce)||a.push(ce)}}}if(gn&&Ei.has(t))return Ei.get(t);if(r){var o=t;if(gn){var s=o.v;return((o.f&Ke)===0&&o.reactions!==null||sm(o))&&(s=Ph(o)),Ei.set(o,s),s}var l=(o.f&Qt)===0&&!Ar&&ce!==null&&(zl||(ce.f&Qt)!==0),u=(o.f&Bn)===0;Xo(o)&&(l&&(o.f|=Qt),Ng(o)),l&&!u&&(Og(o),om(o))}if(Er?.has(t))return Er.get(t);if((t.f&Vn)!==0)throw t.v;return t.v}function om(t){if(t.f|=Qt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),(e.f&at)!==0&&(e.f&Qt)===0&&(Og(e),om(e))}function sm(t){if(t.v===Qe)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ei.has(e)||(e.f&at)!==0&&sm(e))return!0;return!1}function Gh(t){var e=Ar;try{return Ar=!0,t()}finally{Ar=e}}const Hl=Symbol("events"),CT=new Set,lm=new Set;let um=null;function fm(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],a=i[0]||t.target;um=t;var o=0,s=um===t&&t[Hl];if(s){var l=i.indexOf(s);if(l!==-1&&(e===document||e===window)){t[Hl]=e;return}var u=i.indexOf(e);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||t.target,a!==e){Sl(t,"currentTarget",{configurable:!0,get(){return a||r}});var f=ce,h=le;nr(null),$r(null);try{for(var c,v=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var m=a[Hl]?.[n];m!=null&&(!a.disabled||t.target===a)&&m.call(a,t)}catch(p){c?v.push(p):c=p}if(t.cancelBubble||d===e||d===null)break;a=d}if(c){for(let p of v)queueMicrotask(()=>{throw p});throw c}}finally{t[Hl]=e,delete t.currentTarget,nr(f),$r(h)}}}const DT=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ET(t){return DT?.createHTML(t)??t}function AT(t){var e=Nh("template");return e.innerHTML=ET(t.replaceAll("<!>","<!---->")),e.content}function Zo(t,e){var r=le;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Xe(t,e){var r=(e&Cx)!==0,n,i=!t.startsWith("<!>");return()=>{if(be)return Zo(pe,null),pe;n===void 0&&(n=AT(i?t:"<!>"+t),n=Ba(n));var a=r||zg?document.importNode(n,!0):n.cloneNode(!0);return Zo(a,a),a}}function Gl(){if(be)return Zo(pe,null),pe;var t=document.createDocumentFragment(),e=document.createComment(""),r=er();return t.append(e,r),Zo(e,r),t}function Ie(t,e){if(be){var r=le;((r.f&Bn)===0||r.nodes.end===null)&&(r.nodes.end=pe),Ll();return}t!==null&&t.before(e)}const MT=["touchstart","touchmove"];function LT(t){return MT.includes(t)}function Pi(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Ho]??(t[Ho]=t.nodeValue))&&(t[Ho]=r,t.nodeValue=`${r}`)}function hm(t,e){return cm(t,e)}function IT(t,e){kh(),e.intro=e.intro??!1;const r=e.target,n=be,i=pe;try{for(var a=Ba(r);a&&(a.nodeType!==Go||a.data!==vg);)a=Hr(a);if(!a)throw Da;dn(!0),Mt(a);const o=cm(t,{...e,anchor:a});return dn(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(s=>s.startsWith("https://svelte.dev/e/")))throw o;return o!==Da&&console.warn("Failed to hydrate: ",o),e.recover===!1&&$x(),kh(),$g(r),dn(!1),hm(t,e)}finally{dn(n),Mt(i)}}const Wl=new Map;function cm(t,{target:e,anchor:r,props:n={},events:i,context:a,intro:o=!0,transformError:s}){kh();var l=void 0,u=_T(()=>{var f=r??e.appendChild(er());oT(f,{pending:()=>{}},v=>{Wo({});var d=Lt;if(a&&(d.c=a),i&&(n.$$events=i),be&&Zo(v,null),l=t(v,n)||{},be&&(le.nodes.end=pe,pe===null||pe.nodeType!==Go||pe.data!==bh))throw Ml(),Da;$o()},s);var h=new Set,c=v=>{for(var d=0;d<v.length;d++){var m=v[d];if(!h.has(m)){h.add(m);var p=LT(m);for(const _ of[e,document]){var g=Wl.get(_);g===void 0&&(g=new Map,Wl.set(_,g));var y=g.get(m);y===void 0?(_.addEventListener(m,fm,{passive:p}),g.set(m,1)):g.set(m,y+1)}}}};return c(bl(CT)),lm.add(c),()=>{for(var v of h)for(const p of[e,document]){var d=Wl.get(p),m=d.get(v);--m==0?(p.removeEventListener(v,fm),d.delete(v),d.size===0&&Wl.delete(p)):d.set(v,m)}lm.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return Wh.set(l,u),l}let Wh=new WeakMap;function PT(t,e){const r=Wh.get(t);return r?(Wh.delete(t),r(e)):Promise.resolve()}class kT{constructor(e,r=!0){Ne(this,"anchor");ae(this,Vr,new Map);ae(this,hn,new Map);ae(this,jt,new Map);ae(this,Ca,new Set);ae(this,gl,!0);ae(this,ml,e=>{if(I(this,Vr).has(e)){var r=I(this,Vr).get(e),n=I(this,hn).get(r);if(n)zh(n),I(this,Ca).delete(r);else{var i=I(this,jt).get(r);i&&(I(this,hn).set(r,i.effect),I(this,jt).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[a,o]of I(this,Vr)){if(I(this,Vr).delete(a),a===e)break;const s=I(this,jt).get(o);s&&(wt(s.effect),I(this,jt).delete(o))}for(const[a,o]of I(this,hn)){if(a===r||I(this,Ca).has(a))continue;const s=()=>{if(Array.from(I(this,Vr).values()).includes(a)){var u=document.createDocumentFragment();Hh(o,u),u.append(er()),I(this,jt).set(a,{effect:o,fragment:u})}else wt(o);I(this,Ca).delete(a),I(this,hn).delete(a)};I(this,gl)||!n?(I(this,Ca).add(a),Mi(o,s,!1)):s()}}});ae(this,ph,e=>{I(this,Vr).delete(e);const r=Array.from(I(this,Vr).values());for(const[n,i]of I(this,jt))r.includes(n)||(wt(i.effect),I(this,jt).delete(n))});this.anchor=e,ee(this,gl,r)}ensure(e,r){var n=ve,i=Ug();if(r&&!I(this,hn).has(e)&&!I(this,jt).has(e))if(i){var a=document.createDocumentFragment(),o=er();a.append(o),I(this,jt).set(e,{effect:rr(()=>r(o)),fragment:a})}else I(this,hn).set(e,rr(()=>r(this.anchor)));if(I(this,Vr).set(n,e),i){for(const[s,l]of I(this,hn))s===e?n.unskip_effect(l):n.skip_effect(l);for(const[s,l]of I(this,jt))s===e?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(I(this,ml)),n.ondiscard(I(this,ph))}else be&&(this.anchor=pe),I(this,ml).call(this,n)}}Vr=new WeakMap,hn=new WeakMap,jt=new WeakMap,Ca=new WeakMap,gl=new WeakMap,ml=new WeakMap,ph=new WeakMap;function NT(t){Lt===null&&Bx(),Fl(()=>{const e=Gh(t);if(typeof e=="function")return e})}function ki(t,e,r=!1){var n;be&&(n=pe,Ll());var i=new kT(t),a=r?La:0;function o(s,l){if(be){var u=bg(n);if(s!==parseInt(u.substring(1))){var f=Il();Mt(f),i.anchor=f,dn(!1),i.ensure(s,l),dn(!0);return}}i.ensure(s,l)}Vh(()=>{var s=!1;e((l,u=0)=>{s=!0,o(u,l)}),s||o(-1,null)},a)}function OT(t,e){return e}function RT(t,e,r){for(var n=[],i=e.length,a,o=e.length,s=0;s<i;s++){let h=e[s];Mi(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var c=t.outrogroups;$h(t,bl(a.done)),c.delete(a),c.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;$g(f),f.append(u),t.items.clear()}$h(t,e,!l)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function $h(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const o of t.pending.values())for(const s of o)n.add(t.items.get(s).e)}for(var i=0;i<e.length;i++){var a=e[i];if(n?.has(a)){a.f|=zr;const o=document.createDocumentFragment();Hh(a,o)}else wt(e[i],r)}}var vm;function $l(t,e,r,n,i,a=null){var o=t,s=new Map,l=(e&zo)!==0;if(l){var u=t;o=be?Mt(Ba(u)):u.appendChild(er())}be&&Ll();var f=null,h=hT(()=>{var _=r();return gg(_)?_:_==null?[]:bl(_)}),c,v=new Map,d=!0;function m(_){(y.effect.f&Jt)===0&&(y.pending.delete(_),y.fallback=f,BT(y,c,o,e,n),f!==null&&(c.length===0?(f.f&zr)===0?zh(f):(f.f^=zr,jo(f,null,o)):Mi(f,()=>{f=null})))}function p(_){y.pending.delete(_)}var g=Vh(()=>{c=U(h);var _=c.length;let b=!1;if(be){var w=bg(o)===_h;w!==(_===0)&&(o=Il(),Mt(o),dn(!1),b=!0)}for(var S=new Set,x=ve,T=Ug(),C=0;C<_;C+=1){be&&pe.nodeType===Go&&pe.data===bh&&(o=pe,b=!0,dn(!1));var E=c[C],D=n(E,C),L=d?null:s.get(D);L?(L.v&&Oa(L.v,E),L.i&&Oa(L.i,C),T&&x.unskip_effect(L.e)):(L=VT(s,d?o:vm??(vm=er()),E,D,C,i,e,r),d||(L.e.f|=zr),s.set(D,L)),S.add(D)}if(_===0&&a&&!f&&(d?f=rr(()=>a(o)):(f=rr(()=>a(vm??(vm=er()))),f.f|=zr)),_>S.size&&Fx(),be&&_>0&&Mt(Il()),!d)if(v.set(x,S),T){for(const[M,P]of s)S.has(M)||x.skip_effect(P.e);x.oncommit(m),x.ondiscard(p)}else m(x);b&&dn(!0),U(h)}),y={effect:g,items:s,pending:v,outrogroups:null,fallback:f};d=!1,be&&(o=pe)}function Ko(t){for(;t!==null&&(t.f&Dr)===0;)t=t.next;return t}function BT(t,e,r,n,i){var a=(n&xx)!==0,o=e.length,s=t.items,l=Ko(t.effect.first),u,f=null,h,c=[],v=[],d,m,p,g;if(a)for(g=0;g<o;g+=1)d=e[g],m=i(d,g),p=s.get(m).e,(p.f&zr)===0&&(p.nodes?.a?.measure(),(h??(h=new Set)).add(p));for(g=0;g<o;g+=1){if(d=e[g],m=i(d,g),p=s.get(m).e,t.outrogroups!==null)for(const E of t.outrogroups)E.pending.delete(p),E.done.delete(p);if((p.f&bt)!==0&&(zh(p),a&&(p.nodes?.a?.unfix(),(h??(h=new Set)).delete(p))),(p.f&zr)!==0)if(p.f^=zr,p===l)jo(p,null,r);else{var y=f?f.next:l;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Hn(t,f,p),Hn(t,p,y),jo(p,y,r),f=p,c=[],v=[],l=Ko(f.next);continue}if(p!==l){if(u!==void 0&&u.has(p)){if(c.length<v.length){var _=v[0],b;f=_.prev;var w=c[0],S=c[c.length-1];for(b=0;b<c.length;b+=1)jo(c[b],_,r);for(b=0;b<v.length;b+=1)u.delete(v[b]);Hn(t,w.prev,S.next),Hn(t,f,w),Hn(t,S,_),l=_,f=S,g-=1,c=[],v=[]}else u.delete(p),jo(p,l,r),Hn(t,p.prev,p.next),Hn(t,p,f===null?t.effect.first:f.next),Hn(t,f,p),f=p;continue}for(c=[],v=[];l!==null&&l!==p;)(u??(u=new Set)).add(l),v.push(l),l=Ko(l.next);if(l===null)continue}(p.f&zr)===0&&c.push(p),f=p,l=Ko(p.next)}if(t.outrogroups!==null){for(const E of t.outrogroups)E.pending.size===0&&($h(t,bl(E.done)),t.outrogroups?.delete(E));t.outrogroups.size===0&&(t.outrogroups=null)}if(l!==null||u!==void 0){var x=[];if(u!==void 0)for(p of u)(p.f&bt)===0&&x.push(p);for(;l!==null;)(l.f&bt)===0&&l!==t.fallback&&x.push(l),l=Ko(l.next);var T=x.length;if(T>0){var C=(n&zo)!==0&&o===0?r:null;if(a){for(g=0;g<T;g+=1)x[g].nodes?.a?.measure();for(g=0;g<T;g+=1)x[g].nodes?.a?.fix()}RT(t,x,C)}}a&&Di(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function VT(t,e,r,n,i,a,o,s){var l=(o&Re)!==0?(o&Tx)===0?Bg(r,!1,!1):Ai(r):null,u=(o&Ze)!==0?Ai(i):null;return{v:l,i:u,e:rr(()=>(a(e,l??r,u??i,s),()=>{t.delete(n)}))}}function jo(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,a=e&&(e.f&zr)===0?e.nodes.start:r;n!==null;){var o=Hr(n);if(a.before(n),n===i)return;n=o}}function Hn(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function Ul(t,e){qg(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=Nh("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}const dm=[...`
3
- \r\f \v\uFEFF`];function FT(t,e,r){var n=""+t;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,o=0;(o=n.indexOf(i,o))>=0;){var s=o+a;(o===0||dm.includes(n[o-1]))&&(s===n.length||dm.includes(n[s]))?n=(o===0?"":n.substring(0,o))+n.substring(s+1):o=s}}return n===""?null:n}function zT(t,e){return t==null?null:String(t)}function pm(t,e,r,n,i,a){var o=t[xh];if(be||o!==r||o===void 0){var s=FT(r,n,a);(!be||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):t.className=s),t[xh]=r}else if(a&&i!==a)for(var l in a){var u=!!a[l];(i==null||u!==!!i[l])&&t.classList.toggle(l,u)}return a}function Uh(t,e,r,n){var i=t[Th];if(be||i!==e){var a=zT(e);(!be||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t[Th]=e}return n}function Yh(t,e){return t===e||t?.[Dl]===e}function HT(t={},e,r,n){var i=Lt.r,a=le;return qg(()=>{var o,s;return Bh(()=>{o=s,s=[],Gh(()=>{Yh(r(...s),t)||(e(t,...s),o&&Yh(r(...o),t)&&e(null,...o))})}),()=>{let l=a;for(;l!==i&&l.parent!==null&&l.parent.f&Sh;)l=l.parent;const u=()=>{s&&Yh(r(...s),t)&&e(null,...s)},f=l.teardown;l.teardown=()=>{u(),f?.()}}}),t}function Wt(t,e,r,n){var i=n,a=!0,o=()=>(a&&(a=!1,i=n),i),s;s=t[e],s===void 0&&n!==void 0&&(s=o());var l;l=()=>{var c=t[e];return c===void 0?o():(a=!0,c)};var u=!1,f=Nl(()=>(u=!1,l())),h=le;return(function(c,v){if(arguments.length>0){const d=v?U(f):c;return ge(f,d),u=!0,i!==void 0&&(i=d),c}return gn&&u||(h.f&Jt)!==0?f.v:U(f)})}function GT(t){return new WT(t)}class WT{constructor(e){ae(this,On);ae(this,Tr);var r=new Map,n=(a,o)=>{var s=Bg(o,!1,!1);return r.set(a,s),s};const i=new Proxy({...e.props||{},$$events:{}},{get(a,o){return U(r.get(o)??n(o,Reflect.get(a,o)))},has(a,o){return o===Ox?!0:(U(r.get(o)??n(o,Reflect.get(a,o))),Reflect.has(a,o))},set(a,o,s){return ge(r.get(o)??n(o,s),s),Reflect.set(a,o,s)}});ee(this,Tr,(e.hydrate?IT:hm)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!e?.props?.$$host||e.sync===!1)&&It(),ee(this,On,i.$$events);for(const a of Object.keys(I(this,Tr)))a==="$set"||a==="$destroy"||a==="$on"||Sl(this,a,{get(){return I(this,Tr)[a]},set(o){I(this,Tr)[a]=o},enumerable:!0});I(this,Tr).$set=a=>{Object.assign(i,a)},I(this,Tr).$destroy=()=>{PT(I(this,Tr))}}$set(e){I(this,Tr).$set(e)}$on(e,r){I(this,On)[e]=I(this,On)[e]||[];const n=(...i)=>r.call(this,...i);return I(this,On)[e].push(n),()=>{I(this,On)[e]=I(this,On)[e].filter(i=>i!==n)}}$destroy(){I(this,Tr).$destroy()}}On=new WeakMap,Tr=new WeakMap;let gm;typeof HTMLElement=="function"&&(gm=class extends HTMLElement{constructor(e,r,n){super();Ne(this,"$$ctor");Ne(this,"$$s");Ne(this,"$$c");Ne(this,"$$cn",!1);Ne(this,"$$d",{});Ne(this,"$$r",!1);Ne(this,"$$p_d",{});Ne(this,"$$l",{});Ne(this,"$$l_u",new Map);Ne(this,"$$me");Ne(this,"$$shadowRoot",null);this.$$ctor=e,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return a=>{const o=Nh("slot");i!=="default"&&(o.name=i),Ie(a,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=$T(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),r.default=!0):r[i]=e(i));for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Yl(a,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=GT({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=yT(()=>{Bh(()=>{this.$$r=!0;for(const i of wl(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const a=Yl(i,this.$$d[i],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,a)}this.$$r=!1})});for(const i in this.$$l)for(const a of this.$$l[i]){const o=this.$$c.$on(i,a);this.$$l_u.set(a,o)}this.$$l={}}}attributeChangedCallback(e,r,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yl(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return wl(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Yl(t,e,r,n){const i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function $T(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Xl(t,e,r,n,i,a){let o=class extends gm{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return wl(e).map(s=>(e[s].attribute||s).toLowerCase())}};return wl(e).forEach(s=>{Sl(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){l=Yl(s,l,e),this.$$d[s]=l;var u=this.$$c;if(u){var f=Aa(u,s)?.get;f?u[s]=l:u.$set({[s]:l})}}})}),n.forEach(s=>{Sl(o.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=o,o}var UT=Xe('<div class="empty svelte-93f8ou">No rows returned</div>'),YT=Xe("<th> </th>"),XT=Xe("<td> </td>"),qT=Xe('<tr class="svelte-93f8ou"></tr>'),ZT=Xe('<table class="svelte-93f8ou"><thead><tr></tr></thead><tbody class="svelte-93f8ou"></tbody></table>');const KT={hash:"svelte-93f8ou",code:`
1
+ var SaikuEmbed=(function(){"use strict";var qB=Object.defineProperty;var Ax=Ge=>{throw TypeError(Ge)};var ZB=(Ge,Ve,rt)=>Ve in Ge?qB(Ge,Ve,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Ge[Ve]=rt;var He=(Ge,Ve,rt)=>ZB(Ge,typeof Ve!="symbol"?Ve+"":Ve,rt),ig=(Ge,Ve,rt)=>Ve.has(Ge)||Ax("Cannot "+rt);var E=(Ge,Ve,rt)=>(ig(Ge,Ve,"read from private field"),rt?rt.call(Ge):Ve.get(Ge)),le=(Ge,Ve,rt)=>Ve.has(Ge)?Ax("Cannot add the same private member more than once"):Ve instanceof WeakSet?Ve.add(Ge):Ve.set(Ge,rt),ne=(Ge,Ve,rt,Ho)=>(ig(Ge,Ve,"write to private field"),Ho?Ho.call(Ge,rt):Ve.set(Ge,rt),rt),ge=(Ge,Ve,rt)=>(ig(Ge,Ve,"access private method"),rt);var Dx,Io,Ci,Aa,Po,Eo,Ma,Ro,Rn,ml,qt,yl,Di,un,fn,Oo,No,Ce,ag,Cl,og,Mx,Lx,dh,KB,sg,zo,Zt,_l,wr,La,Vt,Sr,kt,Kt,On,ka,Ai,Bo,bl,wl,Nn,ch,ze,kx,Ix,Px,lg,ph,gh,ug,fg,Fr,hn,jt,Ia,Sl,xl,vh,Bn,xr;typeof window<"u"&&((Dx=window.__svelte??(window.__svelte={})).v??(Dx.v=new Set)).add("5");const Ve=1,rt=2,Ho=4,Ex=8,Rx=16,Ox=1,Nx=2,hg="[",mh="[!",cg="[?",yh="]",Pa={},at=Symbol(),vg="http://www.w3.org/1999/xhtml",dg=!1;var pg=Array.isArray,Bx=Array.prototype.indexOf,Ea=Array.prototype.includes,Dl=Array.from,Al=Object.keys,Ml=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Fx=Object.getOwnPropertyDescriptors,zx=Object.prototype,Hx=Array.prototype,gg=Object.getPrototypeOf,mg=Object.isExtensible;const Gx=()=>{};function Vx(t){for(var e=0;e<t.length;e++)t[e]()}function yg(){var t,e,r=new Promise((n,i)=>{t=n,e=i});return{promise:r,resolve:t,reject:e}}const vt=2,Oa=4,Ll=8,_g=1<<24,Tr=16,Cr=32,vn=64,_h=128,Qt=512,nt=1024,ot=2048,zr=4096,Tt=8192,Jt=16384,zn=32768,bh=1<<25,Na=65536,kl=1<<17,Wx=1<<18,Li=1<<19,$x=1<<20,Hr=1<<25,ki=65536,Il=1<<21,Ba=1<<22,Hn=1<<23,Pl=Symbol("$state"),Ux=Symbol("legacy props"),Yx=Symbol(""),El=Symbol("attributes"),wh=Symbol("class"),Sh=Symbol("style"),Go=Symbol("text"),Vo=Symbol("form reset"),Rl=new class extends Error{constructor(){super(...arguments);He(this,"name","StaleReactionError");He(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Xx=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ol=3,Wo=8;function qx(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Zx(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Kx(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function jx(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qx(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Jx(t){throw new Error("https://svelte.dev/e/effect_orphan")}function eT(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tT(){throw new Error("https://svelte.dev/e/hydration_failed")}function rT(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nT(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function iT(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function aT(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function oT(){console.warn("https://svelte.dev/e/derived_inert")}function Nl(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function sT(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let _e=!1;function dn(t){_e=t}let Se;function It(t){if(t===null)throw Nl(),Pa;return Se=t}function Bl(){return It(Vr(Se))}function ee(t){if(_e){if(Vr(Se)!==null)throw Nl(),Pa;Se=t}}function bg(t=1){if(_e){for(var e=t,r=Se;e--;)r=Vr(r);Se=r}}function Fl(t=!0){for(var e=0,r=Se;;){if(r.nodeType===Wo){var n=r.data;if(n===yh){if(e===0)return r;e-=1}else(n===hg||n===mh||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=Vr(r);t&&r.remove(),r=i}}function wg(t){if(!t||t.nodeType!==Wo)throw Nl(),Pa;return t.data}function Sg(t){return t===this.v}function lT(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function xg(t){return!lT(t,this.v)}let uT=!1,Pt=null;function Fa(t){Pt=t}function pn(t,e=!1,r){Pt={p:Pt,i:!1,c:null,e:null,s:t,x:null,r:ve,l:null}}function gn(t){var e=Pt,r=e.e;if(r!==null){e.e=null;for(var n of r)Zg(n)}return t!==void 0&&(e.x=t),e.i=!0,Pt=e.p,t??{}}function Tg(){return!0}let Ii=[];function Cg(){var t=Ii;Ii=[],Vx(t)}function mn(t){if(Ii.length===0&&!$o){var e=Ii;queueMicrotask(()=>{e===Ii&&Cg()})}Ii.push(t)}function fT(){for(;Ii.length>0;)Cg()}function Dg(t){var e=ve;if(e===null)return me.f|=Hn,t;if((e.f&zn)===0&&(e.f&Oa)===0)throw t;Gn(t,e)}function Gn(t,e){for(;e!==null;){if((e.f&_h)!==0){if((e.f&zn)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}const hT=-7169;function qe(t,e){t.f=t.f&hT|e}function xh(t){(t.f&Qt)!==0||t.deps===null?qe(t,nt):qe(t,zr)}function Ag(t){if(t!==null)for(const e of t)(e.f&vt)===0||(e.f&ki)===0||(e.f^=ki,Ag(e.deps))}function Mg(t,e,r){(t.f&ot)!==0?e.add(t):(t.f&zr)!==0&&r.add(t),Ag(t.deps),qe(t,nt)}let Th=null,za=null,ce=null,Ch=null,Dr=null,Dh=null,$o=!1,Ah=!1,Ha=null,zl=null;var Lg=0,jB=new Set;let cT=1;const hh=class hh{constructor(){le(this,Ce);He(this,"id",cT++);le(this,Io,!1);He(this,"linked",!0);le(this,Ci,null);le(this,Aa,null);He(this,"async_deriveds",new Map);He(this,"current",new Map);He(this,"previous",new Map);He(this,"unblocked",new Set);le(this,Po,new Set);le(this,Eo,new Set);le(this,Ma,new Set);le(this,Ro,0);le(this,Rn,new Map);le(this,ml,null);le(this,qt,[]);le(this,yl,[]);le(this,Di,new Set);le(this,un,new Set);le(this,fn,new Map);le(this,Oo,new Set);He(this,"is_fork",!1);le(this,No,!1)}skip_effect(e){E(this,fn).has(e)||E(this,fn).set(e,{d:[],m:[]}),E(this,Oo).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=E(this,fn).get(e);if(n){E(this,fn).delete(e);for(var i of n.d)qe(i,ot),r(i);for(i of n.m)qe(i,zr),r(i)}E(this,Oo).add(e)}capture(e,r,n=!1){e.v!==at&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&Hn)===0&&(this.current.set(e,[r,n]),Dr?.set(e,r)),this.is_fork||(e.v=r)}activate(){ce=this}deactivate(){ce=null,Dr=null}flush(){try{Ah=!0,ce=this,ge(this,Ce,Cl).call(this)}finally{Lg=0,Dh=null,Ha=null,zl=null,Ah=!1,ce=null,Dr=null,Pi.clear()}}discard(){for(const e of E(this,Eo))e(this);E(this,Eo).clear(),E(this,Ma).clear(),ge(this,Ce,zo).call(this)}register_created_effect(e){E(this,yl).push(e)}increment(e,r){if(ne(this,Ro,E(this,Ro)+1),e){let n=E(this,Rn).get(r)??0;E(this,Rn).set(r,n+1)}}decrement(e,r){if(ne(this,Ro,E(this,Ro)-1),e){let n=E(this,Rn).get(r)??0;n===1?E(this,Rn).delete(r):E(this,Rn).set(r,n-1)}E(this,No)||(ne(this,No,!0),mn(()=>{ne(this,No,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)E(this,Di).add(n);for(const n of r)E(this,un).add(n);e.clear(),r.clear()}oncommit(e){E(this,Po).add(e)}ondiscard(e){E(this,Eo).add(e)}on_fork_commit(e){E(this,Ma).add(e)}run_fork_commit_callbacks(){for(const e of E(this,Ma))e(this);E(this,Ma).clear()}settled(){return(E(this,ml)??ne(this,ml,yg())).promise}static ensure(){var e;if(ce===null){const r=ce=new hh;ge(e=r,Ce,sg).call(e),!Ah&&!$o&&mn(()=>{E(r,Io)||r.flush()})}return ce}apply(){{Dr=null;return}}schedule(e){if(Dh=e,e.b?.is_pending&&(e.f&(Oa|Ll|_g))!==0&&(e.f&zn)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(Ha!==null&&r===ve&&(me===null||(me.f&vt)===0))return;if((n&(vn|Cr))!==0){if((n&nt)===0)return;r.f^=nt}}E(this,qt).push(r)}};Io=new WeakMap,Ci=new WeakMap,Aa=new WeakMap,Po=new WeakMap,Eo=new WeakMap,Ma=new WeakMap,Ro=new WeakMap,Rn=new WeakMap,ml=new WeakMap,qt=new WeakMap,yl=new WeakMap,Di=new WeakMap,un=new WeakMap,fn=new WeakMap,Oo=new WeakMap,No=new WeakMap,Ce=new WeakSet,ag=function(){if(this.is_fork)return!0;for(const n of E(this,Rn).keys()){for(var e=n,r=!1;e.parent!==null;){if(E(this,fn).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},Cl=function(){var l,u,f;if(ne(this,Io,!0),Lg++>1e3&&(ge(this,Ce,zo).call(this),vT()),!ge(this,Ce,ag).call(this)){for(const h of E(this,Di))E(this,un).delete(h),qe(h,ot),this.schedule(h);for(const h of E(this,un))qe(h,zr),this.schedule(h)}const e=E(this,qt);ne(this,qt,[]),this.apply();var r=Ha=[],n=[],i=zl=[];for(const h of e)try{ge(this,Ce,og).call(this,h,r,n)}catch(v){throw Eg(h),v}if(ce=null,i.length>0){var a=hh.ensure();for(const h of i)a.schedule(h)}if(Ha=null,zl=null,ge(this,Ce,ag).call(this)){ge(this,Ce,dh).call(this,n),ge(this,Ce,dh).call(this,r);for(const[h,v]of E(this,fn))Pg(h,v);i.length>0&&ge(l=ce,Ce,Cl).call(l);return}const o=ge(this,Ce,Mx).call(this);if(o){ge(u=o,Ce,Lx).call(u,this);return}E(this,Di).clear(),E(this,un).clear();for(const h of E(this,Po))h(this);E(this,Po).clear(),Ch=this,kg(n),kg(r),Ch=null,E(this,ml)?.resolve();var s=ce;if(this.linked&&E(this,Ro)===0&&ge(this,Ce,zo).call(this),E(this,qt).length>0){s===null&&(s=this,ge(this,Ce,sg).call(this));const h=s;E(h,qt).push(...E(this,qt).filter(v=>!E(h,qt).includes(v)))}s!==null&&ge(f=s,Ce,Cl).call(f)},og=function(e,r,n){e.f^=nt;for(var i=e.first;i!==null;){var a=i.f,o=(a&(Cr|vn))!==0,s=o&&(a&nt)!==0,l=s||(a&Tt)!==0||E(this,fn).has(i);if(!l&&i.fn!==null){o?i.f^=nt:(a&Oa)!==0?r.push(i):Yo(i)&&((a&Tr)!==0&&E(this,un).add(i),Wa(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Mx=function(){for(var e=E(this,Ci);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=E(e,Ci)}return null},Lx=function(e){var n;for(const[i,a]of e.current)!this.previous.has(i)&&e.previous.has(i)&&this.previous.set(i,e.previous.get(i)),this.current.set(i,a);for(const[i,a]of e.async_deriveds){const o=this.async_deriveds.get(i);o&&a.promise.then(o.resolve)}const r=i=>{var a=i.reactions;if(a!==null)for(const l of a){var o=l.f;if((o&vt)!==0)r(l);else{var s=l;o&(Ba|Tr)&&!this.async_deriveds.has(s)&&(E(this,un).delete(s),qe(s,ot),this.schedule(s))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>e.discard()),ge(n=e,Ce,zo).call(n),ce=this,ge(this,Ce,Cl).call(this)},dh=function(e){for(var r=0;r<e.length;r+=1)Mg(e[r],E(this,Di),E(this,un))},KB=function(){var f;ge(this,Ce,zo).call(this);for(let h=Th;h!==null;h=E(h,Aa)){var e=h.id<this.id,r=[];for(const[v,[c,d]]of this.current){if(h.current.has(v)){var n=h.current.get(v)[0];if(e&&c!==n)h.current.set(v,[c,d]);else continue}r.push(v)}if(e)for(const[v,c]of this.async_deriveds){const d=h.async_deriveds.get(v);d&&c.promise.then(d.resolve)}if(E(h,Io)){var i=[...h.current.keys()].filter(v=>!this.current.has(v));if(i.length===0)e&&h.discard();else if(r.length>0){if(e)for(const v of E(this,Oo))h.unskip_effect(v,c=>{var d;(c.f&(Tr|Ba))!==0?h.schedule(c):ge(d=h,Ce,dh).call(d,[c])});h.activate();var a=new Set,o=new Map;for(var s of r)Ig(s,i,a,o);o=new Map;var l=[...h.current.keys()].filter(v=>this.current.has(v)?this.current.get(v)[0]!==v.v:!0);if(l.length>0)for(const v of E(this,yl))(v.f&(Jt|Tt|kl))===0&&Mh(v,l,o)&&((v.f&(Ba|Tr))!==0?(qe(v,ot),h.schedule(v)):E(h,Di).add(v));if(E(h,qt).length>0){h.apply();for(var u of E(h,qt))ge(f=h,Ce,og).call(f,u,[],[]);ne(h,qt,[])}h.deactivate()}}}},sg=function(){za===null?Th=za=this:(ne(za,Aa,this),ne(this,Ci,za)),za=this},zo=function(){var e=E(this,Ci),r=E(this,Aa);e===null?Th=r:ne(e,Aa,r),r===null?za=e:ne(r,Ci,e),this.linked=!1};let Vn=hh;function ye(t){var e=$o;$o=!0;try{for(var r;;){if(fT(),ce===null)return r;ce.flush()}}finally{$o=e}}function vT(){try{eT()}catch(t){Gn(t,Dh)}}let yn=null;function kg(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Jt|Tt))===0&&Yo(n)&&(yn=new Set,Wa(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Qg(n),yn?.size>0)){Pi.clear();for(const i of yn){if((i.f&(Jt|Tt))!==0)continue;const a=[i];let o=i.parent;for(;o!==null;)yn.has(o)&&(yn.delete(o),a.push(o)),o=o.parent;for(let s=a.length-1;s>=0;s--){const l=a[s];(l.f&(Jt|Tt))===0&&Wa(l)}}yn.clear()}}yn=null}}function Ig(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const i of t.reactions){const a=i.f;(a&vt)!==0?Ig(i,e,r,n):(a&(Ba|Tr))!==0&&(a&ot)===0&&Mh(i,e,n)&&(qe(i,ot),Lh(i))}}function Mh(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const i of t.deps){if(Ea.call(e,i))return!0;if((i.f&vt)!==0&&Mh(i,e,r))return r.set(i,!0),!0}return r.set(t,!1),!1}function Lh(t){ce.schedule(t)}function Pg(t,e){if(!((t.f&Cr)!==0&&(t.f&nt)!==0)){(t.f&ot)!==0?e.d.push(t):(t.f&zr)!==0&&e.m.push(t),qe(t,nt);for(var r=t.first;r!==null;)Pg(r,e),r=r.next}}function Eg(t){qe(t,nt);for(var e=t.first;e!==null;)Eg(e),e=e.next}function dT(t){let e=0,r=Ei(0),n;return()=>{Rh()&&(R(r),Ul(()=>(e===0&&(n=Xl(()=>t(()=>Uo(r)))),e+=1,()=>{mn(()=>{e-=1,e===0&&(n?.(),n=void 0,Uo(r))})})))}}var pT=Na|Li;function gT(t,e,r,n){new mT(t,e,r,n)}class mT{constructor(e,r,n,i){le(this,ze);He(this,"parent");He(this,"is_pending",!1);He(this,"transform_error");le(this,Zt);le(this,_l,_e?Se:null);le(this,wr);le(this,La);le(this,Vt);le(this,Sr,null);le(this,kt,null);le(this,Kt,null);le(this,On,null);le(this,ka,0);le(this,Ai,0);le(this,Bo,!1);le(this,bl,new Set);le(this,wl,new Set);le(this,Nn,null);le(this,ch,dT(()=>(ne(this,Nn,Ei(E(this,ka))),()=>{ne(this,Nn,null)})));ne(this,Zt,e),ne(this,wr,r),ne(this,La,a=>{var o=ve;o.b=this,o.f|=_h,n(a)}),this.parent=ve.b,this.transform_error=i??this.parent?.transform_error??(a=>a),ne(this,Vt,Oh(()=>{if(_e){const a=E(this,_l);Bl();const o=a.data===mh;if(a.data.startsWith(cg)){const l=JSON.parse(a.data.slice(cg.length));ge(this,ze,Ix).call(this,l)}else o?ge(this,ze,Px).call(this):ge(this,ze,kx).call(this)}else ge(this,ze,lg).call(this)},pT)),_e&&ne(this,Zt,Se)}defer_effect(e){Mg(e,E(this,bl),E(this,wl))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!E(this,wr).pending}update_pending_count(e,r){ge(this,ze,ug).call(this,e,r),ne(this,ka,E(this,ka)+e),!(!E(this,Nn)||E(this,Bo))&&(ne(this,Bo,!0),mn(()=>{ne(this,Bo,!1),E(this,Nn)&&Ga(E(this,Nn),E(this,ka))}))}get_effect_pending(){return E(this,ch).call(this),R(E(this,Nn))}error(e){if(!E(this,wr).onerror&&!E(this,wr).failed)throw e;ce?.is_fork?(E(this,Sr)&&ce.skip_effect(E(this,Sr)),E(this,kt)&&ce.skip_effect(E(this,kt)),E(this,Kt)&&ce.skip_effect(E(this,Kt)),ce.on_fork_commit(()=>{ge(this,ze,fg).call(this,e)})):ge(this,ze,fg).call(this,e)}}Zt=new WeakMap,_l=new WeakMap,wr=new WeakMap,La=new WeakMap,Vt=new WeakMap,Sr=new WeakMap,kt=new WeakMap,Kt=new WeakMap,On=new WeakMap,ka=new WeakMap,Ai=new WeakMap,Bo=new WeakMap,bl=new WeakMap,wl=new WeakMap,Nn=new WeakMap,ch=new WeakMap,ze=new WeakSet,kx=function(){try{ne(this,Sr,rr(()=>E(this,La).call(this,E(this,Zt))))}catch(e){this.error(e)}},Ix=function(e){const r=E(this,wr).failed;r&&ne(this,Kt,rr(()=>{r(E(this,Zt),()=>e,()=>()=>{})}))},Px=function(){const e=E(this,wr).pending;e&&(this.is_pending=!0,ne(this,kt,rr(()=>e(E(this,Zt)))),mn(()=>{var r=ne(this,On,document.createDocumentFragment()),n=tr();r.append(n),ne(this,Sr,ge(this,ze,gh).call(this,()=>rr(()=>E(this,La).call(this,n)))),E(this,Ai)===0&&(E(this,Zt).before(r),ne(this,On,null),Oi(E(this,kt),()=>{ne(this,kt,null)}),ge(this,ze,ph).call(this,ce))}))},lg=function(){try{if(this.is_pending=this.has_pending_snippet(),ne(this,Ai,0),ne(this,ka,0),ne(this,Sr,rr(()=>{E(this,La).call(this,E(this,Zt))})),E(this,Ai)>0){var e=ne(this,On,document.createDocumentFragment());Fh(E(this,Sr),e);const r=E(this,wr).pending;ne(this,kt,rr(()=>r(E(this,Zt))))}else ge(this,ze,ph).call(this,ce)}catch(r){this.error(r)}},ph=function(e){this.is_pending=!1,e.transfer_effects(E(this,bl),E(this,wl))},gh=function(e){var r=ve,n=me,i=Pt;$r(E(this,Vt)),nr(E(this,Vt)),Fa(E(this,Vt).ctx);try{return Vn.ensure(),e()}catch(a){return Dg(a),null}finally{$r(r),nr(n),Fa(i)}},ug=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&ge(n=this.parent,ze,ug).call(n,e,r);return}ne(this,Ai,E(this,Ai)+e),E(this,Ai)===0&&(ge(this,ze,ph).call(this,r),E(this,kt)&&Oi(E(this,kt),()=>{ne(this,kt,null)}),E(this,On)&&(E(this,Zt).before(E(this,On)),ne(this,On,null)))},fg=function(e){E(this,Sr)&&(Ct(E(this,Sr)),ne(this,Sr,null)),E(this,kt)&&(Ct(E(this,kt)),ne(this,kt,null)),E(this,Kt)&&(Ct(E(this,Kt)),ne(this,Kt,null)),_e&&(It(E(this,_l)),bg(),It(Fl()));var r=E(this,wr).onerror;let n=E(this,wr).failed;var i=!1,a=!1;const o=()=>{if(i){sT();return}i=!0,a&&aT(),E(this,Kt)!==null&&Oi(E(this,Kt),()=>{ne(this,Kt,null)}),ge(this,ze,gh).call(this,()=>{ge(this,ze,lg).call(this)})},s=l=>{try{a=!0,r?.(l,o),a=!1}catch(u){Gn(u,E(this,Vt)&&E(this,Vt).parent)}n&&ne(this,Kt,ge(this,ze,gh).call(this,()=>{try{return rr(()=>{var u=ve;u.b=this,u.f|=_h,n(E(this,Zt),()=>l,()=>o)})}catch(u){return Gn(u,E(this,Vt).parent),null}}))};mn(()=>{var l;try{l=this.transform_error(e)}catch(u){Gn(u,E(this,Vt)&&E(this,Vt).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(s,u=>Gn(u,E(this,Vt)&&E(this,Vt).parent)):s(l)})};function yT(t,e,r,n){const i=Gl;var a=t.filter(v=>!v.settled);if(r.length===0&&a.length===0){n(e.map(i));return}var o=ve,s=_T(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(v=>v.promise)):null;function u(v){if((o.f&Jt)===0){s();try{n(v)}catch(c){Gn(c,o)}Hl()}}var f=Rg();if(r.length===0){l.then(()=>u(e.map(i))).finally(f);return}function h(){Promise.all(r.map(v=>bT(v))).then(v=>u([...e.map(i),...v])).catch(v=>Gn(v,o)).finally(f)}l?l.then(()=>{s(),h(),Hl()}):h()}function _T(){var t=ve,e=me,r=Pt,n=ce;return function(a=!0){$r(t),nr(e),Fa(r),a&&(t.f&Jt)===0&&(n?.activate(),n?.apply())}}function Hl(t=!0){$r(null),nr(null),Fa(null),t&&ce?.deactivate()}function Rg(){var t=ve,e=t.b,r=ce,n=e.is_rendered();return e.update_pending_count(1,r),r.increment(n,t),()=>{e.update_pending_count(-1,r),r.decrement(n,t)}}function Gl(t){var e=vt|ot;return ve!==null&&(ve.f|=Li),{ctx:Pt,deps:null,effects:null,equals:Sg,f:e,fn:t,reactions:null,rv:0,v:at,wv:0,parent:ve,ac:null}}const Vl=Symbol("obsolete");function bT(t,e,r){let n=ve;n===null&&Zx();var i=void 0,a=Ei(at),o=!me,s=new Set;return kT(()=>{var l=ve,u=yg();i=u.promise;try{Promise.resolve(t()).then(u.resolve,c=>{c!==Rl&&u.reject(c)}).finally(Hl)}catch(c){u.reject(c),Hl()}var f=ce;if(o){if((l.f&zn)!==0)var h=Rg();if(n.b.is_rendered())f.async_deriveds.get(l)?.reject(Vl);else for(const c of s.values())c.reject(Vl);s.add(u),f.async_deriveds.set(l,u)}const v=(c,d=void 0)=>{h?.(),s.delete(u),d!==Vl&&(f.activate(),d?(a.f|=Hn,Ga(a,d)):((a.f&Hn)!==0&&(a.f^=Hn),Ga(a,c)),f.deactivate())};u.promise.then(v,c=>v(null,c||"unknown"))}),qg(()=>{for(const l of s)l.reject(Vl)}),new Promise(l=>{function u(f){function h(){f===i?l(a):u(i)}f.then(h,h)}u(i)})}function er(t){const e=Gl(t);return rm(e),e}function wT(t){const e=Gl(t);return e.equals=xg,e}function ST(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)Ct(e[r])}}function kh(t){var e,r=ve,n=t.parent;if(!_n&&n!==null&&(n.f&(Jt|Tt))!==0)return oT(),t.v;$r(n);try{t.f&=~ki,ST(t),e=sm(t)}finally{$r(r)}return e}function Og(t){var e=kh(t);if(!t.equals(e)&&(t.wv=am(),(!ce?.is_fork||t.deps===null)&&(ce!==null?(ce.capture(t,e,!0),Ch?.capture(t,e,!0)):t.v=e,t.deps===null))){qe(t,nt);return}_n||(Dr!==null?(Rh()||ce?.is_fork)&&Dr.set(t,e):xh(t))}function xT(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(Rl),e.teardown=Gx,e.ac=null,Xo(e,0),Nh(e))}function Ng(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Wa(e)}let Wl=new Set;const Pi=new Map;let Bg=!1;function Ei(t,e){var r={f:0,v:t,reactions:null,equals:Sg,rv:0,wv:0};return r}function Ee(t,e){const r=Ei(t);return rm(r),r}function Fg(t,e=!1,r=!0){const n=Ei(t);return e||(n.equals=xg),n}function Y(t,e,r=!1){me!==null&&(!Ar||(me.f&kl)!==0)&&Tg()&&(me.f&(vt|Tr|Ba|kl))!==0&&(ir===null||!Ea.call(ir,t))&&iT();let n=r?Gr(e):e;return Ga(t,n,zl)}function Ga(t,e,r=null){if(!t.equals(e)){Pi.set(t,_n?e:t.v);var n=Vn.ensure();if(n.capture(t,e),(t.f&vt)!==0){const i=t;(t.f&ot)!==0&&kh(i),Dr===null&&xh(i)}t.wv=am(),zg(t,ot,r),ve!==null&&(ve.f&nt)!==0&&(ve.f&(Cr|vn))===0&&(ar===null?ET([t]):ar.push(t)),!n.is_fork&&Wl.size>0&&!Bg&&TT()}return e}function TT(){Bg=!1;for(const t of Wl){(t.f&nt)!==0&&qe(t,zr);let e;try{e=Yo(t)}catch{e=!0}e&&Wa(t)}Wl.clear()}function Uo(t){Y(t,t.v+1)}function zg(t,e,r){var n=t.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var o=n[a],s=o.f,l=(s&ot)===0;if(l&&qe(o,e),(s&kl)!==0)Wl.add(o);else if((s&vt)!==0){var u=o;Dr?.delete(u),(s&ki)===0&&(s&Qt&&(ve===null||(ve.f&Il)===0)&&(o.f|=ki),zg(u,zr,r))}else if(l){var f=o;(s&Tr)!==0&&yn!==null&&yn.add(f),r!==null?r.push(f):Lh(f)}}}function Gr(t){if(typeof t!="object"||t===null||Pl in t)return t;const e=gg(t);if(e!==zx&&e!==Hx)return t;var r=new Map,n=pg(t),i=Ee(0),a=Bi,o=s=>{if(Bi===a)return s();var l=me,u=Bi;nr(null),im(a);var f=s();return nr(l),im(u),f};return n&&r.set("length",Ee(t.length)),new Proxy(t,{defineProperty(s,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&rT();var f=r.get(l);return f===void 0?o(()=>{var h=Ee(u.value);return r.set(l,h),h}):Y(f,u.value,!0),!0},deleteProperty(s,l){var u=r.get(l);if(u===void 0){if(l in s){const f=o(()=>Ee(at));r.set(l,f),Uo(i)}}else Y(u,at),Uo(i);return!0},get(s,l,u){if(l===Pl)return t;var f=r.get(l),h=l in s;if(f===void 0&&(!h||Ra(s,l)?.writable)&&(f=o(()=>{var c=Gr(h?s[l]:at),d=Ee(c);return d}),r.set(l,f)),f!==void 0){var v=R(f);return v===at?void 0:v}return Reflect.get(s,l,u)},getOwnPropertyDescriptor(s,l){var u=Reflect.getOwnPropertyDescriptor(s,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=R(f))}else if(u===void 0){var h=r.get(l),v=h?.v;if(h!==void 0&&v!==at)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(s,l){if(l===Pl)return!0;var u=r.get(l),f=u!==void 0&&u.v!==at||Reflect.has(s,l);if(u!==void 0||ve!==null&&(!f||Ra(s,l)?.writable)){u===void 0&&(u=o(()=>{var v=f?Gr(s[l]):at,c=Ee(v);return c}),r.set(l,u));var h=R(u);if(h===at)return!1}return f},set(s,l,u,f){var h=r.get(l),v=l in s;if(n&&l==="length")for(var c=u;c<h.v;c+=1){var d=r.get(c+"");d!==void 0?Y(d,at):c in s&&(d=o(()=>Ee(at)),r.set(c+"",d))}if(h===void 0)(!v||Ra(s,l)?.writable)&&(h=o(()=>Ee(void 0)),Y(h,Gr(u)),r.set(l,h));else{v=h.v!==at;var m=o(()=>Gr(u));Y(h,m)}var p=Reflect.getOwnPropertyDescriptor(s,l);if(p?.set&&p.set.call(f,u),!v){if(n&&typeof l=="string"){var g=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=g.v&&Y(g,y+1)}Uo(i)}return!0},ownKeys(s){R(i);var l=Reflect.ownKeys(s).filter(h=>{var v=r.get(h);return v===void 0||v.v!==at});for(var[u,f]of r)f.v!==at&&!(u in s)&&l.push(u);return l},setPrototypeOf(){nT()}})}var Hg,Gg,Vg,Wg;function Ih(){if(Hg===void 0){Hg=window,Gg=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Vg=Ra(e,"firstChild").get,Wg=Ra(e,"nextSibling").get,mg(t)&&(t[wh]=void 0,t[El]=null,t[Sh]=void 0,t.__e=void 0),mg(r)&&(r[Go]=void 0)}}function tr(t=""){return document.createTextNode(t)}function Ri(t){return Vg.call(t)}function Vr(t){return Wg.call(t)}function ue(t,e){if(!_e)return Ri(t);var r=Ri(Se);if(r===null)r=Se.appendChild(tr());else if(e&&r.nodeType!==Ol){var n=tr();return r?.before(n),It(n),n}return e&&Eh(r),It(r),r}function Wn(t,e=!1){if(!_e){var r=Ri(t);return r instanceof Comment&&r.data===""?Vr(r):r}if(e){if(Se?.nodeType!==Ol){var n=tr();return Se?.before(n),It(n),n}Eh(Se)}return Se}function bt(t,e=1,r=!1){let n=_e?Se:t;for(var i;e--;)i=n,n=Vr(n);if(!_e)return n;if(r){if(n?.nodeType!==Ol){var a=tr();return n===null?i?.after(a):n.before(a),It(a),a}Eh(n)}return It(n),n}function $g(t){t.textContent=""}function Ug(){return!1}function Ph(t,e,r){return document.createElementNS(vg,t,void 0)}function Eh(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Ol;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}let Yg=!1;function Xg(){Yg||(Yg=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[Vo]?.()})},{capture:!0}))}function $l(t){var e=me,r=ve;nr(null),$r(null);try{return t()}finally{nr(e),$r(r)}}function CT(t,e,r,n=r){t.addEventListener(e,()=>$l(r));const i=t[Vo];i?t[Vo]=()=>{i(),n(!0)}:t[Vo]=()=>n(!0),Xg()}function DT(t){ve===null&&(me===null&&Jx(),Qx()),_n&&jx()}function AT(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Wr(t,e){var r=ve;r!==null&&(r.f&Tt)!==0&&(t|=Tt);var n={ctx:Pt,deps:null,nodes:null,f:t|ot|Qt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};ce?.register_created_effect(n);var i=n;if((t&Oa)!==0)Ha!==null?Ha.push(n):Vn.ensure().schedule(n);else if(e!==null){try{Wa(n)}catch(o){throw Ct(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Li)===0&&(i=i.first,(t&Tr)!==0&&(t&Na)!==0&&i!==null&&(i.f|=Na))}if(i!==null&&(i.parent=r,r!==null&&AT(i,r),me!==null&&(me.f&vt)!==0&&(t&vn)===0)){var a=me;(a.effects??(a.effects=[])).push(i)}return n}function Rh(){return me!==null&&!Ar}function qg(t){const e=Wr(Ll,null);return qe(e,nt),e.teardown=t,e}function Va(t){DT();var e=ve.f,r=!me&&(e&Cr)!==0&&(e&zn)===0;if(r){var n=Pt;(n.e??(n.e=[])).push(t)}else return Zg(t)}function Zg(t){return Wr(Oa|$x,t)}function MT(t){Vn.ensure();const e=Wr(vn|Li,t);return()=>{Ct(e)}}function LT(t){Vn.ensure();const e=Wr(vn|Li,t);return(r={})=>new Promise(n=>{r.outro?Oi(e,()=>{Ct(e),n(void 0)}):(Ct(e),n(void 0))})}function Kg(t){return Wr(Oa,t)}function kT(t){return Wr(Ba|Li,t)}function Ul(t,e=0){return Wr(Ll|e,t)}function Re(t,e=[],r=[],n=[]){yT(n,e,r,i=>{Wr(Ll,()=>t(...i.map(R)))})}function Oh(t,e=0){var r=Wr(Tr|e,t);return r}function rr(t){return Wr(Cr|Li,t)}function jg(t){var e=t.teardown;if(e!==null){const r=_n,n=me;tm(!0),nr(null);try{e.call(null)}finally{tm(r),nr(n)}}}function Nh(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&$l(()=>{i.abort(Rl)});var n=r.next;(r.f&vn)!==0?r.parent=null:Ct(r,e),r=n}}function IT(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Cr)===0&&Ct(e),e=r}}function Ct(t,e=!0){var r=!1;(e||(t.f&Wx)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(PT(t.nodes.start,t.nodes.end),r=!0),qe(t,bh),Nh(t,e&&!r),Xo(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)a.stop();jg(t),t.f^=bh,t.f|=Jt;var i=t.parent;i!==null&&i.first!==null&&Qg(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function PT(t,e){for(;t!==null;){var r=t===e?null:Vr(t);t.remove(),t=r}}function Qg(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Oi(t,e,r=!0){var n=[];Jg(t,n,!0);var i=()=>{r&&Ct(t),e&&e()},a=n.length;if(a>0){var o=()=>--a||i();for(var s of n)s.out(o)}else i()}function Jg(t,e,r){if((t.f&Tt)===0){t.f^=Tt;var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&e.push(s);for(var i=t.first;i!==null;){var a=i.next;if((i.f&vn)===0){var o=(i.f&Na)!==0||(i.f&Cr)!==0&&(t.f&Tr)!==0;Jg(i,e,o?r:!1)}i=a}}}function Bh(t){em(t,!0)}function em(t,e){if((t.f&Tt)!==0){t.f^=Tt,(t.f&nt)===0&&(qe(t,ot),Vn.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&Na)!==0||(r.f&Cr)!==0;em(r,i?e:!1),r=n}var a=t.nodes&&t.nodes.t;if(a!==null)for(const o of a)(o.is_global||e)&&o.in()}}function Fh(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:Vr(r);e.append(r),r=i}}let Yl=!1,_n=!1;function tm(t){_n=t}let me=null,Ar=!1;function nr(t){me=t}let ve=null;function $r(t){ve=t}let ir=null;function rm(t){me!==null&&(ir===null?ir=[t]:ir.push(t))}let Et=null,Wt=0,ar=null;function ET(t){ar=t}let nm=1,Ni=0,Bi=Ni;function im(t){Bi=t}function am(){return++nm}function Yo(t){var e=t.f;if((e&ot)!==0)return!0;if(e&vt&&(t.f&=~ki),(e&zr)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var a=r[i];if(Yo(a)&&Og(a),a.wv>t.wv)return!0}(e&Qt)!==0&&Dr===null&&qe(t,nt)}return!1}function om(t,e,r=!0){var n=t.reactions;if(n!==null&&!(ir!==null&&Ea.call(ir,t)))for(var i=0;i<n.length;i++){var a=n[i];(a.f&vt)!==0?om(a,e,!1):e===a&&(r?qe(a,ot):(a.f&nt)!==0&&qe(a,zr),Lh(a))}}function sm(t){var m;var e=Et,r=Wt,n=ar,i=me,a=ir,o=Pt,s=Ar,l=Bi,u=t.f;Et=null,Wt=0,ar=null,me=(u&(Cr|vn))===0?t:null,ir=null,Fa(t.ctx),Ar=!1,Bi=++Ni,t.ac!==null&&($l(()=>{t.ac.abort(Rl)}),t.ac=null);try{t.f|=Il;var f=t.fn,h=f();t.f|=zn;var v=t.deps,c=ce?.is_fork;if(Et!==null){var d;if(c||Xo(t,Wt),v!==null&&Wt>0)for(v.length=Wt+Et.length,d=0;d<Et.length;d++)v[Wt+d]=Et[d];else t.deps=v=Et;if(Rh()&&(t.f&Qt)!==0)for(d=Wt;d<v.length;d++)((m=v[d]).reactions??(m.reactions=[])).push(t)}else!c&&v!==null&&Wt<v.length&&(Xo(t,Wt),v.length=Wt);if(Tg()&&ar!==null&&!Ar&&v!==null&&(t.f&(vt|zr|ot))===0)for(d=0;d<ar.length;d++)om(ar[d],t);if(i!==null&&i!==t){if(Ni++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=Ni;if(e!==null)for(const p of e)p.rv=Ni;ar!==null&&(n===null?n=ar:n.push(...ar))}return(t.f&Hn)!==0&&(t.f^=Hn),h}catch(p){return Dg(p)}finally{t.f^=Il,Et=e,Wt=r,ar=n,me=i,ir=a,Fa(o),Ar=s,Bi=l}}function RT(t,e){let r=e.reactions;if(r!==null){var n=Bx.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&vt)!==0&&(Et===null||!Ea.call(Et,e))){var a=e;(a.f&Qt)!==0&&(a.f^=Qt,a.f&=~ki),a.v!==at&&xh(a),xT(a),Xo(a,0)}}function Xo(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)RT(t,r[n])}function Wa(t){var e=t.f;if((e&Jt)===0){qe(t,nt);var r=ve,n=Yl;ve=t,Yl=!0;try{(e&(Tr|_g))!==0?IT(t):Nh(t),jg(t);var i=sm(t);t.teardown=typeof i=="function"?i:null,t.wv=nm;var a;dg&&uT&&(t.f&ot)!==0&&t.deps}finally{Yl=n,ve=r}}}async function OT(){await Promise.resolve(),ye()}function R(t){var e=t.f,r=(e&vt)!==0;if(me!==null&&!Ar){var n=ve!==null&&(ve.f&Jt)!==0;if(!n&&(ir===null||!Ea.call(ir,t))){var i=me.deps;if((me.f&Il)!==0)t.rv<Ni&&(t.rv=Ni,Et===null&&i!==null&&i[Wt]===t?Wt++:Et===null?Et=[t]:Et.push(t));else{(me.deps??(me.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[me]:Ea.call(a,me)||a.push(me)}}}if(_n&&Pi.has(t))return Pi.get(t);if(r){var o=t;if(_n){var s=o.v;return((o.f&nt)===0&&o.reactions!==null||um(o))&&(s=kh(o)),Pi.set(o,s),s}var l=(o.f&Qt)===0&&!Ar&&me!==null&&(Yl||(me.f&Qt)!==0),u=(o.f&zn)===0;Yo(o)&&(l&&(o.f|=Qt),Og(o)),l&&!u&&(Ng(o),lm(o))}if(Dr?.has(t))return Dr.get(t);if((t.f&Hn)!==0)throw t.v;return t.v}function lm(t){if(t.f|=Qt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),(e.f&vt)!==0&&(e.f&Qt)===0&&(Ng(e),lm(e))}function um(t){if(t.v===at)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Pi.has(e)||(e.f&vt)!==0&&um(e))return!0;return!1}function Xl(t){var e=Ar;try{return Ar=!0,t()}finally{Ar=e}}const Fi=Symbol("events"),fm=new Set,zh=new Set;function NT(t,e,r,n={}){function i(a){if(n.capture||Hh.call(e,a),!a.cancelBubble)return $l(()=>r?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?mn(()=>{e.addEventListener(t,i,n)}):e.addEventListener(t,i,n),i}function BT(t,e,r,n,i){var a={capture:n,passive:i},o=NT(t,e,r,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&qg(()=>{e.removeEventListener(t,o,a)})}function ql(t,e,r){(e[Fi]??(e[Fi]={}))[t]=r}function hm(t){for(var e=0;e<t.length;e++)fm.add(t[e]);for(var r of zh)r(t)}let cm=null;function Hh(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],a=i[0]||t.target;cm=t;var o=0,s=cm===t&&t[Fi];if(s){var l=i.indexOf(s);if(l!==-1&&(e===document||e===window)){t[Fi]=e;return}var u=i.indexOf(e);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||t.target,a!==e){Ml(t,"currentTarget",{configurable:!0,get(){return a||r}});var f=me,h=ve;nr(null),$r(null);try{for(var v,c=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var m=a[Fi]?.[n];m!=null&&(!a.disabled||t.target===a)&&m.call(a,t)}catch(p){v?c.push(p):v=p}if(t.cancelBubble||d===e||d===null)break;a=d}if(v){for(let p of c)queueMicrotask(()=>{throw p});throw v}}finally{t[Fi]=e,delete t.currentTarget,nr(f),$r(h)}}}const FT=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function zT(t){return FT?.createHTML(t)??t}function HT(t){var e=Ph("template");return e.innerHTML=zT(t.replaceAll("<!>","<!---->")),e.content}function $a(t,e){var r=ve;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function te(t,e){var r=(e&Ox)!==0,n=(e&Nx)!==0,i,a=!t.startsWith("<!>");return()=>{if(_e)return $a(Se,null),Se;i===void 0&&(i=HT(a?t:"<!>"+t),r||(i=Ri(i)));var o=n||Gg?document.importNode(i,!0):i.cloneNode(!0);if(r){var s=Ri(o),l=o.lastChild;$a(s,l)}else $a(o,o);return o}}function zi(){if(_e)return $a(Se,null),Se;var t=document.createDocumentFragment(),e=document.createComment(""),r=tr();return t.append(e,r),$a(e,r),t}function Z(t,e){if(_e){var r=ve;((r.f&zn)===0||r.nodes.end===null)&&(r.nodes.end=Se),Bl();return}t!==null&&t.before(e)}const GT=["touchstart","touchmove"];function VT(t){return GT.includes(t)}function Fe(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Go]??(t[Go]=t.nodeValue))&&(t[Go]=r,t.nodeValue=`${r}`)}function vm(t,e){return dm(t,e)}function WT(t,e){Ih(),e.intro=e.intro??!1;const r=e.target,n=_e,i=Se;try{for(var a=Ri(r);a&&(a.nodeType!==Wo||a.data!==hg);)a=Vr(a);if(!a)throw Pa;dn(!0),It(a);const o=dm(t,{...e,anchor:a});return dn(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(s=>s.startsWith("https://svelte.dev/e/")))throw o;return o!==Pa&&console.warn("Failed to hydrate: ",o),e.recover===!1&&tT(),Ih(),$g(r),dn(!1),vm(t,e)}finally{dn(n),It(i)}}const Zl=new Map;function dm(t,{target:e,anchor:r,props:n={},events:i,context:a,intro:o=!0,transformError:s}){Ih();var l=void 0,u=LT(()=>{var f=r??e.appendChild(tr());gT(f,{pending:()=>{}},c=>{pn({});var d=Pt;if(a&&(d.c=a),i&&(n.$$events=i),_e&&$a(c,null),l=t(c,n)||{},_e&&(ve.nodes.end=Se,Se===null||Se.nodeType!==Wo||Se.data!==yh))throw Nl(),Pa;gn()},s);var h=new Set,v=c=>{for(var d=0;d<c.length;d++){var m=c[d];if(!h.has(m)){h.add(m);var p=VT(m);for(const _ of[e,document]){var g=Zl.get(_);g===void 0&&(g=new Map,Zl.set(_,g));var y=g.get(m);y===void 0?(_.addEventListener(m,Hh,{passive:p}),g.set(m,1)):g.set(m,y+1)}}}};return v(Dl(fm)),zh.add(v),()=>{for(var c of h)for(const p of[e,document]){var d=Zl.get(p),m=d.get(c);--m==0?(p.removeEventListener(c,Hh),d.delete(c),d.size===0&&Zl.delete(p)):d.set(c,m)}zh.delete(v),f!==r&&f.parentNode?.removeChild(f)}});return Gh.set(l,u),l}let Gh=new WeakMap;function $T(t,e){const r=Gh.get(t);return r?(Gh.delete(t),r(e)):Promise.resolve()}class UT{constructor(e,r=!0){He(this,"anchor");le(this,Fr,new Map);le(this,hn,new Map);le(this,jt,new Map);le(this,Ia,new Set);le(this,Sl,!0);le(this,xl,e=>{if(E(this,Fr).has(e)){var r=E(this,Fr).get(e),n=E(this,hn).get(r);if(n)Bh(n),E(this,Ia).delete(r);else{var i=E(this,jt).get(r);i&&(E(this,hn).set(r,i.effect),E(this,jt).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[a,o]of E(this,Fr)){if(E(this,Fr).delete(a),a===e)break;const s=E(this,jt).get(o);s&&(Ct(s.effect),E(this,jt).delete(o))}for(const[a,o]of E(this,hn)){if(a===r||E(this,Ia).has(a))continue;const s=()=>{if(Array.from(E(this,Fr).values()).includes(a)){var u=document.createDocumentFragment();Fh(o,u),u.append(tr()),E(this,jt).set(a,{effect:o,fragment:u})}else Ct(o);E(this,Ia).delete(a),E(this,hn).delete(a)};E(this,Sl)||!n?(E(this,Ia).add(a),Oi(o,s,!1)):s()}}});le(this,vh,e=>{E(this,Fr).delete(e);const r=Array.from(E(this,Fr).values());for(const[n,i]of E(this,jt))r.includes(n)||(Ct(i.effect),E(this,jt).delete(n))});this.anchor=e,ne(this,Sl,r)}ensure(e,r){var n=ce,i=Ug();if(r&&!E(this,hn).has(e)&&!E(this,jt).has(e))if(i){var a=document.createDocumentFragment(),o=tr();a.append(o),E(this,jt).set(e,{effect:rr(()=>r(o)),fragment:a})}else E(this,hn).set(e,rr(()=>r(this.anchor)));if(E(this,Fr).set(n,e),i){for(const[s,l]of E(this,hn))s===e?n.unskip_effect(l):n.skip_effect(l);for(const[s,l]of E(this,jt))s===e?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(E(this,xl)),n.ondiscard(E(this,vh))}else _e&&(this.anchor=Se),E(this,xl).call(this,n)}}Fr=new WeakMap,hn=new WeakMap,jt=new WeakMap,Ia=new WeakMap,Sl=new WeakMap,xl=new WeakMap,vh=new WeakMap;function YT(t){Pt===null&&qx(),Va(()=>{const e=Xl(t);if(typeof e=="function")return e})}function st(t,e,r=!1){var n;_e&&(n=Se,Bl());var i=new UT(t),a=r?Na:0;function o(s,l){if(_e){var u=wg(n);if(s!==parseInt(u.substring(1))){var f=Fl();It(f),i.anchor=f,dn(!1),i.ensure(s,l),dn(!0);return}}i.ensure(s,l)}Oh(()=>{var s=!1;e((l,u=0)=>{s=!0,o(u,l)}),s||o(-1,null)},a)}function Vh(t,e){return e}function XT(t,e,r){for(var n=[],i=e.length,a,o=e.length,s=0;s<i;s++){let h=e[s];Oi(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var v=t.outrogroups;Wh(t,Dl(a.done)),v.delete(a),v.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;$g(f),f.append(u),t.items.clear()}Wh(t,e,!l)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function Wh(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const o of t.pending.values())for(const s of o)n.add(t.items.get(s).e)}for(var i=0;i<e.length;i++){var a=e[i];if(n?.has(a)){a.f|=Hr;const o=document.createDocumentFragment();Fh(a,o)}else Ct(e[i],r)}}var pm;function bn(t,e,r,n,i,a=null){var o=t,s=new Map,l=(e&Ho)!==0;if(l){var u=t;o=_e?It(Ri(u)):u.appendChild(tr())}_e&&Bl();var f=null,h=wT(()=>{var _=r();return pg(_)?_:_==null?[]:Dl(_)}),v,c=new Map,d=!0;function m(_){(y.effect.f&Jt)===0&&(y.pending.delete(_),y.fallback=f,qT(y,v,o,e,n),f!==null&&(v.length===0?(f.f&Hr)===0?Bh(f):(f.f^=Hr,Zo(f,null,o)):Oi(f,()=>{f=null})))}function p(_){y.pending.delete(_)}var g=Oh(()=>{v=R(h);var _=v.length;let b=!1;if(_e){var S=wg(o)===mh;S!==(_===0)&&(o=Fl(),It(o),dn(!1),b=!0)}for(var w=new Set,T=ce,x=Ug(),D=0;D<_;D+=1){_e&&Se.nodeType===Wo&&Se.data===yh&&(o=Se,b=!0,dn(!1));var A=v[D],C=n(A,D),k=d?null:s.get(C);k?(k.v&&Ga(k.v,A),k.i&&Ga(k.i,D),x&&T.unskip_effect(k.e)):(k=ZT(s,d?o:pm??(pm=tr()),A,C,D,i,e,r),d||(k.e.f|=Hr),s.set(C,k)),w.add(C)}if(_===0&&a&&!f&&(d?f=rr(()=>a(o)):(f=rr(()=>a(pm??(pm=tr()))),f.f|=Hr)),_>w.size&&Kx(),_e&&_>0&&It(Fl()),!d)if(c.set(T,w),x){for(const[M,P]of s)w.has(M)||T.skip_effect(P.e);T.oncommit(m),T.ondiscard(p)}else m(T);b&&dn(!0),R(h)}),y={effect:g,items:s,pending:c,outrogroups:null,fallback:f};d=!1,_e&&(o=Se)}function qo(t){for(;t!==null&&(t.f&Cr)===0;)t=t.next;return t}function qT(t,e,r,n,i){var a=(n&Ex)!==0,o=e.length,s=t.items,l=qo(t.effect.first),u,f=null,h,v=[],c=[],d,m,p,g;if(a)for(g=0;g<o;g+=1)d=e[g],m=i(d,g),p=s.get(m).e,(p.f&Hr)===0&&(p.nodes?.a?.measure(),(h??(h=new Set)).add(p));for(g=0;g<o;g+=1){if(d=e[g],m=i(d,g),p=s.get(m).e,t.outrogroups!==null)for(const A of t.outrogroups)A.pending.delete(p),A.done.delete(p);if((p.f&Tt)!==0&&(Bh(p),a&&(p.nodes?.a?.unfix(),(h??(h=new Set)).delete(p))),(p.f&Hr)!==0)if(p.f^=Hr,p===l)Zo(p,null,r);else{var y=f?f.next:l;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),$n(t,f,p),$n(t,p,y),Zo(p,y,r),f=p,v=[],c=[],l=qo(f.next);continue}if(p!==l){if(u!==void 0&&u.has(p)){if(v.length<c.length){var _=c[0],b;f=_.prev;var S=v[0],w=v[v.length-1];for(b=0;b<v.length;b+=1)Zo(v[b],_,r);for(b=0;b<c.length;b+=1)u.delete(c[b]);$n(t,S.prev,w.next),$n(t,f,S),$n(t,w,_),l=_,f=w,g-=1,v=[],c=[]}else u.delete(p),Zo(p,l,r),$n(t,p.prev,p.next),$n(t,p,f===null?t.effect.first:f.next),$n(t,f,p),f=p;continue}for(v=[],c=[];l!==null&&l!==p;)(u??(u=new Set)).add(l),c.push(l),l=qo(l.next);if(l===null)continue}(p.f&Hr)===0&&v.push(p),f=p,l=qo(p.next)}if(t.outrogroups!==null){for(const A of t.outrogroups)A.pending.size===0&&(Wh(t,Dl(A.done)),t.outrogroups?.delete(A));t.outrogroups.size===0&&(t.outrogroups=null)}if(l!==null||u!==void 0){var T=[];if(u!==void 0)for(p of u)(p.f&Tt)===0&&T.push(p);for(;l!==null;)(l.f&Tt)===0&&l!==t.fallback&&T.push(l),l=qo(l.next);var x=T.length;if(x>0){var D=(n&Ho)!==0&&o===0?r:null;if(a){for(g=0;g<x;g+=1)T[g].nodes?.a?.measure();for(g=0;g<x;g+=1)T[g].nodes?.a?.fix()}XT(t,T,D)}}a&&mn(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function ZT(t,e,r,n,i,a,o,s){var l=(o&Ve)!==0?(o&Rx)===0?Fg(r,!1,!1):Ei(r):null,u=(o&rt)!==0?Ei(i):null;return{v:l,i:u,e:rr(()=>(a(e,l??r,u??i,s),()=>{t.delete(n)}))}}function Zo(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,a=e&&(e.f&Hr)===0?e.nodes.start:r;n!==null;){var o=Vr(n);if(a.before(n),n===i)return;n=o}}function $n(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function Un(t,e){Kg(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=Ph("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}const gm=[...`
3
+ \r\f \v\uFEFF`];function KT(t,e,r){var n=t==null?"":""+t;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,o=0;(o=n.indexOf(i,o))>=0;){var s=o+a;(o===0||gm.includes(n[o-1]))&&(s===n.length||gm.includes(n[s]))?n=(o===0?"":n.substring(0,o))+n.substring(s+1):o=s}}return n===""?null:n}function jT(t,e){return t==null?null:String(t)}function Ua(t,e,r,n,i,a){var o=t[wh];if(_e||o!==r||o===void 0){var s=KT(r,n,a);(!_e||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):t.className=s),t[wh]=r}else if(a&&i!==a)for(var l in a){var u=!!a[l];(i==null||u!==!!i[l])&&t.classList.toggle(l,u)}return a}function $h(t,e,r,n){var i=t[Sh];if(_e||i!==e){var a=jT(e);(!_e||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t[Sh]=e}return n}const QT=Symbol("is custom element"),JT=Symbol("is html"),eC=Xx?"link":"LINK";function mm(t){if(_e){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;Ko(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var i=t.checked;Ko(t,"checked",null),t.checked=i}}};t[Vo]=r,mn(r),Xg()}}function tC(t,e){var r=ym(t);r.checked!==(r.checked=e??void 0)&&(t.checked=e)}function rC(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ko(t,e,r,n){var i=ym(t);_e&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===eC)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[Yx]=r),r==null?t.removeAttribute(e):typeof r!="string"&&nC(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function ym(t){return t[El]??(t[El]={[QT]:t.nodeName.includes("-"),[JT]:t.namespaceURI===vg})}var _m=new Map;function nC(t){var e=t.getAttribute("is")||t.nodeName,r=_m.get(e);if(r)return r;_m.set(e,r=[]);for(var n,i=t,a=Element.prototype;a!==i;){n=Fx(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.push(o);i=gg(i)}return r}function iC(t,e,r=e){var n=new WeakSet;CT(t,"input",async i=>{var a=i?t.defaultValue:t.value;if(a=Uh(t)?Yh(a):a,r(a),ce!==null&&n.add(ce),await OT(),a!==(a=e())){var o=t.selectionStart,s=t.selectionEnd,l=t.value.length;if(t.value=a??"",s!==null){var u=t.value.length;o===s&&s===l&&u>l?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=o,t.selectionEnd=Math.min(s,u))}}}),(_e&&t.defaultValue!==t.value||Xl(e)==null&&t.value)&&(r(Uh(t)?Yh(t.value):t.value),ce!==null&&n.add(ce)),Ul(()=>{var i=e();if(t===document.activeElement){var a=ce;if(n.has(a))return}Uh(t)&&i===Yh(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Uh(t){var e=t.type;return e==="number"||e==="range"}function Yh(t){return t===""?null:+t}function Xh(t,e){return t===e||t?.[Pl]===e}function bm(t={},e,r,n){var i=Pt.r,a=ve;return Kg(()=>{var o,s;return Ul(()=>{o=s,s=[],Xl(()=>{Xh(r(...s),t)||(e(t,...s),o&&Xh(r(...o),t)&&e(null,...o))})}),()=>{let l=a;for(;l!==i&&l.parent!==null&&l.parent.f&bh;)l=l.parent;const u=()=>{s&&Xh(r(...s),t)&&e(null,...s)},f=l.teardown;l.teardown=()=>{u(),f?.()}}}),t}function xe(t,e,r,n){var i=n,a=!0,o=()=>(a&&(a=!1,i=n),i),s;s=t[e],s===void 0&&n!==void 0&&(s=o());var l;l=()=>{var v=t[e];return v===void 0?o():(a=!0,v)};var u=!1,f=Gl(()=>(u=!1,l())),h=ve;return(function(v,c){if(arguments.length>0){const d=c?R(f):v;return Y(f,d),u=!0,i!==void 0&&(i=d),v}return _n&&u||(h.f&Jt)!==0?f.v:R(f)})}function aC(t){return new oC(t)}class oC{constructor(e){le(this,Bn);le(this,xr);var r=new Map,n=(a,o)=>{var s=Fg(o,!1,!1);return r.set(a,s),s};const i=new Proxy({...e.props||{},$$events:{}},{get(a,o){return R(r.get(o)??n(o,Reflect.get(a,o)))},has(a,o){return o===Ux?!0:(R(r.get(o)??n(o,Reflect.get(a,o))),Reflect.has(a,o))},set(a,o,s){return Y(r.get(o)??n(o,s),s),Reflect.set(a,o,s)}});ne(this,xr,(e.hydrate?WT:vm)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!e?.props?.$$host||e.sync===!1)&&ye(),ne(this,Bn,i.$$events);for(const a of Object.keys(E(this,xr)))a==="$set"||a==="$destroy"||a==="$on"||Ml(this,a,{get(){return E(this,xr)[a]},set(o){E(this,xr)[a]=o},enumerable:!0});E(this,xr).$set=a=>{Object.assign(i,a)},E(this,xr).$destroy=()=>{$T(E(this,xr))}}$set(e){E(this,xr).$set(e)}$on(e,r){E(this,Bn)[e]=E(this,Bn)[e]||[];const n=(...i)=>r.call(this,...i);return E(this,Bn)[e].push(n),()=>{E(this,Bn)[e]=E(this,Bn)[e].filter(i=>i!==n)}}$destroy(){E(this,xr).$destroy()}}Bn=new WeakMap,xr=new WeakMap;let wm;typeof HTMLElement=="function"&&(wm=class extends HTMLElement{constructor(e,r,n){super();He(this,"$$ctor");He(this,"$$s");He(this,"$$c");He(this,"$$cn",!1);He(this,"$$d",{});He(this,"$$r",!1);He(this,"$$p_d",{});He(this,"$$l",{});He(this,"$$l_u",new Map);He(this,"$$me");He(this,"$$shadowRoot",null);this.$$ctor=e,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return a=>{const o=Ph("slot");i!=="default"&&(o.name=i),Z(a,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=sC(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),r.default=!0):r[i]=e(i));for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Kl(a,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=aC({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=MT(()=>{Ul(()=>{this.$$r=!0;for(const i of Al(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const a=Kl(i,this.$$d[i],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,a)}this.$$r=!1})});for(const i in this.$$l)for(const a of this.$$l[i]){const o=this.$$c.$on(i,a);this.$$l_u.set(a,o)}this.$$l={}}}attributeChangedCallback(e,r,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Kl(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Al(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Kl(t,e,r,n){const i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function sC(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Yn(t,e,r,n,i,a){let o=class extends wm{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Al(e).map(s=>(e[s].attribute||s).toLowerCase())}};return Al(e).forEach(s=>{Ml(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){l=Kl(s,l,e),this.$$d[s]=l;var u=this.$$c;if(u){var f=Ra(u,s)?.get;f?u[s]=l:u.$set({[s]:l})}}})}),n.forEach(s=>{Ml(o.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=o,o}var lC=te('<div class="empty svelte-93f8ou">No rows returned</div>'),uC=te("<th> </th>"),fC=te("<td> </td>"),hC=te("<tr></tr>"),cC=te('<table class="svelte-93f8ou"><thead><tr></tr></thead><tbody class="svelte-93f8ou"></tbody></table>');const vC={hash:"svelte-93f8ou",code:`
4
4
  /* Scoped styles ship inside the custom element's shadow DOM, so they
5
5
  * never leak into the host page's CSS and vice versa. Deliberately
6
6
  * conservative — host page should be able to wrap us in any layout. */table.svelte-93f8ou {border-collapse:collapse;width:100%;font-family:system-ui,
@@ -8,7 +8,7 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
8
8
  Segoe UI,
9
9
  sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);}th.svelte-93f8ou,
10
10
  td.svelte-93f8ou {padding:6px 10px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);text-align:left;white-space:nowrap;}th.svelte-93f8ou {background:var(--saiku-embed-header-bg, #f9fafb);font-weight:600;}th.numeric.svelte-93f8ou,
11
- td.numeric.svelte-93f8ou {text-align:right;font-variant-numeric:tabular-nums;}td.negative.svelte-93f8ou {color:var(--saiku-embed-negative, #b91c1c);}tbody.svelte-93f8ou tr:where(.svelte-93f8ou):hover {background:var(--saiku-embed-row-hover, #f3f4f6);}.empty.svelte-93f8ou {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}`};function mm(t,e){Wo(e,!0),Ul(t,KT);let r=Wt(e,"rows"),n=Rl(()=>r().length>0?Object.keys(r()[0]):[]);function i(f){for(const h of r()){const c=h[f]?.value;if(c!=null&&(typeof c!="number"||Number.isNaN(c)))return!1}return!0}var a={get rows(){return r()},set rows(f){r(f),It()}},o=Gl(),s=Vl(o);{var l=f=>{var h=UT();Ie(f,h)},u=f=>{var h=ZT(),c=tr(h),v=tr(c);$l(v,20,()=>U(n),m=>m,(m,p)=>{var g=YT();let y;var _=tr(g,!0);vt(g),Wr(b=>{y=pm(g,1,"svelte-93f8ou",null,y,b),Pi(_,p)},[()=>({numeric:i(p)})]),Ie(m,g)}),vt(v),vt(c);var d=Wg(c);$l(d,21,r,OT,(m,p)=>{var g=qT();$l(g,20,()=>U(n),y=>y,(y,_)=>{const b=Rl(()=>U(p)[_]);var w=XT();let S;var x=tr(w,!0);vt(w),Wr(T=>{S=pm(w,1,"svelte-93f8ou",null,S,T),Pi(x,U(b)?.formatted??"")},[()=>({numeric:i(_),negative:U(b)&&U(b).value!==null&&U(b).value<0})]),Ie(y,w)}),vt(g),Ie(m,g)}),vt(d),vt(h),Ie(f,h)};ki(s,f=>{r().length===0?f(l):f(u,-1)})}return Ie(t,o),$o(a)}Xl(mm,{rows:{}},[],[],{mode:"open"});/*! *****************************************************************************
11
+ td.numeric.svelte-93f8ou {text-align:right;font-variant-numeric:tabular-nums;}td.negative.svelte-93f8ou {color:var(--saiku-embed-negative, #b91c1c);}tbody.svelte-93f8ou tr:where(.svelte-93f8ou):hover {background:var(--saiku-embed-row-hover, #f3f4f6);}tbody.svelte-93f8ou tr.selectable:where(.svelte-93f8ou) {cursor:pointer;}.empty.svelte-93f8ou {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}`};function Sm(t,e){pn(e,!0),Un(t,vC);let r=xe(e,"rows"),n=xe(e,"onSelect"),i=er(()=>r().length>0?Object.keys(r()[0]):[]);function a(h){for(const v of r()){const c=v[h]?.value;if(c!=null&&(typeof c!="number"||Number.isNaN(c)))return!1}return!0}var o={get rows(){return r()},set rows(h){r(h),ye()},get onSelect(){return n()},set onSelect(h){n(h),ye()}},s=zi(),l=Wn(s);{var u=h=>{var v=lC();Z(h,v)},f=h=>{var v=cC(),c=ue(v),d=ue(c);bn(d,20,()=>R(i),p=>p,(p,g)=>{var y=uC();let _;var b=ue(y,!0);ee(y),Re(S=>{_=Ua(y,1,"svelte-93f8ou",null,_,S),Fe(b,g)},[()=>({numeric:a(g)})]),Z(p,y)}),ee(d),ee(c);var m=bt(c);bn(m,21,r,Vh,(p,g)=>{var y=hC();let _;bn(y,20,()=>R(i),b=>b,(b,S)=>{const w=er(()=>R(g)[S]);var T=fC();let x;var D=ue(T,!0);ee(T),Re(A=>{x=Ua(T,1,"svelte-93f8ou",null,x,A),Fe(D,R(w)?.formatted??"")},[()=>({numeric:a(S),negative:R(w)&&R(w).value!==null&&R(w).value<0})]),Z(b,T)}),ee(y),Re(()=>_=Ua(y,1,"svelte-93f8ou",null,_,{selectable:n()})),ql("click",y,function(...b){(n()?()=>n()(R(g)):void 0)?.apply(this,b)}),Z(p,y)}),ee(m),ee(v),Z(h,v)};st(l,h=>{r().length===0?h(u):h(f,-1)})}return Z(t,s),gn(o)}hm(["click"]),Yn(Sm,{rows:{},onSelect:{}},[],[],{mode:"open"});/*! *****************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
13
13
 
14
14
  Permission to use, copy, modify, and/or distribute this software for any
@@ -21,7 +21,7 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
21
21
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
22
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
23
  PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */var Xh=function(t,e){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Xh(t,e)};function J(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var jT=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),QT=(function(){function t(){this.browser=new jT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),te=new QT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(te.wxa=!0,te.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?te.worker=!0:!te.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(te.node=!0,te.svgSupported=!0):JT(navigator.userAgent,te);function JT(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var qh=12,eC="sans-serif",Gn=qh+"px "+eC,tC=20,rC=100,nC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function iC(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-tC)/rC;e[n]=i}return e}var aC=iC(nC),mn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=mn.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Gn),t.measureText(r);r=r||"",n=n||Gn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||qh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=aC[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},ym=Wn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),_m=Wn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Fa=Object.prototype.toString,ql=Array.prototype,oC=ql.forEach,sC=ql.filter,Zh=ql.slice,lC=ql.map,bm=function(){}.constructor,Zl=bm?bm.prototype:null,Kh="__proto__",uC=2311;function wm(){return uC++}function Ni(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function fe(t){if(t==null||typeof t!="object")return t;var e=t,r=Fa.call(t);if(r==="[object Array]"){if(!Qo(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=fe(t[n])}}else if(_m[r]){if(!Qo(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!ym[r]&&!Qo(t)&&!za(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Kh&&(e[o]=fe(t[o]))}return e}function we(t,e,r){if(!q(e)||!q(t))return r?fe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Kh){var i=t[n],a=e[n];q(a)&&q(i)&&!W(a)&&!W(i)&&!za(a)&&!za(i)&&!Sm(a)&&!Sm(i)&&!Qo(a)&&!Qo(i)?we(i,a,r):(r||!(n in t))&&(t[n]=fe(e[n]))}return t}function V(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Kh&&(t[r]=e[r]);return t}function xe(t,e,r){for(var n=Pe(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function me(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function fC(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ur(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else xe(t,e)}function kt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function A(t,e,r){if(t&&e)if(t.forEach&&t.forEach===oC)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function Z(t,e,r){if(!t)return[];if(!e)return jh(t);if(t.map&&t.map===lC)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function Wn(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function et(t,e,r){if(!t)return[];if(!e)return jh(t);if(t.filter&&t.filter===sC)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function hC(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Pe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function cC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Zh.call(arguments)))}}var Te=Zl&&Q(Zl.bind)?Zl.call.bind(Zl.bind):cC;function $e(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Zh.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):Fa.call(t)==="[object Array]"}function Q(t){return typeof t=="function"}function Y(t){return typeof t=="string"}function Kl(t){return Fa.call(t)==="[object String]"}function Ce(t){return typeof t=="number"}function q(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Sm(t){return!!ym[Fa.call(t)]}function St(t){return!!_m[Fa.call(t)]}function za(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function jl(t){return t.colorStops!=null}function vC(t){return t.image!=null}function dC(t){return Fa.call(t)==="[object RegExp]"}function Ha(t){return t!==t}function Ga(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function j(t,e){return t??e}function yn(t,e,r){return t??e??r}function jh(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Zh.apply(t,e)}function Qh(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function K(t,e){if(!t)throw new Error(e)}function Yr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var xm="__ec_primitive__";function Jh(t){t[xm]=!0}function Qo(t){return t[xm]}var pC=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Pe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),Tm=typeof Map=="function";function gC(){return Tm?new Map:new pC}var mC=(function(){function t(e){var r=W(e);this.data=gC();var n=this;e instanceof t?e.each(i):e&&A(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Tm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function se(t){return new mC(t)}function yC(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function Ql(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&V(r,e),r}function Cm(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Mr(t,e){return t.hasOwnProperty(e)}function Nt(){}var _C=180/Math.PI;/*! *****************************************************************************
24
+ ***************************************************************************** */var qh=function(t,e){return qh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},qh(t,e)};function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var dC=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),pC=(function(){function t(){this.browser=new dC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),oe=new pC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(oe.wxa=!0,oe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?oe.worker=!0:!oe.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(oe.node=!0,oe.svgSupported=!0):gC(navigator.userAgent,oe);function gC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var Zh=12,mC="sans-serif",Xn=Zh+"px "+mC,yC=20,_C=100,bC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function wC(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-yC)/_C;e[n]=i}return e}var SC=wC(bC),wn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=wn.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Xn),t.measureText(r);r=r||"",n=n||Xn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Zh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=SC[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},xm=qn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Tm=qn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),jo=Object.prototype.toString,jl=Array.prototype,xC=jl.forEach,TC=jl.filter,Kh=jl.slice,CC=jl.map,Cm=function(){}.constructor,Ql=Cm?Cm.prototype:null,jh="__proto__",DC=2311;function Dm(){return DC++}function Qh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function pe(t){if(t==null||typeof t!="object")return t;var e=t,r=jo.call(t);if(r==="[object Array]"){if(!es(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=pe(t[n])}}else if(Tm[r]){if(!es(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!xm[r]&&!es(t)&&!Qo(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==jh&&(e[o]=pe(t[o]))}return e}function De(t,e,r){if(!K(e)||!K(t))return r?pe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==jh){var i=t[n],a=e[n];K(a)&&K(i)&&!U(a)&&!U(i)&&!Qo(a)&&!Qo(i)&&!Am(a)&&!Am(i)&&!es(a)&&!es(i)?De(i,a,r):(r||!(n in t))&&(t[n]=pe(e[n]))}return t}function V(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==jh&&(t[r]=e[r]);return t}function Me(t,e,r){for(var n=We(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function Te(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function AC(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ur(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else Me(t,e)}function Rt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function L(t,e,r){if(t&&e)if(t.forEach&&t.forEach===xC)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function j(t,e,r){if(!t)return[];if(!e)return ec(t);if(t.map&&t.map===CC)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function qn(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function lt(t,e,r){if(!t)return[];if(!e)return ec(t);if(t.filter&&t.filter===TC)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function MC(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function We(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function LC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Kh.call(arguments)))}}var Le=Ql&&ie(Ql.bind)?Ql.call.bind(Ql.bind):LC;function Qe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Kh.call(arguments)))}}function U(t){return Array.isArray?Array.isArray(t):jo.call(t)==="[object Array]"}function ie(t){return typeof t=="function"}function X(t){return typeof t=="string"}function Jh(t){return jo.call(t)==="[object String]"}function ke(t){return typeof t=="number"}function K(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Am(t){return!!xm[jo.call(t)]}function Ot(t){return!!Tm[jo.call(t)]}function Qo(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Jl(t){return t.colorStops!=null}function kC(t){return t.image!=null}function Jo(t){return t!==t}function eu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Q(t,e){return t??e}function Hi(t,e,r){return t??e??r}function ec(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Kh.apply(t,e)}function tc(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Sn(t,e){if(!t)throw new Error(e)}function Yr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Mm="__ec_primitive__";function rc(t){t[Mm]=!0}function es(t){return t[Mm]}var IC=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return We(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),Lm=typeof Map=="function";function PC(){return Lm?new Map:new IC}var EC=(function(){function t(e){var r=U(e);this.data=PC();var n=this;e instanceof t?e.each(i):e&&L(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Lm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function he(t){return new EC(t)}function RC(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function tu(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&V(r,e),r}function km(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Mr(t,e){return t.hasOwnProperty(e)}function Nt(){}var OC=180/Math.PI;/*! *****************************************************************************
25
25
  Copyright (c) Microsoft Corporation.
26
26
 
27
27
  Permission to use, copy, modify, and/or distribute this software for any
@@ -34,8 +34,8 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
34
34
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
35
35
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
36
36
  PERFORMANCE OF THIS SOFTWARE.
37
- ***************************************************************************** */var ec=function(t,e){return ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ec(t,e)};function Me(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ec(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Wa(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function bC(t){return[t[0],t[1]]}function Dm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function wC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function SC(t){return Math.sqrt(xC(t))}function xC(t){return t[0]*t[0]+t[1]*t[1]}function tc(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function TC(t,e){var r=SC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function rc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var nc=rc;function CC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var $a=CC;function ic(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function or(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Ua(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ya(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Xa=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),DC=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xa(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Xa(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Xa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Xa(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Xa(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Xa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Xr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),EC=Math.log(2);function ac(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/EC);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*t[r][c]*ac(t,e-1,f,u,i|d,a),v++)}return a[o]=h,h}function Em(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=ac(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ac(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Jl="___zrEVENTSAVED",oc=[];function AC(t,e,r,n,i){return sc(oc,e,n,i,!0)&&sc(t,r,oc[0],oc[1])}function MC(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Jl];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Jl])}}function sc(t,e,r,n,i){if(e.getBoundingClientRect&&te.domSupported&&!Am(e)){var a=e[Jl]||(e[Jl]={}),o=LC(e,a),s=IC(o,a,i);if(s)return s(t,r,n),!0}return!1}function LC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){A(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function IC(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?Em(s,o):Em(o,s))}function Am(t){return t.nodeName.toUpperCase()==="CANVAS"}var PC=/([&<>"'])/g,kC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ot(t){return t==null?"":(t+"").replace(PC,function(e,r){return kC[r]})}var NC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lc=[],OC=te.browser.firefox&&+te.browser.version.split(".")[0]<39;function uc(t,e,r,n){return r=r||{},n?Mm(t,e,r):OC&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Mm(t,e,r),r}function Mm(t,e,r){if(te.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Am(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(sc(lc,t,n,i)){r.zrX=lc[0],r.zrY=lc[1];return}}r.zrX=r.zrY=0}function fc(t){return t||window.event}function sr(t,e,r){if(e=fc(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&uc(t,o,e,r)}else{uc(t,e,e,r);var a=RC(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&NC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function RC(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function BC(t,e,r,n){t.addEventListener(e,r,n)}function VC(t,e,r,n){t.removeEventListener(e,r,n)}var Lm=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},FC=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=uc(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in hc)if(hc.hasOwnProperty(r)){var n=hc[r](this._track,e);if(n)return n}},t})();function Im(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function zC(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var hc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Im(n)/Im(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=zC(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function _n(){return[1,0,0,1,0,0]}function cc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Pm(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Jo(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function vc(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function dc(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),h=Math.cos(r);return t[0]=i*h+s*f,t[1]=-i*f+s*h,t[2]=a*h+l*f,t[3]=-a*f+h*l,t[4]=h*(o-n[0])+f*(u-n[1])+n[0],t[5]=h*(u-n[1])-f*(o-n[0])+n[1],t}function HC(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function es(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var ne=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Oi=Math.min,qa=Math.max,pc=Math.abs,km=["x","y"],GC=["width","height"],Ri=new ne,Bi=new ne,Vi=new ne,Fi=new ne,$t=Om(),ts=$t.minTv,gc=$t.maxTv,rs=[0,0],oe=(function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Oi(e.x,this.x),n=Oi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qa(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qa(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=_n();return vc(a,a,[-r.x,-r.y]),HC(a,a,[n,i]),vc(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&ne.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(WC,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set($C,r.x,r.y,r.width,r.height));var s=!!n;$t.reset(i,s);var l=$t.touchThreshold,u=e.x+l,f=e.x+e.width-l,h=e.y+l,c=e.y+e.height-l,v=r.x+l,d=r.x+r.width-l,m=r.y+l,p=r.y+r.height-l;if(u>f||h>c||v>d||m>p)return!1;var g=!(f<v||d<u||c<m||p<h);return(s||a)&&(rs[0]=1/0,rs[1]=0,Nm(u,f,v,d,0,s,a,o),Nm(h,c,m,p,1,s,a,o),s&&ne.copy(n,g?$t.useDir?$t.dirMinTv:ts:gc)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ri.x=Vi.x=r.x,Ri.y=Fi.y=r.y,Bi.x=Fi.x=r.x+r.width,Bi.y=Vi.y=r.y+r.height,Ri.transform(n),Fi.transform(n),Bi.transform(n),Vi.transform(n),e.x=Oi(Ri.x,Bi.x,Vi.x,Fi.x),e.y=Oi(Ri.y,Bi.y,Vi.y,Fi.y);var l=qa(Ri.x,Bi.x,Vi.x,Fi.x),u=qa(Ri.y,Bi.y,Vi.y,Fi.y);e.width=l-e.x,e.height=u-e.y},t})(),WC=new oe(0,0,0,0),$C=new oe(0,0,0,0);function Nm(t,e,r,n,i,a,o,s){var l=pc(e-r),u=pc(n-t),f=Oi(l,u),h=km[i],c=km[1-i],v=GC[i];e<r||n<t?l<u?(a&&(gc[h]=-l),s&&(o[h]=e,o[v]=0)):(a&&(gc[h]=u),s&&(o[h]=t,o[v]=0)):(o&&(o[h]=qa(t,r),o[v]=Oi(e,n)-o[h]),a&&(f<rs[0]||$t.useDir)&&(rs[0]=Oi(f,rs[0]),(l<u||!$t.bidirectional)&&(ts[h]=l,ts[c]=0,$t.useDir&&$t.calcDirMTV()),(l>=u||!$t.bidirectional)&&(ts[h]=-u,ts[c]=0,$t.useDir&&$t.calcDirMTV())))}function Om(){var t=0,e=new ne,r=new ne,n={minTv:new ne,maxTv:new ne,useDir:!1,dirMinTv:new ne,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=qa(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return pc(a)<1e-10}return n}var Rm="silent";function UC(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:YC}}function YC(){Lm(this.event)}var XC=(function(t){Me(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Xr),ns=(function(){function t(e,r){this.x=e,this.y=r}return t})(),qC=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mc=new oe(0,0,0,0),Bm=(function(t){Me(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new ns(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new XC,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new DC(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(qC,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Fm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ns(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new ns(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=UC(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ns(r,n);if(Vm(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new oe(r-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(mc.copy(c.getBoundingRect()),c.transform&&mc.applyTransform(c.transform),mc.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,m=Math.PI*2,p=0;p<u;p+=v)for(var g=0;g<m;g+=d){var y=r+p*Math.cos(g),_=n+p*Math.sin(g);if(Vm(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new FC);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ns;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Xr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Bm.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=Fm(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||nc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function ZC(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Rm:!0}return!1}function Vm(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=ZC(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==Rm)){e.target=o;break}}}function Fm(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var zm=32,is=7;function KC(t){for(var e=0;t>=zm;)e|=t&1,t>>=1;return t+e}function Hm(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;jC(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function jC(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Gm(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function yc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function _c(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function QC(t,e){var r=is,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],m=i[v],p=n[v+1],g=i[v+1];i[v]=m+g,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=_c(t[p],t,d,m,0,e);d+=y,m-=y,m!==0&&(g=yc(t[d+m-1],t,p,g,g-1,e),g!==0&&(m<=g?h(d,m,p,g):c(d,m,p,g)))}function h(v,d,m,p){var g=0;for(g=0;g<d;g++)o[g]=t[v+g];var y=0,_=m,b=v;if(t[b++]=t[_++],--p===0){for(g=0;g<d;g++)t[b+g]=o[y+g];return}if(d===1){for(g=0;g<p;g++)t[b+g]=t[_+g];t[b+p]=o[y];return}for(var w=r,S,x,T;;){S=0,x=0,T=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],x++,S=0,--p===0){T=!0;break}}else if(t[b++]=o[y++],S++,x=0,--d===1){T=!0;break}while((S|x)<w);if(T)break;do{if(S=_c(t[_],o,y,d,0,e),S!==0){for(g=0;g<S;g++)t[b+g]=o[y+g];if(b+=S,y+=S,d-=S,d<=1){T=!0;break}}if(t[b++]=t[_++],--p===0){T=!0;break}if(x=yc(o[y],t,_,p,0,e),x!==0){for(g=0;g<x;g++)t[b+g]=t[_+g];if(b+=x,_+=x,p-=x,p===0){T=!0;break}}if(t[b++]=o[y++],--d===1){T=!0;break}w--}while(S>=is||x>=is);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<p;g++)t[b+g]=t[_+g];t[b+p]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[b+g]=o[y+g]}}function c(v,d,m,p){var g=0;for(g=0;g<p;g++)o[g]=t[m+g];var y=v+d-1,_=p-1,b=m+p-1,w=0,S=0;if(t[b--]=t[y--],--d===0){for(w=b-(p-1),g=0;g<p;g++)t[w+g]=o[g];return}if(p===1){for(b-=d,y-=d,S=b+1,w=y+1,g=d-1;g>=0;g--)t[S+g]=t[w+g];t[b]=o[_];return}for(var x=r;;){var T=0,C=0,E=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],T++,C=0,--d===0){E=!0;break}}else if(t[b--]=o[_--],C++,T=0,--p===1){E=!0;break}while((T|C)<x);if(E)break;do{if(T=d-_c(o[_],t,v,d,d-1,e),T!==0){for(b-=T,y-=T,d-=T,S=b+1,w=y+1,g=T-1;g>=0;g--)t[S+g]=t[w+g];if(d===0){E=!0;break}}if(t[b--]=o[_--],--p===1){E=!0;break}if(C=p-yc(t[y],o,0,p,p-1,e),C!==0){for(b-=C,_-=C,p-=C,S=b+1,w=_+1,g=0;g<C;g++)t[S+g]=o[w+g];if(p<=1){E=!0;break}}if(t[b--]=t[y--],--d===0){E=!0;break}x--}while(T>=is||C>=is);if(E)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(b-=d,y-=d,S=b+1,w=y+1,g=d-1;g>=0;g--)t[S+g]=t[w+g];t[b]=o[_]}else{if(p===0)throw new Error;for(w=b-(p-1),g=0;g<p;g++)t[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function eu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<zm){a=Hm(t,r,n,e),Gm(t,r,n,r+a,e);return}var o=QC(t,e),s=KC(i);do{if(a=Hm(t,r,n,e),a<s){var l=i;l>s&&(l=s),Gm(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ut=1,as=2,Za=4,Wm=!1;function bc(){Wm||(Wm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $m(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var JC=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$m}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,eu(n,$m)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var h=e.childrenRef(),c=0;c<h.length;c++){var v=h[c];e.__dirty&&(v.__dirty|=Ut),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(bc(),d.z=0),isNaN(d.z2)&&(bc(),d.z2=0),isNaN(d.zlevel)&&(bc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=me(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),tu;tu=te.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var os={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-os.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?os.bounceIn(t*2)*.5:os.bounceOut(t*2-1)*.5+.5}},ru=Math.pow,$n=Math.sqrt,nu=1e-8,Um=1e-4,Ym=$n(3),iu=1/3,qr=Wa(),lr=Wa(),Ka=Wa();function Un(t){return t>-nu&&t<nu}function Xm(t){return t>nu||t<-nu}function ot(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function qm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function au(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Un(f)&&Un(h))if(Un(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var m=h*h-4*f*c;if(Un(m)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(m>0){var y=$n(m),_=f*s+1.5*o*(-h+y),b=f*s+1.5*o*(-h-y);_<0?_=-ru(-_,iu):_=ru(_,iu),b<0?b=-ru(-b,iu):b=ru(b,iu);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*$n(f*f*f)),S=Math.acos(w)/3,x=$n(f),T=Math.cos(S),d=(-s-2*x*T)/(3*o),g=(-s+x*(T+Ym*Math.sin(S)))/(3*o),C=(-s+x*(T-Ym*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),C>=0&&C<=1&&(a[v++]=C)}}return v}function Zm(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Un(o)){if(Xm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Un(f))i[0]=-a/(2*o);else if(f>0){var h=$n(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function ou(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function eD(t,e,r,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,m,p,g;qr[0]=l,qr[1]=u;for(var y=0;y<1;y+=.05)lr[0]=ot(t,r,i,o,y),lr[1]=ot(e,n,a,s,y),p=$a(qr,lr),p<v&&(h=y,v=p);v=1/0;for(var _=0;_<32&&!(c<Um);_++)d=h-c,m=h+c,lr[0]=ot(t,r,i,o,d),lr[1]=ot(e,n,a,s,d),p=$a(lr,qr),d>=0&&p<v?(h=d,v=p):(Ka[0]=ot(t,r,i,o,m),Ka[1]=ot(e,n,a,s,m),g=$a(Ka,qr),m<=1&&g<v?(h=m,v=g):c*=.5);return $n(v)}function tD(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,m=ot(t,r,i,o,d),p=ot(e,n,a,s,d),g=m-u,y=p-f;h+=Math.sqrt(g*g+y*y),u=m,f=p}return h}function Rt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Km(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function rD(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Un(a)){if(Xm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Un(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=$n(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function jm(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function su(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function nD(t,e,r,n,i,a,o,s,l){var u,f=.005,h=1/0;qr[0]=o,qr[1]=s;for(var c=0;c<1;c+=.05){lr[0]=Rt(t,r,i,c),lr[1]=Rt(e,n,a,c);var v=$a(qr,lr);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Um);d++){var m=u-f,p=u+f;lr[0]=Rt(t,r,i,m),lr[1]=Rt(e,n,a,m);var v=$a(lr,qr);if(m>=0&&v<h)u=m,h=v;else{Ka[0]=Rt(t,r,i,p),Ka[1]=Rt(e,n,a,p);var g=$a(Ka,qr);p<=1&&g<h?(u=p,h=g):f*=.5}}return $n(h)}function iD(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Rt(t,r,i,c),d=Rt(e,n,a,c),m=v-s,p=d-l;u+=Math.sqrt(m*m+p*p),s=v,l=d}return u}var aD=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qm(t){var e=t&&aD.exec(t);if(e){var r=e[1].split(","),n=+Yr(r[0]),i=+Yr(r[1]),a=+Yr(r[2]),o=+Yr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:au(0,n,a,1,l,s)&&ot(0,i,o,1,s[0])}}}var oD=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Nt,this.ondestroy=e.ondestroy||Nt,this.onrestart=e.onrestart||Nt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:os[e]||Qm(e)},t})(),Jm=(function(){function t(e){this.value=e}return t})(),sD=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Jm(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),ja=(function(){function t(e){this._list=new sD,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Jm(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ey={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 Yn(t){return t=Math.round(t),t<0?0:t>255?255:t}function wc(t){return t<0?0:t>1?1:t}function Sc(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Yn(parseFloat(e)/100*255):Yn(parseInt(e,10))}function zi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?wc(parseFloat(e)/100):wc(parseFloat(e))}function xc(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(.6666666666666666-r)*6:t}function lu(t,e,r){return t+(e-t)*r}function ur(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Tc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ty=new ja(20),uu=null;function Qa(t,e){uu&&Tc(uu,e),uu=ty.put(t,uu||e.slice())}function Zr(t,e){if(t){e=e||[];var r=ty.get(t);if(r)return Tc(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in ey)return Tc(e,ey[n]),Qa(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ur(e,0,0,0,1);return}return ur(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Qa(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ur(e,0,0,0,1);return}return ur(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Qa(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ur(e,+u[0],+u[1],+u[2],1):ur(e,0,0,0,1);f=zi(u.pop());case"rgb":if(u.length>=3)return ur(e,Sc(u[0]),Sc(u[1]),Sc(u[2]),u.length===3?f:zi(u[3])),Qa(t,e),e;ur(e,0,0,0,1);return;case"hsla":if(u.length!==4){ur(e,0,0,0,1);return}return u[3]=zi(u[3]),Cc(u,e),Qa(t,e),e;case"hsl":if(u.length!==3){ur(e,0,0,0,1);return}return Cc(u,e),Qa(t,e),e;default:return}}ur(e,0,0,0,1)}}function Cc(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=zi(t[1]),i=zi(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],ur(e,Yn(xc(o,a,r+.3333333333333333)*255),Yn(xc(o,a,r)*255),Yn(xc(o,a,r-.3333333333333333)*255),1),t.length===4&&(e[3]=t[3]),e}function lD(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;e===a?l=c-h:r===a?l=.3333333333333333+f-c:n===a&&(l=.6666666666666666+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return t[3]!=null&&v.push(t[3]),v}}function ry(t,e){var r=Zr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ss(r,r.length===4?"rgba":"rgb")}}function uD(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Zr(e[i]),s=Zr(e[a]),l=n-i,u=ss([Yn(lu(o[0],s[0],l)),Yn(lu(o[1],s[1],l)),Yn(lu(o[2],s[2],l)),wc(lu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Dc(t,e,r,n){var i=Zr(t);if(t)return i=lD(i),r!=null&&(i[1]=zi(Q(r)?r(i[1]):r)),n!=null&&(i[2]=zi(Q(n)?n(i[2]):n)),ss(Cc(i),"rgba")}function ss(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function fu(t,e){var r=Zr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var ny=new ja(100);function iy(t){if(Y(t)){var e=ny.get(t);return e||(e=ry(t,-.1),ny.put(t,e)),e}else if(jl(t)){var r=V({},t);return r.colorStops=Z(t.colorStops,function(n){return{offset:n.offset,color:ry(n.color,-.1)}}),r}return t}function fD(t){return t.type==="linear"}function hD(t){return t.type==="radial"}(function(){return te.hasGlobalWindow&&Q(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&Ni("Base64 isn't natively supported in the current environment."),null}})();var Ec=Array.prototype.slice;function bn(t,e,r){return(e-t)*r+t}function Ac(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=bn(e[a],r[a],n);return t}function cD(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=bn(e[o][s],r[o][s],n)}return t}function hu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function ay(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function vD(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function dD(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Ec.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function cu(t){if(kt(t)){var e=t.length;if(kt(t[0])){for(var r=[],n=0;n<e;n++)r.push(Ec.call(t[n]));return r}return Ec.call(t)}return t}function vu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function pD(t){return kt(t&&t[0])?2:1}var du=0,pu=1,oy=2,ls=3,Mc=4,Lc=5,sy=6;function ly(t){return t===Mc||t===Lc}function gu(t){return t===pu||t===oy}var us=[0,0,0,0],gD=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=sy,l=r;if(kt(r)){var u=pD(r);s=u,(u===1&&!Ce(r[0])||u===2&&!Ce(r[0][0]))&&(o=!0)}else if(Ce(r)&&!Ha(r))s=du;else if(Y(r))if(!isNaN(+r))s=du;else{var f=Zr(r);f&&(l=f,s=ls)}else if(jl(r)){var h=V({},l);h.colorStops=Z(r.colorStops,function(v){return{offset:v.offset,color:Zr(v.color)}}),fD(r)?s=Mc:hD(r)&&(s=Lc),l=h}a===0?this.valType=s:(s!==this.valType||s===sy)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=Q(n)?n:os[n]||Qm(n)),i.push(c),c},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,p){return m.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=gu(i),u=ly(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/e,s||(l&&f!==a-1?dD(c,v,i):u&&vD(c.colorStops,v.colorStops))}if(!s&&i!==Lc&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===du?n[f].additiveValue=n[f].value-d:i===ls?n[f].additiveValue=hu([],n[f].value,d,-1):gu(i)&&(n[f].additiveValue=i===pu?hu([],n[f].value,d,-1):ay([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ls,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var m=c(h+1,s-1);for(f=m;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,g=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?us:e[l];if((gu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:d.rawValue;else if(gu(a))a===pu?Ac(y,v[i],d[i],g):cD(y,v[i],d[i],g);else if(ly(a)){var _=v[i],b=d[i],w=a===Mc;e[l]={type:w?"linear":"radial",x:bn(_.x,b.x,g),y:bn(_.y,b.y,g),colorStops:Z(_.colorStops,function(x,T){var C=b.colorStops[T];return{offset:bn(x.offset,C.offset,g),color:vu(Ac([],x.color,C.color,g))}}),global:b.global},w?(e[l].x2=bn(_.x2,b.x2,g),e[l].y2=bn(_.y2,b.y2,g)):e[l].r=bn(_.r,b.r,g)}else if(u)Ac(y,v[i],d[i],g),n||(e[l]=vu(y));else{var S=bn(v[i],d[i],g);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===du?e[n]=e[n]+i:r===ls?(Zr(e[n],us),hu(us,us,i,1),e[n]=vu(us)):r===pu?hu(e[n],e[n],i,1):r===oy&&ay(e[n],e[n],i,1)},t})(),Ic=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Ni("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Pe(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new gD(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===ls&&u&&(u=vu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,cu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,cu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new oD({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var m=!1,p=0;p<d.length;p++)if(d[p]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Z(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=cu(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Pe(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function Ja(){return new Date().getTime()}var mD=(function(t){Me(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ja()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(tu(n),!r._paused&&r.update())}tu(n)},e.prototype.start=function(){this._running||(this._time=Ja(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ja(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ja()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Ic(r,n.loop);return this.addAnimator(i),i},e})(Xr),yD=300,Pc=te.domSupported,kc=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),uy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},fy=!1;function Nc(t){var e=t.pointerType;return e==="pen"||e==="touch"}function _D(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Oc(t){t&&(t.zrByTouch=!0)}function bD(t,e){return sr(t.dom,new wD(t,e),!0)}function hy(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var wD=(function(){function t(e,r){this.stopPropagation=Nt,this.stopImmediatePropagation=Nt,this.preventDefault=Nt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Lr={mousedown:function(t){t=sr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=sr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=sr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=sr(this.dom,t);var e=t.toElement||t.relatedTarget;hy(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){fy=!0,t=sr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){fy||(t=sr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=sr(this.dom,t),Oc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lr.mousemove.call(this,t),Lr.mousedown.call(this,t)},touchmove:function(t){t=sr(this.dom,t),Oc(t),this.handler.processGesture(t,"change"),Lr.mousemove.call(this,t)},touchend:function(t){t=sr(this.dom,t),Oc(t),this.handler.processGesture(t,"end"),Lr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<yD&&Lr.click.call(this,t)},pointerdown:function(t){Lr.mousedown.call(this,t)},pointermove:function(t){Nc(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},pointerout:function(t){Nc(t)||Lr.mouseout.call(this,t)}};A(["click","dblclick","contextmenu"],function(t){Lr[t]=function(e){e=sr(this.dom,e),this.trigger(t,e)}});var Rc={pointermove:function(t){Nc(t)||Rc.mousemove.call(this,t)},pointerup:function(t){Rc.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function SD(t,e){var r=e.domHandlers;te.pointerEventsSupported?A(kc.pointer,function(n){mu(e,n,function(i){r[n].call(t,i)})}):(te.touchEventsSupported&&A(kc.touch,function(n){mu(e,n,function(i){r[n].call(t,i),_D(e)})}),A(kc.mouse,function(n){mu(e,n,function(i){i=fc(i),e.touching||r[n].call(t,i)})}))}function xD(t,e){te.pointerEventsSupported?A(uy.pointer,r):te.touchEventsSupported||A(uy.mouse,r);function r(n){function i(a){a=fc(a),hy(t,a.target)||(a=bD(t,a),e.domHandlers[n].call(t,a))}mu(e,n,i,{capture:!0})}}function mu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,BC(t.domTarget,e,r,n)}function Bc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&VC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var cy=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),TD=(function(t){Me(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new cy(r,Lr),Pc&&(i._globalHandlerScope=new cy(document,Rc)),SD(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Bc(this._localHandlerScope),Pc&&Bc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Pc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?xD(this,n):Bc(n)}},e})(Xr),vy=1;te.hasGlobalWindow&&(vy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var yu=vy,Vc=.4,Fc="#333",zc="#ccc",CD="#eee",dy=cc,py=5e-5;function Hi(t){return t>py||t<-py}var Gi=[],eo=[],Hc=_n(),Gc=Math.abs,Wc=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Hi(this.rotation)||Hi(this.x)||Hi(this.y)||Hi(this.scaleX-1)||Hi(this.scaleY-1)||Hi(this.skewX)||Hi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(dy(n),this.invTransform=null);return}n=n||_n(),r?this.getLocalTransform(n):dy(n),e&&(r?Jo(n,e,n):Pm(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Gi);var n=Gi[0]<0?-1:1,i=Gi[1]<0?-1:1,a=((Gi[0]-n)*r+n)/Gi[0]||0,o=((Gi[1]-i)*r+i)/Gi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||_n(),es(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_n(),Jo(eo,e.invTransform,r),r=eo);var n=this.originX,i=this.originY;(n||i)&&(Hc[4]=n,Hc[5]=i,Jo(eo,r,Hc),eo[4]-=n,eo[5]-=i,r=eo),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&or(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&or(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Gc(e[0]-1)>1e-10&&Gc(e[3]-1)>1e-10?Math.sqrt(Gc(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){$c(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,m=i+l;r[4]=-d*a-c*m*o,r[5]=-m*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,u&&dc(r,r,u),r[4]+=n+f,r[5]+=i+h,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),fs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $c(t,e){for(var r=0;r<fs.length;r++){var n=fs[r];t[n]=e[n]}}function Kr(t){_u||(_u=new ja(100)),t=t||Gn;var e=_u.get(t);return e||(e={font:t,strWidthCache:new ja(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:mn.measureText("国",t).width,asciiCharWidth:mn.measureText("a",t).width},_u.put(t,e)),e}var _u;function DD(t){if(!(Uc>=gy)){t=t||Gn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=mn.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Uc=gy:i>2&&Uc++,e}}var Uc=0,gy=5;function my(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=DD(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function jr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=mn.measureText(e,t.font).width,r.put(e,n)),n}function yy(t,e,r,n){var i=jr(Kr(e),t),a=bu(e),o=to(0,i,r),s=Wi(0,a,n),l=new oe(o,s,i,a);return l}function _y(t,e,r,n){var i=((t||"")+"").split(`
38
- `),a=i.length;if(a===1)return yy(i[0],e,r,n);for(var o=new oe(0,0,0,0),s=0;s<i.length;s++){var l=yy(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function to(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Wi(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function bu(t){return Kr(t).stWideCharWidth}function Xn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function wu(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=Xn(n[0],r.width),u+=Xn(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=h,t}var Yc="__zr_normal__",Xc=fs.concat(["ignore"]),ED=Wn(fs,function(t,e){return t[e]=!0,t},{ignore:!1}),ro={},AD=new oe(0,0,0,0),Su=[],xu=(function(){function t(e){this.id=wm(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,c=void 0;if((h||f)&&(c=AD,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ro,n,c):wu(ro,n,c),a.x=ro.x,a.y=ro.y,o=ro.align,s=ro.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,m=void 0;v==="center"?(d=c.width*.5,m=c.height*.5):(d=Xn(v[0],c.width),m=Xn(v[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+m+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=g.overflowRect=g.overflowRect||new oe(0,0,0,0);a.getLocalTransform(Su),es(Su,Su),oe.copy(y,c),y.applyTransform(Su)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,w=void 0,S=void 0;_&&this.canBeInsideText()?(b=n.insideFill,w=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(b),S=!0)):(b=n.outsideFill,w=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(b),S=!0)),b=b||"#000",(b!==g.fill||w!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=b,g.stroke=w,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ut,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zc:Fc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Zr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ss(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},V(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(q(e))for(var n=e,i=Pe(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Yc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Xc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Yc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Yc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(me(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ni("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(e,r,n,f),c&&c.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ut),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(e,r,c),p&&p.useStates(e,r,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ut)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=me(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=me(i,e),o=me(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];V(r,a),a.textConfig&&(n=n||{},V(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=V({},i?this.textConfig:n.textConfig),V(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Xc.length;f++){var h=Xc[f],c=a&&ED[h];r&&r[h]!=null?c?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Wc,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ut;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){Ni('Property "'+e+'" is not existed in element '+this.id);return}var a=new Ic(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=me(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){qc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){qc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=qc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ut;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),t})();Ur(xu,Xr),Ur(xu,Wc);function qc(t,e,r,n,i){r=r||{};var a=[];by(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,m){r.during(m)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Zc(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function MD(t){return kt(t[0])}function LD(t,e,r){if(kt(e[r]))if(kt(t[r])||(t[r]=[]),St(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Zc(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(MD(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Zc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Zc(a,i,o);a.length=i.length}else t[r]=e[r]}function ID(t,e){return t===e||kt(t)&&kt(e)&&PD(t,e)}function PD(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function by(t,e,r,n,i,a,o,s){for(var l=Pe(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!q(a),d=t.animators,m=[],p=0;p<l.length;p++){var g=l[p],y=n[g];if(y!=null&&r[g]!=null&&(v||a[g]))if(q(y)&&!kt(y)&&!jl(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}by(t,g,r[g],y,i,a&&a[g],o,s)}else m.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),m.push(g))}var _=m.length;if(!h&&_)for(var b=0;b<d.length;b++){var w=d[b];if(w.targetName===e){var S=w.stopTracks(m);if(S){var x=me(d,w);d.splice(x,1)}}}if(i.force||(m=et(m,function(D){return!ID(n[D],r[D])}),_=m.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,E=void 0;if(s){C={},c&&(T={});for(var b=0;b<_;b++){var g=m[b];C[g]=r[g],c?T[g]=n[g]:r[g]=n[g]}}else if(c){E={};for(var b=0;b<_;b++){var g=m[b];E[g]=cu(r[g]),LD(r,n,g)}}var w=new Ic(r,!1,!1,h?et(d,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),c&&T&&w.whenWithKeys(0,T,m),E&&w.whenWithKeys(0,E,m),w.whenWithKeys(u??500,s?C:n,m).delay(f||0),t.addAnimator(w,e),o.push(w)}}var tt=(function(t){Me(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=me(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=me(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new oe(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(oe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(xu);tt.prototype.type="group";/*!
37
+ ***************************************************************************** */var nc=function(t,e){return nc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},nc(t,e)};function Oe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");nc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Ya(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function NC(t){return[t[0],t[1]]}function Im(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function BC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function FC(t){return Math.sqrt(zC(t))}function zC(t){return t[0]*t[0]+t[1]*t[1]}function ic(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function HC(t,e){var r=FC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ac(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var oc=ac;function GC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Xa=GC;function sc(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function or(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function qa(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Za(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Ka=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),VC=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ka(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Ka(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ka(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ka(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ka(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ka(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Xr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),WC=Math.log(2);function lc(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/WC);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*t[r][v]*lc(t,e-1,f,u,i|d,a),c++)}return a[o]=h,h}function Pm(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=lc(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*lc(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var ru="___zrEVENTSAVED",uc=[];function $C(t,e,r,n,i){return fc(uc,e,n,i,!0)&&fc(t,r,uc[0],uc[1])}function UC(t,e){t&&r(t),e&&r(e);function r(n){var i=n[ru];i&&(i.clearMarkers&&i.clearMarkers(),delete n[ru])}}function fc(t,e,r,n,i){if(e.getBoundingClientRect&&oe.domSupported&&!Em(e)){var a=e[ru]||(e[ru]={}),o=YC(e,a),s=XC(o,a,i);if(s)return s(t,r,n),!0}return!1}function YC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){L(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function XC(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?Pm(s,o):Pm(o,s))}function Em(t){return t.nodeName.toUpperCase()==="CANVAS"}var qC=/([&<>"'])/g,ZC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Bt(t){return t==null?"":(t+"").replace(qC,function(e,r){return ZC[r]})}var KC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hc=[],jC=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function cc(t,e,r,n){return r=r||{},n?Rm(t,e,r):jC&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Rm(t,e,r),r}function Rm(t,e,r){if(oe.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Em(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(fc(hc,t,n,i)){r.zrX=hc[0],r.zrY=hc[1];return}}r.zrX=r.zrY=0}function vc(t){return t||window.event}function sr(t,e,r){if(e=vc(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&cc(t,o,e,r)}else{cc(t,e,e,r);var a=QC(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&KC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function QC(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function JC(t,e,r,n){t.addEventListener(e,r,n)}function eD(t,e,r,n){t.removeEventListener(e,r,n)}var Om=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},tD=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=cc(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in dc)if(dc.hasOwnProperty(r)){var n=dc[r](this._track,e);if(n)return n}},t})();function Nm(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function rD(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var dc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Nm(n)/Nm(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=rD(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function xn(){return[1,0,0,1,0,0]}function pc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Bm(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ts(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function gc(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function mc(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),h=Math.cos(r);return t[0]=i*h+s*f,t[1]=-i*f+s*h,t[2]=a*h+l*f,t[3]=-a*f+h*l,t[4]=h*(o-n[0])+f*(u-n[1])+n[0],t[5]=h*(u-n[1])-f*(o-n[0])+n[1],t}function nD(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function rs(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var se=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Gi=Math.min,ja=Math.max,yc=Math.abs,Fm=["x","y"],iD=["width","height"],Vi=new se,Wi=new se,$i=new se,Ui=new se,$t=Hm(),ns=$t.minTv,_c=$t.maxTv,is=[0,0],fe=(function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Gi(e.x,this.x),n=Gi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ja(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ja(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=xn();return gc(a,a,[-r.x,-r.y]),nD(a,a,[n,i]),gc(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&se.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(aD,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(oD,r.x,r.y,r.width,r.height));var s=!!n;$t.reset(i,s);var l=$t.touchThreshold,u=e.x+l,f=e.x+e.width-l,h=e.y+l,v=e.y+e.height-l,c=r.x+l,d=r.x+r.width-l,m=r.y+l,p=r.y+r.height-l;if(u>f||h>v||c>d||m>p)return!1;var g=!(f<c||d<u||v<m||p<h);return(s||a)&&(is[0]=1/0,is[1]=0,zm(u,f,c,d,0,s,a,o),zm(h,v,m,p,1,s,a,o),s&&se.copy(n,g?$t.useDir?$t.dirMinTv:ns:_c)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Vi.x=$i.x=r.x,Vi.y=Ui.y=r.y,Wi.x=Ui.x=r.x+r.width,Wi.y=$i.y=r.y+r.height,Vi.transform(n),Ui.transform(n),Wi.transform(n),$i.transform(n),e.x=Gi(Vi.x,Wi.x,$i.x,Ui.x),e.y=Gi(Vi.y,Wi.y,$i.y,Ui.y);var l=ja(Vi.x,Wi.x,$i.x,Ui.x),u=ja(Vi.y,Wi.y,$i.y,Ui.y);e.width=l-e.x,e.height=u-e.y},t})(),aD=new fe(0,0,0,0),oD=new fe(0,0,0,0);function zm(t,e,r,n,i,a,o,s){var l=yc(e-r),u=yc(n-t),f=Gi(l,u),h=Fm[i],v=Fm[1-i],c=iD[i];e<r||n<t?l<u?(a&&(_c[h]=-l),s&&(o[h]=e,o[c]=0)):(a&&(_c[h]=u),s&&(o[h]=t,o[c]=0)):(o&&(o[h]=ja(t,r),o[c]=Gi(e,n)-o[h]),a&&(f<is[0]||$t.useDir)&&(is[0]=Gi(f,is[0]),(l<u||!$t.bidirectional)&&(ns[h]=l,ns[v]=0,$t.useDir&&$t.calcDirMTV()),(l>=u||!$t.bidirectional)&&(ns[h]=-u,ns[v]=0,$t.useDir&&$t.calcDirMTV())))}function Hm(){var t=0,e=new se,r=new se,n={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=ja(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return yc(a)<1e-10}return n}var Gm="silent";function sD(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:lD}}function lD(){Om(this.event)}var uD=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Xr),as=(function(){function t(e,r){this.x=e,this.y=r}return t})(),fD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bc=new fe(0,0,0,0),Vm=(function(t){Oe(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new as(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new uD,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new VC(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(L(fD,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=$m(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new as(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new as(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=sD(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new as(r,n);if(Wm(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new fe(r-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(bc.copy(v.getBoundingRect()),v.transform&&bc.applyTransform(v.transform),bc.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,m=Math.PI*2,p=0;p<u;p+=c)for(var g=0;g<m;g+=d){var y=r+p*Math.cos(g),_=n+p*Math.sin(g);if(Wm(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new tD);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new as;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Xr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Vm.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=$m(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||oc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function hD(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Gm:!0}return!1}function Wm(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=hD(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==Gm)){e.target=o;break}}}function $m(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var Um=32,os=7;function cD(t){for(var e=0;t>=Um;)e|=t&1,t>>=1;return t+e}function Ym(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;vD(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function vD(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Xm(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function wc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Sc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function dD(t,e){var r=os,n,i,a=0,o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],m=i[c],p=n[c+1],g=i[c+1];i[c]=m+g,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var y=Sc(t[p],t,d,m,0,e);d+=y,m-=y,m!==0&&(g=wc(t[d+m-1],t,p,g,g-1,e),g!==0&&(m<=g?h(d,m,p,g):v(d,m,p,g)))}function h(c,d,m,p){var g=0;for(g=0;g<d;g++)o[g]=t[c+g];var y=0,_=m,b=c;if(t[b++]=t[_++],--p===0){for(g=0;g<d;g++)t[b+g]=o[y+g];return}if(d===1){for(g=0;g<p;g++)t[b+g]=t[_+g];t[b+p]=o[y];return}for(var S=r,w,T,x;;){w=0,T=0,x=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],T++,w=0,--p===0){x=!0;break}}else if(t[b++]=o[y++],w++,T=0,--d===1){x=!0;break}while((w|T)<S);if(x)break;do{if(w=Sc(t[_],o,y,d,0,e),w!==0){for(g=0;g<w;g++)t[b+g]=o[y+g];if(b+=w,y+=w,d-=w,d<=1){x=!0;break}}if(t[b++]=t[_++],--p===0){x=!0;break}if(T=wc(o[y],t,_,p,0,e),T!==0){for(g=0;g<T;g++)t[b+g]=t[_+g];if(b+=T,_+=T,p-=T,p===0){x=!0;break}}if(t[b++]=o[y++],--d===1){x=!0;break}S--}while(w>=os||T>=os);if(x)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<p;g++)t[b+g]=t[_+g];t[b+p]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[b+g]=o[y+g]}}function v(c,d,m,p){var g=0;for(g=0;g<p;g++)o[g]=t[m+g];var y=c+d-1,_=p-1,b=m+p-1,S=0,w=0;if(t[b--]=t[y--],--d===0){for(S=b-(p-1),g=0;g<p;g++)t[S+g]=o[g];return}if(p===1){for(b-=d,y-=d,w=b+1,S=y+1,g=d-1;g>=0;g--)t[w+g]=t[S+g];t[b]=o[_];return}for(var T=r;;){var x=0,D=0,A=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],x++,D=0,--d===0){A=!0;break}}else if(t[b--]=o[_--],D++,x=0,--p===1){A=!0;break}while((x|D)<T);if(A)break;do{if(x=d-Sc(o[_],t,c,d,d-1,e),x!==0){for(b-=x,y-=x,d-=x,w=b+1,S=y+1,g=x-1;g>=0;g--)t[w+g]=t[S+g];if(d===0){A=!0;break}}if(t[b--]=o[_--],--p===1){A=!0;break}if(D=p-wc(t[y],o,0,p,p-1,e),D!==0){for(b-=D,_-=D,p-=D,w=b+1,S=_+1,g=0;g<D;g++)t[w+g]=o[S+g];if(p<=1){A=!0;break}}if(t[b--]=t[y--],--d===0){A=!0;break}T--}while(x>=os||D>=os);if(A)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),p===1){for(b-=d,y-=d,w=b+1,S=y+1,g=d-1;g>=0;g--)t[w+g]=t[S+g];t[b]=o[_]}else{if(p===0)throw new Error;for(S=b-(p-1),g=0;g<p;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function nu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<Um){a=Ym(t,r,n,e),Xm(t,r,n,r+a,e);return}var o=dD(t,e),s=cD(i);do{if(a=Ym(t,r,n,e),a<s){var l=i;l>s&&(l=s),Xm(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ut=1,ss=2,Qa=4,qm=!1;function xc(){qm||(qm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Zm(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var pD=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Zm}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,nu(n,Zm)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var h=e.childrenRef(),v=0;v<h.length;v++){var c=h[v];e.__dirty&&(c.__dirty|=Ut),this._updateAndAddDisplayable(c,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(xc(),d.z=0),isNaN(d.z2)&&(xc(),d.z2=0),isNaN(d.zlevel)&&(xc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=Te(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),iu;iu=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ls={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ls.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ls.bounceIn(t*2)*.5:ls.bounceOut(t*2-1)*.5+.5}},au=Math.pow,Zn=Math.sqrt,ou=1e-8,Km=1e-4,jm=Zn(3),su=1/3,qr=Ya(),lr=Ya(),Ja=Ya();function Kn(t){return t>-ou&&t<ou}function Qm(t){return t>ou||t<-ou}function dt(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Jm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function lu(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Kn(f)&&Kn(h))if(Kn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var m=h*h-4*f*v;if(Kn(m)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(m>0){var y=Zn(m),_=f*s+1.5*o*(-h+y),b=f*s+1.5*o*(-h-y);_<0?_=-au(-_,su):_=au(_,su),b<0?b=-au(-b,su):b=au(b,su);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var S=(2*f*s-3*o*h)/(2*Zn(f*f*f)),w=Math.acos(S)/3,T=Zn(f),x=Math.cos(w),d=(-s-2*T*x)/(3*o),g=(-s+T*(x+jm*Math.sin(w)))/(3*o),D=(-s+T*(x-jm*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),D>=0&&D<=1&&(a[c++]=D)}}return c}function ey(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Kn(o)){if(Qm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Kn(f))i[0]=-a/(2*o);else if(f>0){var h=Zn(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function uu(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function gD(t,e,r,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,m,p,g;qr[0]=l,qr[1]=u;for(var y=0;y<1;y+=.05)lr[0]=dt(t,r,i,o,y),lr[1]=dt(e,n,a,s,y),p=Xa(qr,lr),p<c&&(h=y,c=p);c=1/0;for(var _=0;_<32&&!(v<Km);_++)d=h-v,m=h+v,lr[0]=dt(t,r,i,o,d),lr[1]=dt(e,n,a,s,d),p=Xa(lr,qr),d>=0&&p<c?(h=d,c=p):(Ja[0]=dt(t,r,i,o,m),Ja[1]=dt(e,n,a,s,m),g=Xa(Ja,qr),m<=1&&g<c?(h=m,c=g):v*=.5);return Zn(c)}function mD(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,m=dt(t,r,i,o,d),p=dt(e,n,a,s,d),g=m-u,y=p-f;h+=Math.sqrt(g*g+y*y),u=m,f=p}return h}function Ft(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function ty(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function yD(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Kn(a)){if(Qm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Kn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Zn(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function ry(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function fu(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function _D(t,e,r,n,i,a,o,s,l){var u,f=.005,h=1/0;qr[0]=o,qr[1]=s;for(var v=0;v<1;v+=.05){lr[0]=Ft(t,r,i,v),lr[1]=Ft(e,n,a,v);var c=Xa(qr,lr);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Km);d++){var m=u-f,p=u+f;lr[0]=Ft(t,r,i,m),lr[1]=Ft(e,n,a,m);var c=Xa(lr,qr);if(m>=0&&c<h)u=m,h=c;else{Ja[0]=Ft(t,r,i,p),Ja[1]=Ft(e,n,a,p);var g=Xa(Ja,qr);p<=1&&g<h?(u=p,h=g):f*=.5}}return Zn(h)}function bD(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Ft(t,r,i,v),d=Ft(e,n,a,v),m=c-s,p=d-l;u+=Math.sqrt(m*m+p*p),s=c,l=d}return u}var wD=/cubic-bezier\(([0-9,\.e ]+)\)/;function ny(t){var e=t&&wD.exec(t);if(e){var r=e[1].split(","),n=+Yr(r[0]),i=+Yr(r[1]),a=+Yr(r[2]),o=+Yr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:lu(0,n,a,1,l,s)&&dt(0,i,o,1,s[0])}}}var SD=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Nt,this.ondestroy=e.ondestroy||Nt,this.onrestart=e.onrestart||Nt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ie(e)?e:ls[e]||ny(e)},t})(),iy=(function(){function t(e){this.value=e}return t})(),xD=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new iy(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),eo=(function(){function t(e){this._list=new xD,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new iy(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ay={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 jn(t){return t=Math.round(t),t<0?0:t>255?255:t}function Tc(t){return t<0?0:t>1?1:t}function Cc(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?jn(parseFloat(e)/100*255):jn(parseInt(e,10))}function Yi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Tc(parseFloat(e)/100):Tc(parseFloat(e))}function Dc(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(.6666666666666666-r)*6:t}function hu(t,e,r){return t+(e-t)*r}function ur(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Ac(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var oy=new eo(20),cu=null;function to(t,e){cu&&Ac(cu,e),cu=oy.put(t,cu||e.slice())}function Zr(t,e){if(t){e=e||[];var r=oy.get(t);if(r)return Ac(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in ay)return Ac(e,ay[n]),to(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ur(e,0,0,0,1);return}return ur(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),to(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ur(e,0,0,0,1);return}return ur(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),to(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ur(e,+u[0],+u[1],+u[2],1):ur(e,0,0,0,1);f=Yi(u.pop());case"rgb":if(u.length>=3)return ur(e,Cc(u[0]),Cc(u[1]),Cc(u[2]),u.length===3?f:Yi(u[3])),to(t,e),e;ur(e,0,0,0,1);return;case"hsla":if(u.length!==4){ur(e,0,0,0,1);return}return u[3]=Yi(u[3]),Mc(u,e),to(t,e),e;case"hsl":if(u.length!==3){ur(e,0,0,0,1);return}return Mc(u,e),to(t,e),e;default:return}}ur(e,0,0,0,1)}}function Mc(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Yi(t[1]),i=Yi(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],ur(e,jn(Dc(o,a,r+.3333333333333333)*255),jn(Dc(o,a,r)*255),jn(Dc(o,a,r-.3333333333333333)*255),1),t.length===4&&(e[3]=t[3]),e}function TD(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,h=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-h:r===a?l=.3333333333333333+f-v:n===a&&(l=.6666666666666666+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return t[3]!=null&&c.push(t[3]),c}}function sy(t,e){var r=Zr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return us(r,r.length===4?"rgba":"rgb")}}function CD(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Zr(e[i]),s=Zr(e[a]),l=n-i,u=us([jn(hu(o[0],s[0],l)),jn(hu(o[1],s[1],l)),jn(hu(o[2],s[2],l)),Tc(hu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Lc(t,e,r,n){var i=Zr(t);if(t)return i=TD(i),r!=null&&(i[1]=Yi(ie(r)?r(i[1]):r)),n!=null&&(i[2]=Yi(ie(n)?n(i[2]):n)),us(Mc(i),"rgba")}function us(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function vu(t,e){var r=Zr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var ly=new eo(100);function uy(t){if(X(t)){var e=ly.get(t);return e||(e=sy(t,-.1),ly.put(t,e)),e}else if(Jl(t)){var r=V({},t);return r.colorStops=j(t.colorStops,function(n){return{offset:n.offset,color:sy(n.color,-.1)}}),r}return t}function DD(t){return t.type==="linear"}function AD(t){return t.type==="radial"}(function(){return oe.hasGlobalWindow&&ie(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var kc=Array.prototype.slice;function Tn(t,e,r){return(e-t)*r+t}function Ic(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Tn(e[a],r[a],n);return t}function MD(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Tn(e[o][s],r[o][s],n)}return t}function du(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function fy(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function LD(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function kD(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:kc.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function pu(t){if(Rt(t)){var e=t.length;if(Rt(t[0])){for(var r=[],n=0;n<e;n++)r.push(kc.call(t[n]));return r}return kc.call(t)}return t}function gu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function ID(t){return Rt(t&&t[0])?2:1}var mu=0,yu=1,hy=2,fs=3,Pc=4,Ec=5,cy=6;function vy(t){return t===Pc||t===Ec}function _u(t){return t===yu||t===hy}var hs=[0,0,0,0],PD=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=cy,l=r;if(Rt(r)){var u=ID(r);s=u,(u===1&&!ke(r[0])||u===2&&!ke(r[0][0]))&&(o=!0)}else if(ke(r)&&!Jo(r))s=mu;else if(X(r))if(!isNaN(+r))s=mu;else{var f=Zr(r);f&&(l=f,s=fs)}else if(Jl(r)){var h=V({},l);h.colorStops=j(r.colorStops,function(c){return{offset:c.offset,color:Zr(c.color)}}),DD(r)?s=Pc:AD(r)&&(s=Ec),l=h}a===0?this.valType=s:(s!==this.valType||s===cy)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ie(n)?n:ls[n]||ny(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,p){return m.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=_u(i),u=vy(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==a-1?kD(v,c,i):u&&LD(v.colorStops,c.colorStops))}if(!s&&i!==Ec&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===mu?n[f].additiveValue=n[f].value-d:i===fs?n[f].additiveValue=du([],n[f].value,d,-1):_u(i)&&(n[f].additiveValue=i===yu?du([],n[f].value,d,-1):fy([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===fs,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var m=v(h+1,s-1);for(f=m;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-c.percent,g=p===0?1:v((r-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?hs:e[l];if((_u(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?c.rawValue:d.rawValue;else if(_u(a))a===yu?Ic(y,c[i],d[i],g):MD(y,c[i],d[i],g);else if(vy(a)){var _=c[i],b=d[i],S=a===Pc;e[l]={type:S?"linear":"radial",x:Tn(_.x,b.x,g),y:Tn(_.y,b.y,g),colorStops:j(_.colorStops,function(T,x){var D=b.colorStops[x];return{offset:Tn(T.offset,D.offset,g),color:gu(Ic([],T.color,D.color,g))}}),global:b.global},S?(e[l].x2=Tn(_.x2,b.x2,g),e[l].y2=Tn(_.y2,b.y2,g)):e[l].r=Tn(_.r,b.r,g)}else if(u)Ic(y,c[i],d[i],g),n||(e[l]=gu(y));else{var w=Tn(c[i],d[i],g);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===mu?e[n]=e[n]+i:r===fs?(Zr(e[n],hs),du(hs,hs,i,1),e[n]=gu(hs)):r===yu?du(e[n],e[n],i,1):r===hy&&fy(e[n],e[n],i,1)},t})(),Rc=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Qh("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,We(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new PD(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===fs&&u&&(u=gu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,pu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,pu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new SD({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var m=!1,p=0;p<d.length;p++)if(d[p]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,c);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return j(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=pu(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||We(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function ro(){return new Date().getTime()}var ED=(function(t){Oe(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ro()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(iu(n),!r._paused&&r.update())}iu(n)},e.prototype.start=function(){this._running||(this._time=ro(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ro(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ro()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Rc(r,n.loop);return this.addAnimator(i),i},e})(Xr),RD=300,Oc=oe.domSupported,Nc=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=j(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),dy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},py=!1;function Bc(t){var e=t.pointerType;return e==="pen"||e==="touch"}function OD(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Fc(t){t&&(t.zrByTouch=!0)}function ND(t,e){return sr(t.dom,new BD(t,e),!0)}function gy(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var BD=(function(){function t(e,r){this.stopPropagation=Nt,this.stopImmediatePropagation=Nt,this.preventDefault=Nt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Lr={mousedown:function(t){t=sr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=sr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=sr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=sr(this.dom,t);var e=t.toElement||t.relatedTarget;gy(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){py=!0,t=sr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){py||(t=sr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=sr(this.dom,t),Fc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lr.mousemove.call(this,t),Lr.mousedown.call(this,t)},touchmove:function(t){t=sr(this.dom,t),Fc(t),this.handler.processGesture(t,"change"),Lr.mousemove.call(this,t)},touchend:function(t){t=sr(this.dom,t),Fc(t),this.handler.processGesture(t,"end"),Lr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<RD&&Lr.click.call(this,t)},pointerdown:function(t){Lr.mousedown.call(this,t)},pointermove:function(t){Bc(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},pointerout:function(t){Bc(t)||Lr.mouseout.call(this,t)}};L(["click","dblclick","contextmenu"],function(t){Lr[t]=function(e){e=sr(this.dom,e),this.trigger(t,e)}});var zc={pointermove:function(t){Bc(t)||zc.mousemove.call(this,t)},pointerup:function(t){zc.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function FD(t,e){var r=e.domHandlers;oe.pointerEventsSupported?L(Nc.pointer,function(n){bu(e,n,function(i){r[n].call(t,i)})}):(oe.touchEventsSupported&&L(Nc.touch,function(n){bu(e,n,function(i){r[n].call(t,i),OD(e)})}),L(Nc.mouse,function(n){bu(e,n,function(i){i=vc(i),e.touching||r[n].call(t,i)})}))}function zD(t,e){oe.pointerEventsSupported?L(dy.pointer,r):oe.touchEventsSupported||L(dy.mouse,r);function r(n){function i(a){a=vc(a),gy(t,a.target)||(a=ND(t,a),e.domHandlers[n].call(t,a))}bu(e,n,i,{capture:!0})}}function bu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,JC(t.domTarget,e,r,n)}function Hc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&eD(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var my=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),HD=(function(t){Oe(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new my(r,Lr),Oc&&(i._globalHandlerScope=new my(document,zc)),FD(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Hc(this._localHandlerScope),Oc&&Hc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Oc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?zD(this,n):Hc(n)}},e})(Xr),yy=1;oe.hasGlobalWindow&&(yy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var wu=yy,Gc=.4,Vc="#333",Wc="#ccc",GD="#eee",_y=pc,by=5e-5;function Xi(t){return t>by||t<-by}var qi=[],no=[],$c=xn(),Uc=Math.abs,Yc=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Xi(this.rotation)||Xi(this.x)||Xi(this.y)||Xi(this.scaleX-1)||Xi(this.scaleY-1)||Xi(this.skewX)||Xi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(_y(n),this.invTransform=null);return}n=n||xn(),r?this.getLocalTransform(n):_y(n),e&&(r?ts(n,e,n):Bm(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(qi);var n=qi[0]<0?-1:1,i=qi[1]<0?-1:1,a=((qi[0]-n)*r+n)/qi[0]||0,o=((qi[1]-i)*r+i)/qi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xn(),rs(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||xn(),ts(no,e.invTransform,r),r=no);var n=this.originX,i=this.originY;(n||i)&&($c[4]=n,$c[5]=i,ts(no,r,$c),no[4]-=n,no[5]-=i,r=no),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&or(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&or(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Uc(e[0]-1)>1e-10&&Uc(e[3]-1)>1e-10?Math.sqrt(Uc(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Xc(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,m=i+l;r[4]=-d*a-v*m*o,r[5]=-m*o-c*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,u&&mc(r,r,u),r[4]+=n+f,r[5]+=i+h,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),cs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xc(t,e){for(var r=0;r<cs.length;r++){var n=cs[r];t[n]=e[n]}}function Kr(t){Su||(Su=new eo(100)),t=t||Xn;var e=Su.get(t);return e||(e={font:t,strWidthCache:new eo(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:wn.measureText("国",t).width,asciiCharWidth:wn.measureText("a",t).width},Su.put(t,e)),e}var Su;function VD(t){if(!(qc>=wy)){t=t||Xn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=wn.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?qc=wy:i>2&&qc++,e}}var qc=0,wy=5;function Sy(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=VD(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function jr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=wn.measureText(e,t.font).width,r.put(e,n)),n}function xy(t,e,r,n){var i=jr(Kr(e),t),a=xu(e),o=io(0,i,r),s=Zi(0,a,n),l=new fe(o,s,i,a);return l}function Ty(t,e,r,n){var i=((t||"")+"").split(`
38
+ `),a=i.length;if(a===1)return xy(i[0],e,r,n);for(var o=new fe(0,0,0,0),s=0;s<i.length;s++){var l=xy(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function io(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Zi(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function xu(t){return Kr(t).stWideCharWidth}function Qn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Tu(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=Qn(n[0],r.width),u+=Qn(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=h,t}var Zc="__zr_normal__",Kc=cs.concat(["ignore"]),WD=qn(cs,function(t,e){return t[e]=!0,t},{ignore:!1}),ao={},$D=new fe(0,0,0,0),Cu=[],Du=(function(){function t(e){this.id=Dm(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,v=void 0;if((h||f)&&(v=$D,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ao,n,v):Tu(ao,n,v),a.x=ao.x,a.y=ao.y,o=ao.align,s=ao.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,m=void 0;c==="center"?(d=v.width*.5,m=v.height*.5):(d=Qn(c[0],v.width),m=Qn(c[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+m+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=g.overflowRect=g.overflowRect||new fe(0,0,0,0);a.getLocalTransform(Cu),rs(Cu,Cu),fe.copy(y,v),y.applyTransform(Cu)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),w=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==g.fill||S!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=b,g.stroke=S,g.autoStroke=w,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ut,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wc:Vc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Zr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,us(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},V(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(K(e))for(var n=e,i=We(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Zc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Kc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Zc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Zc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Te(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Qh("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,r,n,f),v&&v.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ut),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(e,r,v),p&&p.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ut)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Te(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Te(i,e),o=Te(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];V(r,a),a.textConfig&&(n=n||{},V(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=V({},i?this.textConfig:n.textConfig),V(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Kc.length;f++){var h=Kc[f],v=a&&WD[h];r&&r[h]!=null?v?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Yc,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ut;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new Rc(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Te(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){jc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){jc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=jc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ut;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Ur(Du,Xr),Ur(Du,Yc);function jc(t,e,r,n,i){r=r||{};var a=[];Cy(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,m){r.during(m)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function Qc(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function UD(t){return Rt(t[0])}function YD(t,e,r){if(Rt(e[r]))if(Rt(t[r])||(t[r]=[]),Ot(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Qc(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(UD(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Qc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Qc(a,i,o);a.length=i.length}else t[r]=e[r]}function XD(t,e){return t===e||Rt(t)&&Rt(e)&&qD(t,e)}function qD(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Cy(t,e,r,n,i,a,o,s){for(var l=We(n),u=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!K(a),d=t.animators,m=[],p=0;p<l.length;p++){var g=l[p],y=n[g];if(y!=null&&r[g]!=null&&(c||a[g]))if(K(y)&&!Rt(y)&&!Jl(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}Cy(t,g,r[g],y,i,a&&a[g],o,s)}else m.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),m.push(g))}var _=m.length;if(!h&&_)for(var b=0;b<d.length;b++){var S=d[b];if(S.targetName===e){var w=S.stopTracks(m);if(w){var T=Te(d,S);d.splice(T,1)}}}if(i.force||(m=lt(m,function(C){return!XD(n[C],r[C])}),_=m.length),_>0||i.force&&!o.length){var x=void 0,D=void 0,A=void 0;if(s){D={},v&&(x={});for(var b=0;b<_;b++){var g=m[b];D[g]=r[g],v?x[g]=n[g]:r[g]=n[g]}}else if(v){A={};for(var b=0;b<_;b++){var g=m[b];A[g]=pu(r[g]),YD(r,n,g)}}var S=new Rc(r,!1,!1,h?lt(d,function(k){return k.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),v&&x&&S.whenWithKeys(0,x,m),A&&S.whenWithKeys(0,A,m),S.whenWithKeys(u??500,s?D:n,m).delay(f||0),t.addAnimator(S,e),o.push(S)}}var ut=(function(t){Oe(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Te(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Te(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new fe(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(fe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Du);ut.prototype.type="group";/*!
39
39
  * ZRender, a high performance 2d drawing library.
40
40
  *
41
41
  * Copyright (c) 2013, Baidu Inc.
@@ -43,40 +43,50 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
43
43
  *
44
44
  * LICENSE
45
45
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
46
- */var hs={},wy={};function kD(t){delete wy[t]}function ND(t){if(!t)return!1;if(typeof t=="string")return fu(t,1)<Vc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=fu(e[i].color,1);return r/=n,r<Vc}return!1}var OD=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new JC,o=n.renderer||"canvas";if(hs[o]||(o=Pe(hs)[0]),process.env.NODE_ENV!=="production"&&!hs[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new hs[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!te.node&&!te.worker&&!l?new TD(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?te.touchEventsSupported:!!f,c=44,v;h&&(v=j(n.pointerSize,c)),this.handler=new Bm(a,s,u,s.root,v),this.animation=new mD({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ND(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Ja();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ja();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof tt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,kD(this.id))},t})();function Sy(t,e){var r=new OD(wm(),t,e);return wy[r.id]=r,r}function RD(t,e){hs[t]=e}var xy=1e-4,Ty=20;function BD(t){return t.replace(/^\s+|\s+$/g,"")}var cs=Math.min,Yt=Math.max,Qr=Math.abs;function Kc(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var Be=VD;function VD(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return jc(t,e,r)}function jc(t,e,r){return Y(t)?BD(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function st(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),Ty),t=(+t).toFixed(e),r?t:+t}function wn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return Qc(t)}function Qc(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function FD(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Qr(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function zD(t,e){var r=Wn(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=Z(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=Z(i,function(v){return Math.floor(v)}),s=Wn(o,function(v,d){return v+d},0),l=Z(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return Z(o,function(v){return v/n})}function HD(t,e){var r=Math.max(wn(t),wn(e)),n=t+e;return r>Ty?n:st(n,r)}function Cy(t){var e=Math.PI*2;return(t%e+e)%e}function Tu(t){return t>-xy&&t<xy}var GD=/^(?:(\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 no(t){if(t instanceof Date)return t;if(Y(t)){var e=GD.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function WD(t){return Math.pow(10,Cu(t))}function Cu(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Dy(t,e){var r=Cu(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Du(t){var e=parseFloat(t);return e==t&&(e!==0||!Y(t)||t.indexOf("x")<=0)?e:NaN}function Ey(t){return!isNaN(Du(t))}function Ay(){return Math.round(Math.random()*9)}function My(t,e){return e===0?t:My(e,t%e)}function Ly(t,e){return t==null?e:e==null?t:t*e/My(t,e)}var $D="[ECharts] ",Iy={},UD=typeof console<"u"&&console.warn&&console.log;function Eu(t,e,r){if(UD){if(r){if(Iy[e])return;Iy[e]=!0}console[t]($D+e)}}function Py(t,e){Eu("log",t,e)}function pt(t,e){Eu("warn",t,e)}function De(t,e){Eu("error",t,e)}function Sn(t){process.env.NODE_ENV!=="production"&&Eu("warn","DEPRECATED: "+t,!0)}function je(t,e,r){process.env.NODE_ENV!=="production"&&Sn((r?"["+r+"]":"")+(t+" is deprecated; use "+e+" instead."))}function Au(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Ha(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":Q(i)?"function () { ... }":dC(i)?i+"":null};r=Z(t,function(i){if(Y(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function Bt(t){throw new Error(t)}function ky(t,e,r){return(e-t)*r+t}var Ny="series\0",YD="\0_ec_\0";function xt(t){return t instanceof Array?t:t==null?[]:[t]}function Jc(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Oy=["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 vs(t){return q(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function XD(t){return q(t)&&!(t instanceof Array)}function qD(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=se();A(e,function(l,u){if(!q(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Vy(l.id)&&By(l.id),l.name!=null&&!Vy(l.name)&&By(l.name))});var s=ZD(t,o,r);return(n||i)&&KD(s,t,o,e),n&&jD(s,e),n||i?QD(s,e,i):a&&JD(s,e),eE(s),s}function ZD(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||io(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function KD(t,e,r,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=ds(i.id),s=r.get(o);if(s!=null){var l=t[s];K(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function jD(t,e){A(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!io(r)&&!io(a)&&Ry("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function QD(t,e,r){A(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||io(i.existing)||i.existing&&n.id!=null&&!Ry("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function JD(t,e){A(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function eE(t){var e=se();A(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),A(t,function(r){var n=r.newOption;K(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),A(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(q(a)){if(o.name=a.name!=null?ds(a.name):i?i.name:Ny+n,i)o.id=ds(i.id);else if(a.id!=null)o.id=ds(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Ry(t,e,r){var n=Jr(e[t],null),i=Jr(r[t],null);return n!=null&&i!=null&&n===i}function ds(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return Jr(t,"")}function Jr(t,e){return t==null?e:Y(t)?t:Ce(t)||Kl(t)?t+"":e}function By(t){process.env.NODE_ENV!=="production"&&pt("`"+t+"` is invalid id or name. Must be a string or number.")}function Vy(t){return Kl(t)||Ey(t)}function ev(t){var e=t.name;return!!(e&&e.indexOf(Ny))}function io(t){return t&&t.id!=null&&ds(t.id).indexOf(YD)===0}function tE(t,e,r){A(t,function(n){var i=n.newOption;q(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=rE(e,i,n.existing,r))})}function rE(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function $i(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?Z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?Z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Ve(){var t="__ec_inner_"+nE++;return function(e){return e[t]||(e[t]={})}}var nE=Ay();function tv(t,e,r){var n=rv(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ps(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function rv(t,e){var r;if(Y(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=se(),a={},o=!1;return A(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&me(e.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fr={useDefault:!0,enableAll:!1,enableNone:!1};function ps(t,e,r,n){n=n||fr;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&De('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&De('`"all"` is not a valid value on index option.'),i=-1)),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function Fy(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function iE(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function aE(t){return t==="auto"?te.domSupported?"html":"richText":t||"html"}function oE(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Ce(n)){var o=ky(r||0,n,i);return st(o,a?Math.max(wn(r||0),wn(n)):e)}else{if(Y(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=t.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=ky(v,d,i);s[h]=st(o,a?Math.max(wn(v),wn(d)):e)}}return s}}var sE=".",Ui="___EC__COMPONENT__CONTAINER___",zy="___EC__EXTENDED_CLASS___";function en(t){var e={main:"",sub:""};if(t){var r=t.split(sE);e.main=r[0]||"",e.sub=r[1]||""}return e}function lE(t){K(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function uE(t){return!!(t&&t[zy])}function nv(t,e){t.$constructor=t,t.extend=function(r){process.env.NODE_ENV!=="production"&&A(e,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return fE(n)?i=(function(a){J(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},fC(i,this)),V(i.prototype,r),i[zy]=!0,i.extend=this.extend,i.superCall=vE,i.superApply=dE,i.superClass=n,i}}function fE(t){return Q(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Hy(t,e){t.extend=e.extend}var hE=Math.round(Math.random()*10);function cE(t){var e=["__\0is_clz",hE++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&K(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function vE(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function dE(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Mu(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){lE(i),n.prototype.type=i;var a=en(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==Ui){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Ui]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=en(n),a=[],o=e[i.main];return o&&o[Ui]?A(o,function(s,l){l!==Ui&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=en(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return A(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=en(n),a=e[i.main];return a&&a[Ui]};function r(n){var i=e[n.main];return(!i||!i[Ui])&&(i=e[n.main]={},i[Ui]=!0),i}}function gs(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&me(i,l)>=0||a&&me(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var pE=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gE=gs(pE),mE=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return gE(this,e,r)},t})(),iv=new ja(50);function yE(t){if(typeof t=="string"){var e=iv.get(t);return e&&e.image}else return t}function Gy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=iv.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Lu(e)&&a.pending.push(o)):(e=mn.loadImage(t,Wy,Wy),e.__zrImageSrc=t,iv.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Wy(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Lu(t){return t&&t.width&&t.height}var av=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function _E(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
47
- `);a=$y(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Uy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
48
- `),t.isTruncated=s}function $y(t,e,r,n){n=n||{};var i=V({},n);r=j(r,"..."),i.maxIterations=j(n.maxIterations,2);var a=i.minChar=j(n.minChar,0),o=i.fontMeasureInfo=Kr(e),s=o.asciiCharWidth;i.placeholder=j(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=jr(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function Uy(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=jr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?bE(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=jr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function bE(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=my(r,t.charCodeAt(i));return i}function wE(t,e,r,n){var i=sv(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",h=bu(u),c=j(e.lineHeight,h),v=e.lineOverflow==="truncate",d=!1,m=e.width;m==null&&r!=null&&(m=r-s);var p=e.height;p==null&&n!=null&&(p=n-l);var g;m!=null&&(a==="break"||a==="breakAll")?g=i?Xy(i,e.font,m,a==="breakAll",0).lines:[]:g=i?i.split(`
49
- `):[];var y=g.length*c;if(p==null&&(p=y),y>p&&v){var _=Math.floor(p/c);d=d||g.length>_,g=g.slice(0,_),y=g.length*c}if(i&&f&&m!=null)for(var b=$y(m,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w={},S=0;S<g.length;S++)Uy(w,g[S],b),g[S]=w.textLine,d=d||w.isTruncated;for(var x=p,T=0,C=Kr(u),S=0;S<g.length;S++)T=Math.max(jr(C,g[S]),T);m==null&&(m=T);var E=m;return x+=l,E+=s,{lines:g,height:p,outerWidth:E,outerHeight:x,lineHeight:c,calculatedLineHeight:h,contentWidth:T,contentHeight:y,width:m,isTruncated:d}}var SE=(function(){function t(){}return t})(),Yy=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),xE=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function TE(t,e,r,n,i){var a=new xE,o=sv(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var h=e.height;h==null&&n!=null&&(h=n-u);for(var c=e.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=av.lastIndex=0,m;(m=av.exec(o))!=null;){var p=m.index;p>d&&ov(a,o.substring(d,p),e,v),ov(a,m[2],e,v,m[1]),d=av.lastIndex}d<o.length&&ov(a,o.substring(d,o.length),e,v);var g=[],y=0,_=0,b=c==="truncate",w=e.lineOverflow==="truncate",S={};function x(ht,At,_t){ht.width=At,ht.lineHeight=_t,y+=_t,_=Math.max(_,At)}e:for(var T=0;T<a.lines.length;T++){for(var C=a.lines[T],E=0,D=0,L=0;L<C.tokens.length;L++){var M=C.tokens[L],P=M.styleName&&e.rich[M.styleName]||{},k=M.textPadding=P.padding,O=k?k[1]+k[3]:0,B=M.font=P.font||e.font;M.contentHeight=bu(B);var N=j(P.height,M.contentHeight);if(M.innerHeight=N,k&&(N+=k[0]+k[2]),M.height=N,M.lineHeight=yn(P.lineHeight,e.lineHeight,N),M.align=P&&P.align||i,M.verticalAlign=P&&P.verticalAlign||"middle",w&&h!=null&&y+M.lineHeight>h){var R=a.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),x(C,D,E),a.lines=a.lines.slice(0,T+1)):a.lines=a.lines.slice(0,T),a.isTruncated=a.isTruncated||a.lines.length<R;break e}var z=P.width,H=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")M.percentWidth=z,g.push(M),M.contentWidth=jr(Kr(B),M.text);else{if(H){var F=P.backgroundColor,$=F&&F.image;$&&($=yE($),Lu($)&&(M.width=Math.max(M.width,$.width*N/$.height)))}var ie=b&&f!=null?f-D:null;ie!=null&&ie<M.width?!H||ie<O?(M.text="",M.width=M.contentWidth=0):(_E(S,M.text,ie-O,B,e.ellipsis,{minChar:e.truncateMinChar}),M.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,M.width=M.contentWidth=jr(Kr(B),M.text)):M.contentWidth=jr(Kr(B),M.text)}M.width+=O,D+=M.width,P&&(E=Math.max(E,M.lineHeight))}x(C,D,E)}a.outerWidth=a.width=j(f,_),a.outerHeight=a.height=j(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var T=0;T<g.length;T++){var M=g[T],Ae=M.percentWidth;M.width=parseInt(Ae,10)/100*a.width}return a}function ov(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Xn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
50
- `),u=!0),n.accumWidth=d}else{var m=Xy(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+v,h=m.linesWidths,f=m.lines}}f||(f=e.split(`
51
- `));for(var p=Kr(l),g=0;g<f.length;g++){var y=f[g],_=new SE;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[g]:jr(p,y),!g&&!u){var b=(s[s.length-1]||(s[0]=new Yy)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=_:(y||!w||a)&&b.push(_)}else s.push(new Yy([_]))}}function CE(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DE=Wn(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function EE(t){return CE(t)?!!DE[t]:!0}function Xy(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=Kr(e),c=0;c<t.length;c++){var v=t.charAt(c);if(v===`
52
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=my(h,v.charCodeAt(0)),m=n?!1:!EE(v);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(m?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):m?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,m?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function qy(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;oe.set(Zy,to(r,o,i),Wi(n,s,a),o,s),oe.intersect(e,Zy,null,Ky);var l=Ky.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=to(l.x,l.width,i,!0),t.baseY=Wi(l.y,l.height,a,!0)}}var Zy=new oe(0,0,0,0),Ky={outIntersectRect:{},clamp:!0};function sv(t){return t!=null?t+="":t=""}function AE(t){var e=sv(t.text),r=t.font,n=jr(Kr(r),e),i=bu(r);return lv(t,n,i,null)}function lv(t,e,r,n){var i=new oe(to(t.x||0,e,t.textAlign),Wi(t.y||0,r,t.textBaseline),e,r),a=n??(jy(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function jy(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var uv="__zr_style_"+Math.round(Math.random()*10),Yi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Iu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Yi[uv]=!0;var Qy=["z","z2","invisible"],ME=["invisible"],ms=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Pe(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&LE(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new oe(0,0,0,0)),n?oe.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new oe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:V(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=as,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&as)},e.prototype.styleUpdated=function(){this.__dirty&=~as},e.prototype.createStyle=function(r){return Ql(Yi,r)},e.prototype.useStyle=function(r){r[uv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[uv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Qy)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=Pe(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Pe(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?ME:Qy,c=0;c<m.length;c++){var v=m[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return V(r,n),r},e.prototype.getAnimationStyleProps=function(){return Iu},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ut|as})(),e})(xu),fv=new oe(0,0,0,0),hv=new oe(0,0,0,0);function LE(t,e,r){return fv.copy(t.getBoundingRect()),t.transform&&fv.applyTransform(t.transform),hv.width=e,hv.height=r,!fv.intersect(hv)}var hr=Math.min,cr=Math.max,cv=Math.sin,vv=Math.cos,Xi=Math.PI*2,Pu=Wa(),ku=Wa(),Nu=Wa();function Jy(t,e,r,n,i,a){i[0]=hr(t,r),i[1]=hr(e,n),a[0]=cr(t,r),a[1]=cr(e,n)}var e_=[],t_=[];function IE(t,e,r,n,i,a,o,s,l,u){var f=Zm,h=ot,c=f(t,r,i,o,e_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(t,r,i,o,e_[v]);l[0]=hr(d,l[0]),u[0]=cr(d,u[0])}c=f(e,n,a,s,t_);for(var v=0;v<c;v++){var m=h(e,n,a,s,t_[v]);l[1]=hr(m,l[1]),u[1]=cr(m,u[1])}l[0]=hr(t,l[0]),u[0]=cr(t,u[0]),l[0]=hr(o,l[0]),u[0]=cr(o,u[0]),l[1]=hr(e,l[1]),u[1]=cr(e,u[1]),l[1]=hr(s,l[1]),u[1]=cr(s,u[1])}function PE(t,e,r,n,i,a,o,s){var l=jm,u=Rt,f=cr(hr(l(t,r,i),1),0),h=cr(hr(l(e,n,a),1),0),c=u(t,r,i,f),v=u(e,n,a,h);o[0]=hr(t,i,c),o[1]=hr(e,a,v),s[0]=cr(t,i,c),s[1]=cr(e,a,v)}function kE(t,e,r,n,i,a,o,s,l){var u=Ua,f=Ya,h=Math.abs(i-a);if(h%Xi<1e-4&&h>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Pu[0]=vv(i)*r+t,Pu[1]=cv(i)*n+e,ku[0]=vv(a)*r+t,ku[1]=cv(a)*n+e,u(s,Pu,ku),f(l,Pu,ku),i=i%Xi,i<0&&(i=i+Xi),a=a%Xi,a<0&&(a=a+Xi),i>a&&!o?a+=Xi:i<a&&o&&(i+=Xi),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Nu[0]=vv(v)*r+t,Nu[1]=cv(v)*n+e,u(s,Nu,s),f(l,Nu,l))}var Se={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qi=[],Zi=[],tn=[],qn=[],rn=[],nn=[],dv=Math.min,pv=Math.max,Ki=Math.cos,ji=Math.sin,xn=Math.abs,gv=Math.PI,Zn=gv*2,mv=typeof Float32Array<"u",ys=[];function yv(t){var e=Math.round(t/gv*1e8)/1e8;return e%2*gv}function r_(t,e){var r=yv(t[0]);r<0&&(r+=Zn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Zn?i=r+Zn:e&&r-i>=Zn?i=r-Zn:!e&&r>i?i=r+(Zn-yv(r-i)):e&&r<i&&(i=r-(Zn-yv(i-r))),t[0]=r,t[1]=i}var Qi=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=xn(n/yu/e)||0,this._uy=xn(n/yu/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Se.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=xn(e-this._xi),i=xn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Se.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Se.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Se.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),ys[0]=i,ys[1]=a,r_(ys,o),i=ys[0],a=ys[1];var s=a-i;return this.addData(Se.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Ki(a)*n+e,this._yi=ji(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Se.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Se.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&mv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(mv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,mv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){tn[0]=tn[1]=rn[0]=rn[1]=Number.MAX_VALUE,qn[0]=qn[1]=nn[0]=nn[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Se.M:r=i=e[o++],n=a=e[o++],rn[0]=i,rn[1]=a,nn[0]=i,nn[1]=a;break;case Se.L:Jy(r,n,e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Se.C:IE(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Se.Q:PE(r,n,e[o++],e[o++],e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Se.A:var u=e[o++],f=e[o++],h=e[o++],c=e[o++],v=e[o++],d=e[o++]+v;o+=1;var m=!e[o++];l&&(i=Ki(v)*h+u,a=ji(v)*c+f),kE(u,f,h,c,v,d,m,rn,nn),r=Ki(d)*h+u,n=ji(d)*c+f;break;case Se.R:i=r=e[o++],a=n=e[o++];var p=e[o++],g=e[o++];Jy(i,a,i+p,a+g,rn,nn);break;case Se.Z:r=i,n=a;break}Ua(tn,tn,rn),Ya(qn,qn,nn)}return o===0&&(tn[0]=tn[1]=qn[0]=qn[1]=0),new oe(tn[0],tn[1],qn[0]-tn[0],qn[1]-tn[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=e[c++],d=c===1;d&&(a=e[c],o=e[c+1],s=a,l=o);var m=-1;switch(v){case Se.M:a=s=e[c++],o=l=e[c++];break;case Se.L:{var p=e[c++],g=e[c++],y=p-a,_=g-o;(xn(y)>n||xn(_)>i||c===r-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break}case Se.C:{var b=e[c++],w=e[c++],p=e[c++],g=e[c++],S=e[c++],x=e[c++];m=tD(a,o,b,w,p,g,S,x,10),a=S,o=x;break}case Se.Q:{var b=e[c++],w=e[c++],p=e[c++],g=e[c++];m=iD(a,o,b,w,p,g,10),a=p,o=g;break}case Se.A:var T=e[c++],C=e[c++],E=e[c++],D=e[c++],L=e[c++],M=e[c++],P=M+L;c+=1,d&&(s=Ki(L)*E+T,l=ji(L)*D+C),m=pv(E,D)*dv(Zn,Math.abs(M)),a=Ki(P)*E+T,o=ji(P)*D+C;break;case Se.R:{s=a=e[c++],l=o=e[c++];var k=e[c++],O=e[c++];m=k*2+O*2;break}case Se.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[h++]=m,f+=m)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=r<1,d,m,p=0,g=0,y,_=0,b,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=r*m,!y)))e:for(var S=0;S<o;){var x=n[S++],T=S===1;switch(T&&(u=n[S],f=n[S+1],s=u,l=f),x!==Se.L&&_>0&&(e.lineTo(b,w),_=0),x){case Se.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Se.L:{h=n[S++],c=n[S++];var C=xn(h-u),E=xn(c-f);if(C>i||E>a){if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break e}p+=D}e.lineTo(h,c),u=h,f=c,_=0}else{var M=C*C+E*E;M>_&&(b=h,w=c,_=M)}break}case Se.C:{var P=n[S++],k=n[S++],O=n[S++],B=n[S++],N=n[S++],R=n[S++];if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;ou(u,P,O,N,L,qi),ou(f,k,B,R,L,Zi),e.bezierCurveTo(qi[1],Zi[1],qi[2],Zi[2],qi[3],Zi[3]);break e}p+=D}e.bezierCurveTo(P,k,O,B,N,R),u=N,f=R;break}case Se.Q:{var P=n[S++],k=n[S++],O=n[S++],B=n[S++];if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;su(u,P,O,L,qi),su(f,k,B,L,Zi),e.quadraticCurveTo(qi[1],Zi[1],qi[2],Zi[2]);break e}p+=D}e.quadraticCurveTo(P,k,O,B),u=O,f=B;break}case Se.A:var z=n[S++],H=n[S++],F=n[S++],$=n[S++],ie=n[S++],Ae=n[S++],ht=n[S++],At=!n[S++],_t=F>$?F:$,ct=xn(F-$)>.001,Ye=ie+Ae,re=!1;if(v){var D=d[g++];p+D>y&&(Ye=ie+Ae*(y-p)/D,re=!0),p+=D}if(ct&&e.ellipse?e.ellipse(z,H,F,$,ht,ie,Ye,At):e.arc(z,H,_t,ie,Ye,At),re)break e;T&&(s=Ki(ie)*F+z,l=ji(ie)*$+H),u=Ki(Ye)*F+z,f=ji(Ye)*$+H;break;case Se.R:s=u=n[S],l=f=n[S+1],h=n[S++],c=n[S++];var ue=n[S++],cn=n[S++];if(v){var D=d[g++];if(p+D>y){var it=y-p;e.moveTo(h,c),e.lineTo(h+dv(it,ue),c),it-=ue,it>0&&e.lineTo(h+ue,c+dv(it,cn)),it-=cn,it>0&&e.lineTo(h+pv(ue-it,0),c+cn),it-=ue,it>0&&e.lineTo(h,c+pv(cn-it,0));break e}p+=D}e.rect(h,c,ue,cn);break;case Se.Z:if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}p+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Se,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ao(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function NE(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>a+h&&f>s+h||f<e-h&&f<n-h&&f<a-h&&f<s-h||u>t+h&&u>r+h&&u>i+h&&u>o+h||u<t-h&&u<r-h&&u<i-h&&u<o-h)return!1;var c=eD(t,e,r,n,i,a,o,s,u,f);return c<=h/2}function OE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=nD(t,e,r,n,i,a,s,l);return f<=u/2}var n_=Math.PI*2;function Ou(t){return t%=n_,t<0&&(t+=n_),t}var _s=Math.PI*2;function RE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%_s<1e-4)return!0;if(a){var h=n;n=Ou(i),i=Ou(h)}else n=Ou(n),i=Ou(i);n>i&&(i+=_s);var c=Math.atan2(l,s);return c<0&&(c+=_s),c>=n&&c<=i||c+_s>=n&&c+_s<=i}function Ji(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var Kn=Qi.CMD,ea=Math.PI*2,BE=1e-4;function VE(t,e){return Math.abs(t-e)<BE}var Tt=[-1,-1,-1],vr=[-1,-1];function FE(){var t=vr[0];vr[0]=vr[1],vr[1]=t}function zE(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=au(e,n,a,s,u,Tt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,m=0;m<f;m++){var p=Tt[m],g=p===0||p===1?.5:1,y=ot(t,r,i,o,p);y<l||(c<0&&(c=Zm(e,n,a,s,vr),vr[1]<vr[0]&&c>1&&FE(),v=ot(e,n,a,s,vr[0]),c>1&&(d=ot(e,n,a,s,vr[1]))),c===2?p<vr[0]?h+=v<e?g:-g:p<vr[1]?h+=d<v?g:-g:h+=s<d?g:-g:p<vr[0]?h+=v<e?g:-g:h+=s<v?g:-g)}return h}function HE(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=rD(e,n,a,s,Tt);if(l===0)return 0;var u=jm(e,n,a);if(u>=0&&u<=1){for(var f=0,h=Rt(e,n,a,u),c=0;c<l;c++){var v=Tt[c]===0||Tt[c]===1?.5:1,d=Rt(t,r,i,Tt[c]);d<o||(Tt[c]<u?f+=h<e?v:-v:f+=a<h?v:-v)}return f}else{var v=Tt[0]===0||Tt[0]===1?.5:1,d=Rt(t,r,i,Tt[0]);return d<o?0:a<e?v:-v}}function GE(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Tt[0]=-l,Tt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ea-1e-4){n=0,i=ea;var f=a?1:-1;return o>=Tt[0]+t&&o<=Tt[1]+t?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=ea,i+=ea);for(var c=0,v=0;v<2;v++){var d=Tt[v];if(d+t>o){var m=Math.atan2(s,d),f=a?1:-1;m<0&&(m=ea+m),(m>=n&&m<=i||m+ea>=n&&m+ea<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),c+=f)}}return c}function i_(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var m=a[d++],p=d===1;switch(m===Kn.M&&d>1&&(r||(s+=Ji(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),m){case Kn.M:f=a[d++],h=a[d++],l=f,u=h;break;case Kn.L:if(r){if(ao(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Ji(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Kn.C:if(r){if(NE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=zE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Kn.Q:if(r){if(OE(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=HE(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Kn.A:var g=a[d++],y=a[d++],_=a[d++],b=a[d++],w=a[d++],S=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(w)*_+g,v=Math.sin(w)*b+y,p?(f=c,h=v):s+=Ji(l,u,c,v,n,i);var T=(n-g)*b/_+g;if(r){if(RE(g,y,b,w,w+S,x,e,T,i))return!0}else s+=GE(g,y,b,w,w+S,x,T,i);l=Math.cos(w+S)*_+g,u=Math.sin(w+S)*b+y;break;case Kn.R:f=l=a[d++],h=u=a[d++];var C=a[d++],E=a[d++];if(c=f+C,v=h+E,r){if(ao(f,h,c,h,e,n,i)||ao(c,h,c,v,e,n,i)||ao(c,v,f,v,e,n,i)||ao(f,v,f,h,e,n,i))return!0}else s+=Ji(c,h,c,v,n,i),s+=Ji(f,v,f,h,n,i);break;case Kn.Z:if(r){if(ao(l,u,f,h,e,n,i))return!0}else s+=Ji(l,u,f,h,n,i);l=f,u=h;break}}return!r&&!VE(u,h)&&(s+=Ji(l,u,f,h,n,i)||0),s!==0}function WE(t,e,r){return i_(t,0,!1,e,r)}function $E(t,e,r,n){return i_(t,e,!0,r,n)}var a_=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Yi),UE={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Iu.style)},_v=fs.concat(["invisible","culling","z","z2","zlevel","parent"]),Ee=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<_v.length;++s)i[_v[s]]=this[_v[s]];i.__dirty|=Ut}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Pe(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?V(this.style,s):this.useStyle(s):o==="shape"?V(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Y(r)){var n=fu(r,0);return n>.5?Fc:n>.2?CD:zc}else if(r)return zc}return Fc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Y(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=fu(r,0)<Vc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Za},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Qi(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Za)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),$E(s,l/u,r,n)))return!0}if(this.hasFill())return WE(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Za,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:V(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Za)},e.prototype.createStyle=function(r){return Ql(a_,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=V({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=V({},i.shape),V(u,n.shape)):(u=V({},a?this.shape:i.shape),V(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=Pe(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return UE},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){Me(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return fe(r.style)},o.prototype.getDefaultShape=function(){return fe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ut|as|Za})(),e})(ms),YE=xe({strokeFirst:!0,font:Gn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a_),Ru=(function(t){Me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return jy(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Ql(YE,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=AE(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ms);Ru.prototype.type="tspan";var XE=xe({x:0,y:0},Yi),qE={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Iu.style)};function ZE(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var jn=(function(t){Me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Ql(XE,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=ZE(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qE},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new oe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ms);jn.prototype.type="image";function KE(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var oo=Math.round;function o_(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(oo(n*2)===oo(i*2)&&(t.x1=t.x2=ta(n,s,!0)),oo(a*2)===oo(o*2)&&(t.y1=t.y2=ta(a,s,!0))),t}}function s_(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=ta(n,s,!0),t.y=ta(i,s,!0),t.width=Math.max(ta(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(ta(i+o,s,!1)-t.y,o===0?0:1)),t}}function ta(t,e,r){if(!e)return t;var n=oo(t*2);return(n+oo(e))%2===0?n/2:(n+(r?1:-1))/2}var jE=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),QE={},He=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jE},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=s_(QE,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?KE(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ee);He.prototype.type="rect";var l_={fill:"#000"},u_=2,an={},JE={style:xe({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},Iu.style)},lt=(function(t){Me(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=l_,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,iA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new oe(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||l_},e.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return V(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Pe(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},V(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return JE},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Gn,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";qy(an,a.overflowRect,o,s,l,u),o=an.baseX,s=an.baseY;var f=g_(r),h=wE(f,r,an.outerWidth,an.outerHeight),c=bv(r),v=!!r.backgroundColor,d=h.outerHeight,m=h.outerWidth,p=h.lines,g=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=Wi(s,h.contentHeight,u);if(c||i){var b=to(o,m,l),w=Wi(s,d,u);c&&this._renderBackground(r,r,b,w,m,d)}_+=g/2,i&&(y=p_(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var S=0,x=!1,T=!1,C=d_("fill"in r?r.fill:(T=!0,a.fill)),E=v_("stroke"in r?r.stroke:!v&&(!a.autoStroke||T)?(S=u_,x=!0,a.stroke):null),D=r.textShadowBlur>0,L=0;L<p.length;L++){var M=this._getOrCreateChild(Ru),P=M.createStyle();M.useStyle(P),P.text=p[L],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=E,P.fill=C,E&&(P.lineWidth=r.lineWidth||S,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,h_(P,r),_+=g,M.setBoundingRect(lv(P,h.contentWidth,h.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;qy(an,n.overflowRect,o,s,i,a),o=an.baseX,s=an.baseY;var l=g_(r),u=TE(l,r,an.outerWidth,an.outerHeight,i),f=u.width,h=u.outerWidth,c=u.outerHeight,v=r.padding;this.isTruncated=!!u.isTruncated;var d=to(o,h,i),m=Wi(s,c,a),p=d,g=m;v&&(p+=v[3],g+=v[0]);var y=p+f;bv(r)&&this._renderBackground(r,r,d,m,h,c);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var w=u.lines[b],S=w.tokens,x=S.length,T=w.lineHeight,C=w.width,E=0,D=p,L=y,M=x-1,P=void 0;E<x&&(P=S[E],!P.align||P.align==="left");)this._placeToken(P,r,T,g,D,"left",_),C-=P.width,D+=P.width,E++;for(;M>=0&&(P=S[M],P.align==="right");)this._placeToken(P,r,T,g,L,"right",_),C-=P.width,L-=P.width,M--;for(D+=(f-(D-p)-(y-L)-C)/2;E<=M;)P=S[E],this._placeToken(P,r,T,g,D+P.width/2,"center",_),D+=P.width,E++;g+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&bv(u);c&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=p_(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var m=this._getOrCreateChild(Ru),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,b=!1,w=d_("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),S=v_("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||y)?(_=u_,b=!0,g.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Gn,p.opacity=yn(u.opacity,n.opacity,1),h_(p,u),S&&(p.lineWidth=yn(u.lineWidth,n.lineWidth,_),p.lineDash=j(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=S),w&&(p.fill=w),m.setBoundingRect(lv(p,r.contentWidth,r.contentHeight,b?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,c=l&&!h,v=r.borderRadius,d=this,m,p;if(c||r.lineHeight||u&&f){m=this._getOrCreateChild(He),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,m.dirtyShape()}if(c){var y=m.style;y.fill=l||null,y.fillOpacity=j(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(jn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=m.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=j(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(m||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=yn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nA(r)&&(n=[r.fontStyle,r.fontWeight,rA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Yr(n)||r.textFont||r.font},e})(ms),eA={left:!0,right:1,center:1},tA={top:1,bottom:1,middle:1},f_=["fontStyle","fontWeight","fontSize","fontFamily"];function rA(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?qh+"px":t+"px"}function h_(t,e){for(var r=0;r<f_.length;r++){var n=f_[r],i=e[n];i!=null&&(t[n]=i)}}function nA(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function iA(t){return c_(t),A(t.rich,c_),t}function c_(t){if(t){t.font=lt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||eA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||tA[r]?r:"top";var n=t.padding;n&&(t.padding=Qh(t.padding))}}function v_(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function d_(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function p_(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function g_(t){var e=t.text;return e!=null&&(e+=""),e}function bv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var de=Ve(),aA=function(t,e,r,n){if(n){var i=de(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=de(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},m_=1,y_={},__=Ve(),wv=Ve(),Sv=0,Bu=1,Vu=2,dr=["emphasis","blur","select"],Fu=["normal","emphasis","blur","select"],oA=10,sA=9,ra="highlight",zu="downplay",Hu="select",xv="unselect",Gu="toggleSelect",Tv="selectchanged";function so(t){return t!=null&&t!=="none"}function Wu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function b_(t){Wu(t,"emphasis",Vu)}function w_(t){t.hoverState===Vu&&Wu(t,"normal",Sv)}function Cv(t){Wu(t,"blur",Bu)}function S_(t){t.hoverState===Bu&&Wu(t,"normal",Sv)}function lA(t){t.selected=!0}function uA(t){t.selected=!1}function x_(t,e,r){e(t,r)}function Tn(t,e,r){x_(t,e,r),t.isGroup&&t.traverse(function(n){x_(n,e,r)})}function T_(t,e){switch(e){case"emphasis":t.hoverState=Vu;break;case"normal":t.hoverState=Sv;break;case"blur":t.hoverState=Bu;break;case"select":t.selected=!0}}function fA(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function hA(t,e,r,n){var i=r&&me(r,"select")>=0,a=!1;if(t instanceof Ee){var o=__(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(so(s)||so(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=V({},n),u=V({},u),u.fill=s):!so(u.fill)&&so(s)?(a=!0,n=V({},n),u=V({},u),u.fill=iy(s)):!so(u.stroke)&&so(l)&&(a||(n=V({},n),u=V({},u)),u.stroke=iy(l)),n.style=u}}if(n&&n.z2==null){a||(n=V({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??oA)}return n}function cA(t,e,r){if(r&&r.z2==null){r=V({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??sA)}return r}function vA(t,e,r){var n=me(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:fA(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=V({},r),o=V({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Dv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return hA(this,t,e,r);if(t==="blur")return vA(this,t,r);if(t==="select")return cA(this,t,r)}return r}function dA(t){t.stateProxy=Dv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Dv),r&&(r.stateProxy=Dv)}function C_(t,e){!L_(t,e)&&!t.__highByOuter&&Tn(t,b_)}function D_(t,e){!L_(t,e)&&!t.__highByOuter&&Tn(t,w_)}function $u(t,e){t.__highByOuter|=1<<(e||0),Tn(t,b_)}function Uu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Tn(t,w_)}function pA(t){Tn(t,Cv)}function E_(t){Tn(t,S_)}function A_(t){Tn(t,lA)}function M_(t){Tn(t,uA)}function L_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function I_(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=wv(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){S_(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Ev(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&E_(c)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||Cv(p)}),kt(e))a(u.getData(),e);else if(q(e))for(var d=Pe(e),m=0;m<d.length;m++)a(u.getData(d[m]),e[d[m]]);l.push(u),wv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Av(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){wv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Cv(a)})}}}function gA(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&De("Unknown dataType "+e.dataType);return}var a=$i(i,e);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=de(o);Ev(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);f!=null&&Ev(n,f,h,r)}}function Mv(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!lo(s[u])&&De("param should be highDownDispatcher"),de(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function mA(t,e,r){process.env.NODE_ENV!=="production"&&!lo(t)&&De("param should be highDownDispatcher");var n=de(t),i=Mv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Av(n.componentMainType,n.componentIndex,r),A(a,function(s){return C_(s,e)})):(Ev(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Av(n.componentMainType,n.componentIndex,r),C_(t,e))}function yA(t,e,r){process.env.NODE_ENV!=="production"&&!lo(t)&&De("param should be highDownDispatcher"),I_(r);var n=de(t),i=Mv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?A(i,function(a){return D_(a,e)}):D_(t,e)}function _A(t,e,r){if(Iv(e)){var n=e.dataType,i=t.getData(n),a=$i(i,e);W(a)||(a=[a]),t[e.type===Gu?"toggleSelect":e.type===Hu?"select":"unselect"](a,n)}}function P_(t){var e=t.getAllData();A(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?A_(a):M_(a)})})}function bA(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();A(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Lv(t,e,r){N_(t,!0),Tn(t,dA),SA(t,e,r)}function wA(t){N_(t,!1)}function bs(t,e,r,n){n?wA(t):Lv(t,e,r)}function SA(t,e,r){var n=de(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var k_=["emphasis","blur","select"],xA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yu(t,e,r,n){r=r||"itemStyle";for(var i=0;i<k_.length;i++){var a=k_[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[xA[r]]()}}function N_(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function lo(t){return!!(t&&t.__highDownDispatcher)}function TA(t){var e=y_[t];return e==null&&m_<=32&&(e=y_[t]=m_++),e}function Iv(t){var e=t.type;return e===Hu||e===xv||e===Gu}function O_(t){var e=t.type;return e===ra||e===zu}function CA(t){var e=__(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var uo=Qi.CMD,DA=[[],[],[]],R_=Math.sqrt,EA=Math.atan2;function AA(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=uo.M,h=uo.C,c=uo.L,v=uo.R,d=uo.A,m=uo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case m:a=2;break;case d:var p=e[4],g=e[5],y=R_(e[0]*e[0]+e[1]*e[1]),_=R_(e[2]*e[2]+e[3]*e[3]),b=EA(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],or(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],or(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=DA[l];w[0]=r[o++],w[1]=r[o++],or(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var Pv=Math.sqrt,Xu=Math.sin,qu=Math.cos,ws=Math.PI;function B_(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function kv(t,e){return(t[0]*e[0]+t[1]*e[1])/(B_(t)*B_(e))}function V_(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(kv(t,e))}function F_(t,e,r,n,i,a,o,s,l,u,f){var h=l*(ws/180),c=qu(h)*(t-r)/2+Xu(h)*(e-n)/2,v=-1*Xu(h)*(t-r)/2+qu(h)*(e-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Pv(d),s*=Pv(d));var m=(i===a?-1:1)*Pv((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=m*o*v/s,g=m*-s*c/o,y=(t+r)/2+qu(h)*p-Xu(h)*g,_=(e+n)/2+Xu(h)*p+qu(h)*g,b=V_([1,0],[(c-p)/o,(v-g)/s]),w=[(c-p)/o,(v-g)/s],S=[(-1*c-p)/o,(-1*v-g)/s],x=V_(w,S);if(kv(w,S)<=-1&&(x=ws),kv(w,S)>=1&&(x=0),x<0){var T=Math.round(x/ws*1e6)/1e6;x=ws*2+T%2*ws}f.addData(u,y,_,o,s,b,x,h,a)}var MA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,LA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IA(t){var e=new Qi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Qi.CMD,l=t.match(MA);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(LA)||[],d=v.length,m=0;m<d;m++)v[m]=parseFloat(v[m]);for(var p=0;p<d;){var g=void 0,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,T=r,C=n,E=void 0,D=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,e.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,e.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,e.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,e.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[p++],c=s.L,e.addData(c,r,n);break;case"H":r=v[p++],c=s.L,e.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,e.addData(c,r,n);break;case"V":n=v[p++],c=s.L,e.addData(c,r,n);break;case"C":c=s.C,e.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,e.addData(c,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":g=r,y=n,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=n-D[E-3]),c=s.C,T=v[p++],C=v[p++],r=v[p++],n=v[p++],e.addData(c,g,y,T,C,r,n);break;case"s":g=r,y=n,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=n-D[E-3]),c=s.C,T=r+v[p++],C=n+v[p++],r+=v[p++],n+=v[p++],e.addData(c,g,y,T,C,r,n);break;case"Q":T=v[p++],C=v[p++],r=v[p++],n=v[p++],c=s.Q,e.addData(c,T,C,r,n);break;case"q":T=v[p++]+r,C=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,e.addData(c,T,C,r,n);break;case"T":g=r,y=n,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=n-D[E-3]),r=v[p++],n=v[p++],c=s.Q,e.addData(c,g,y,r,n);break;case"t":g=r,y=n,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=n-D[E-3]),r+=v[p++],n+=v[p++],c=s.Q,e.addData(c,g,y,r,n);break;case"A":_=v[p++],b=v[p++],w=v[p++],S=v[p++],x=v[p++],T=r,C=n,r=v[p++],n=v[p++],c=s.A,F_(T,C,r,n,S,x,_,b,w,c,e);break;case"a":_=v[p++],b=v[p++],w=v[p++],S=v[p++],x=v[p++],T=r,C=n,r+=v[p++],n+=v[p++],c=s.A,F_(T,C,r,n,S,x,_,b,w,c,e);break}}(h==="z"||h==="Z")&&(c=s.Z,e.addData(c),r=i,n=a),o=c}return e.toStatic(),e}var z_=(function(t){Me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Ee);function H_(t){return t.setData!=null}function G_(t,e){var r=IA(t),n=V({},e);return n.buildPath=function(i){var a=H_(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){AA(r,i),this.dirtyShape()},n}function PA(t,e){return new z_(G_(t,e))}function kA(t,e){var r=G_(t,e),n=(function(i){Me(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(z_);return n}function NA(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ee(e);return o.createPathProxy(),o.buildPath=function(s){if(H_(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var OA=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Zu=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ee);Zu.prototype.type="circle";var RA=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Nv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new RA},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(Ee);Nv.prototype.type="ellipse";var W_=Math.PI,Ov=W_*2,na=Math.sin,fo=Math.cos,BA=Math.acos,gt=Math.atan2,$_=Math.abs,Ss=Math.sqrt,xs=Math.max,on=Math.min,Ir=1e-4;function VA(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<Ir))return c=(f*(e-a)-h*(t-i))/c,[t+c*l,e+c*u]}function Ku(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ss(s*s+l*l),f=u*l,h=-u*s,c=t+f,v=e+h,d=r+f,m=n+h,p=(c+d)/2,g=(v+m)/2,y=d-c,_=m-v,b=y*y+_*_,w=i-a,S=c*m-d*v,x=(_<0?-1:1)*Ss(xs(0,w*w*b-S*S)),T=(S*_-y*x)/b,C=(-S*y-_*x)/b,E=(S*_+y*x)/b,D=(-S*y+_*x)/b,L=T-p,M=C-g,P=E-p,k=D-g;return L*L+M*M>P*P+k*k&&(T=E,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/w-1),y1:C*(i/w-1)}}function FA(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function zA(t,e){var r,n=xs(e.r,0),i=xs(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,c=!!e.clockwise,v=$_(u-l),d=v>Ov&&v%Ov;if(d>Ir&&(v=d),!(n>Ir))t.moveTo(f,h);else if(v>Ov-Ir)t.moveTo(f+n*fo(l),h+n*na(l)),t.arc(f,h,n,l,u,!c),i>Ir&&(t.moveTo(f+i*fo(u),h+i*na(u)),t.arc(f,h,i,u,l,c));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,T=void 0,C=void 0,E=void 0,D=void 0,L=void 0,M=void 0,P=void 0,k=n*fo(l),O=n*na(l),B=i*fo(u),N=i*na(u),R=v>Ir;if(R){var z=e.cornerRadius;z&&(r=FA(z),m=r[0],p=r[1],g=r[2],y=r[3]);var H=$_(n-i)/2;if(_=on(H,g),b=on(H,y),w=on(H,m),S=on(H,p),C=x=xs(_,b),E=T=xs(w,S),(x>Ir||T>Ir)&&(D=n*fo(u),L=n*na(u),M=i*fo(l),P=i*na(l),v<W_)){var F=VA(k,O,M,P,D,L,B,N);if(F){var $=k-F[0],ie=O-F[1],Ae=D-F[0],ht=L-F[1],At=1/na(BA(($*Ae+ie*ht)/(Ss($*$+ie*ie)*Ss(Ae*Ae+ht*ht)))/2),_t=Ss(F[0]*F[0]+F[1]*F[1]);C=on(x,(n-_t)/(At+1)),E=on(T,(i-_t)/(At-1))}}}if(!R)t.moveTo(f+k,h+O);else if(C>Ir){var ct=on(g,C),Ye=on(y,C),re=Ku(M,P,k,O,n,ct,c),ue=Ku(D,L,B,N,n,Ye,c);t.moveTo(f+re.cx+re.x0,h+re.cy+re.y0),C<x&&ct===Ye?t.arc(f+re.cx,h+re.cy,C,gt(re.y0,re.x0),gt(ue.y0,ue.x0),!c):(ct>0&&t.arc(f+re.cx,h+re.cy,ct,gt(re.y0,re.x0),gt(re.y1,re.x1),!c),t.arc(f,h,n,gt(re.cy+re.y1,re.cx+re.x1),gt(ue.cy+ue.y1,ue.cx+ue.x1),!c),Ye>0&&t.arc(f+ue.cx,h+ue.cy,Ye,gt(ue.y1,ue.x1),gt(ue.y0,ue.x0),!c))}else t.moveTo(f+k,h+O),t.arc(f,h,n,l,u,!c);if(!(i>Ir)||!R)t.lineTo(f+B,h+N);else if(E>Ir){var ct=on(m,E),Ye=on(p,E),re=Ku(B,N,D,L,i,-Ye,c),ue=Ku(k,O,M,P,i,-ct,c);t.lineTo(f+re.cx+re.x0,h+re.cy+re.y0),E<T&&ct===Ye?t.arc(f+re.cx,h+re.cy,E,gt(re.y0,re.x0),gt(ue.y0,ue.x0),!c):(Ye>0&&t.arc(f+re.cx,h+re.cy,Ye,gt(re.y0,re.x0),gt(re.y1,re.x1),!c),t.arc(f,h,i,gt(re.cy+re.y1,re.cx+re.x1),gt(ue.cy+ue.y1,ue.cx+ue.x1),c),ct>0&&t.arc(f+ue.cx,h+ue.cy,ct,gt(ue.y1,ue.x1),gt(ue.y0,ue.x0),!c))}else t.lineTo(f+B,h+N),t.arc(f,h,i,u,l,c)}t.closePath()}}}var HA=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),Qn=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new HA},e.prototype.buildPath=function(r,n){zA(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ee);Qn.prototype.type="sector";var GA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Rv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new GA},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Ee);Rv.prototype.type="ring";function WA(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=t.length;c<v;c++)Ua(f,f,t[c]),Ya(h,h,t[c]);Ua(f,f,n[0]),Ya(h,h,n[1])}for(var c=0,v=t.length;c<v;c++){var d=t[c];if(r)l=t[c?c-1:v-1],u=t[(c+1)%v];else if(c===0||c===v-1){i.push(bC(t[c]));continue}else l=t[c-1],u=t[c+1];wC(a,u,l),tc(a,a,e);var m=rc(d,l),p=rc(d,u),g=m+p;g!==0&&(m/=g,p/=g),tc(o,a,-m),tc(s,a,p);var y=Dm([],d,o),_=Dm([],d,s);n&&(Ya(y,y,f),Ua(y,y,h),Ya(_,_,f),Ua(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function U_(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=WA(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var $A=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Bv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $A},e.prototype.buildPath=function(r,n){U_(r,n,!0)},e})(Ee);Bv.prototype.type="polygon";var UA=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Ts=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UA},e.prototype.buildPath=function(r,n){U_(r,n,!1)},e})(Ee);Ts.prototype.type="polyline";var YA={},XA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Jn=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new XA},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=o_(YA,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Ee);Jn.prototype.type="line";var Vt=[],qA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function Y_(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?qm:ot)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?qm:ot)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Km:Rt)(t.x1,t.cpx1,t.x2,e),(r?Km:Rt)(t.y1,t.cpy1,t.y2,e)]}var Vv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qA},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(su(i,l,o,c,Vt),l=Vt[1],o=Vt[2],su(a,u,s,c,Vt),u=Vt[1],s=Vt[2]),r.quadraticCurveTo(l,u,o,s)):(c<1&&(ou(i,l,f,o,c,Vt),l=Vt[1],f=Vt[2],o=Vt[3],ou(a,u,h,s,c,Vt),u=Vt[1],h=Vt[2],s=Vt[3]),r.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(r){return Y_(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Y_(this.shape,r,!0);return TC(n,n)},e})(Ee);Vv.prototype.type="bezier-curve";var ZA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),ju=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZA},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,l,!u)},e})(Ee);ju.prototype.type="arc";var KA=(function(t){Me(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ee.prototype.getBoundingRect.call(this)},e})(Ee),X_=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),q_=(function(t){Me(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(X_),jA=(function(t){Me(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(X_),Fv=Math.min,QA=Math.max,Qu=Math.abs,ia=[0,0],aa=[0,0],rt=Om(),Ju=rt.minTv,ef=rt.maxTv,Z_=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ne;for(var n=0;n<2;n++)this._axes[n]=new ne;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ne.sub(i[0],n[1],n[0]),ne.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&ne.set(r,0,0),rt.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!rt.negativeSize&&ne.copy(r,i?rt.useDir?rt.dirMinTv:Ju:ef),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ia),e._getProjMinMaxOnAxis(o,r._corners,aa),rt.negativeSize||ia[1]<aa[0]||ia[0]>aa[1]){if(a=!1,rt.negativeSize||n)return a;var l=Qu(aa[0]-ia[1]),u=Qu(ia[0]-aa[1]);Fv(l,u)>ef.len()&&(l<u?ne.scale(ef,s,-l*i):ne.scale(ef,s,u*i))}else if(!n){var l=Qu(aa[0]-ia[1]),u=Qu(ia[0]-aa[1]);(rt.useDir||Fv(l,u)<Ju.len())&&((l<u||!rt.bidirectional)&&(ne.scale(Ju,s,l*i),rt.useDir&&rt.calcDirMTV()),(l>=u||!rt.bidirectional)&&(ne.scale(Ju,s,-u*i),rt.useDir&&rt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Fv(f,s),l=QA(f,l)}n[0]=s+rt.touchThreshold,n[1]=l-rt.touchThreshold,rt.negativeSize=n[1]<n[0]},t})(),JA=[],eM=(function(t){Me(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new oe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(JA)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(ms),tM=Ve();function rM(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=j(n.duration,200),f=j(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Q(h)&&(h=h(r,i)),Q(u)&&(u=u(r));var c={duration:u||0,delay:h,easing:f};return c}else return null}function zv(t,e,r,n,i,a,o){var s=!1,l;Q(i)?(o=a,a=i,i=null):q(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=rM(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ct(t,e,r,n,i,a){zv("update",t,e,r,n,i,a)}function pr(t,e,r,n,i,a){zv("enter",t,e,r,n,i,a)}function Cs(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function tf(t,e,r,n,i,a){Cs(t)||zv("leave",t,e,r,n,i,a)}function K_(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),tf(t,{style:{opacity:0}},e,r,n)}function Ds(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||K_(i,e,r,n)}):K_(t,e,r,n)}function Hv(t){tM(t).oldStyle=t.style}var Gv={},ei=["x","y"],ho=["width","height"];function nM(t){return Ee.extend(t)}var iM=kA;function aM(t,e){return iM(t,e)}function Pr(t,e){Gv[t]=e}function oM(t){if(Gv.hasOwnProperty(t))return Gv[t]}function Wv(t,e,r,n){var i=PA(t,e);return r&&(n==="center"&&(r=Q_(r,i.getBoundingRect())),J_(i,r)),i}function j_(t,e,r){var n=new jn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Q_(e,a))}}});return n}function Q_(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var sM=NA;function J_(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Es(t,e){return o_(t,t,{lineWidth:e}),t}function lM(t,e){return s_(t,t,e),t}var uM=ta;function fM(t,e){for(var r=cc([]);t&&t!==e;)Jo(r,t.getLocalTransform(),r),t=t.parent;return r}function $v(t,e,r){return e&&!kt(e)&&(e=Wc.getLocalTransform(e)),r&&(e=es([],e)),or([],t,e)}function hM(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Qr(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Qr(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=$v(a,e,r),Qr(a[0])>Qr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function e0(t){return!t.isGroup}function cM(t){return t.shape!=null}function t0(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){e0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cM(o)&&(s.shape=fe(o.shape)),s}var a=n(t);e.traverse(function(o){if(e0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ct(o,l,r,de(o).dataIndex)}}})}function vM(t,e){return Z(t,function(r){var n=r[0];n=Yt(n,e.x),n=cs(n,e.x+e.width);var i=r[1];return i=Yt(i,e.y),i=cs(i,e.y+e.height),[n,i]})}function dM(t,e){var r=Yt(t.x,e.x),n=cs(t.x+t.width,e.x+e.width),i=Yt(t.y,e.y),a=cs(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Uv(t,e,r){var n=V({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),xe(i,r),new jn(n)):Wv(t.replace("path://",""),n,r,"center")}function pM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(r0(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function r0(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,h=s-a,c=Yv(f,h,l,u);if(gM(c))return!1;var v=t-i,d=e-a,m=Yv(v,d,l,u)/c;if(m<0||m>1)return!1;var p=Yv(v,d,f,h)/c;return!(p<0||p>1)}function Yv(t,e,r,n){return t*n-r*e}function gM(t){return t<=1e-6&&t>=-1e-6}function rf(t,e,r,n,i){return e==null||(Ce(e)?Le[0]=Le[1]=Le[2]=Le[3]=e:(process.env.NODE_ENV!=="production"&&K(e.length===4),Le[0]=e[0],Le[1]=e[1],Le[2]=e[2],Le[3]=e[3]),n&&(Le[0]=Yt(0,Le[0]),Le[1]=Yt(0,Le[1]),Le[2]=Yt(0,Le[2]),Le[3]=Yt(0,Le[3])),r&&(Le[0]=-Le[0],Le[1]=-Le[1],Le[2]=-Le[2],Le[3]=-Le[3]),n0(t,Le,"x","width",3,1,i&&i[0]||0),n0(t,Le,"y","height",0,2,i&&i[1]||0)),t}var Le=[0,0,0,0];function n0(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Yt(0,cs(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Qr(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function nf(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Y(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&A(Pe(l),function(f){Mr(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=de(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Xv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function af(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)Xv(t[r],e);else Xv(t,e)}function qv(t){return!t||Qr(t[1])<of&&Qr(t[2])<of||Qr(t[0])<of&&Qr(t[3])<of}var of=1e-5;function As(t,e){return t?oe.copy(t,e):e.clone()}function Zv(t,e){return e?Pm(t||_n(),e):void 0}function i0(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function mM(t){var e=-1/0,r=1/0;Xv(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function a0(t,e,r){o0(t,e,r,-1/0)}function o0(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Yt(o0(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=Yt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Pr("circle",Zu),Pr("ellipse",Nv),Pr("sector",Qn),Pr("ring",Rv),Pr("polygon",Bv),Pr("polyline",Ts),Pr("rect",He),Pr("line",Jn),Pr("bezierCurve",Vv),Pr("arc",ju);const yM=Object.freeze(Object.defineProperty({__proto__:null,Arc:ju,BezierCurve:Vv,BoundingRect:oe,Circle:Zu,CompoundPath:KA,Ellipse:Nv,Group:tt,Image:jn,IncrementalDisplayable:eM,Line:Jn,LinearGradient:q_,OrientedBoundingRect:Z_,Path:Ee,Point:ne,Polygon:Bv,Polyline:Ts,RadialGradient:jA,Rect:He,Ring:Rv,Sector:Qn,Text:lt,WH:ho,XY:ei,applyTransform:$v,calcZ2Range:mM,clipPointsByRect:vM,clipRectByRect:dM,createIcon:Uv,ensureCopyRect:As,ensureCopyTransform:Zv,expandOrShrinkRect:rf,extendPath:aM,extendShape:nM,getShapeClass:oM,getTransform:fM,groupTransition:t0,initProps:pr,isBoundingRectAxisAligned:qv,isElementRemoved:Cs,lineLineIntersect:r0,linePolygonIntersect:pM,makeImage:j_,makePath:Wv,mergePath:sM,registerShape:Pr,removeElement:tf,removeElementWithFadeOut:Ds,resizePath:J_,retrieveZInfo:i0,setTooltipConfig:nf,subPixelOptimize:uM,subPixelOptimizeLine:Es,subPixelOptimizeRect:lM,transformDirection:hM,traverseElements:af,traverseUpdateZ:a0,updateProps:Ct},Symbol.toStringTag,{value:"Module"}));var sf={};function _M(t,e){for(var r=0;r<dr.length;r++){var n=dr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function s0(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Q(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<dr.length;u++){var f=dr[u],h=e[f];l[f]=j(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Ms(t,e,r,n){r=r||sf;for(var i=t instanceof lt,a=!1,o=0;o<Fu.length;o++){var s=e[Fu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new lt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=s0(r,e),f=e.normal,h=!!f.getShallow("show"),c=ti(f,n&&n.normal,r,!1,!i);c.text=u.normal,i||t.setTextConfig(l0(f,r,!1));for(var o=0;o<dr.length;o++){var v=dr[o],s=e[v];if(s){var d=l.ensureState(v),m=!!j(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=ti(s,n&&n[v],r,!0,!i),d.style.text=u[v],!i){var p=t.ensureState(v);p.textConfig=l0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),r.enableTextSetter&&(lf(l).setLabelText=function(g){var y=s0(r,e,g);_M(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Ls(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<dr.length;n++){var i=dr[n];r[i]=t.getModel([i,e])}return r}function ti(t,e,r,n,i){var a={};return bM(a,t,r,n,i),e&&V(a,e),a}function l0(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=j(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function bM(t,e,r,n,i){r=r||sf;var a=e.ecModel,o=a&&a.option.textStyle,s=wM(e),l;if(s){l={};var u="richInheritPlainLabel",f=j(e.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=e.getModel(["rich",h]);c0(l[h]={},c,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var v=e.get("overflow");v&&(t.overflow=v);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var m=t,p=e.get("minMargin");if(p!=null)p=Ce(p)?p/2:0,m.margin=[p,p,p,p],m.__marginType=co.minMargin;else{var g=e.get("textMargin");g!=null&&(m.margin=Qh(g),m.__marginType=co.textMargin)}c0(t,e,o,null,null,r,n,i,!0,!1)}function wM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||sf).rich;if(r){e=e||{};for(var n=Pe(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var u0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],f0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],h0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function c0(t,e,r,n,i,a,o,s,l,u){r=!o&&r||sf;var f=a&&a.inheritColor,h=e.getShallow("color"),c=e.getShallow("textBorderColor"),v=j(e.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&je("color: 'auto'","color: 'inherit'"),f?h=f:h=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&je("color: 'auto'","color: 'inherit'"),f?c=f:c=null),s||(h=h||r.color,c=c||r.textBorderColor),h!=null&&(t.fill=h),c!=null&&(t.stroke=c);var d=j(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var m=j(e.getShallow("textBorderType"),r.textBorderType);m!=null&&(t.lineDash=m);var p=j(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&v==null&&!u&&(v=a&&a.defaultOpacity),v!=null&&(t.opacity=v),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<u0.length;g++){var y=u0[g],_=i!==!1&&n?yn(e.getShallow(y),n.getShallow(y),r[y]):j(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<f0.length;g++){var y=f0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var g=0;g<h0.length;g++){var y=h0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var w=e.getShallow("borderType");w!=null&&(t.borderDash=w),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&je("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&je("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=f)}}function SM(t,e){var r=e&&e.getModel("textStyle");return Yr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var lf=Ve();function xM(t,e,r,n){if(t){var i=lf(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var co={minMargin:1,textMargin:2},TM=["textStyle","color"],Kv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],jv=new lt,CM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(TM):null)},t.prototype.getFont=function(){return SM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Kv.length;n++)r[Kv[n]]=this.getShallow(Kv[n]);return jv.useStyle(r),jv.update(),jv.getBoundingRect()},t})(),v0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],DM=gs(v0),EM=(function(){function t(){}return t.prototype.getLineStyle=function(e){return DM(this,e)},t})(),d0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],AM=gs(d0),MM=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return AM(this,e,r)},t})(),Fe=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){we(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(fe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!te.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();nv(Fe),cE(Fe),Ur(Fe,EM),Ur(Fe,MM),Ur(Fe,mE),Ur(Fe,CM);var LM=Math.round(Math.random()*10);function uf(t){return[t||"",LM++].join("_")}function IM(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=en(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=en(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function PM(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,h=u.noEntryList,c={};for(A(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],m=!!c[v];m&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,m?g:p)}A(c,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Au("Circular dependency may exists: ",c,a,o)),new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function g(y){c[y]=!0,p(y)}};function r(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){me(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);me(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){me(o,l)>=0&&s.push(l)}),s}}function p0(t,e){return we(we({},t,!0),e,!0)}const kM={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},NM={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ff="ZH",Qv="EN",vo=Qv,hf={},Jv={},g0=te.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||vo).toUpperCase();return t.indexOf(ff)>-1?ff:vo})():vo;function m0(t,e){t=t.toUpperCase(),Jv[t]=new Fe(e),hf[t]=e}function OM(t){if(Y(t)){var e=hf[t.toUpperCase()]||{};return t===ff||t===Qv?fe(e):we(fe(e),fe(hf[vo]),!1)}else return we(fe(t),fe(hf[vo]),!1)}function RM(t){return Jv[t]}function BM(){return Jv[vo]}m0(Qv,kM),m0(ff,NM);var VM=null;function cf(){return VM}var ed=1e3,td=ed*60,Is=td*60,gr=Is*24,y0=gr*365,FM={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},vf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},zM="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",df="{yyyy}-{MM}-{dd}",_0={year:"{yyyy}",month:"{yyyy}-{MM}",day:df,hour:df+" "+vf.hour,minute:df+" "+vf.minute,second:df+" "+vf.second,millisecond:zM},oa=["year","month","day","hour","minute","second","millisecond"],HM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function GM(t){return!Y(t)&&!Q(t)?WM(t):t}function WM(t){t=t||{};var e={},r=!0;return A(oa,function(n){r&&(r=t[n]==null)}),A(oa,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=oa[s],u=q(a)&&!W(a)?a[l]:a,f=void 0;W(u)?(f=u.slice(),o=f[0]||""):Y(u)?(o=u,f=[o]):(o==null?o=vf[n]:FM[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function ri(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ps(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function $M(t){return t===Ps(t)}function UM(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pf(t,e,r,n){var i=no(t),a=i[b0(r)](),o=i[nd(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[id(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ad(r)](),h=(f-1)%12+1,c=i[od(r)](),v=i[sd(r)](),d=i[ld(r)](),m=f>=12?"pm":"am",p=m.toUpperCase(),g=n instanceof Fe?n:RM(n||g0)||BM(),y=g.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),w=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ri(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,ri(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ri(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ri(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ri(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ri(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ri(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ri(d,3)).replace(/{S}/g,d+"")}function YM(t,e,r,n,i){var a=null;if(Y(r))a=r;else if(Q(r)){var o={time:t.time,level:t.time.level},s=cf();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=gf(t.value,i);a=r[f][f][0]}}return pf(new Date(t.value),a,i,n)}function gf(t,e){var r=no(t),n=r[nd(e)]()+1,i=r[id(e)](),a=r[ad(e)](),o=r[od(e)](),s=r[sd(e)](),l=r[ld(e)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function rd(t,e,r){switch(e){case"year":t[w0(r)](0);case"month":t[S0(r)](1);case"day":t[x0(r)](0);case"hour":t[T0(r)](0);case"minute":t[C0(r)](0);case"second":t[D0(r)](0)}return t}function b0(t){return t?"getUTCFullYear":"getFullYear"}function nd(t){return t?"getUTCMonth":"getMonth"}function id(t){return t?"getUTCDate":"getDate"}function ad(t){return t?"getUTCHours":"getHours"}function od(t){return t?"getUTCMinutes":"getMinutes"}function sd(t){return t?"getUTCSeconds":"getSeconds"}function ld(t){return t?"getUTCMilliseconds":"getMilliseconds"}function XM(t){return t?"setUTCFullYear":"setFullYear"}function w0(t){return t?"setUTCMonth":"setMonth"}function S0(t){return t?"setUTCDate":"setDate"}function x0(t){return t?"setUTCHours":"setHours"}function T0(t){return t?"setUTCMinutes":"setMinutes"}function C0(t){return t?"setUTCSeconds":"setSeconds"}function D0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function E0(t){if(!Ey(t))return Y(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function A0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var mf=Qh;function ud(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Yr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?no(t):t;if(isNaN(+l)){if(s)return"-"}else return pf(l,n,r)}if(e==="ordinal")return Kl(t)?i(t):Ce(t)&&a(t)?t+"":"-";var u=Du(t);return a(u)?E0(u):Kl(t)?i(t):typeof t=="boolean"?t+"":"-"}var M0=["a","b","c","d","e","f","g"],fd=function(t,e){return"{"+t+(e??"")+"}"};function L0(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=M0[a];t=t.replace(fd(o),fd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(fd(M0[l],s),r?Ot(u):u)}return t}function qM(t,e){var r=Y(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ot(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ot(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function sa(t,e){return e=e||"transparent",Y(t)?t:q(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function I0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var yf={},hd={},cd=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(yf,!0),this._normalMasterList=n(hd,!1);function n(i,a){var o=[];return A(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[]),process.env.NODE_ENV!=="production"&&a&&A(u,function(f){return K(!f.update)})}),o}},t.prototype.update=function(e,r){A(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){yf[e]=r;return}hd[e]=r},t.get=function(e){return hd[e]||yf[e]},t})();function ZM(t){return!!yf[t]}var vd={coord:1,coord2:2};function KM(t){process.env.NODE_ENV!=="production"&&K(!dd.get(t.fullType)),dd.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var dd=se();function jM(t){var e=t.getShallow("coord",!0),r=vd.coord;if(e==null){var n=dd.get(t.type);n&&n.getCoord2&&(r=vd.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var Cn={none:0,dataCoordSys:1,boxCoordSys:2};function QM(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=Cn.none;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=Cn.dataCoordSys,o||(process.env.NODE_ENV!=="production"&&i&&e&&De('coordinateSystemUsage "data" is not supported in non-series components.'),a=Cn.none)):n==="box"&&(a=Cn.boxCoordSys,!o&&!ZM(r)&&(process.env.NODE_ENV!=="production"&&i&&e&&De('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+t.type+'" yet.')),a=Cn.none))}return{coordSysType:r,kind:a}}function JM(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound;process.env.NODE_ENV!=="production"&&K(!!r);var o=QM(e,!0),s=o.kind,l=o.coordSysType;if(i&&s!==Cn.dataCoordSys&&(s=Cn.dataCoordSys,l=r),s===Cn.none||l!==r)return!1;var u=n(r,e);return u?(s===Cn.dataCoordSys?(process.env.NODE_ENV!=="production"&&K(e.mainType==="series"),e.coordinateSystem=u):e.boxCoordinateSystem=u,!0):(process.env.NODE_ENV!=="production"&&(a||De(r+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."))),!1)}var _f=A,eL=["left","right","top","bottom","width","height"],bf=[["width","left","right"],["height","top","bottom"]];function pd(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(t==="horizontal"){var m=f.width+(c?-c.x+f.x:0);v=a+m,v>n||l.newline?(a=0,v=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var ks=pd;$e(pd,"vertical"),$e(pd,"horizontal");function tL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function rL(t,e){var r=wf(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Ns.point)a=r.refPoint,i=ni(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];i=ni(n,r.refContainer),a=r.boxCoordFrom===vd.coord2?r.refPoint:[Be(s[0],i.width)+i.x,Be(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function nL(t,e){var r=rL(t,e),n=r.viewRect,i=r.center,a=t.get("radius");W(a)||(a=[0,a]);var o=Be(n.width,e.getWidth()),s=Be(n.height,e.getHeight()),l=Math.min(o,s),u=Be(a[0],l/2),f=Be(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function ni(t,e,r){r=mf(r||0);var n=e.width,i=e.height,a=Be(t.left,n),o=Be(t.top,i),s=Be(t.right,n),l=Be(t.bottom,i),u=Be(t.width,n),f=Be(t.height,i),h=r[2]+r[0],c=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-c;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new oe((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var Ns={rect:1,point:2};function wf(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=jM(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Ns.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint?(a=Ns.point,s=f,i=o.dataToPoint(u)):process.env.NODE_ENV!=="production"&&De(t.type+"["+t.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=Ns.rect),a===Ns.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Os(t){var e=t.layoutMode||t.constructor.layoutMode;return q(e)?e:e?{type:e}:null}function ii(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(bf[0],0),a=o(bf[1],1);l(bf[0],t,i),l(bf[1],t,a);function o(u,f){var h={},c=0,v={},d=0,m=2;if(_f(u,function(y){v[y]=t[y]}),_f(u,function(y){Mr(e,y)&&(h[y]=v[y]=e[y]),s(h,y)&&c++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===m||!c)return v;if(c>=m)return h;for(var p=0;p<u.length;p++){var g=u[p];if(!Mr(h,g)&&Mr(t,g)){h[g]=t[g];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){_f(u,function(c){f[c]=h[c]})}}function Rs(t){return iL({},t)}function iL(t,e){return e&&t&&_f(eL,function(r){Mr(e,r)&&(t[r]=e[r])}),t}var aL=Ve(),ye=(function(t){J(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=uf("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Os(this),a=i?Rs(r):{},o=n.getTheme();we(r,o.get(this.mainType)),we(r,this.getDefaultOption()),i&&ii(r,a,i)},e.prototype.mergeOption=function(r,n){we(this.option,r,!0);var i=Os(this);i&&ii(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!uE(r))return r.defaultOption;var n=aL(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=we(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ps(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return tL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Fe);Hy(ye,Fe),Mu(ye),IM(ye),PM(ye,oL);function oL(t){var e=[];return A(ye.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Z(e,function(r){return en(r).main}),t!=="dataset"&&me(e,"dataset")<=0&&e.unshift("dataset"),e}var X={color:{},darkColor:{},size:{}},Ge=X.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};V(Ge,{primary:Ge.neutral80,secondary:Ge.neutral70,tertiary:Ge.neutral60,quaternary:Ge.neutral50,disabled:Ge.neutral20,border:Ge.neutral30,borderTint:Ge.neutral20,borderShade:Ge.neutral40,background:Ge.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ge.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ge.neutral70,axisLineTint:Ge.neutral40,axisTick:Ge.neutral70,axisTickMinor:Ge.neutral60,axisLabel:Ge.neutral70,axisSplitLine:Ge.neutral15,axisMinorSplitLine:Ge.neutral05});for(var la in Ge)if(Ge.hasOwnProperty(la)){var P0=Ge[la];la==="theme"?X.darkColor.theme=Ge.theme.slice():la==="highlight"?X.darkColor.highlight="rgba(255,231,130,0.4)":la.indexOf("accent")===0?X.darkColor[la]=Dc(P0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):X.darkColor[la]=Dc(P0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}X.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var k0="";typeof navigator<"u"&&(k0=navigator.platform||"");var po="rgba(0, 0, 0, 0.2)",N0=X.color.theme[0],sL=Dc(N0,null,null,.9);const lL={darkMode:"auto",colorBy:"series",color:X.color.theme,gradientColor:[sL,N0],aria:{decal:{decals:[{color:po,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:po,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:po,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:po,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:po,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:po,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:k0.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 gd=se(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xt="original",mt="arrayRows",mr="objectRows",kr="keyedColumns",Dn="typedArray",O0="unknown",sn="column",ua="row",ut={Must:1,Might:2,Not:3},R0=Ve();function uL(t){R0(t).datasetMap=se()}function fL(t,e,r){var n={},i=md(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=R0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,h;t=t.slice(),A(t,function(m,p){var g=q(m)?m:t[p]={name:m};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(t,function(m,p){var g=m.name,y=d(m);if(f==null){var _=c.valueWayDim;v(n[g],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===p)v(n[g],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(n[g],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(m,p,g){for(var y=0;y<g;y++)m.push(p+y)}function d(m){var p=m.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function hL(t,e,r){var n={},i=md(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===mr||a===kr)&&A(o,function(f,h){(q(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var m=V0(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);c.push(m);var p=m===ut.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===ut.Not)&&(f.n=v),g(f)&&c[f.n]!==ut.Not)return f;p||(m===ut.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function md(t){var e=t.get("data",!0);if(!e)return ps(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},fr).models[0]}function cL(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ps(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},fr).models}function B0(t,e){return V0(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function V0(t,e,r,n,i,a){var o,s=5;if(St(t))return ut.Not;var l,u;if(n){var f=n[a];q(f)?(l=f.name,u=f.type):Y(f)&&(l=f)}if(u!=null)return u==="ordinal"?ut.Must:ut.Not;if(e===mt){var h=t;if(r===ua){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=b(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=b(d[a]))!=null)return o}}else if(e===mr){var m=t;if(!l)return ut.Not;for(var v=0;v<m.length&&v<s;v++){var p=m[v];if(p&&(o=b(p[l]))!=null)return o}}else if(e===kr){var g=t;if(!l)return ut.Not;var c=g[l];if(!c||St(c))return ut.Not;for(var v=0;v<c.length&&v<s;v++)if((o=b(c[v]))!=null)return o}else if(e===Xt)for(var y=t,v=0;v<y.length&&v<s;v++){var p=y[v],_=vs(p);if(!W(_))return ut.Not;if((o=b(_[a]))!=null)return o}function b(w){var S=Y(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?ut.Might:ut.Not;if(S&&w!=="-")return ut.Must}return ut.Not}var vL=se();function dL(t,e,r){var n=vL.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)K(io(i[a]));return r.concat(i)}var F0=Ve();Ve();var yd=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=xt(this.get("color",!0)),a=this.get("colorLayer",!0);return gL(this,F0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){mL(this,F0)},t})();function pL(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function gL(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:pL(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function mL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Sf,Bs,z0,_d="\0_ec_inner",H0=1,yL={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},_L={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},xf={};function bL(t){A(t,function(e,r){if(!ye.hasClass(r)){var n=yL[r];n&&!xf[n]&&(De("Component "+r+` is used but not imported.
53
- import { `+n+` } from 'echarts/components';
54
- echarts.use([`+n+"]);"),xf[n]=!0)}})}var bd=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Fe(a),this._locale=new Fe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(K(r!=null,"option is null/undefined"),K(r[_d]!==H0,"please use chart.getOption()"));var a=$0(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,$0(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&bL(o),!this.option||r==="recreate"?z0(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=se(),u=n&&n.replaceMergeMainTypeMap;uL(this),A(r,function(h,c){h!=null&&(ye.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?fe(h):we(i[c],h,!0))}),u&&u.each(function(h,c){ye.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(h){var c=dL(this,h,xt(r[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=qD(v,c,d);tE(m,h,ye),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],y=0,_,b;A(m,function(w,S){var x=w.existing,T=w.newOption;if(!T)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",E=ye.getClass(h,w.keyInfo.subType,!C);if(!E){if(process.env.NODE_ENV!=="production"){var D=w.keyInfo.subType,L=_L[D];xf[D]||(xf[D]=!0,De(L?"Series "+D+` is used but not imported.
55
- import { `+L+` } from 'echarts/charts';
56
- echarts.use([`+L+"]);":"Unknown series "+D))}return}if(h==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(b||(pt("Currently only one tooltip component is allowed."),b=!0));return}_=!0}if(x&&x.constructor===E)x.name=w.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=V({componentIndex:S},w.keyInfo);x=new E(T,this,this,M),V(x,M),w.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),g.push(x),y++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,y),h==="series"&&Sf(this)}this._seriesIndices||Sf(this)},e.prototype.getOption=function(){var r=fe(this.option);return A(r,function(n,i){if(ye.hasClass(i)){for(var a=xt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!io(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[_d],r},e.prototype.setTheme=function(r){this._theme=new Fe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(xt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=G0("id",a,s):o!=null?l=G0("name",o,s):l=et(s,function(u){return!!u}),W0(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):et(this._componentsMap.get(i),function(u){return!!u});return l(W0(o,r));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return r.filter?et(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Q(r)){var o=n,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=Y(r)?a.get(r):q(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Jr(r,null);return et(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return et(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return et(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Bs(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){A(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Bs(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return A(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Bs(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Bs(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=se(i)},e.prototype.restoreData=function(r){Sf(this);var n=this._componentsMap,i=[];n.each(function(a,o){ye.hasClass(o)&&i.push(o)}),ye.topologicalTravel(i,ye.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!wL(o,r))&&o.restoreData()})})},e.internalField=(function(){Sf=function(r){var n=r._seriesIndices=[];A(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=se(n)},Bs=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},z0=function(r,n){r.option={},r.option[_d]=H0,r._componentsMap=se({series:[]}),r._componentsCount=se();var i=n.aria;q(i)&&i.enabled==null&&(i.enabled=!0),SL(n,r._theme.option),we(n,lL,!1),r._mergeOption(n,null)}})(),e})(Fe);function wL(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function SL(t,e){var r=t.color&&!t.colorLayer;A(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ye.hasClass(i)||(typeof n=="object"?t[i]=t[i]?we(t[i],n,!1):fe(n):t[i]==null&&(t[i]=n))})}function G0(t,e,r){if(W(e)){var n=se();return A(e,function(a){if(a!=null){var o=Jr(a,null);o!=null&&n.set(a,!0)}}),et(r,function(a){return a&&n.get(a[t])})}else{var i=Jr(e,null);return et(r,function(a){return a&&i!=null&&a[t]===i})}}function W0(t,e){return e.hasOwnProperty("subType")?et(t,function(r){return r&&r.subType===e.subType}):t}function $0(t){var e=se();return t&&A(xt(t.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&K(ye.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ur(bd,yd);var xL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],U0=(function(){function t(e){A(xL,function(r){this[r]=Te(e[r],e)},this)}return t})(),TL=/^(min|max)?(.+)$/,CL=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(A(xt(e.series),function(o){o&&o.data&&St(o.data)&&Jh(o.data)}),A(xt(e.dataset),function(o){o&&o.source&&St(o.source)&&Jh(o.source)})),e=fe(e);var i=this._optionBackup,a=DL(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],fe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=fe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)EL(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!ML(o,this._currentMediaIndices)&&(s=Z(o,function(f){return fe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function DL(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(t.options=t.media=null),a=t),f&&(W(u)?A(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&q(v.query)&&q(v.query.option)&&De("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&De("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),A(l,function(v){return c(v)}),A(n,function(v){return c(v.option)});function c(v){A(e,function(d){d(v,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function EL(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return A(t,function(a,o){var s=o.match(TL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();AL(n[u],a,l)||(i=!1)}}),i}function AL(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function ML(t,e){return t.join(",")===e.join(",")}var yr=A,Vs=q,Y0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wd(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Y0.length;r<n;r++){var i=Y0[r],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&je("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?we(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&je("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?we(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function yt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&Sn("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r?(t[e].normal=t[e].emphasis=null,xe(t[e],n)):t[e]=n),i&&(process.env.NODE_ENV!=="production"&&Sn(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Fs(t){yt(t,"itemStyle"),yt(t,"lineStyle"),yt(t,"areaStyle"),yt(t,"label"),yt(t,"labelLine"),yt(t,"upperLabel"),yt(t,"edgeLabel")}function Ue(t,e){var r=Vs(t)&&t[e],n=Vs(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Sn("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=Oy.length;i<a;i++){var o=Oy[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function _r(t){t&&(Fs(t),Ue(t,"label"),t.emphasis&&Ue(t.emphasis,"label"))}function LL(t){if(Vs(t)){wd(t),Fs(t),Ue(t,"label"),Ue(t,"upperLabel"),Ue(t,"edgeLabel"),t.emphasis&&(Ue(t.emphasis,"label"),Ue(t.emphasis,"upperLabel"),Ue(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(wd(e),_r(e));var r=t.markLine;r&&(wd(r),_r(r));var n=t.markArea;n&&_r(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!St(a))for(var o=0;o<a.length;o++)_r(a[o]);A(t.categories,function(u){Fs(u)})}if(i&&!St(i))for(var o=0;o<i.length;o++)_r(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)_r(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(_r(l[o][0]),_r(l[o][1])):_r(l[o]);t.type==="gauge"?(Ue(t,"axisLabel"),Ue(t,"title"),Ue(t,"detail")):t.type==="treemap"?(yt(t.breadcrumb,"itemStyle"),A(t.levels,function(u){Fs(u)})):t.type==="tree"&&Fs(t.leaves)}}function En(t){return W(t)?t:t?[t]:[]}function X0(t){return(W(t)?t[0]:t)||{}}function IL(t,e){yr(En(t.series),function(n){Vs(n)&&LL(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),yr(r,function(n){yr(En(t[n]),function(i){i&&(Ue(i,"axisLabel"),Ue(i.axisPointer,"label"))})}),yr(En(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ue(i,"axisLabel"),Ue(i&&i.axisPointer,"label")}),yr(En(t.calendar),function(n){yt(n,"itemStyle"),Ue(n,"dayLabel"),Ue(n,"monthLabel"),Ue(n,"yearLabel")}),yr(En(t.radar),function(n){Ue(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Sn("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Sn("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&yr(n.indicator,function(i){i.text&&je("text","name","radar.indicator")})}),yr(En(t.geo),function(n){Vs(n)&&(_r(n),yr(En(n.regions),function(i){_r(i)}))}),yr(En(t.timeline),function(n){_r(n),yt(n,"label"),yt(n,"itemStyle"),yt(n,"controlStyle",!0);var i=n.data;W(i)&&A(i,function(a){q(a)&&(yt(a,"label"),yt(a,"itemStyle"))})}),yr(En(t.toolbox),function(n){yt(n,"iconStyle"),yr(n.feature,function(i){yt(i,"iconStyle")})}),Ue(X0(t.axisPointer),"label"),Ue(X0(t.tooltip).axisPointer,"label")}function PL(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function kL(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function q0(t){t&&A(NL,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var NL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],OL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Sd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Sd.length;r++){var n=Sd[r][1],i=Sd[r][0];e[n]!=null&&(e[i]=e[n],process.env.NODE_ENV!=="production"&&je(n,i))}}function Z0(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&je("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function K0(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&je("downplay","blur","sunburst"))}function RL(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&je("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function j0(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&j0(t[r].children,e)}function Q0(t,e){IL(t,e),t.series=xt(t.series),A(t.series,function(r){if(q(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&je("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&je("clockWise","clockwise")),Z0(r.label);var i=r.data;if(i&&!St(i))for(var a=0;a<i.length;a++)Z0(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&je("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=PL(r,"pointer.color");o!=null&&kL(r,"itemStyle.color",o)}else if(n==="bar"){zs(r),zs(r.backgroundStyle),zs(r.emphasis);var i=r.data;if(i&&!St(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(zs(i[a]),zs(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&je("highlightPolicy","emphasis.focus","sunburst"))),K0(r),j0(r.data,K0)}else n==="graph"||n==="sankey"?RL(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&je("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Sn("`mapLocation` is not used anymore."),xe(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&je("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),q0(r)}}),t.dataRange&&(t.visualMap=t.dataRange),A(OL,function(r){var n=t[r];n&&(W(n)||(n=[n]),A(n,function(i){q0(i)}))})}function BL(t){var e=se();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),A(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),VL(r)}})}function VL(t){A(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(e.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(e.stackedByDimension,h);for(var m=NaN,p=r-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=HD(c,y),m=y;break}}}return n[0]=c,n[1]=m,n})})}var Tf=(function(){function t(e){this.data=e.data||(e.sourceFormat===kr?{}:[]),this.sourceFormat=e.sourceFormat||O0,this.seriesLayoutBy=e.seriesLayoutBy||sn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&B0(this,n)===ut.Must&&(i.type="ordinal")}}return t})();function xd(t){return t instanceof Tf}function Td(t,e,r){r=r||eb(t);var n=e.seriesLayoutBy,i=zL(t,r,n,e.sourceHeader,e.dimensions),a=new Tf({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:fe(e)});return a}function J0(t){return new Tf({data:t,sourceFormat:St(t)?Dn:Xt})}function FL(t){return new Tf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:fe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function eb(t){var e=O0;if(St(t))e=Dn;else if(W(t)){t.length===0&&(e=mt);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||St(i)){e=mt;break}else if(q(i)){e=mr;break}}}}else if(q(t)){for(var a in t)if(Mr(t,a)&&kt(t[a])){e=kr;break}}return e}function zL(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:tb(i),startIndex:o,dimensionsDetectedCount:a};if(e===mt){var s=t;n==="auto"||n==null?rb(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},r,s,10):o=Ce(n)?n:n?1:0,!i&&o===1&&(i=[],rb(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ua?s.length:s[0]?s[0].length:null}else if(e===mr)i||(i=HL(t));else if(e===kr)i||(i=[],A(t,function(u,f){i.push(f)}));else if(e===Xt){var l=vs(t[0]);a=W(l)&&l.length||1}else e===Dn&&process.env.NODE_ENV!=="production"&&K(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:tb(i),dimensionsDetectedCount:a}}function HL(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Pe(r)}function tb(t){if(t){var e=se();return Z(t,function(r,n){r=q(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function rb(t,e,r,n){if(e===ua)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function nb(t){var e=t.sourceFormat;return e===mr||e===kr}var fa,ha,ca,va,ib,ab,ob=(function(){function t(e,r){var n=xd(e)?e:J0(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===Dn){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}if(process.env.NODE_ENV!=="production"){var s=GL[Df(a,o)];s&&s(i,n.dimensionsDefine)}ab(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;ab=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=ib[Df(u,f)];if(process.env.NODE_ENV!=="production"&&K(v,"Invalide sourceFormat: "+u),V(o,v),u===Dn)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=lb(u,f);o.getItem=Te(d,null,s,h,c);var m=fb(u,f);o.count=Te(m,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],m=v[1]==null?-1/0:v[1],p=s-o,g=l[c],y=0;y<p;y++){var _=f[y*h+c];g[o+y]=_,_<d&&(d=_),_>m&&(m=_)}v[0]=d,v[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};ib=(e={},e[mt+"_"+sn]={pure:!0,appendData:a},e[mt+"_"+ua]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[mr]={pure:!0,appendData:a},e[kr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[Xt]={appendData:a},e[Dn]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&K(St(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),Cf=function(t){W(t)||De("series.data or dataset.source must be an array.")},GL=(fa={},fa[mt+"_"+sn]=Cf,fa[mt+"_"+ua]=Cf,fa[mr]=Cf,fa[kr]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&De("dimension name must not be null/undefined.")}},fa[Xt]=Cf,fa),sb=function(t,e,r,n){return t[n]},WL=(ha={},ha[mt+"_"+sn]=function(t,e,r,n){return t[n+e]},ha[mt+"_"+ua]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ha[mr]=sb,ha[kr]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},ha[Xt]=sb,ha);function lb(t,e){var r=WL[Df(t,e)];return process.env.NODE_ENV!=="production"&&K(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var ub=function(t,e,r){return t.length},$L=(ca={},ca[mt+"_"+sn]=function(t,e,r){return Math.max(0,t.length-e)},ca[mt+"_"+ua]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ca[mr]=ub,ca[kr]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ca[Xt]=ub,ca);function fb(t,e){var r=$L[Df(t,e)];return process.env.NODE_ENV!=="production"&&K(r,'Do not support count on "'+t+'", "'+e+'".'),r}var Cd=function(t,e,r){return t[e]},UL=(va={},va[mt]=Cd,va[mr]=function(t,e,r){return t[r]},va[kr]=Cd,va[Xt]=function(t,e,r){var n=vs(t);return n instanceof Array?n[e]:n},va[Dn]=Cd,va);function hb(t){var e=UL[t];return process.env.NODE_ENV!=="production"&&K(e,'Do not support get value on "'+t+'".'),e}function Df(t,e){return t===mt?t+"_"+e:t}function go(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return hb(a)(n,o,s)}else{var l=n;return a===Xt&&(l=vs(n)),l}}}}var YL=/\{@(.+?)\}/g,XL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&W(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Q(a))return l.status=r,l.dimensionIndex=i,a(l);if(Y(a)){var f=L0(a,l);return f.replace(YL,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&De("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var m=go(s,e,d);if(o&&W(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(m=o.interpolatedValue[p])}return m!=null?m+"":""})}},t.prototype.getRawValue=function(e,r){return go(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function cb(t){var e,r;return q(t)?t.type?r=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Au(t)):e=t,{text:e,frag:r}}function Hs(t){return new qL(t)}var qL=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(r?(process.env.NODE_ENV!=="production"&&K(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&K(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var m=this._progress;if(W(m))for(var p=0;p<m.length;p++)this._doProgress(m[p],v,d,l,u);else this._doProgress(m,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&K(g>=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){vb.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:vb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&K(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),vb=(function(){var t,e,r,n,i,a={reset:function(l,u,f,h){e=l,t=u,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function Ef(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Ce(t)&&t!=null&&t!=="-"&&(t=+no(t)),t==null||t===""?NaN:Number(t))}se({number:function(t){return parseFloat(t)},time:function(t){return+no(t)},trim:function(t){return Y(t)?Yr(t):t}});var ZL=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Ce(e)?e:Du(e),i=Ce(r)?r:Du(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Y(e),l=Y(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),KL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ef(e,r)},t})();function jL(t,e){var r=new KL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==sn&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Bt(o));var s=[],l={},u=t.dimensionsDefine;if(u)A(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";Mr(l,g)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+g+'" duplicated.'),Bt(_)),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var h=lb(i,sn);e.__isBuiltIn&&(r.getRawDataItem=function(m){return h(n,a,s,m)},r.getRawData=Te(QL,null,t)),r.cloneRawData=Te(JL,null,t);var c=fb(i,sn);r.count=Te(c,null,n,a,s);var v=hb(i);r.retrieveValue=function(m,p){var g=h(n,a,s,m);return d(g,p)};var d=r.retrieveValueFromItem=function(m,p){if(m!=null){var g=s[p];if(g)return v(m,p,g.name)}};return r.getDimensionInfo=Te(e2,null,s,l),r.cloneAllDimensionInfo=Te(t2,null,s),r}function QL(t){var e=t.sourceFormat;if(!Dd(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+e),Bt(r)}return t.data}function JL(t){var e=t.sourceFormat,r=t.data;if(!Dd(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),Bt(n)}if(e===mt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===mr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(V({},r[a]));return i}}function e2(t,e,r){if(r!=null){if(Ce(r)||!isNaN(r)&&!Mr(e,r))return t[r];if(Mr(e,r))return e[r]}}function t2(t){return fe(t)}var db=se();function r2(t){t=fe(t);var e=t.type,r="";e||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),Bt(r));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),Bt(r));var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,db.set(e,t)}function n2(t,e,r){var n=xt(t),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),Bt(a));for(var o=0,s=i;o<s;o++){var l=n[o];e=i2(l,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function i2(t,e,r,n){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Bt(i)),q(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),Bt(i));var a=t.type,o=db.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),Bt(i));var s=Z(e,function(f){return jL(f,o)}),l=xt(o.transform({upstream:s[0],upstreamList:s,config:fe(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=Z(l,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+h+" ===","- transform result data:",Au(f.data),"- transform result dimensions:",Au(f.dimensions)].join(`
57
- `)}).join(`
58
- `);Py(u)}return Z(l,function(f,h){var c="";q(f)||(process.env.NODE_ENV!=="production"&&(c="A transform should not return some empty results."),Bt(c)),f.data||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be not be null or undefined"),Bt(c));var v=eb(f.data);Dd(v)||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be array rows or object rows."),Bt(c));var d,m=e[0];if(m&&h===0&&!f.dimensions){var p=m.startIndex;p&&(f.data=m.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:sn,sourceHeader:p,dimensions:m.metaRawOption.dimensions}}else d={seriesLayoutBy:sn,sourceHeader:0,dimensions:f.dimensions};return Td(f.data,d,null)})}function Dd(t){return t===mt||t===mr}var Af="undefined",a2=typeof Uint32Array===Af?Array:Uint32Array,o2=typeof Uint16Array===Af?Array:Uint16Array,pb=typeof Int32Array===Af?Array:Int32Array,gb=typeof Float64Array===Af?Array:Float64Array,mb={float:gb,int:pb,ordinal:Array,number:Array,time:gb},Ed;function mo(t){return t>65535?a2:o2}function yo(){return[1/0,-1/0]}function s2(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function yb(t,e,r,n,i){var a=mb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var Ad=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=se()}return t.prototype.initData=function(e,r,n){process.env.NODE_ENV!=="production"&&K(Q(e.getItem)&&Q(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Ed[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=nb(i);this._dimensions=Z(r,function(s){return process.env.NODE_ENV!=="production"&&o&&K(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new mb[r||"float"](this._rawCount),this._rawExtent[a]=yo(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=yo());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&K(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];yb(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],m=Ed.arrayRows.call(this,e[v]||h,f.property,v,d);n[d][c]=m;var p=o[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=yo()),yb(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var c=[],v=e;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var m=a[d],p=this._dimValueGetter(c,u[d],v,d);m[v]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=mo(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=mo(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(l===0)v=r(c);else if(l===1){var m=h[f][d];v=r(m,c)}else{for(var p=0;p<l;p++)s[p]=h[e[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Pe(e),a=i.length;if(!a)return this;var o=r.count(),s=mo(r._rawCount),l=new s(o),u=0,f=i[0],h=e[f][0],c=e[f][1],v=r._chunks,d=!1;if(!r._indices){var m=0;if(a===1){for(var p=v[i[0]],g=0;g<n;g++){var y=p[g];(y>=h&&y<=c||isNaN(y))&&(l[u++]=m),m++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],b=e[i[1]][0],w=e[i[1]][1],g=0;g<n;g++){var y=p[g],S=_[g];(y>=h&&y<=c||isNaN(y))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=m),m++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var x=r.getRawIndex(g),y=v[i[0]][x];(y>=h&&y<=c||isNaN(y))&&(l[u++]=x)}else for(var g=0;g<o;g++){for(var T=!0,x=r.getRawIndex(g),C=0;C<a;C++){var E=i[C],y=v[E][x];(y<e[E][0]||y>e[E][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=yo();for(var h=0;h<s;h++){for(var c=e.getRawIndex(h),v=0;v<o;v++)l[v]=i[r[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var m=r[f],p=d[f],g=u[m],y=i[m];y&&(y[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,c,v=new(mo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var m=Math.min(d+l,o-1),p=Math.min(d+l*2,o),g=(p+m)/2,y=0,_=m;_<p;_++){var b=this.getRawIndex(_),w=a[b];isNaN(w)||(y+=w)}y/=p-m;var S=d,x=Math.min(d+l,o),T=d-1,C=a[u];f=-1,c=S;for(var E=-1,D=0,_=S;_<x;_++){var b=this.getRawIndex(_),w=a[b];if(isNaN(w)){D++,E<0&&(E=b);continue}h=Math.abs((T-g)*(w-C)-(T-_)*(y-C)),h>f&&(f=h,c=b)}D>0&&D<x-S&&(v[s++]=Math.min(E,c),c=Math.max(E,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(mo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],m=a;f+a>s&&(m=s-f);for(var p=0;p<m;p++){var g=this.getRawIndex(f+p),y=o[g];y<c&&(c=y,h=f+p),y>d&&(d=y,v=f+p)}var _=this.getRawIndex(h),b=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),h=a._rawExtent[e]=yo(),c=new(mo(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var m=0;m<l;m++){var p=this.getRawIndex(d+m);s[m]=u[p]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=yo();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=r[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Wn(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?s2(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=fe(this._extent),e._rawExtent=fe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return Ef(r[a],this._dimensions[a])}Ed={arrayRows:e,objectRows:function(r,n,i,a){return Ef(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ef(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),l2=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Gs(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=St(s)?Dn:Xt,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=j(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=j(h.sourceHeader,c.sourceHeader),m=j(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||m;i=p?[Td(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:m},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Td(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&K(i&&a),this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&K(i!=null||n!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),_b(a))}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+i),_b(h)),s.push(f),l.push(u._getVersionSign())}),n?o=n2(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[FL(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&K(Gs(this._sourceHost),"Can only call getDataStore on series source manager.");var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Gs(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Ad,s.initData(new ob(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gs(e)){var r=md(e);return r?[r.getSourceManager()]:[]}else return Z(cL(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Gs(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function Gs(t){return t.mainType==="series"}function _b(t){throw new Error(t)}var u2="line-height:1";function bb(t){var e=t.lineHeight;return e==null?u2:"line-height:"+Ot(e+"")+"px"}function wb(t,e){var r=t.color||X.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||X.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ot(n+"")+"px;color:"+Ot(r)+";font-weight:"+Ot(i+""),valueStyle:"font-size:"+Ot(o+"")+"px;color:"+Ot(a)+";font-weight:"+Ot(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var f2=[0,10,20,30],h2=["",`
46
+ */var Au={},Dy={};function ZD(t){delete Dy[t]}function KD(t){if(!t)return!1;if(typeof t=="string")return vu(t,1)<Gc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=vu(e[i].color,1);return r/=n,r<Gc}return!1}var jD=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new pD,o=n.renderer||"canvas";Au[o]||(o=We(Au)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Au[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!oe.node&&!oe.worker&&!l?new HD(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?oe.touchEventsSupported:!!f,v=44,c;h&&(c=Q(n.pointerSize,v)),this.handler=new Vm(a,s,u,s.root,c),this.animation=new ED({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=KD(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=ro();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ro();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof ut&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ZD(this.id))},t})();function Ay(t,e){var r=new jD(Dm(),t,e);return Dy[r.id]=r,r}function QD(t,e){Au[t]=e}var My=1e-4,Ly=20;function JD(t){return t.replace(/^\s+|\s+$/g,"")}var vs=Math.min,Yt=Math.max,Qr=Math.abs;function Jc(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var $e=eA;function eA(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return ev(t,e,r)}function ev(t,e,r){return X(t)?JD(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function pt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),Ly),t=(+t).toFixed(e),r?t:+t}function Cn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return tA(t)}function tA(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function rA(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Qr(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function nA(t,e){var r=qn(t,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=j(t,function(c){return(isNaN(c)?0:c)/r*n*100}),a=n*100,o=j(i,function(c){return Math.floor(c)}),s=qn(o,function(c,d){return c+d},0),l=j(i,function(c,d){return c-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return j(o,function(c){return c/n})}function iA(t,e){var r=Math.max(Cn(t),Cn(e)),n=t+e;return r>Ly?n:pt(n,r)}function ky(t){var e=Math.PI*2;return(t%e+e)%e}function Mu(t){return t>-My&&t<My}var aA=/^(?:(\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 oo(t){if(t instanceof Date)return t;if(X(t)){var e=aA.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function oA(t){return Math.pow(10,tv(t))}function tv(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Iy(t,e){var r=tv(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Lu(t){var e=parseFloat(t);return e==t&&(e!==0||!X(t)||t.indexOf("x")<=0)?e:NaN}function sA(t){return!isNaN(Lu(t))}function Py(){return Math.round(Math.random()*9)}function Ey(t,e){return e===0?t:Ey(e,t%e)}function Ry(t,e){return t==null?e:e==null?t:t*e/Ey(t,e)}var lA="[ECharts] ",uA=typeof console<"u"&&console.warn&&console.log;function fA(t,e,r){uA&&console[t](lA+e)}function Oy(t,e){fA("error",t)}function zt(t){throw new Error(t)}function Ny(t,e,r){return(e-t)*r+t}var By="series\0",hA="\0_ec_\0";function Dt(t){return t instanceof Array?t:t==null?[]:[t]}function rv(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Fy=["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 ds(t){return K(t)&&!U(t)&&!(t instanceof Date)?t.value:t}function cA(t){return K(t)&&!(t instanceof Array)}function vA(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=he();L(e,function(l,u){if(!K(l)){e[u]=null;return}});var s=dA(t,o,r);return(n||i)&&pA(s,t,o,e),n&&gA(s,e),n||i?mA(s,e,i):a&&yA(s,e),_A(s),s}function dA(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||gs(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function pA(t,e,r,n){L(n,function(i,a){if(!(!i||i.id==null)){var o=ps(i.id),s=r.get(o);if(s!=null){var l=t[s];Sn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function gA(t,e){L(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!gs(r)&&!gs(a)&&zy("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function mA(t,e,r){L(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||gs(i.existing)||i.existing&&n.id!=null&&!zy("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function yA(t,e){L(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function _A(t){var e=he();L(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),L(t,function(r){var n=r.newOption;Sn(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),L(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(K(a)){if(o.name=a.name!=null?ps(a.name):i?i.name:By+n,i)o.id=ps(i.id);else if(a.id!=null)o.id=ps(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function zy(t,e,r){var n=Jr(e[t],null),i=Jr(r[t],null);return n!=null&&i!=null&&n===i}function ps(t){return Jr(t,"")}function Jr(t,e){return t==null?e:X(t)?t:ke(t)||Jh(t)?t+"":e}function nv(t){var e=t.name;return!!(e&&e.indexOf(By))}function gs(t){return t&&t.id!=null&&ps(t.id).indexOf(hA)===0}function bA(t,e,r){L(t,function(n){var i=n.newOption;K(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=wA(e,i,n.existing,r))})}function wA(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Ki(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?j(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?j(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Ue(){var t="__ec_inner_"+SA++;return function(e){return e[t]||(e[t]={})}}var SA=Py();function iv(t,e,r){var n=av(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ms(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function av(t,e){var r;if(X(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=he(),a={},o=!1;return L(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&Te(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fr={useDefault:!0,enableAll:!1,enableNone:!1};function ms(t,e,r,n){n=n||fr;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function Hy(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function xA(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function TA(t){return t==="auto"?oe.domSupported?"html":"richText":t||"html"}function CA(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(ke(n)){var o=Ny(r||0,n,i);return pt(o,a?Math.max(Cn(r||0),Cn(n)):e)}else{if(X(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=t.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=Ny(c,d,i);s[h]=pt(o,a?Math.max(Cn(c),Cn(d)):e)}}return s}}var DA=".",ji="___EC__COMPONENT__CONTAINER___",Gy="___EC__EXTENDED_CLASS___";function en(t){var e={main:"",sub:""};if(t){var r=t.split(DA);e.main=r[0]||"",e.sub=r[1]||""}return e}function AA(t){Sn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function MA(t){return!!(t&&t[Gy])}function ov(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return LA(n)?i=(function(a){re(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},AC(i,this)),V(i.prototype,r),i[Gy]=!0,i.extend=this.extend,i.superCall=PA,i.superApply=EA,i.superClass=n,i}}function LA(t){return ie(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Vy(t,e){t.extend=e.extend}var kA=Math.round(Math.random()*10);function IA(t){var e=["__\0is_clz",kA++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function PA(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function EA(t,e,r){return this.superClass.prototype[e].apply(t,r)}function ku(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){AA(i),n.prototype.type=i;var a=en(i);if(!a.sub)e[a.main]=n;else if(a.sub!==ji){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[ji]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=en(n),a=[],o=e[i.main];return o&&o[ji]?L(o,function(s,l){l!==ji&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=en(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return L(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=en(n),a=e[i.main];return a&&a[ji]};function r(n){var i=e[n.main];return(!i||!i[ji])&&(i=e[n.main]={},i[ji]=!0),i}}function ys(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&Te(i,l)>=0||a&&Te(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var RA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],OA=ys(RA),NA=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return OA(this,e,r)},t})(),sv=new eo(50);function BA(t){if(typeof t=="string"){var e=sv.get(t);return e&&e.image}else return t}function Wy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=sv.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Iu(e)&&a.pending.push(o)):(e=wn.loadImage(t,$y,$y),e.__zrImageSrc=t,sv.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function $y(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Iu(t){return t&&t.width&&t.height}var lv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function FA(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
47
+ `);a=Uy(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Yy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
48
+ `),t.isTruncated=s}function Uy(t,e,r,n){n=n||{};var i=V({},n);r=Q(r,"..."),i.maxIterations=Q(n.maxIterations,2);var a=i.minChar=Q(n.minChar,0),o=i.fontMeasureInfo=Kr(e),s=o.asciiCharWidth;i.placeholder=Q(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=jr(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function Yy(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=jr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?zA(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=jr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function zA(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=Sy(r,t.charCodeAt(i));return i}function HA(t,e,r,n){var i=fv(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",h=xu(u),v=Q(e.lineHeight,h),c=e.lineOverflow==="truncate",d=!1,m=e.width;m==null&&r!=null&&(m=r-s);var p=e.height;p==null&&n!=null&&(p=n-l);var g;m!=null&&(a==="break"||a==="breakAll")?g=i?qy(i,e.font,m,a==="breakAll",0).lines:[]:g=i?i.split(`
49
+ `):[];var y=g.length*v;if(p==null&&(p=y),y>p&&c){var _=Math.floor(p/v);d=d||g.length>_,g=g.slice(0,_),y=g.length*v}if(i&&f&&m!=null)for(var b=Uy(m,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},w=0;w<g.length;w++)Yy(S,g[w],b),g[w]=S.textLine,d=d||S.isTruncated;for(var T=p,x=0,D=Kr(u),w=0;w<g.length;w++)x=Math.max(jr(D,g[w]),x);m==null&&(m=x);var A=m;return T+=l,A+=s,{lines:g,height:p,outerWidth:A,outerHeight:T,lineHeight:v,calculatedLineHeight:h,contentWidth:x,contentHeight:y,width:m,isTruncated:d}}var GA=(function(){function t(){}return t})(),Xy=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),VA=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function WA(t,e,r,n,i){var a=new VA,o=fv(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var h=e.height;h==null&&n!=null&&(h=n-u);for(var v=e.overflow,c=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=lv.lastIndex=0,m;(m=lv.exec(o))!=null;){var p=m.index;p>d&&uv(a,o.substring(d,p),e,c),uv(a,m[2],e,c,m[1]),d=lv.lastIndex}d<o.length&&uv(a,o.substring(d,o.length),e,c);var g=[],y=0,_=0,b=v==="truncate",S=e.lineOverflow==="truncate",w={};function T(it,_t,Be){it.width=_t,it.lineHeight=Be,y+=Be,_=Math.max(_,_t)}e:for(var x=0;x<a.lines.length;x++){for(var D=a.lines[x],A=0,C=0,k=0;k<D.tokens.length;k++){var M=D.tokens[k],P=M.styleName&&e.rich[M.styleName]||{},I=M.textPadding=P.padding,O=I?I[1]+I[3]:0,G=M.font=P.font||e.font;M.contentHeight=xu(G);var N=Q(P.height,M.contentHeight);if(M.innerHeight=N,I&&(N+=I[0]+I[2]),M.height=N,M.lineHeight=Hi(P.lineHeight,e.lineHeight,N),M.align=P&&P.align||i,M.verticalAlign=P&&P.verticalAlign||"middle",S&&h!=null&&y+M.lineHeight>h){var B=a.lines.length;k>0?(D.tokens=D.tokens.slice(0,k),T(D,C,A),a.lines=a.lines.slice(0,x+1)):a.lines=a.lines.slice(0,x),a.isTruncated=a.isTruncated||a.lines.length<B;break e}var H=P.width,z=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")M.percentWidth=H,g.push(M),M.contentWidth=jr(Kr(G),M.text);else{if(z){var F=P.backgroundColor,W=F&&F.image;W&&(W=BA(W),Iu(W)&&(M.width=Math.max(M.width,W.width*N/W.height)))}var J=b&&f!=null?f-C:null;J!=null&&J<M.width?!z||J<O?(M.text="",M.width=M.contentWidth=0):(FA(w,M.text,J-O,G,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=jr(Kr(G),M.text)):M.contentWidth=jr(Kr(G),M.text)}M.width+=O,C+=M.width,P&&(A=Math.max(A,M.lineHeight))}T(D,C,A)}a.outerWidth=a.width=Q(f,_),a.outerHeight=a.height=Q(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var x=0;x<g.length;x++){var M=g[x],we=M.percentWidth;M.width=parseInt(we,10)/100*a.width}return a}function uv(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Qn(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
50
+ `),u=!0),n.accumWidth=d}else{var m=qy(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+c,h=m.linesWidths,f=m.lines}}f||(f=e.split(`
51
+ `));for(var p=Kr(l),g=0;g<f.length;g++){var y=f[g],_=new GA;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[g]:jr(p,y),!g&&!u){var b=(s[s.length-1]||(s[0]=new Xy)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new Xy([_]))}}function $A(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var UA=qn(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function YA(t){return $A(t)?!!UA[t]:!0}function qy(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=Kr(e),v=0;v<t.length;v++){var c=t.charAt(v);if(c===`
52
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Sy(h,c.charCodeAt(0)),m=n?!1:!YA(c);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(m?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=d)):m?(a.push(l),o.push(u),l=c,u=d):(a.push(c),o.push(d));continue}f+=d,m?(l+=c,u+=d):(l&&(s+=l,l="",u=0),s+=c)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Zy(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;fe.set(Ky,io(r,o,i),Zi(n,s,a),o,s),fe.intersect(e,Ky,null,jy);var l=jy.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=io(l.x,l.width,i,!0),t.baseY=Zi(l.y,l.height,a,!0)}}var Ky=new fe(0,0,0,0),jy={outIntersectRect:{},clamp:!0};function fv(t){return t!=null?t+="":t=""}function XA(t){var e=fv(t.text),r=t.font,n=jr(Kr(r),e),i=xu(r);return hv(t,n,i,null)}function hv(t,e,r,n){var i=new fe(io(t.x||0,e,t.textAlign),Zi(t.y||0,r,t.textBaseline),e,r),a=n??(Qy(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Qy(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var cv="__zr_style_"+Math.round(Math.random()*10),Qi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qi[cv]=!0;var Jy=["z","z2","invisible"],qA=["invisible"],_s=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=We(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ZA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new fe(0,0,0,0)),n?fe.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new fe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:V(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ss,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ss)},e.prototype.styleUpdated=function(){this.__dirty&=~ss},e.prototype.createStyle=function(r){return tu(Qi,r)},e.prototype.useStyle=function(r){r[cv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[cv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Jy)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=We(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=We(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?qA:Jy,v=0;v<m.length;v++){var c=m[v];n&&n[c]!=null?this[c]=n[c]:l&&i[c]!=null&&(this[c]=i[c])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return V(r,n),r},e.prototype.getAnimationStyleProps=function(){return Pu},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ut|ss})(),e})(Du),vv=new fe(0,0,0,0),dv=new fe(0,0,0,0);function ZA(t,e,r){return vv.copy(t.getBoundingRect()),t.transform&&vv.applyTransform(t.transform),dv.width=e,dv.height=r,!vv.intersect(dv)}var hr=Math.min,cr=Math.max,pv=Math.sin,gv=Math.cos,Ji=Math.PI*2,Eu=Ya(),Ru=Ya(),Ou=Ya();function e0(t,e,r,n,i,a){i[0]=hr(t,r),i[1]=hr(e,n),a[0]=cr(t,r),a[1]=cr(e,n)}var t0=[],r0=[];function KA(t,e,r,n,i,a,o,s,l,u){var f=ey,h=dt,v=f(t,r,i,o,t0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(t,r,i,o,t0[c]);l[0]=hr(d,l[0]),u[0]=cr(d,u[0])}v=f(e,n,a,s,r0);for(var c=0;c<v;c++){var m=h(e,n,a,s,r0[c]);l[1]=hr(m,l[1]),u[1]=cr(m,u[1])}l[0]=hr(t,l[0]),u[0]=cr(t,u[0]),l[0]=hr(o,l[0]),u[0]=cr(o,u[0]),l[1]=hr(e,l[1]),u[1]=cr(e,u[1]),l[1]=hr(s,l[1]),u[1]=cr(s,u[1])}function jA(t,e,r,n,i,a,o,s){var l=ry,u=Ft,f=cr(hr(l(t,r,i),1),0),h=cr(hr(l(e,n,a),1),0),v=u(t,r,i,f),c=u(e,n,a,h);o[0]=hr(t,i,v),o[1]=hr(e,a,c),s[0]=cr(t,i,v),s[1]=cr(e,a,c)}function QA(t,e,r,n,i,a,o,s,l){var u=qa,f=Za,h=Math.abs(i-a);if(h%Ji<1e-4&&h>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Eu[0]=gv(i)*r+t,Eu[1]=pv(i)*n+e,Ru[0]=gv(a)*r+t,Ru[1]=pv(a)*n+e,u(s,Eu,Ru),f(l,Eu,Ru),i=i%Ji,i<0&&(i=i+Ji),a=a%Ji,a<0&&(a=a+Ji),i>a&&!o?a+=Ji:i<a&&o&&(i+=Ji),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(Ou[0]=gv(c)*r+t,Ou[1]=pv(c)*n+e,u(s,Ou,s),f(l,Ou,l))}var Ae={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ea=[],ta=[],tn=[],Jn=[],rn=[],nn=[],mv=Math.min,yv=Math.max,ra=Math.cos,na=Math.sin,Dn=Math.abs,_v=Math.PI,ei=_v*2,bv=typeof Float32Array<"u",bs=[];function wv(t){var e=Math.round(t/_v*1e8)/1e8;return e%2*_v}function n0(t,e){var r=wv(t[0]);r<0&&(r+=ei);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=ei?i=r+ei:e&&r-i>=ei?i=r-ei:!e&&r>i?i=r+(ei-wv(r-i)):e&&r<i&&(i=r-(ei-wv(i-r))),t[0]=r,t[1]=i}var ia=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Dn(n/wu/e)||0,this._uy=Dn(n/wu/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ae.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Dn(e-this._xi),i=Dn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Ae.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Ae.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Ae.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),bs[0]=i,bs[1]=a,n0(bs,o),i=bs[0],a=bs[1];var s=a-i;return this.addData(Ae.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=ra(a)*n+e,this._yi=na(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Ae.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ae.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&bv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(bv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,bv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){tn[0]=tn[1]=rn[0]=rn[1]=Number.MAX_VALUE,Jn[0]=Jn[1]=nn[0]=nn[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Ae.M:r=i=e[o++],n=a=e[o++],rn[0]=i,rn[1]=a,nn[0]=i,nn[1]=a;break;case Ae.L:e0(r,n,e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Ae.C:KA(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Ae.Q:jA(r,n,e[o++],e[o++],e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Ae.A:var u=e[o++],f=e[o++],h=e[o++],v=e[o++],c=e[o++],d=e[o++]+c;o+=1;var m=!e[o++];l&&(i=ra(c)*h+u,a=na(c)*v+f),QA(u,f,h,v,c,d,m,rn,nn),r=ra(d)*h+u,n=na(d)*v+f;break;case Ae.R:i=r=e[o++],a=n=e[o++];var p=e[o++],g=e[o++];e0(i,a,i+p,a+g,rn,nn);break;case Ae.Z:r=i,n=a;break}qa(tn,tn,rn),Za(Jn,Jn,nn)}return o===0&&(tn[0]=tn[1]=Jn[0]=Jn[1]=0),new fe(tn[0],tn[1],Jn[0]-tn[0],Jn[1]-tn[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<r;){var c=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var m=-1;switch(c){case Ae.M:a=s=e[v++],o=l=e[v++];break;case Ae.L:{var p=e[v++],g=e[v++],y=p-a,_=g-o;(Dn(y)>n||Dn(_)>i||v===r-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break}case Ae.C:{var b=e[v++],S=e[v++],p=e[v++],g=e[v++],w=e[v++],T=e[v++];m=mD(a,o,b,S,p,g,w,T,10),a=w,o=T;break}case Ae.Q:{var b=e[v++],S=e[v++],p=e[v++],g=e[v++];m=bD(a,o,b,S,p,g,10),a=p,o=g;break}case Ae.A:var x=e[v++],D=e[v++],A=e[v++],C=e[v++],k=e[v++],M=e[v++],P=M+k;v+=1,d&&(s=ra(k)*A+x,l=na(k)*C+D),m=yv(A,C)*mv(ei,Math.abs(M)),a=ra(P)*A+x,o=na(P)*C+D;break;case Ae.R:{s=a=e[v++],l=o=e[v++];var I=e[v++],O=e[v++];m=I*2+O*2;break}case Ae.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[h++]=m,f+=m)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=r<1,d,m,p=0,g=0,y,_=0,b,S;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=r*m,!y)))e:for(var w=0;w<o;){var T=n[w++],x=w===1;switch(x&&(u=n[w],f=n[w+1],s=u,l=f),T!==Ae.L&&_>0&&(e.lineTo(b,S),_=0),T){case Ae.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case Ae.L:{h=n[w++],v=n[w++];var D=Dn(h-u),A=Dn(v-f);if(D>i||A>a){if(c){var C=d[g++];if(p+C>y){var k=(y-p)/C;e.lineTo(u*(1-k)+h*k,f*(1-k)+v*k);break e}p+=C}e.lineTo(h,v),u=h,f=v,_=0}else{var M=D*D+A*A;M>_&&(b=h,S=v,_=M)}break}case Ae.C:{var P=n[w++],I=n[w++],O=n[w++],G=n[w++],N=n[w++],B=n[w++];if(c){var C=d[g++];if(p+C>y){var k=(y-p)/C;uu(u,P,O,N,k,ea),uu(f,I,G,B,k,ta),e.bezierCurveTo(ea[1],ta[1],ea[2],ta[2],ea[3],ta[3]);break e}p+=C}e.bezierCurveTo(P,I,O,G,N,B),u=N,f=B;break}case Ae.Q:{var P=n[w++],I=n[w++],O=n[w++],G=n[w++];if(c){var C=d[g++];if(p+C>y){var k=(y-p)/C;fu(u,P,O,k,ea),fu(f,I,G,k,ta),e.quadraticCurveTo(ea[1],ta[1],ea[2],ta[2]);break e}p+=C}e.quadraticCurveTo(P,I,O,G),u=O,f=G;break}case Ae.A:var H=n[w++],z=n[w++],F=n[w++],W=n[w++],J=n[w++],we=n[w++],it=n[w++],_t=!n[w++],Be=F>W?F:W,Xe=Dn(F-W)>.001,et=J+we,ae=!1;if(c){var C=d[g++];p+C>y&&(et=J+we*(y-p)/C,ae=!0),p+=C}if(Xe&&e.ellipse?e.ellipse(H,z,F,W,it,J,et,_t):e.arc(H,z,Be,J,et,_t),ae)break e;x&&(s=ra(J)*F+H,l=na(J)*W+z),u=ra(et)*F+H,f=na(et)*W+z;break;case Ae.R:s=u=n[w],l=f=n[w+1],h=n[w++],v=n[w++];var de=n[w++],cn=n[w++];if(c){var C=d[g++];if(p+C>y){var ct=y-p;e.moveTo(h,v),e.lineTo(h+mv(ct,de),v),ct-=de,ct>0&&e.lineTo(h+de,v+mv(ct,cn)),ct-=cn,ct>0&&e.lineTo(h+yv(de-ct,0),v+cn),ct-=de,ct>0&&e.lineTo(h,v+yv(cn-ct,0));break e}p+=C}e.rect(h,v,de,cn);break;case Ae.Z:if(c){var C=d[g++];if(p+C>y){var k=(y-p)/C;e.lineTo(u*(1-k)+s*k,f*(1-k)+l*k);break e}p+=C}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ae,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function so(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function JA(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>a+h&&f>s+h||f<e-h&&f<n-h&&f<a-h&&f<s-h||u>t+h&&u>r+h&&u>i+h&&u>o+h||u<t-h&&u<r-h&&u<i-h&&u<o-h)return!1;var v=gD(t,e,r,n,i,a,o,s,u,f);return v<=h/2}function eM(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=_D(t,e,r,n,i,a,s,l);return f<=u/2}var i0=Math.PI*2;function Nu(t){return t%=i0,t<0&&(t+=i0),t}var ws=Math.PI*2;function tM(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%ws<1e-4)return!0;if(a){var h=n;n=Nu(i),i=Nu(h)}else n=Nu(n),i=Nu(i);n>i&&(i+=ws);var v=Math.atan2(l,s);return v<0&&(v+=ws),v>=n&&v<=i||v+ws>=n&&v+ws<=i}function aa(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var ti=ia.CMD,oa=Math.PI*2,rM=1e-4;function nM(t,e){return Math.abs(t-e)<rM}var At=[-1,-1,-1],vr=[-1,-1];function iM(){var t=vr[0];vr[0]=vr[1],vr[1]=t}function aM(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=lu(e,n,a,s,u,At);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,m=0;m<f;m++){var p=At[m],g=p===0||p===1?.5:1,y=dt(t,r,i,o,p);y<l||(v<0&&(v=ey(e,n,a,s,vr),vr[1]<vr[0]&&v>1&&iM(),c=dt(e,n,a,s,vr[0]),v>1&&(d=dt(e,n,a,s,vr[1]))),v===2?p<vr[0]?h+=c<e?g:-g:p<vr[1]?h+=d<c?g:-g:h+=s<d?g:-g:p<vr[0]?h+=c<e?g:-g:h+=s<c?g:-g)}return h}function oM(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=yD(e,n,a,s,At);if(l===0)return 0;var u=ry(e,n,a);if(u>=0&&u<=1){for(var f=0,h=Ft(e,n,a,u),v=0;v<l;v++){var c=At[v]===0||At[v]===1?.5:1,d=Ft(t,r,i,At[v]);d<o||(At[v]<u?f+=h<e?c:-c:f+=a<h?c:-c)}return f}else{var c=At[0]===0||At[0]===1?.5:1,d=Ft(t,r,i,At[0]);return d<o?0:a<e?c:-c}}function sM(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);At[0]=-l,At[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=oa-1e-4){n=0,i=oa;var f=a?1:-1;return o>=At[0]+t&&o<=At[1]+t?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=oa,i+=oa);for(var v=0,c=0;c<2;c++){var d=At[c];if(d+t>o){var m=Math.atan2(s,d),f=a?1:-1;m<0&&(m=oa+m),(m>=n&&m<=i||m+oa>=n&&m+oa<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),v+=f)}}return v}function a0(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var m=a[d++],p=d===1;switch(m===ti.M&&d>1&&(r||(s+=aa(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),m){case ti.M:f=a[d++],h=a[d++],l=f,u=h;break;case ti.L:if(r){if(so(l,u,a[d],a[d+1],e,n,i))return!0}else s+=aa(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case ti.C:if(r){if(JA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=aM(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case ti.Q:if(r){if(eM(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=oM(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case ti.A:var g=a[d++],y=a[d++],_=a[d++],b=a[d++],S=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(S)*_+g,c=Math.sin(S)*b+y,p?(f=v,h=c):s+=aa(l,u,v,c,n,i);var x=(n-g)*b/_+g;if(r){if(tM(g,y,b,S,S+w,T,e,x,i))return!0}else s+=sM(g,y,b,S,S+w,T,x,i);l=Math.cos(S+w)*_+g,u=Math.sin(S+w)*b+y;break;case ti.R:f=l=a[d++],h=u=a[d++];var D=a[d++],A=a[d++];if(v=f+D,c=h+A,r){if(so(f,h,v,h,e,n,i)||so(v,h,v,c,e,n,i)||so(v,c,f,c,e,n,i)||so(f,c,f,h,e,n,i))return!0}else s+=aa(v,h,v,c,n,i),s+=aa(f,c,f,h,n,i);break;case ti.Z:if(r){if(so(l,u,f,h,e,n,i))return!0}else s+=aa(l,u,f,h,n,i);l=f,u=h;break}}return!r&&!nM(u,h)&&(s+=aa(l,u,f,h,n,i)||0),s!==0}function lM(t,e,r){return a0(t,0,!1,e,r)}function uM(t,e,r,n){return a0(t,e,!0,r,n)}var o0=Me({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qi),fM={style:Me({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pu.style)},Sv=cs.concat(["invisible","culling","z","z2","zlevel","parent"]),Ie=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Sv.length;++s)i[Sv[s]]=this[Sv[s]];i.__dirty|=Ut}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=We(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?V(this.style,s):this.useStyle(s):o==="shape"?V(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(X(r)){var n=vu(r,0);return n>.5?Vc:n>.2?GD:Wc}else if(r)return Wc}return Vc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=vu(r,0)<Gc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Qa},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new ia(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Qa)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uM(s,l/u,r,n)))return!0}if(this.hasFill())return lM(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Qa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:V(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Qa)},e.prototype.createStyle=function(r){return tu(o0,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=V({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=V({},i.shape),V(u,n.shape)):(u=V({},a?this.shape:i.shape),V(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=We(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return fM},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){Oe(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return pe(r.style)},o.prototype.getDefaultShape=function(){return pe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ut|ss|Qa})(),e})(_s),hM=Me({strokeFirst:!0,font:Xn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o0),Bu=(function(t){Oe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Qy(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return tu(hM,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=XA(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(_s);Bu.prototype.type="tspan";var cM=Me({x:0,y:0},Qi),vM={style:Me({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pu.style)};function dM(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ri=(function(t){Oe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return tu(cM,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=dM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vM},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new fe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(_s);ri.prototype.type="image";function pM(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var lo=Math.round;function s0(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(lo(n*2)===lo(i*2)&&(t.x1=t.x2=sa(n,s,!0)),lo(a*2)===lo(o*2)&&(t.y1=t.y2=sa(a,s,!0))),t}}function l0(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=sa(n,s,!0),t.y=sa(i,s,!0),t.width=Math.max(sa(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(sa(i+o,s,!1)-t.y,o===0?0:1)),t}}function sa(t,e,r){if(!e)return t;var n=lo(t*2);return(n+lo(e))%2===0?n/2:(n+(r?1:-1))/2}var gM=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),mM={},Ze=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new gM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=l0(mM,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?pM(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ie);Ze.prototype.type="rect";var u0={fill:"#000"},f0=2,an={},yM={style:Me({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},Pu.style)},gt=(function(t){Oe(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=u0,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,xM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new fe(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||u0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return V(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=We(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},V(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return yM},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Xn,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Zy(an,a.overflowRect,o,s,l,u),o=an.baseX,s=an.baseY;var f=m0(r),h=HA(f,r,an.outerWidth,an.outerHeight),v=xv(r),c=!!r.backgroundColor,d=h.outerHeight,m=h.outerWidth,p=h.lines,g=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=Zi(s,h.contentHeight,u);if(v||i){var b=io(o,m,l),S=Zi(s,d,u);v&&this._renderBackground(r,r,b,S,m,d)}_+=g/2,i&&(y=g0(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,x=!1,D=p0("fill"in r?r.fill:(x=!0,a.fill)),A=d0("stroke"in r?r.stroke:!c&&(!a.autoStroke||x)?(w=f0,T=!0,a.stroke):null),C=r.textShadowBlur>0,k=0;k<p.length;k++){var M=this._getOrCreateChild(Bu),P=M.createStyle();M.useStyle(P),P.text=p[k],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,C&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=A,P.fill=D,A&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,c0(P,r),_+=g,M.setBoundingRect(hv(P,h.contentWidth,h.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Zy(an,n.overflowRect,o,s,i,a),o=an.baseX,s=an.baseY;var l=m0(r),u=WA(l,r,an.outerWidth,an.outerHeight,i),f=u.width,h=u.outerWidth,v=u.outerHeight,c=r.padding;this.isTruncated=!!u.isTruncated;var d=io(o,h,i),m=Zi(s,v,a),p=d,g=m;c&&(p+=c[3],g+=c[0]);var y=p+f;xv(r)&&this._renderBackground(r,r,d,m,h,v);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var S=u.lines[b],w=S.tokens,T=w.length,x=S.lineHeight,D=S.width,A=0,C=p,k=y,M=T-1,P=void 0;A<T&&(P=w[A],!P.align||P.align==="left");)this._placeToken(P,r,x,g,C,"left",_),D-=P.width,C+=P.width,A++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,r,x,g,k,"right",_),D-=P.width,k-=P.width,M--;for(C+=(f-(C-p)-(y-k)-D)/2;A<=M;)P=w[A],this._placeToken(P,r,x,g,C+P.width/2,"center",_),C+=P.width,A++;g+=x}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var v=!r.isLineHolder&&xv(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var c=!!u.backgroundColor,d=r.textPadding;d&&(o=g0(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var m=this._getOrCreateChild(Bu),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,b=!1,S=p0("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),w=d0("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!g.autoStroke||y)?(_=f0,b=!0,g.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,T&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Xn,p.opacity=Hi(u.opacity,n.opacity,1),c0(p,u),w&&(p.lineWidth=Hi(u.lineWidth,n.lineWidth,_),p.lineDash=Q(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S),m.setBoundingRect(hv(p,r.contentWidth,r.contentHeight,b?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,v=l&&!h,c=r.borderRadius,d=this,m,p;if(v||r.lineHeight||u&&f){m=this._getOrCreateChild(Ze),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=c,m.dirtyShape()}if(v){var y=m.style;y.fill=l||null,y.fillOpacity=Q(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(ri),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=m.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Q(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(m||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Hi(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return SM(r)&&(n=[r.fontStyle,r.fontWeight,wM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Yr(n)||r.textFont||r.font},e})(_s),_M={left:!0,right:1,center:1},bM={top:1,bottom:1,middle:1},h0=["fontStyle","fontWeight","fontSize","fontFamily"];function wM(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Zh+"px":t+"px"}function c0(t,e){for(var r=0;r<h0.length;r++){var n=h0[r],i=e[n];i!=null&&(t[n]=i)}}function SM(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function xM(t){return v0(t),L(t.rich,v0),t}function v0(t){if(t){t.font=gt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||_M[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||bM[r]?r:"top";var n=t.padding;n&&(t.padding=tc(t.padding))}}function d0(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function p0(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function g0(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function m0(t){var e=t.text;return e!=null&&(e+=""),e}function xv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var be=Ue(),TM=function(t,e,r,n){if(n){var i=be(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=be(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},y0=1,_0={},b0=Ue(),Tv=Ue(),Cv=0,Fu=1,zu=2,dr=["emphasis","blur","select"],Hu=["normal","emphasis","blur","select"],CM=10,DM=9,la="highlight",Gu="downplay",Vu="select",Dv="unselect",Wu="toggleSelect",Av="selectchanged";function uo(t){return t!=null&&t!=="none"}function $u(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function w0(t){$u(t,"emphasis",zu)}function S0(t){t.hoverState===zu&&$u(t,"normal",Cv)}function Mv(t){$u(t,"blur",Fu)}function x0(t){t.hoverState===Fu&&$u(t,"normal",Cv)}function AM(t){t.selected=!0}function MM(t){t.selected=!1}function T0(t,e,r){e(t,r)}function An(t,e,r){T0(t,e,r),t.isGroup&&t.traverse(function(n){T0(n,e,r)})}function C0(t,e){switch(e){case"emphasis":t.hoverState=zu;break;case"normal":t.hoverState=Cv;break;case"blur":t.hoverState=Fu;break;case"select":t.selected=!0}}function LM(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function kM(t,e,r,n){var i=r&&Te(r,"select")>=0,a=!1;if(t instanceof Ie){var o=b0(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(uo(s)||uo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=V({},n),u=V({},u),u.fill=s):!uo(u.fill)&&uo(s)?(a=!0,n=V({},n),u=V({},u),u.fill=uy(s)):!uo(u.stroke)&&uo(l)&&(a||(n=V({},n),u=V({},u)),u.stroke=uy(l)),n.style=u}}if(n&&n.z2==null){a||(n=V({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??CM)}return n}function IM(t,e,r){if(r&&r.z2==null){r=V({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??DM)}return r}function PM(t,e,r){var n=Te(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:LM(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=V({},r),o=V({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Lv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return kM(this,t,e,r);if(t==="blur")return PM(this,t,r);if(t==="select")return IM(this,t,r)}return r}function EM(t){t.stateProxy=Lv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Lv),r&&(r.stateProxy=Lv)}function D0(t,e){!I0(t,e)&&!t.__highByOuter&&An(t,w0)}function A0(t,e){!I0(t,e)&&!t.__highByOuter&&An(t,S0)}function Uu(t,e){t.__highByOuter|=1<<(e||0),An(t,w0)}function Yu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&An(t,S0)}function RM(t){An(t,Mv)}function M0(t){An(t,x0)}function L0(t){An(t,AM)}function k0(t){An(t,MM)}function I0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function P0(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Tv(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){x0(u)}),s&&r.push(a)),o.isBlured=!1}),L(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function kv(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&M0(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||Mv(p)}),Rt(e))a(u.getData(),e);else if(K(e))for(var d=We(e),m=0;m<d.length;m++)a(u.getData(d[m]),e[d[m]]);l.push(u),Tv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Iv(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Tv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mv(a)})}}}function OM(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Ki(i,e);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=be(o);kv(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);f!=null&&kv(n,f,h,r)}}}function Pv(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(be(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function NM(t,e,r){var n=be(t),i=Pv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Iv(n.componentMainType,n.componentIndex,r),L(a,function(s){return D0(s,e)})):(kv(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Iv(n.componentMainType,n.componentIndex,r),D0(t,e))}function BM(t,e,r){P0(r);var n=be(t),i=Pv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?L(i,function(a){return A0(a,e)}):A0(t,e)}function FM(t,e,r){if(Ov(e)){var n=e.dataType,i=t.getData(n),a=Ki(i,e);U(a)||(a=[a]),t[e.type===Wu?"toggleSelect":e.type===Vu?"select":"unselect"](a,n)}}function E0(t){var e=t.getAllData();L(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?L0(a):k0(a)})})}function zM(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();L(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Ev(t,e,r){O0(t,!0),An(t,EM),GM(t,e,r)}function HM(t){O0(t,!1)}function Ss(t,e,r,n){n?HM(t):Ev(t,e,r)}function GM(t,e,r){var n=be(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var R0=["emphasis","blur","select"],VM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xu(t,e,r,n){r=r||"itemStyle";for(var i=0;i<R0.length;i++){var a=R0[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[VM[r]]()}}function O0(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Rv(t){return!!(t&&t.__highDownDispatcher)}function WM(t){var e=_0[t];return e==null&&y0<=32&&(e=_0[t]=y0++),e}function Ov(t){var e=t.type;return e===Vu||e===Dv||e===Wu}function N0(t){var e=t.type;return e===la||e===Gu}function $M(t){var e=b0(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var fo=ia.CMD,UM=[[],[],[]],B0=Math.sqrt,YM=Math.atan2;function XM(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=fo.M,h=fo.C,v=fo.L,c=fo.R,d=fo.A,m=fo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case m:a=2;break;case d:var p=e[4],g=e[5],y=B0(e[0]*e[0]+e[1]*e[1]),_=B0(e[2]*e[2]+e[3]*e[3]),b=YM(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case c:u[0]=r[o++],u[1]=r[o++],or(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],or(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=UM[l];S[0]=r[o++],S[1]=r[o++],or(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Nv=Math.sqrt,qu=Math.sin,Zu=Math.cos,xs=Math.PI;function F0(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Bv(t,e){return(t[0]*e[0]+t[1]*e[1])/(F0(t)*F0(e))}function z0(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Bv(t,e))}function H0(t,e,r,n,i,a,o,s,l,u,f){var h=l*(xs/180),v=Zu(h)*(t-r)/2+qu(h)*(e-n)/2,c=-1*qu(h)*(t-r)/2+Zu(h)*(e-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Nv(d),s*=Nv(d));var m=(i===a?-1:1)*Nv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=m*o*c/s,g=m*-s*v/o,y=(t+r)/2+Zu(h)*p-qu(h)*g,_=(e+n)/2+qu(h)*p+Zu(h)*g,b=z0([1,0],[(v-p)/o,(c-g)/s]),S=[(v-p)/o,(c-g)/s],w=[(-1*v-p)/o,(-1*c-g)/s],T=z0(S,w);if(Bv(S,w)<=-1&&(T=xs),Bv(S,w)>=1&&(T=0),T<0){var x=Math.round(T/xs*1e6)/1e6;T=xs*2+x%2*xs}f.addData(u,y,_,o,s,b,T,h,a)}var qM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ZM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KM(t){var e=new ia;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=ia.CMD,l=t.match(qM);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(ZM)||[],d=c.length,m=0;m<d;m++)c[m]=parseFloat(c[m]);for(var p=0;p<d;){var g=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,T=void 0,x=r,D=n,A=void 0,C=void 0;switch(h){case"l":r+=c[p++],n+=c[p++],v=s.L,e.addData(v,r,n);break;case"L":r=c[p++],n=c[p++],v=s.L,e.addData(v,r,n);break;case"m":r+=c[p++],n+=c[p++],v=s.M,e.addData(v,r,n),i=r,a=n,h="l";break;case"M":r=c[p++],n=c[p++],v=s.M,e.addData(v,r,n),i=r,a=n,h="L";break;case"h":r+=c[p++],v=s.L,e.addData(v,r,n);break;case"H":r=c[p++],v=s.L,e.addData(v,r,n);break;case"v":n+=c[p++],v=s.L,e.addData(v,r,n);break;case"V":n=c[p++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,c[p++],c[p++],c[p++],c[p++],c[p++],c[p++]),r=c[p-2],n=c[p-1];break;case"c":v=s.C,e.addData(v,c[p++]+r,c[p++]+n,c[p++]+r,c[p++]+n,c[p++]+r,c[p++]+n),r+=c[p-2],n+=c[p-1];break;case"S":g=r,y=n,A=e.len(),C=e.data,o===s.C&&(g+=r-C[A-4],y+=n-C[A-3]),v=s.C,x=c[p++],D=c[p++],r=c[p++],n=c[p++],e.addData(v,g,y,x,D,r,n);break;case"s":g=r,y=n,A=e.len(),C=e.data,o===s.C&&(g+=r-C[A-4],y+=n-C[A-3]),v=s.C,x=r+c[p++],D=n+c[p++],r+=c[p++],n+=c[p++],e.addData(v,g,y,x,D,r,n);break;case"Q":x=c[p++],D=c[p++],r=c[p++],n=c[p++],v=s.Q,e.addData(v,x,D,r,n);break;case"q":x=c[p++]+r,D=c[p++]+n,r+=c[p++],n+=c[p++],v=s.Q,e.addData(v,x,D,r,n);break;case"T":g=r,y=n,A=e.len(),C=e.data,o===s.Q&&(g+=r-C[A-4],y+=n-C[A-3]),r=c[p++],n=c[p++],v=s.Q,e.addData(v,g,y,r,n);break;case"t":g=r,y=n,A=e.len(),C=e.data,o===s.Q&&(g+=r-C[A-4],y+=n-C[A-3]),r+=c[p++],n+=c[p++],v=s.Q,e.addData(v,g,y,r,n);break;case"A":_=c[p++],b=c[p++],S=c[p++],w=c[p++],T=c[p++],x=r,D=n,r=c[p++],n=c[p++],v=s.A,H0(x,D,r,n,w,T,_,b,S,v,e);break;case"a":_=c[p++],b=c[p++],S=c[p++],w=c[p++],T=c[p++],x=r,D=n,r+=c[p++],n+=c[p++],v=s.A,H0(x,D,r,n,w,T,_,b,S,v,e);break}}(h==="z"||h==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var G0=(function(t){Oe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Ie);function V0(t){return t.setData!=null}function W0(t,e){var r=KM(t),n=V({},e);return n.buildPath=function(i){var a=V0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){XM(r,i),this.dirtyShape()},n}function jM(t,e){return new G0(W0(t,e))}function QM(t,e){var r=W0(t,e),n=(function(i){Oe(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(G0);return n}function JM(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ie(e);return o.createPathProxy(),o.buildPath=function(s){if(V0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var eL=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Ku=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new eL},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ie);Ku.prototype.type="circle";var tL=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Fv=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new tL},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(Ie);Fv.prototype.type="ellipse";var $0=Math.PI,zv=$0*2,ua=Math.sin,ho=Math.cos,rL=Math.acos,wt=Math.atan2,U0=Math.abs,Ts=Math.sqrt,Cs=Math.max,on=Math.min,kr=1e-4;function nL(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,h=s-a,v=h*l-f*u;if(!(v*v<kr))return v=(f*(e-a)-h*(t-i))/v,[t+v*l,e+v*u]}function ju(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ts(s*s+l*l),f=u*l,h=-u*s,v=t+f,c=e+h,d=r+f,m=n+h,p=(v+d)/2,g=(c+m)/2,y=d-v,_=m-c,b=y*y+_*_,S=i-a,w=v*m-d*c,T=(_<0?-1:1)*Ts(Cs(0,S*S*b-w*w)),x=(w*_-y*T)/b,D=(-w*y-_*T)/b,A=(w*_+y*T)/b,C=(-w*y+_*T)/b,k=x-p,M=D-g,P=A-p,I=C-g;return k*k+M*M>P*P+I*I&&(x=A,D=C),{cx:x,cy:D,x0:-f,y0:-h,x1:x*(i/S-1),y1:D*(i/S-1)}}function iL(t){var e;if(U(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function aL(t,e){var r,n=Cs(e.r,0),i=Cs(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=U0(u-l),d=c>zv&&c%zv;if(d>kr&&(c=d),!(n>kr))t.moveTo(f,h);else if(c>zv-kr)t.moveTo(f+n*ho(l),h+n*ua(l)),t.arc(f,h,n,l,u,!v),i>kr&&(t.moveTo(f+i*ho(u),h+i*ua(u)),t.arc(f,h,i,u,l,v));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,T=void 0,x=void 0,D=void 0,A=void 0,C=void 0,k=void 0,M=void 0,P=void 0,I=n*ho(l),O=n*ua(l),G=i*ho(u),N=i*ua(u),B=c>kr;if(B){var H=e.cornerRadius;H&&(r=iL(H),m=r[0],p=r[1],g=r[2],y=r[3]);var z=U0(n-i)/2;if(_=on(z,g),b=on(z,y),S=on(z,m),w=on(z,p),D=T=Cs(_,b),A=x=Cs(S,w),(T>kr||x>kr)&&(C=n*ho(u),k=n*ua(u),M=i*ho(l),P=i*ua(l),c<$0)){var F=nL(I,O,M,P,C,k,G,N);if(F){var W=I-F[0],J=O-F[1],we=C-F[0],it=k-F[1],_t=1/ua(rL((W*we+J*it)/(Ts(W*W+J*J)*Ts(we*we+it*it)))/2),Be=Ts(F[0]*F[0]+F[1]*F[1]);D=on(T,(n-Be)/(_t+1)),A=on(x,(i-Be)/(_t-1))}}}if(!B)t.moveTo(f+I,h+O);else if(D>kr){var Xe=on(g,D),et=on(y,D),ae=ju(M,P,I,O,n,Xe,v),de=ju(C,k,G,N,n,et,v);t.moveTo(f+ae.cx+ae.x0,h+ae.cy+ae.y0),D<T&&Xe===et?t.arc(f+ae.cx,h+ae.cy,D,wt(ae.y0,ae.x0),wt(de.y0,de.x0),!v):(Xe>0&&t.arc(f+ae.cx,h+ae.cy,Xe,wt(ae.y0,ae.x0),wt(ae.y1,ae.x1),!v),t.arc(f,h,n,wt(ae.cy+ae.y1,ae.cx+ae.x1),wt(de.cy+de.y1,de.cx+de.x1),!v),et>0&&t.arc(f+de.cx,h+de.cy,et,wt(de.y1,de.x1),wt(de.y0,de.x0),!v))}else t.moveTo(f+I,h+O),t.arc(f,h,n,l,u,!v);if(!(i>kr)||!B)t.lineTo(f+G,h+N);else if(A>kr){var Xe=on(m,A),et=on(p,A),ae=ju(G,N,C,k,i,-et,v),de=ju(I,O,M,P,i,-Xe,v);t.lineTo(f+ae.cx+ae.x0,h+ae.cy+ae.y0),A<x&&Xe===et?t.arc(f+ae.cx,h+ae.cy,A,wt(ae.y0,ae.x0),wt(de.y0,de.x0),!v):(et>0&&t.arc(f+ae.cx,h+ae.cy,et,wt(ae.y0,ae.x0),wt(ae.y1,ae.x1),!v),t.arc(f,h,i,wt(ae.cy+ae.y1,ae.cx+ae.x1),wt(de.cy+de.y1,de.cx+de.x1),v),Xe>0&&t.arc(f+de.cx,h+de.cy,Xe,wt(de.y1,de.x1),wt(de.y0,de.x0),!v))}else t.lineTo(f+G,h+N),t.arc(f,h,i,u,l,v)}t.closePath()}}}var oL=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),ni=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new oL},e.prototype.buildPath=function(r,n){aL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ie);ni.prototype.type="sector";var sL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Hv=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Ie);Hv.prototype.type="ring";function lL(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=t.length;v<c;v++)qa(f,f,t[v]),Za(h,h,t[v]);qa(f,f,n[0]),Za(h,h,n[1])}for(var v=0,c=t.length;v<c;v++){var d=t[v];if(r)l=t[v?v-1:c-1],u=t[(v+1)%c];else if(v===0||v===c-1){i.push(NC(t[v]));continue}else l=t[v-1],u=t[v+1];BC(a,u,l),ic(a,a,e);var m=ac(d,l),p=ac(d,u),g=m+p;g!==0&&(m/=g,p/=g),ic(o,a,-m),ic(s,a,p);var y=Im([],d,o),_=Im([],d,s);n&&(Za(y,y,f),qa(y,y,h),Za(_,_,f),qa(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Y0(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=lL(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var uL=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Gv=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new uL},e.prototype.buildPath=function(r,n){Y0(r,n,!0)},e})(Ie);Gv.prototype.type="polygon";var fL=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Ds=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fL},e.prototype.buildPath=function(r,n){Y0(r,n,!1)},e})(Ie);Ds.prototype.type="polyline";var hL={},cL=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),ii=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cL},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=s0(hL,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Ie);ii.prototype.type="line";var Ht=[],vL=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function X0(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Jm:dt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Jm:dt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?ty:Ft)(t.x1,t.cpx1,t.x2,e),(r?ty:Ft)(t.y1,t.cpy1,t.y2,e)]}var Vv=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vL},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||h==null?(v<1&&(fu(i,l,o,v,Ht),l=Ht[1],o=Ht[2],fu(a,u,s,v,Ht),u=Ht[1],s=Ht[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(uu(i,l,f,o,v,Ht),l=Ht[1],f=Ht[2],o=Ht[3],uu(a,u,h,s,v,Ht),u=Ht[1],h=Ht[2],s=Ht[3]),r.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(r){return X0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=X0(this.shape,r,!0);return HC(n,n)},e})(Ie);Vv.prototype.type="bezier-curve";var dL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Qu=(function(t){Oe(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,l,!u)},e})(Ie);Qu.prototype.type="arc";var pL=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ie.prototype.getBoundingRect.call(this)},e})(Ie),q0=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Z0=(function(t){Oe(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(q0),gL=(function(t){Oe(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(q0),Wv=Math.min,mL=Math.max,Ju=Math.abs,fa=[0,0],ha=[0,0],ft=Hm(),ef=ft.minTv,tf=ft.maxTv,K0=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new se;for(var n=0;n<2;n++)this._axes[n]=new se;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);se.sub(i[0],n[1],n[0]),se.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&se.set(r,0,0),ft.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!ft.negativeSize&&se.copy(r,i?ft.useDir?ft.dirMinTv:ef:tf),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,fa),e._getProjMinMaxOnAxis(o,r._corners,ha),ft.negativeSize||fa[1]<ha[0]||fa[0]>ha[1]){if(a=!1,ft.negativeSize||n)return a;var l=Ju(ha[0]-fa[1]),u=Ju(fa[0]-ha[1]);Wv(l,u)>tf.len()&&(l<u?se.scale(tf,s,-l*i):se.scale(tf,s,u*i))}else if(!n){var l=Ju(ha[0]-fa[1]),u=Ju(fa[0]-ha[1]);(ft.useDir||Wv(l,u)<ef.len())&&((l<u||!ft.bidirectional)&&(se.scale(ef,s,l*i),ft.useDir&&ft.calcDirMTV()),(l>=u||!ft.bidirectional)&&(se.scale(ef,s,-u*i),ft.useDir&&ft.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Wv(f,s),l=mL(f,l)}n[0]=s+ft.touchThreshold,n[1]=l-ft.touchThreshold,ft.negativeSize=n[1]<n[0]},t})(),yL=[],_L=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new fe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(yL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(_s),bL=Ue();function wL(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),ie(h)&&(h=h(r,i)),ie(u)&&(u=u(r));var v={duration:u||0,delay:h,easing:f};return v}else return null}function $v(t,e,r,n,i,a,o){var s=!1,l;ie(i)?(o=a,a=i,i=null):K(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=wL(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Mt(t,e,r,n,i,a){$v("update",t,e,r,n,i,a)}function pr(t,e,r,n,i,a){$v("enter",t,e,r,n,i,a)}function As(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function rf(t,e,r,n,i,a){As(t)||$v("leave",t,e,r,n,i,a)}function j0(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),rf(t,{style:{opacity:0}},e,r,n)}function Ms(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||j0(i,e,r,n)}):j0(t,e,r,n)}function Uv(t){bL(t).oldStyle=t.style}var Yv={},ai=["x","y"],co=["width","height"];function SL(t){return Ie.extend(t)}var xL=QM;function TL(t,e){return xL(t,e)}function Ir(t,e){Yv[t]=e}function CL(t){if(Yv.hasOwnProperty(t))return Yv[t]}function Xv(t,e,r,n){var i=jM(t,e);return r&&(n==="center"&&(r=J0(r,i.getBoundingRect())),e_(i,r)),i}function Q0(t,e,r){var n=new ri({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(J0(e,a))}}});return n}function J0(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var DL=JM;function e_(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ls(t,e){return s0(t,t,{lineWidth:e}),t}function AL(t,e){return l0(t,t,e),t}var ML=sa;function LL(t,e){for(var r=pc([]);t&&t!==e;)ts(r,t.getLocalTransform(),r),t=t.parent;return r}function qv(t,e,r){return e&&!Rt(e)&&(e=Yc.getLocalTransform(e)),r&&(e=rs([],e)),or([],t,e)}function kL(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Qr(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Qr(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=qv(a,e,r),Qr(a[0])>Qr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function t_(t){return!t.isGroup}function IL(t){return t.shape!=null}function r_(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){t_(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return IL(o)&&(s.shape=pe(o.shape)),s}var a=n(t);e.traverse(function(o){if(t_(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Mt(o,l,r,be(o).dataIndex)}}})}function PL(t,e){return j(t,function(r){var n=r[0];n=Yt(n,e.x),n=vs(n,e.x+e.width);var i=r[1];return i=Yt(i,e.y),i=vs(i,e.y+e.height),[n,i]})}function EL(t,e){var r=Yt(t.x,e.x),n=vs(t.x+t.width,e.x+e.width),i=Yt(t.y,e.y),a=vs(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Zv(t,e,r){var n=V({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Me(i,r),new ri(n)):Xv(t.replace("path://",""),n,r,"center")}function RL(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(n_(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function n_(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,h=s-a,v=Kv(f,h,l,u);if(OL(v))return!1;var c=t-i,d=e-a,m=Kv(c,d,l,u)/v;if(m<0||m>1)return!1;var p=Kv(c,d,f,h)/v;return!(p<0||p>1)}function Kv(t,e,r,n){return t*n-r*e}function OL(t){return t<=1e-6&&t>=-1e-6}function nf(t,e,r,n,i){return e==null||(ke(e)?Ne[0]=Ne[1]=Ne[2]=Ne[3]=e:(Ne[0]=e[0],Ne[1]=e[1],Ne[2]=e[2],Ne[3]=e[3]),n&&(Ne[0]=Yt(0,Ne[0]),Ne[1]=Yt(0,Ne[1]),Ne[2]=Yt(0,Ne[2]),Ne[3]=Yt(0,Ne[3])),r&&(Ne[0]=-Ne[0],Ne[1]=-Ne[1],Ne[2]=-Ne[2],Ne[3]=-Ne[3]),i_(t,Ne,"x","width",3,1,i&&i[0]||0),i_(t,Ne,"y","height",0,2,i&&i[1]||0)),t}var Ne=[0,0,0,0];function i_(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Yt(0,vs(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Qr(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function af(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=X(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&L(We(l),function(f){Mr(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=be(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Me({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function jv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function of(t,e){if(t)if(U(t))for(var r=0;r<t.length;r++)jv(t[r],e);else jv(t,e)}function Qv(t){return!t||Qr(t[1])<sf&&Qr(t[2])<sf||Qr(t[0])<sf&&Qr(t[3])<sf}var sf=1e-5;function ks(t,e){return t?fe.copy(t,e):e.clone()}function Jv(t,e){return e?Bm(t||xn(),e):void 0}function a_(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function NL(t){var e=-1/0,r=1/0;jv(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function o_(t,e,r){s_(t,e,r,-1/0)}function s_(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Yt(s_(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=Yt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Ir("circle",Ku),Ir("ellipse",Fv),Ir("sector",ni),Ir("ring",Hv),Ir("polygon",Gv),Ir("polyline",Ds),Ir("rect",Ze),Ir("line",ii),Ir("bezierCurve",Vv),Ir("arc",Qu);const BL=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qu,BezierCurve:Vv,BoundingRect:fe,Circle:Ku,CompoundPath:pL,Ellipse:Fv,Group:ut,Image:ri,IncrementalDisplayable:_L,Line:ii,LinearGradient:Z0,OrientedBoundingRect:K0,Path:Ie,Point:se,Polygon:Gv,Polyline:Ds,RadialGradient:gL,Rect:Ze,Ring:Hv,Sector:ni,Text:gt,WH:co,XY:ai,applyTransform:qv,calcZ2Range:NL,clipPointsByRect:PL,clipRectByRect:EL,createIcon:Zv,ensureCopyRect:ks,ensureCopyTransform:Jv,expandOrShrinkRect:nf,extendPath:TL,extendShape:SL,getShapeClass:CL,getTransform:LL,groupTransition:r_,initProps:pr,isBoundingRectAxisAligned:Qv,isElementRemoved:As,lineLineIntersect:n_,linePolygonIntersect:RL,makeImage:Q0,makePath:Xv,mergePath:DL,registerShape:Ir,removeElement:rf,removeElementWithFadeOut:Ms,resizePath:e_,retrieveZInfo:a_,setTooltipConfig:af,subPixelOptimize:ML,subPixelOptimizeLine:Ls,subPixelOptimizeRect:AL,transformDirection:kL,traverseElements:of,traverseUpdateZ:o_,updateProps:Mt},Symbol.toStringTag,{value:"Module"}));var lf={};function FL(t,e){for(var r=0;r<dr.length;r++){var n=dr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function l_(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ie(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<dr.length;u++){var f=dr[u],h=e[f];l[f]=Q(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Is(t,e,r,n){r=r||lf;for(var i=t instanceof gt,a=!1,o=0;o<Hu.length;o++){var s=e[Hu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new gt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=l_(r,e),f=e.normal,h=!!f.getShallow("show"),v=oi(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||t.setTextConfig(u_(f,r,!1));for(var o=0;o<dr.length;o++){var c=dr[o],s=e[c];if(s){var d=l.ensureState(c),m=!!Q(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=oi(s,n&&n[c],r,!0,!i),d.style.text=u[c],!i){var p=t.ensureState(c);p.textConfig=u_(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),r.enableTextSetter&&(uf(l).setLabelText=function(g){var y=l_(r,e,g);FL(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Ps(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<dr.length;n++){var i=dr[n];r[i]=t.getModel([i,e])}return r}function oi(t,e,r,n,i){var a={};return zL(a,t,r,n,i),e&&V(a,e),a}function u_(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Q(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function zL(t,e,r,n,i){r=r||lf;var a=e.ecModel,o=a&&a.option.textStyle,s=HL(e),l;if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var v=e.getModel(["rich",h]);v_(l[h]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var m=t,p=e.get("minMargin");if(p!=null)p=ke(p)?p/2:0,m.margin=[p,p,p,p],m.__marginType=vo.minMargin;else{var g=e.get("textMargin");g!=null&&(m.margin=tc(g),m.__marginType=vo.textMargin)}v_(t,e,o,null,null,r,n,i,!0,!1)}function HL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||lf).rich;if(r){e=e||{};for(var n=We(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var f_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],h_=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],c_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function v_(t,e,r,n,i,a,o,s,l,u){r=!o&&r||lf;var f=a&&a.inheritColor,h=e.getShallow("color"),v=e.getShallow("textBorderColor"),c=Q(e.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(h=h||r.color,v=v||r.textBorderColor),h!=null&&(t.fill=h),v!=null&&(t.stroke=v);var d=Q(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var m=Q(e.getShallow("textBorderType"),r.textBorderType);m!=null&&(t.lineDash=m);var p=Q(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&c==null&&!u&&(c=a&&a.defaultOpacity),c!=null&&(t.opacity=c),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<f_.length;g++){var y=f_[g],_=i!==!1&&n?Hi(e.getShallow(y),n.getShallow(y),r[y]):Q(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<h_.length;g++){var y=h_[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var g=0;g<c_.length;g++){var y=c_[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function GL(t,e){var r=e&&e.getModel("textStyle");return Yr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var uf=Ue();function VL(t,e,r,n){if(t){var i=uf(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var vo={minMargin:1,textMargin:2},WL=["textStyle","color"],ed=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],td=new gt,$L=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(WL):null)},t.prototype.getFont=function(){return GL({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ed.length;n++)r[ed[n]]=this.getShallow(ed[n]);return td.useStyle(r),td.update(),td.getBoundingRect()},t})(),d_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UL=ys(d_),YL=(function(){function t(){}return t.prototype.getLineStyle=function(e){return UL(this,e)},t})(),p_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],XL=ys(p_),qL=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return XL(this,e,r)},t})(),Ye=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){De(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(pe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();ov(Ye),IA(Ye),Ur(Ye,YL),Ur(Ye,qL),Ur(Ye,NA),Ur(Ye,$L);var ZL=Math.round(Math.random()*10);function ff(t){return[t||"",ZL++].join("_")}function KL(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=en(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=en(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function jL(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,h=u.noEntryList,v={};for(L(a,function(y){v[y]=!0});h.length;){var c=h.pop(),d=f[c],m=!!v[c];m&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),L(d.successor,m?g:p)}L(v,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function g(y){v[y]=!0,p(y)}};function r(a){var o={},s=[];return L(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),L(h,function(v){Te(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);Te(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return L(a,function(l){Te(o,l)>=0&&s.push(l)}),s}}function g_(t,e){return De(De({},t,!0),e,!0)}const QL={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},JL={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var hf="ZH",rd="EN",po=rd,cf={},nd={},m_=oe.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||po).toUpperCase();return t.indexOf(hf)>-1?hf:po})():po;function y_(t,e){t=t.toUpperCase(),nd[t]=new Ye(e),cf[t]=e}function e2(t){if(X(t)){var e=cf[t.toUpperCase()]||{};return t===hf||t===rd?pe(e):De(pe(e),pe(cf[po]),!1)}else return De(pe(t),pe(cf[po]),!1)}function t2(t){return nd[t]}function r2(){return nd[po]}y_(rd,QL),y_(hf,JL);var n2=null;function vf(){return n2}var id=1e3,ad=id*60,Es=ad*60,gr=Es*24,__=gr*365,i2={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},df={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},a2="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",pf="{yyyy}-{MM}-{dd}",b_={year:"{yyyy}",month:"{yyyy}-{MM}",day:pf,hour:pf+" "+df.hour,minute:pf+" "+df.minute,second:pf+" "+df.second,millisecond:a2},ca=["year","month","day","hour","minute","second","millisecond"],o2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function s2(t){return!X(t)&&!ie(t)?l2(t):t}function l2(t){t=t||{};var e={},r=!0;return L(ca,function(n){r&&(r=t[n]==null)}),L(ca,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=ca[s],u=K(a)&&!U(a)?a[l]:a,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):X(u)?(o=u,f=[o]):(o==null?o=df[n]:i2[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function si(t,e){return t+="","0000".substr(0,e-t.length)+t}function Rs(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function u2(t){return t===Rs(t)}function f2(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gf(t,e,r,n){var i=oo(t),a=i[w_(r)](),o=i[sd(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[ld(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ud(r)](),h=(f-1)%12+1,v=i[fd(r)](),c=i[hd(r)](),d=i[cd(r)](),m=f>=12?"pm":"am",p=m.toUpperCase(),g=n instanceof Ye?n:t2(n||m_)||r2(),y=g.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,si(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,si(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,si(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,si(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,si(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,si(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,si(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,si(d,3)).replace(/{S}/g,d+"")}function h2(t,e,r,n,i){var a=null;if(X(r))a=r;else if(ie(r)){var o={time:t.time,level:t.time.level},s=vf();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=mf(t.value,i);a=r[f][f][0]}}return gf(new Date(t.value),a,i,n)}function mf(t,e){var r=oo(t),n=r[sd(e)]()+1,i=r[ld(e)](),a=r[ud(e)](),o=r[fd(e)](),s=r[hd(e)](),l=r[cd(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function od(t,e,r){switch(e){case"year":t[S_(r)](0);case"month":t[x_(r)](1);case"day":t[T_(r)](0);case"hour":t[C_(r)](0);case"minute":t[D_(r)](0);case"second":t[A_(r)](0)}return t}function w_(t){return t?"getUTCFullYear":"getFullYear"}function sd(t){return t?"getUTCMonth":"getMonth"}function ld(t){return t?"getUTCDate":"getDate"}function ud(t){return t?"getUTCHours":"getHours"}function fd(t){return t?"getUTCMinutes":"getMinutes"}function hd(t){return t?"getUTCSeconds":"getSeconds"}function cd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function c2(t){return t?"setUTCFullYear":"setFullYear"}function S_(t){return t?"setUTCMonth":"setMonth"}function x_(t){return t?"setUTCDate":"setDate"}function T_(t){return t?"setUTCHours":"setHours"}function C_(t){return t?"setUTCMinutes":"setMinutes"}function D_(t){return t?"setUTCSeconds":"setSeconds"}function A_(t){return t?"setUTCMilliseconds":"setMilliseconds"}function M_(t){if(!sA(t))return X(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function L_(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var yf=tc;function vd(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Yr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?oo(t):t;if(isNaN(+l)){if(s)return"-"}else return gf(l,n,r)}if(e==="ordinal")return Jh(t)?i(t):ke(t)&&a(t)?t+"":"-";var u=Lu(t);return a(u)?M_(u):Jh(t)?i(t):typeof t=="boolean"?t+"":"-"}var k_=["a","b","c","d","e","f","g"],dd=function(t,e){return"{"+t+(e??"")+"}"};function I_(t,e,r){U(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=k_[a];t=t.replace(dd(o),dd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(dd(k_[l],s),r?Bt(u):u)}return t}function v2(t,e){var r=X(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function va(t,e){return e=e||"transparent",X(t)?t:K(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function P_(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var _f={},pd={},gd=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(_f),this._normalMasterList=n(pd);function n(i,a){var o=[];return L(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){L(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){_f[e]=r;return}pd[e]=r},t.get=function(e){return pd[e]||_f[e]},t})();function d2(t){return!!_f[t]}var md={coord:1,coord2:2};function p2(t){E_.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var E_=he();function g2(t){var e=t.getShallow("coord",!0),r=md.coord;if(e==null){var n=E_.get(t.type);n&&n.getCoord2&&(r=md.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var Mn={none:0,dataCoordSys:1,boxCoordSys:2};function m2(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Mn.none;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Mn.dataCoordSys,a||(i=Mn.none)):n==="box"&&(i=Mn.boxCoordSys,!a&&!d2(r)&&(i=Mn.none))}return{coordSysType:r,kind:i}}function y2(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=m2(e),o=a.kind,s=a.coordSysType;if(i&&o!==Mn.dataCoordSys&&(o=Mn.dataCoordSys,s=r),o===Mn.none||s!==r)return!1;var l=n(r,e);return l?(o===Mn.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var bf=L,_2=["left","right","top","bottom","width","height"],wf=[["width","left","right"],["height","top","bottom"]];function yd(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(t==="horizontal"){var m=f.width+(v?-v.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=c+r:o=d+r)})}var Os=yd;Qe(yd,"vertical"),Qe(yd,"horizontal");function b2(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function w2(t,e){var r=Sf(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Ns.point)a=r.refPoint,i=li(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=U(o)?o:[o,o];i=li(n,r.refContainer),a=r.boxCoordFrom===md.coord2?r.refPoint:[$e(s[0],i.width)+i.x,$e(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function S2(t,e){var r=w2(t,e),n=r.viewRect,i=r.center,a=t.get("radius");U(a)||(a=[0,a]);var o=$e(n.width,e.getWidth()),s=$e(n.height,e.getHeight()),l=Math.min(o,s),u=$e(a[0],l/2),f=$e(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function li(t,e,r){r=yf(r||0);var n=e.width,i=e.height,a=$e(t.left,n),o=$e(t.top,i),s=$e(t.right,n),l=$e(t.bottom,i),u=$e(t.width,n),f=$e(t.height,i),h=r[2]+r[0],v=r[1]+r[3],c=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new fe((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var Ns={rect:1,point:2};function Sf(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=g2(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Ns.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ns.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Ns.rect),a===Ns.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Bs(t){var e=t.layoutMode||t.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function ui(t,e,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var i=o(wf[0],0),a=o(wf[1],1);l(wf[0],t,i),l(wf[1],t,a);function o(u,f){var h={},v=0,c={},d=0,m=2;if(bf(u,function(y){c[y]=t[y]}),bf(u,function(y){Mr(e,y)&&(h[y]=c[y]=e[y]),s(h,y)&&v++,s(c,y)&&d++}),n[f])return s(e,u[1])?c[u[2]]=null:s(e,u[2])&&(c[u[1]]=null),c;if(d===m||!v)return c;if(v>=m)return h;for(var p=0;p<u.length;p++){var g=u[p];if(!Mr(h,g)&&Mr(t,g)){h[g]=t[g];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){bf(u,function(v){f[v]=h[v]})}}function Fs(t){return x2({},t)}function x2(t,e){return e&&t&&bf(_2,function(r){Mr(e,r)&&(t[r]=e[r])}),t}var T2=Ue(),Pe=(function(t){re(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=ff("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Bs(this),a=i?Fs(r):{},o=n.getTheme();De(r,o.get(this.mainType)),De(r,this.getDefaultOption()),i&&ui(r,a,i)},e.prototype.mergeOption=function(r,n){De(this.option,r,!0);var i=Bs(this);i&&ui(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!MA(r))return r.defaultOption;var n=T2(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=De(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ms(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return b2(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ye);Vy(Pe,Ye),ku(Pe),KL(Pe),jL(Pe,C2);function C2(t){var e=[];return L(Pe.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=j(e,function(r){return en(r).main}),t!=="dataset"&&Te(e,"dataset")<=0&&e.unshift("dataset"),e}var q={color:{},darkColor:{},size:{}},Ke=q.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};V(Ke,{primary:Ke.neutral80,secondary:Ke.neutral70,tertiary:Ke.neutral60,quaternary:Ke.neutral50,disabled:Ke.neutral20,border:Ke.neutral30,borderTint:Ke.neutral20,borderShade:Ke.neutral40,background:Ke.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ke.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ke.neutral70,axisLineTint:Ke.neutral40,axisTick:Ke.neutral70,axisTickMinor:Ke.neutral60,axisLabel:Ke.neutral70,axisSplitLine:Ke.neutral15,axisMinorSplitLine:Ke.neutral05});for(var da in Ke)if(Ke.hasOwnProperty(da)){var R_=Ke[da];da==="theme"?q.darkColor.theme=Ke.theme.slice():da==="highlight"?q.darkColor.highlight="rgba(255,231,130,0.4)":da.indexOf("accent")===0?q.darkColor[da]=Lc(R_,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):q.darkColor[da]=Lc(R_,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var O_="";typeof navigator<"u"&&(O_=navigator.platform||"");var go="rgba(0, 0, 0, 0.2)",N_=q.color.theme[0],D2=Lc(N_,null,null,.9);const A2={darkMode:"auto",colorBy:"series",color:q.color.theme,gradientColor:[D2,N_],aria:{decal:{decals:[{color:go,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:go,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:go,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:go,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:go,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:go,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:O_.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 B_=he(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xt="original",St="arrayRows",mr="objectRows",Pr="keyedColumns",fi="typedArray",F_="unknown",sn="column",pa="row",mt={Must:1,Might:2,Not:3},z_=Ue();function M2(t){z_(t).datasetMap=he()}function L2(t,e,r){var n={},i=_d(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=z_(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,h;t=t.slice(),L(t,function(m,p){var g=K(m)?m:t[p]={name:m};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});L(t,function(m,p){var g=m.name,y=d(m);if(f==null){var _=v.valueWayDim;c(n[g],_,y),c(o,_,y),v.valueWayDim+=y}else if(f===p)c(n[g],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(n[g],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(m,p,g){for(var y=0;y<g;y++)m.push(p+y)}function d(m){var p=m.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function k2(t,e,r){var n={},i=_d(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===mr||a===Pr)&&L(o,function(f,h){(K(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},v=[],c=0,d=Math.min(5,r);c<d;c++){var m=G_(e.data,a,e.seriesLayoutBy,o,e.startIndex,c);v.push(m);var p=m===mt.Not;if(p&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!p&&v[f.n]===mt.Not)&&(f.n=c),g(f)&&v[f.n]!==mt.Not)return f;p||(m===mt.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function _d(t){var e=t.get("data",!0);if(!e)return ms(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},fr).models[0]}function I2(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ms(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},fr).models}function H_(t,e){return G_(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function G_(t,e,r,n,i,a){var o,s=5;if(Ot(t))return mt.Not;var l,u;if(n){var f=n[a];K(f)?(l=f.name,u=f.type):X(f)&&(l=f)}if(u!=null)return u==="ordinal"?mt.Must:mt.Not;if(e===St){var h=t;if(r===pa){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=b(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=b(d[a]))!=null)return o}}else if(e===mr){var m=t;if(!l)return mt.Not;for(var c=0;c<m.length&&c<s;c++){var p=m[c];if(p&&(o=b(p[l]))!=null)return o}}else if(e===Pr){var g=t;if(!l)return mt.Not;var v=g[l];if(!v||Ot(v))return mt.Not;for(var c=0;c<v.length&&c<s;c++)if((o=b(v[c]))!=null)return o}else if(e===Xt)for(var y=t,c=0;c<y.length&&c<s;c++){var p=y[c],_=ds(p);if(!U(_))return mt.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=X(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return w?mt.Might:mt.Not;if(w&&S!=="-")return mt.Must}return mt.Not}var P2=he();function E2(t,e,r){var n=P2.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var V_=Ue();Ue();var bd=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Dt(this.get("color",!0)),a=this.get("colorLayer",!0);return O2(this,V_,i,a,e,r,n)},t.prototype.clearColorPalette=function(){N2(this,V_)},t})();function R2(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function O2(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:R2(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function N2(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var xf,zs,W_,$_="\0_ec_inner",B2=1,wd=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ye(a),this._locale=new Ye(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=X_(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,X_(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?W_(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&L(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=he(),u=n&&n.replaceMergeMainTypeMap;M2(this),L(r,function(h,v){h!=null&&(Pe.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?pe(h):De(i[v],h,!0))}),u&&u.each(function(h,v){Pe.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Pe.topologicalTravel(s,Pe.getAllClassMainTypes(),f,this);function f(h){var v=E2(this,h,Dt(r[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=vA(c,v,d);bA(m,h,Pe),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],y=0,_;L(m,function(b,S){var w=b.existing,T=b.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var x=h==="series",D=Pe.getClass(h,b.keyInfo.subType,!x);if(!D)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var A=V({componentIndex:S},b.keyInfo);w=new D(T,this,this,A),V(w,A),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),y++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,y),h==="series"&&xf(this)}this._seriesIndices||xf(this)},e.prototype.getOption=function(){var r=pe(this.option);return L(r,function(n,i){if(Pe.hasClass(i)){for(var a=Dt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!gs(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[$_],r},e.prototype.setTheme=function(r){this._theme=new Ye(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],L(Dt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=U_("id",a,s):o!=null?l=U_("name",o,s):l=lt(s,function(u){return!!u}),Y_(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):lt(this._componentsMap.get(i),function(u){return!!u});return l(Y_(o,r));function s(u){var f=i+"Index",h=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[h],name:u[v]}:null}function l(u){return r.filter?lt(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ie(r)){var o=n,s=r;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=X(r)?a.get(r):K(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Jr(r,null);return lt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return lt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return lt(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){zs(this),L(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){L(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){zs(this),L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return L(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return zs(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){zs(this);var i=[];L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=he(i)},e.prototype.restoreData=function(r){xf(this);var n=this._componentsMap,i=[];n.each(function(a,o){Pe.hasClass(o)&&i.push(o)}),Pe.topologicalTravel(i,Pe.getAllClassMainTypes(),function(a){L(n.get(a),function(o){o&&(a!=="series"||!F2(o,r))&&o.restoreData()})})},e.internalField=(function(){xf=function(r){var n=r._seriesIndices=[];L(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=he(n)},zs=function(r){},W_=function(r,n){r.option={},r.option[$_]=B2,r._componentsMap=he({series:[]}),r._componentsCount=he();var i=n.aria;K(i)&&i.enabled==null&&(i.enabled=!0),z2(n,r._theme.option),De(n,A2,!1),r._mergeOption(n,null)}})(),e})(Ye);function F2(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function z2(t,e){var r=t.color&&!t.colorLayer;L(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||Pe.hasClass(i)||(typeof n=="object"?t[i]=t[i]?De(t[i],n,!1):pe(n):t[i]==null&&(t[i]=n))})}function U_(t,e,r){if(U(e)){var n=he();return L(e,function(a){if(a!=null){var o=Jr(a,null);o!=null&&n.set(a,!0)}}),lt(r,function(a){return a&&n.get(a[t])})}else{var i=Jr(e,null);return lt(r,function(a){return a&&i!=null&&a[t]===i})}}function Y_(t,e){return e.hasOwnProperty("subType")?lt(t,function(r){return r&&r.subType===e.subType}):t}function X_(t){var e=he();return t&&L(Dt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ur(wd,bd);var H2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],q_=(function(){function t(e){L(H2,function(r){this[r]=Le(e[r],e)},this)}return t})(),G2=/^(min|max)?(.+)$/,V2=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(L(Dt(e.series),function(o){o&&o.data&&Ot(o.data)&&rc(o.data)}),L(Dt(e.dataset),function(o){o&&o.source&&Ot(o.source)&&rc(o.source)})),e=pe(e);var i=this._optionBackup,a=W2(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],pe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=pe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)$2(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Y2(o,this._currentMediaIndices)&&(s=j(o,function(f){return pe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function W2(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(t.options=t.media=null),a=t),f&&U(u)&&L(u,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),L(l,function(c){return v(c)}),L(n,function(c){return v(c.option)});function v(c){L(e,function(d){d(c,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function $2(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return L(t,function(a,o){var s=o.match(G2);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();U2(n[u],a,l)||(i=!1)}}),i}function U2(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Y2(t,e){return t.join(",")===e.join(",")}var Er=L,Hs=K,Z_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sd(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Z_.length;r<n;r++){var i=Z_[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?De(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?De(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function xt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Me(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Gs(t){xt(t,"itemStyle"),xt(t,"lineStyle"),xt(t,"areaStyle"),xt(t,"label"),xt(t,"labelLine"),xt(t,"upperLabel"),xt(t,"edgeLabel")}function Je(t,e){var r=Hs(t)&&t[e],n=Hs(r)&&r.textStyle;if(n)for(var i=0,a=Fy.length;i<a;i++){var o=Fy[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function yr(t){t&&(Gs(t),Je(t,"label"),t.emphasis&&Je(t.emphasis,"label"))}function X2(t){if(Hs(t)){Sd(t),Gs(t),Je(t,"label"),Je(t,"upperLabel"),Je(t,"edgeLabel"),t.emphasis&&(Je(t.emphasis,"label"),Je(t.emphasis,"upperLabel"),Je(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Sd(e),yr(e));var r=t.markLine;r&&(Sd(r),yr(r));var n=t.markArea;n&&yr(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!Ot(a))for(var o=0;o<a.length;o++)yr(a[o]);L(t.categories,function(u){Gs(u)})}if(i&&!Ot(i))for(var o=0;o<i.length;o++)yr(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)yr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(yr(l[o][0]),yr(l[o][1])):yr(l[o]);t.type==="gauge"?(Je(t,"axisLabel"),Je(t,"title"),Je(t,"detail")):t.type==="treemap"?(xt(t.breadcrumb,"itemStyle"),L(t.levels,function(u){Gs(u)})):t.type==="tree"&&Gs(t.leaves)}}function Ln(t){return U(t)?t:t?[t]:[]}function K_(t){return(U(t)?t[0]:t)||{}}function q2(t,e){Er(Ln(t.series),function(n){Hs(n)&&X2(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Er(r,function(n){Er(Ln(t[n]),function(i){i&&(Je(i,"axisLabel"),Je(i.axisPointer,"label"))})}),Er(Ln(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Je(i,"axisLabel"),Je(i&&i.axisPointer,"label")}),Er(Ln(t.calendar),function(n){xt(n,"itemStyle"),Je(n,"dayLabel"),Je(n,"monthLabel"),Je(n,"yearLabel")}),Er(Ln(t.radar),function(n){Je(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Er(Ln(t.geo),function(n){Hs(n)&&(yr(n),Er(Ln(n.regions),function(i){yr(i)}))}),Er(Ln(t.timeline),function(n){yr(n),xt(n,"label"),xt(n,"itemStyle"),xt(n,"controlStyle",!0);var i=n.data;U(i)&&L(i,function(a){K(a)&&(xt(a,"label"),xt(a,"itemStyle"))})}),Er(Ln(t.toolbox),function(n){xt(n,"iconStyle"),Er(n.feature,function(i){xt(i,"iconStyle")})}),Je(K_(t.axisPointer),"label"),Je(K_(t.tooltip).axisPointer,"label")}function Z2(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function K2(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function j_(t){t&&L(j2,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var j2=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Q2=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Vs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<xd.length;r++){var n=xd[r][1],i=xd[r][0];e[n]!=null&&(e[i]=e[n])}}function Q_(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function J_(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function J2(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function e1(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&e1(t[r].children,e)}function t1(t,e){q2(t,e),t.series=Dt(t.series),L(t.series,function(r){if(K(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Q_(r.label);var i=r.data;if(i&&!Ot(i))for(var a=0;a<i.length;a++)Q_(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Z2(r,"pointer.color");o!=null&&K2(r,"itemStyle.color",o)}else if(n==="bar"){Vs(r),Vs(r.backgroundStyle),Vs(r.emphasis);var i=r.data;if(i&&!Ot(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Vs(i[a]),Vs(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),J_(r),e1(r.data,J_)}else n==="graph"||n==="sankey"?J2(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Me(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),j_(r)}}),t.dataRange&&(t.visualMap=t.dataRange),L(Q2,function(r){var n=t[r];n&&(U(n)||(n=[n]),L(n,function(i){j_(i)}))})}function ek(t){var e=he();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),L(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),tk(r)}})}function tk(t){L(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(e.stackedDimension,h);if(isNaN(v))return i;var c,d;s?d=o.getRawIndex(h):c=o.get(e.stackedByDimension,h);for(var m=NaN,p=r-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=iA(v,y),m=y;break}}}return n[0]=v,n[1]=m,n})})}var Tf=(function(){function t(e){this.data=e.data||(e.sourceFormat===Pr?{}:[]),this.sourceFormat=e.sourceFormat||F_,this.seriesLayoutBy=e.seriesLayoutBy||sn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&H_(this,n)===mt.Must&&(i.type="ordinal")}}return t})();function Td(t){return t instanceof Tf}function Cd(t,e,r){r=r||n1(t);var n=e.seriesLayoutBy,i=nk(t,r,n,e.sourceHeader,e.dimensions),a=new Tf({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:pe(e)});return a}function r1(t){return new Tf({data:t,sourceFormat:Ot(t)?fi:Xt})}function rk(t){return new Tf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:pe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function n1(t){var e=F_;if(Ot(t))e=fi;else if(U(t)){t.length===0&&(e=St);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(U(i)||Ot(i)){e=St;break}else if(K(i)){e=mr;break}}}}else if(K(t)){for(var a in t)if(Mr(t,a)&&Rt(t[a])){e=Pr;break}}return e}function nk(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:i1(i),startIndex:o,dimensionsDetectedCount:a};if(e===St){var s=t;n==="auto"||n==null?a1(function(u){u!=null&&u!=="-"&&(X(u)?o==null&&(o=1):o=0)},r,s,10):o=ke(n)?n:n?1:0,!i&&o===1&&(i=[],a1(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===pa?s.length:s[0]?s[0].length:null}else if(e===mr)i||(i=ik(t));else if(e===Pr)i||(i=[],L(t,function(u,f){i.push(f)}));else if(e===Xt){var l=ds(t[0]);a=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:i1(i),dimensionsDetectedCount:a}}function ik(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return We(r)}function i1(t){if(t){var e=he();return j(t,function(r,n){r=K(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function a1(t,e,r,n){if(e===pa)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function o1(t){var e=t.sourceFormat;return e===mr||e===Pr}var ga,ma,ya,_a,s1,l1,u1=(function(){function t(e,r){var n=Td(e)?e:r1(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===fi&&(this._offset=0,this._dimSize=r,this._data=i),l1(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;l1=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=s1[Ad(u,f)];if(V(o,c),u===fi)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=h1(u,f);o.getItem=Le(d,null,s,h,v);var m=v1(u,f);o.count=Le(m,null,s,h,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],m=c[1]==null?-1/0:c[1],p=s-o,g=l[v],y=0;y<p;y++){var _=f[y*h+v];g[o+y]=_,_<d&&(d=_),_>m&&(m=_)}c[0]=d,c[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};s1=(e={},e[St+"_"+sn]={pure:!0,appendData:a},e[St+"_"+pa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[mr]={pure:!0,appendData:a},e[Pr]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[Xt]={appendData:a},e[fi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),Cf=function(t){U(t)||Oy("series.data or dataset.source must be an array.")};ga={},ga[St+"_"+sn]=Cf,ga[St+"_"+pa]=Cf,ga[mr]=Cf,ga[Pr]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&Oy("dimension name must not be null/undefined.")}},ga[Xt]=Cf;var f1=function(t,e,r,n){return t[n]},ak=(ma={},ma[St+"_"+sn]=function(t,e,r,n){return t[n+e]},ma[St+"_"+pa]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ma[mr]=f1,ma[Pr]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},ma[Xt]=f1,ma);function h1(t,e){var r=ak[Ad(t,e)];return r}var c1=function(t,e,r){return t.length},ok=(ya={},ya[St+"_"+sn]=function(t,e,r){return Math.max(0,t.length-e)},ya[St+"_"+pa]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ya[mr]=c1,ya[Pr]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ya[Xt]=c1,ya);function v1(t,e){var r=ok[Ad(t,e)];return r}var Dd=function(t,e,r){return t[e]},sk=(_a={},_a[St]=Dd,_a[mr]=function(t,e,r){return t[r]},_a[Pr]=Dd,_a[Xt]=function(t,e,r){var n=ds(t);return n instanceof Array?n[e]:n},_a[fi]=Dd,_a);function d1(t){var e=sk[t];return e}function Ad(t,e){return t===St?t+"_"+e:t}function mo(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return d1(a)(n,o,s)}else{var l=n;return a===Xt&&(l=ds(n)),l}}}}var lk=/\{@(.+?)\}/g,uk=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&U(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ie(a))return l.status=r,l.dimensionIndex=i,a(l);if(X(a)){var f=I_(a,l);return f.replace(lk,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var m=mo(s,e,d);if(o&&U(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(m=o.interpolatedValue[p])}return m!=null?m+"":""})}},t.prototype.getRawValue=function(e,r){return mo(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function p1(t){var e,r;return K(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ws(t){return new fk(t)}var fk=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var m=this._progress;if(U(m))for(var p=0;p<m.length;p++)this._doProgress(m[p],c,d,l,u);else this._doProgress(m,c,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){g1.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:g1.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),g1=(function(){var t,e,r,n,i,a={reset:function(l,u,f,h){e=l,t=u,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function Df(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ke(t)&&t!=null&&t!=="-"&&(t=+oo(t)),t==null||t===""?NaN:Number(t))}he({number:function(t){return parseFloat(t)},time:function(t){return+oo(t)},trim:function(t){return X(t)?Yr(t):t}});var hk=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=ke(e)?e:Lu(e),i=ke(r)?r:Lu(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=X(e),l=X(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),ck=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Df(e,r)},t})();function vk(t,e){var r=new ck,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==sn&&zt(o);var s=[],l={},u=t.dimensionsDefine;if(u)L(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";Mr(l,g)&&zt(_),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var h=h1(i,sn);e.__isBuiltIn&&(r.getRawDataItem=function(m){return h(n,a,s,m)},r.getRawData=Le(dk,null,t)),r.cloneRawData=Le(pk,null,t);var v=v1(i,sn);r.count=Le(v,null,n,a,s);var c=d1(i);r.retrieveValue=function(m,p){var g=h(n,a,s,m);return d(g,p)};var d=r.retrieveValueFromItem=function(m,p){if(m!=null){var g=s[p];if(g)return c(m,p,g.name)}};return r.getDimensionInfo=Le(gk,null,s,l),r.cloneAllDimensionInfo=Le(mk,null,s),r}function dk(t){var e=t.sourceFormat;if(!Md(e)){var r="";zt(r)}return t.data}function pk(t){var e=t.sourceFormat,r=t.data;if(!Md(e)){var n="";zt(n)}if(e===St){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===mr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(V({},r[a]));return i}}function gk(t,e,r){if(r!=null){if(ke(r)||!isNaN(r)&&!Mr(e,r))return t[r];if(Mr(e,r))return e[r]}}function mk(t){return pe(t)}var m1=he();function yk(t){t=pe(t);var e=t.type,r="";e||zt(r);var n=e.split(":");n.length!==2&&zt(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,m1.set(e,t)}function _k(t,e,r){var n=Dt(t),i=n.length,a="";i||zt(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=bk(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function bk(t,e,r,n){var i="";e.length||zt(i),K(t)||zt(i);var a=t.type,o=m1.get(a);o||zt(i);var s=j(e,function(u){return vk(u,o)}),l=Dt(o.transform({upstream:s[0],upstreamList:s,config:pe(t.config)}));return j(l,function(u,f){var h="";K(u)||zt(h),u.data||zt(h);var v=n1(u.data);Md(v)||zt(h);var c,d=e[0];if(d&&f===0&&!u.dimensions){var m=d.startIndex;m&&(u.data=d.data.slice(0,m).concat(u.data)),c={seriesLayoutBy:sn,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:sn,sourceHeader:0,dimensions:u.dimensions};return Cd(u.data,c,null)})}function Md(t){return t===St||t===mr}var Af="undefined",wk=typeof Uint32Array===Af?Array:Uint32Array,Sk=typeof Uint16Array===Af?Array:Uint16Array,y1=typeof Int32Array===Af?Array:Int32Array,_1=typeof Float64Array===Af?Array:Float64Array,b1={float:_1,int:y1,ordinal:Array,number:Array,time:_1},Ld;function yo(t){return t>65535?wk:Sk}function _o(){return[1/0,-1/0]}function xk(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function w1(t,e,r,n,i){var a=b1[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var kd=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=he()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Ld[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],o1(i),this._dimensions=j(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new b1[r||"float"](this._rawCount),this._rawExtent[a]=_o(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=_o());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];w1(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<a;d++){var f=i[d],m=Ld.arrayRows.call(this,e[c]||h,f.property,c,d);n[d][v]=m;var p=o[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=j(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=_o()),w1(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],c=e;c<r;c++){v=i.getItem(c,v);for(var d=0;d<s;d++){var m=a[d],p=this._dimValueGetter(v,u[d],c,d);m[c]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=yo(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=yo(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],h=n._chunks,v=0;v<i;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=r(v);else if(l===1){var m=h[f][d];c=r(m,v)}else{for(var p=0;p<l;p++)s[p]=h[e[p]][d];s[p]=v,c=r.apply(null,s)}c&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=We(e),a=i.length;if(!a)return this;var o=r.count(),s=yo(r._rawCount),l=new s(o),u=0,f=i[0],h=e[f][0],v=e[f][1],c=r._chunks,d=!1;if(!r._indices){var m=0;if(a===1){for(var p=c[i[0]],g=0;g<n;g++){var y=p[g];(y>=h&&y<=v||isNaN(y))&&(l[u++]=m),m++}d=!0}else if(a===2){for(var p=c[i[0]],_=c[i[1]],b=e[i[1]][0],S=e[i[1]][1],g=0;g<n;g++){var y=p[g],w=_[g];(y>=h&&y<=v||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=m),m++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=c[i[0]][T];(y>=h&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var x=!0,T=r.getRawIndex(g),D=0;D<a;D++){var A=i[D],y=c[A][T];(y<e[A][0]||y>e[A][1])&&(x=!1)}x&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=_o();for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),c=0;c<o;c++)l[c]=i[r[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var m=r[f],p=d[f],g=u[m],y=i[m];y&&(y[v]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,v,c=new(yo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var m=Math.min(d+l,o-1),p=Math.min(d+l*2,o),g=(p+m)/2,y=0,_=m;_<p;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=p-m;var w=d,T=Math.min(d+l,o),x=d-1,D=a[u];f=-1,v=w;for(var A=-1,C=0,_=w;_<T;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){C++,A<0&&(A=b);continue}h=Math.abs((x-g)*(S-D)-(x-_)*(y-D)),h>f&&(f=h,v=b)}C>0&&C<T-w&&(c[s++]=Math.min(A,v),v=Math.max(A,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(yo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],m=a;f+a>s&&(m=s-f);for(var p=0;p<m;p++){var g=this.getRawIndex(f+p),y=o[g];y<v&&(v=y,h=f+p),y>d&&(d=y,c=f+p)}var _=this.getRawIndex(h),b=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),h=a._rawExtent[e]=_o(),v=new(yo(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var m=0;m<l;m++){var p=this.getRawIndex(d+m);s[m]=u[p]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=_o();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=r[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&qn(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?xk(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=pe(this._extent),e._rawExtent=pe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return Df(r[a],this._dimensions[a])}Ld={arrayRows:e,objectRows:function(r,n,i,a){return Df(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Df(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),Tk=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Mf(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Ot(s)?fi:Xt,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=Q(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=Q(h.sourceHeader,v.sourceHeader),m=Q(h.dimensions,v.dimensions),p=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||m;i=p?[Cd(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:m},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Cd(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&S1(a)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&S1(h),s.push(f),l.push(u._getVersionSign())}),n?o=_k(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[rk(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Mf(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new kd,s.initData(new u1(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Mf(e)){var r=_d(e);return r?[r.getSourceManager()]:[]}else return j(I2(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Mf(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function Mf(t){return t.mainType==="series"}function S1(t){throw new Error(t)}var Ck="line-height:1";function x1(t){var e=t.lineHeight;return e==null?Ck:"line-height:"+Bt(e+"")+"px"}function T1(t,e){var r=t.color||q.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||q.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Bt(n+"")+"px;color:"+Bt(r)+";font-weight:"+Bt(i+""),valueStyle:"font-size:"+Bt(o+"")+"px;color:"+Bt(a)+";font-weight:"+Bt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Dk=[0,10,20,30],Ak=["",`
59
53
  `,`
60
54
 
61
55
  `,`
62
56
 
63
57
 
64
- `];function Ws(t,e){return e.type=t,e}function Md(t){return t.type==="section"}function Sb(t){return Md(t)?c2:v2}function xb(t){if(Md(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return A(t.blocks,function(i){var a=xb(i);a>=e&&(e=a+ +(n&&(!a||Md(i)&&!i.noHeader)))}),e}return 0}function c2(t,e,r,n){var i=e.noHeader,a=d2(xb(e)),o=[],s=e.blocks||[];K(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mr(u,l)){var f=new ZL(u[l],null);s.sort(function(m,p){return f.evaluate(m.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(m,p){var g=e.valueFormatter,y=Sb(m)(g?V(V({},t),{valueFormatter:g}):t,m,p>0?a.html:0,n);y!=null&&o.push(y)});var h=t.renderMode==="richText"?o.join(a.richText):Ld(n,o.join(""),i?r:a.html);if(i)return h;var c=ud(e.header,"ordinal",t.useUTC),v=wb(n,t.renderMode).nameStyle,d=bb(n);return t.renderMode==="richText"?Cb(t,c,v)+a.richText+h:Ld(n,'<div style="'+v+";"+d+';">'+Ot(c)+"</div>"+h,r)}function v2(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(b){return b=W(b)?b:[b],Z(b,function(w,S){return ud(w,W(v)?v[S]:v,u)})};if(!(a&&o)){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||X.color.secondary,i),c=a?"":ud(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.dataIndex),m=!s||!a,p=!s&&a,g=wb(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":Cb(t,c,y))+(o?"":m2(t,d,m,p,_)):Ld(n,(s?"":h)+(a?"":p2(c,!s,y))+(o?"":g2(d,m,p,_)),r)}}function Tb(t,e,r,n,i,a){if(t){var o=Sb(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function d2(t){return{html:f2[t],richText:h2[t]}}function Ld(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=bb(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function p2(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ot(t)+"</span>"}function g2(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=W(t)?t:[t],'<span style="'+a+";"+n+'">'+Z(t,function(o){return Ot(o)}).join("&nbsp;&nbsp;")+"</span>"}function Cb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function m2(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function y2(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return sa(n)}function Db(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Id=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ay()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=qM({color:r,type:e,renderMode:n,markerId:i});return Y(a)?a:(process.env.NODE_ENV!=="production"&&K(i),this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?A(r,function(a){return V(n,a)}):V(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function _2(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=W(s),u=y2(e,r),f,h,c,v;if(o>1||l&&!o){var d=b2(s,e,r,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);v=f=go(i,r,a[0]),h=m.type}else v=f=l?s[0]:s;var p=ev(e),g=p&&e.name||"",y=i.getName(r),_=n?g:y;return Ws("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[Ws("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Yr(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function b2(t,e,r,n,i){var a=e.getData(),o=Wn(t,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(h){f(go(a,r,h),h)}):A(t,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Ws("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ai=Ve();function Mf(t,e){return t.getName(e)||t.getId(e)}var w2="__universalTransitionEnabled",Nr=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Hs({count:x2,reset:T2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ai(this).sourceManager=new l2(this);a.prepareSource();var o=this.getInitialData(r,i);Ab(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&K(o,"getInitialData returned invalid data."),ai(this).dataBeforeProcessed=o,Eb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Os(this),a=i?Rs(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),we(r,n.getTheme().get(this.subType)),we(r,this.getDefaultOption()),Jc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ii(r,a,i)},e.prototype.mergeOption=function(r,n){r=we(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Os(this);i&&ii(this.option,r,i);var a=ai(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Ab(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ai(this).dataBeforeProcessed=o,Eb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!St(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Jc(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Pd(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return ai(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Pd(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}ai(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return se(r)},e.prototype.getSourceManager=function(){return ai(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ai(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(n,function(d,m){var p=l.dataToCoord(d),g=u-p,y=Math.abs(g);y<=a&&((y<h||y===h&&g>=0&&c<0)&&(h=y,c=g,v=0),g===c&&(f[v++]=m))}),f.length=v,f},e.prototype.formatTooltip=function(r,n,i){return _2({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(te.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=yd.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Mf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Pe(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Mf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[w2])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){q(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=Mf(r,h);u[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=Mf(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ye.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ye);Ur(Nr,XL),Ur(Nr,yd),Hy(Nr,ye);function Eb(t){var e=t.name;ev(t)||(t.name=S2(t)||e)}function S2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function x2(t){return t.model.getRawData().count()}function T2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),C2}function C2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ab(t,e){A(yC(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,$e(D2,e))})}function D2(t,e){var r=Pd(t);return r&&r.setOutputEnd((e||this).count()),e}function Pd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Or=(function(){function t(){this.group=new tt,this.uid=uf("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();nv(Or),Mu(Or);function kd(){var t=Ve();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Mb=Ve(),E2=kd(),br=(function(){function t(){this.group=new tt,this.uid=uf("viewChart"),this.renderTask=Hs({plan:A2,reset:M2}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&De("Unknown dataType "+i.dataType);return}Ib(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&De("Unknown dataType "+i.dataType);return}Ib(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){af(this.group,e)},t.markUpdateMethod=function(e,r){Mb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Lb(t,e,r){t&&lo(t)&&(e==="emphasis"?$u:Uu)(t,r)}function Ib(t,e,r){var n=$i(t,e),i=e&&e.highlightKey!=null?TA(e.highlightKey):null;n!=null?A(xt(n),function(a){Lb(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Lb(a,r,i)})}nv(br,["dispose"]),Mu(br);function A2(t){return E2(t.model)}function M2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Mb(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),L2[l]}var L2={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Lf="\0__throttleOriginMethod",Pb="\0__throttleRate",kb="\0__throttleType";function Nd(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var m=f||e,p=f||r;f=null,s=n-(p?i:a)-m,clearTimeout(o),p?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Nb(t,e,r,n){var i=t[e];if(i){var a=i[Lf]||i,o=i[kb],s=i[Pb];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Nd(a,r,n==="debounce"),i[Lf]=a,i[kb]=n,i[Pb]=r}return i}}function Od(t,e){var r=t[e];r&&r[Lf]&&(r.clear&&r.clear(),t[e]=r[Lf])}var Ob=Ve(),Rb={itemStyle:gs(d0,!0),lineStyle:gs(v0,!0)},I2={lineStyle:"stroke",itemStyle:"fill"};function Bb(t,e){var r=t.visualStyleMapper||Rb[e];return r||(console.warn("Unknown style type '"+e+"'."),Rb.itemStyle)}function Vb(t,e){var r=t.visualDrawType||I2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var P2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Bb(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Vb(t,n),u=o[l],f=Q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var m=t.getDataParams(d),p=V({},o);p[l]=f(m),v.setItemVisual(d,"style",p)}}}},$s=new Fe,k2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Bb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$s.option=l[n];var u=i($s),f=o.ensureUniqueItemVisual(s,"style");V(f,u),$s.option.decal&&(o.setItemVisual(s,"decal",$s.option.decal),$s.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},N2={performRawSeries:!0,overallReset:function(t){var e=se();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),Ob(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ob(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Vb(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=r.getColorFromPalette(v,o,d)}})}})}},If=Math.PI;function O2(t,e){e=e||{},xe(e,{text:"loading",textColor:X.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:X.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new tt,n=new He({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new lt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new He({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ju({shape:{startAngle:-If/2,endAngle:-If/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:If*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:If*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Fb=(function(){function t(e,r,n,i){this._stageTaskMap=se(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=se();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),K(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var m=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(m)}),c.perform(m)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=se(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Hs({plan:z2,reset:H2,count:W2}));v.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Hs({reset:R2});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=se(),u=e.seriesType,f=e.getTargetSeries,h=!0,c=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),K(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(c=!0,Hs({reset:B2,onDirty:F2})));g.context={model:m,overallProgress:h},g.agent=o,g.__block=h,a._pipe(m,g)}c&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return Q(e)&&(e={overallReset:e,seriesType:$2(e)}),e.uid=uf("stageHandler"),r&&(e.visualType=r),e},t})();function R2(t){t.overallReset(t.ecModel,t.api,t.payload)}function B2(t){return t.overallProgress&&V2}function V2(){this.agent.dirty(),this.getDownstream().dirty()}function F2(){this.agent&&this.agent.dirty()}function z2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function H2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=xt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Z(e,function(r,n){return zb(n)}):G2}var G2=zb(0);function zb(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function W2(t){return t.data.count()}function $2(t){Pf=null;try{t(Us,Hb)}catch{}return Pf}var Us={},Hb={},Pf;Gb(Us,bd),Gb(Hb,U0),Us.eachSeriesByType=Us.eachRawSeriesByType=function(t){Pf=t},Us.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Pf=t.subType)};function Gb(t,e){for(var r in e.prototype)t[r]=Nt}var G=X.darkColor,U2=G.background,Ys=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},Wb={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},$b={darkMode:!0,color:G.theme,backgroundColor:U2,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:Wb,y:Wb,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:Ys(),logAxis:Ys(),valueAxis:Ys(),categoryAxis:Ys(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=Ys();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};$b.categoryAxis.splitLine.show=!1;var Y2=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Y(e)){var a=en(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Rd=["symbol","symbolSize","symbolRotate","symbolOffset"],Ub=Rd.concat(["symbolKeepAspect"]),X2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Rd.length;o++){var s=Rd[o],l=t.get(s);Q(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(V({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Pe(i);function f(h,c){for(var v=t.getRawValue(c),d=t.getDataParams(c),m=0;m<u.length;m++){var p=u[m];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},q2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Ub.length;s++){var l=Ub[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Z2(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function K2(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function j2(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}A([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=V({},i),process.env.NODE_ENV!=="production"&&je(i.type,n[1]),o.dispatchAction(V(i,{type:n[1],seriesIndex:r(a,i)}))})})}function _o(t,e,r,n,i){var a=t+e;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Sn("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=$i(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(c)?h.getName(c[0]):h.getName(c),selected:Y(l)?l:V({},l)})}}))}function Q2(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(_o("map","selectchanged",e,i,n),_o("pie","selectchanged",e,i,n)):n.fromAction==="select"?(_o("map","selected",e,i,n),_o("pie","selected",e,i,n)):n.fromAction==="unselect"&&(_o("map","unselected",e,i,n),_o("pie","unselected",e,i,n))})}function Xs(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var J2=Math.round(Math.random()*9),eI=typeof Object.defineProperty=="function",tI=(function(){function t(){this._id="__ec_inner_"+J2++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return eI?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),rI=Ee.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),nI=Ee.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),iI=Ee.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-h*v,l+s+c*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+h*v,l+s+c*v,r-f,l+s),t.closePath()}}),aI=Ee.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),oI={line:Jn,rect:He,roundRect:He,square:He,circle:Zu,diamond:nI,pin:iI,arrow:aI,triangle:rI},sI={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Bd={};A(oI,function(t,e){Bd[e]=new t});var lI=Ee.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=wu(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Bd[n];i||(n="rect",i=Bd[n]),sI[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function uI(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||X.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function bo(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=j_(t.slice(8),new oe(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Wv(t.slice(7),{},new oe(e,r,n,i),o?"center":"cover"):l=new lI({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=uI,a&&l.setColor(a),l}function fI(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Yb(t,e){if(t!=null)return W(t)||(t=[t,t]),[Be(t[0],e[0])||0,Be(j(t[1],t[0]),e[1])||0]}function da(t){return isFinite(t)}function hI(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=da(n)?n:0,i=da(i)?i:1,a=da(a)?a:0,o=da(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function cI(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=da(o)?o:.5,s=da(s)?s:.5,l=l>=0&&da(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Vd(t,e,r){for(var n=e.type==="radial"?cI(t,e,r):hI(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function vI(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function kf(t){return parseInt(t,10)}function Nf(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||kf(s[n])||kf(t.style[n]))-(kf(s[a])||0)-(kf(s[o])||0)|0}function dI(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Ce(t)?[t]:W(t)?t:null}function Xb(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&dI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var pI=new Qi(!0);function Of(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function qb(t){return typeof t=="string"&&t!=="none"}function Rf(t){var e=t.fill;return e!=null&&e!=="none"}function Zb(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Kb(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Fd(t,e,r){var n=Gy(e.image,e.__image,r);if(Lu(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*_C),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function gI(t,e,r,n){var i,a=Of(r),o=Rf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||pI,h=e.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,m=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0;(d||m)&&(S=e.getBoundingRect()),d&&(y=h?Vd(t,c,S):e.__canvasFillGradient,e.__canvasFillGradient=y),m&&(_=h?Vd(t,v,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(b=h||!e.__canvasFillPattern?Fd(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=b),g&&(w=h||!e.__canvasStrokePattern?Fd(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),d?t.fillStyle=y:p&&(b?t.fillStyle=b:o=!1),m?t.strokeStyle=_:g&&(w?t.strokeStyle=w:a=!1)}var x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold);var T,C;t.setLineDash&&r.lineDash&&(i=Xb(e),T=i[0],C=i[1]);var E=!0;(u||h&Za)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),E=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),E&&f.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=C),n||(r.strokeFirst?(a&&Kb(t,r),o&&Zb(t,r)):(o&&Zb(t,r),a&&Kb(t,r))),T&&t.setLineDash([])}function mI(t,e,r){var n=e.__image=Gy(r.image,e.__image,e,e.onload);if(!(!n||!Lu(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,c=s-f;t.drawImage(n,u,f,h,c,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function yI(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Gn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Xb(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Of(r)&&t.strokeText(i,r.x,r.y),Rf(r)&&t.fillText(i,r.x,r.y)):(Rf(r)&&t.fillText(i,r.x,r.y),Of(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var jb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Jb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Ft(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Yi.opacity:o}(n||e.blend!==r.blend)&&(a||(Ft(t,i),a=!0),t.globalCompositeOperation=e.blend||Yi.blend);for(var s=0;s<jb.length;s++){var l=jb[s];(n||e[l]!==r[l])&&(a||(Ft(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Ft(t,i),a=!0),t.shadowColor=e.shadowColor||Yi.shadowColor),a}function e1(t,e,r,n,i){var a=qs(e,i.inHover),o=n?null:r&&qs(r,i.inHover)||{};if(a===o)return!1;var s=Jb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Ft(t,i),s=!0),qb(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Ft(t,i),s=!0),qb(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Ft(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ft(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<Qb.length;f++){var h=Qb[f],c=h[0];(n||a[c]!==o[c])&&(s||(Ft(t,i),s=!0),t[c]=a[c]||h[1])}return s}function _I(t,e,r,n,i){return Jb(t,qs(e,i.inHover),r&&qs(r,i.inHover),n,i)}function t1(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function bI(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),t1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function wI(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var r1=1,n1=2,i1=3,a1=4;function SI(t){var e=Rf(t),r=Of(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ft(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function qs(t,e){return e&&t.__hoverStyle||t.style}function o1(t,e){pa(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pa(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ut,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||vI(a,o))&&(o&&o.length&&(Ft(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ft(t,r),t.save(),bI(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ee&&e.autoBatch&&SI(e.style);s||wI(i,u.transform)?(Ft(t,r),t1(t,e)):f||Ft(t,r);var h=qs(e,r.inHover);e instanceof Ee?(r.lastDrawType!==r1&&(l=!0,r.lastDrawType=r1),e1(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),gI(t,e,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):e instanceof Ru?(r.lastDrawType!==i1&&(l=!0,r.lastDrawType=i1),e1(t,e,u,l,r),yI(t,e,h)):e instanceof jn?(r.lastDrawType!==n1&&(l=!0,r.lastDrawType=n1),_I(t,e,u,l,r),mI(t,e,h)):e.getTemporalDisplayables&&(r.lastDrawType!==a1&&(l=!0,r.lastDrawType=a1),xI(t,e,r)),f&&n&&Ft(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function xI(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pa(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pa(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var zd=new tI,s1=new ja(100),l1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hd(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&zd.delete(t);var a=zd.get(t);if(a)return a;var o=xe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,zd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],h=!0,c=0;c<l1.length;++c){var v=o[l1[c]];if(v!=null&&!W(v)&&!Y(v)&&!Ce(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var m=s1.get(d);m&&(i?u.svgElement=m:u.image=m)}var p=f1(o.dashArrayX),g=TI(o.dashArrayY),y=u1(o.symbol),_=CI(p),b=h1(g),w=!i&&mn.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;w&&(w.width=x.width*r,w.height=x.height*r,T=w.getContext("2d")),E(),h&&s1.put(d,w||S),u.image=w,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var D=1,L=0,M=_.length;L<M;++L)D=Ly(D,_[L]);for(var P=1,L=0,M=y.length;L<M;++L)P=Ly(P,y[L].length);D*=P;var k=b*_.length*y.length;if(process.env.NODE_ENV!=="production"){var O=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&O("maxTileWidth"),k>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var D=0,L=0;L<g.length;++L)D+=g[L];if(D<=0)return;for(var M=-b,P=0,k=0,O=0;M<x.height;){if(P%2===0){for(var B=k/2%y.length,N=0,R=0,z=0;N<x.width*2;){for(var H=0,L=0;L<p[O].length;++L)H+=p[O][L];if(H<=0)break;if(R%2===0){var F=(1-o.symbolSize)*.5,$=N+p[O][R]*F,ie=M+g[P]*F,Ae=p[O][R]*o.symbolSize,ht=g[P]*o.symbolSize,At=z/2%y[B].length;_t($,ie,Ae,ht,y[B][At])}N+=p[O][R],++z,++R,R===p[O].length&&(R=0)}++O,O===p.length&&(O=0)}M+=g[P],++k,++P,P===g.length&&(P=0)}function _t(ct,Ye,re,ue,cn){var it=i?1:r,Si=bo(cn,ct*it,Ye*it,re*it,ue*it,o.color,o.symbolKeepAspect);if(i){var Rn=n.painter.renderOneToVNode(Si);Rn&&S.children.push(Rn)}else o1(T,Si)}}}}function u1(t){if(!t||t.length===0)return[["rect"]];if(Y(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Y(t[r])){e=!1;break}if(e)return u1([t]);for(var n=[],r=0;r<t.length;++r)Y(t[r])?n.push([t[r]]):n.push(t[r]);return n}function f1(t){if(!t||t.length===0)return[[0,0]];if(Ce(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Ce(t[n])){r=!1;break}if(r)return f1([t]);for(var i=[],n=0;n<t.length;++n)if(Ce(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=Z(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function TI(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Ce(t)){var e=Math.ceil(t);return[e,e]}var r=Z(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function CI(t){return Z(t,function(e){return h1(e)})}function h1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function DI(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Hd(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Hd(i,e)}}})}var Rr=new Xr,Bf={};function EI(t,e){process.env.NODE_ENV!=="production"&&Bf[t]&&De("Already has an implementation of "+t+"."),Bf[t]=e}function AI(t){return process.env.NODE_ENV!=="production"&&(Bf[t]||De("Implementation of "+t+" doesn't exists.")),Bf[t]}var MI=1,LI=800,II=900,PI=1e3,kI=2e3,NI=5e3,c1=1e3,OI=1100,Gd=2e3,v1=3e3,RI=4e3,Vf=4500,BI=4600,VI=5e3,FI=6e3,d1=7e3,zI={PROCESSOR:{FILTER:PI,SERIES_FILTER:LI,STATISTIC:NI},VISUAL:{LAYOUT:c1,PROGRESSIVE_LAYOUT:OI,GLOBAL:Gd,CHART:v1,POST_CHART_LAYOUT:BI,COMPONENT:RI,BRUSH:VI,CHART_ITEM:Vf,ARIA:FI,DECAL:d1}},qe="__flagInMainProcess",Ff="__mainProcessVersion",nt="__pendingUpdate",Wd="__needsUpdateStatus",p1=/^[a-zA-Z0-9_]+$/,$d="__connectUpdateStatus",g1=0,HI=1,GI=2;function m1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){zt(this.id);return}return _1(this,t,e)}}function y1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return _1(this,t,e)}}function _1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Xr.prototype[e].apply(t,r)}var b1=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Xr),w1=b1.prototype;w1.on=y1("on"),w1.off=y1("off");var ga,Ud,zf,An,Hf,Yd,Xd,wo,So,S1,x1,qd,T1,Gf,C1,D1,wr,E1,xo,A1=(function(t){J(e,t);function e(r,n,i){var a=t.call(this,new Y2)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;if(a[Ff]=1,process.env.NODE_ENV!=="production"){var u=te.hasGlobalWindow?window:global;u&&(o=j(u.__ECHARTS__DEFAULT__RENDERER__,o),s=j(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=j(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr;var f=a._zr=Sy(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:j(i.useDirtyRect,l),useCoarsePointer:j(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Nd(Te(f.flush,f),17),a._updateTheme(n),a._locale=OM(i.locale||g0),a._coordSysMgr=new cd;var h=a._api=C1(a);function c(v,d){return v.__prio-d.__prio}return eu(Uf,c),eu(jd,c),a._scheduler=new Fb(a,h,jd,Uf),a._messageCenter=new b1,a._initEvents(),a.resize=Te(a.resize,a),f.animation.on("frame",a._onframe,a),S1(f,a),x1(f,a),Jh(a),a}return e.prototype._onframe=function(){if(!this._disposed){E1(this);var r=this._scheduler;if(this[nt]){var n=this[nt].silent;this[qe]=!0,xo(this);try{ga(this),An.update.call(this,null,this[nt].updateParams)}catch(l){throw this[qe]=!1,this[nt]=null,l}this._zr.flush(),this[qe]=!1,this[nt]=null,wo.call(this,n),So.call(this,n)}else if(r.unfinished){var i=MI,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Yd(this,a),r.performVisualTasks(a),Gf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(this[qe]){process.env.NODE_ENV!=="production"&&De("`setOption` should not be called during main process.");return}if(this._disposed){zt(this.id);return}var a,o,s;if(q(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[qe]=!0,xo(this),!this._model||n){var l=new CL(this._api),u=this._theme,f=this._model=new bd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Qd);var h={seriesTransition:s,optionChanged:!0};if(i)this[nt]={silent:a,updateParams:h},this[qe]=!1,this.getZr().wakeUp();else{try{ga(this),An.update.call(this,null,h)}catch(c){throw this[nt]=null,this[qe]=!1,c}this._ssr||this._zr.flush(),this[nt]=null,this[qe]=!1,wo.call(this,a),So.call(this,a)}},e.prototype.setTheme=function(r,n){if(this[qe]){process.env.NODE_ENV!=="production"&&De("`setTheme` should not be called during main process.");return}if(this._disposed){zt(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[nt]&&(a==null&&(a=this[nt].silent),o=this[nt].updateParams,this[nt]=null),this[qe]=!0,xo(this);try{this._updateTheme(r),i.setTheme(this._theme),ga(this),An.update.call(this,{type:"setTheme"},o)}catch(s){throw this[qe]=!1,s}this[qe]=!1,wo.call(this,a),So.call(this,a)}},e.prototype._updateTheme=function(r){Y(r)&&(r=M1[r]),r&&(r=fe(r),r&&Q0(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||te.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&je("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){zt(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){zt(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(L1[i]){var l=s,u=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();A(Zs,function(_,b){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(fe(r)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:w,left:S.left,top:S.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,m=h-u,p=mn.createCanvas(),g=Sy(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:m}),n){var y="";return A(c,function(_){var b=_.left-l,w=_.top-u;y+='<g transform="translate('+b+","+w+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new He({shape:{x:0,y:0,width:d,height:m},style:{fill:r.connectedBackgroundColor}})),A(c,function(_){var b=new jn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(b)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Hf(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Hf(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Hf(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){zt(this.id);return}var i=this._model,a,o=tv(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?a=a||h.containPoint(n,u):process.env.NODE_ENV!=="production"&&pt(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&pt(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=tv(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||pt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Z2(s,l,n):K2(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;A(WI,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Xs(l,function(m){var p=de(m);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=V({},p.eventData),!0},!0),u){var h=u.componentType,c=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=u.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&d)&&pt("model or view can not be found by params"),u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;A(Kd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Q2(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){zt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){zt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Fy(this.getDom(),ep,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Zs[n.id]},e.prototype.resize=function(r){if(this[qe]){process.env.NODE_ENV!=="production"&&De("`resize` should not be called during main process.");return}if(this._disposed){zt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[nt]&&(a==null&&(a=this[nt].silent),i=!0,this[nt]=null),this[qe]=!0,xo(this);try{i&&ga(this),An.update.call(this,{type:"resize",animation:V({duration:0},r&&r.animation)})}catch(o){throw this[qe]=!1,o}this[qe]=!1,wo.call(this,a),So.call(this,a)}},e.prototype.showLoading=function(r,n){if(this._disposed){zt(this.id);return}if(q(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Jd[r]){process.env.NODE_ENV!=="production"&&pt("Loading effects "+r+" not exists.");return}var i=Jd[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){zt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=V({},r);return n.type=$f[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){zt(this.id);return}if(q(n)||(n={silent:!!n}),!!Wf[r.type]&&this._model){if(this[qe]){this._pendingActions.push(r);return}var i=n.silent;Xd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&te.browser.weChat&&this._throttledZrFlush(),wo.call(this,i),So.call(this,i)}},e.prototype.updateLabelLayout=function(){Rr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){zt(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&K(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ga=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Ud(h,!0),Ud(h,!1),c.plan()},Ud=function(h,c){for(var v=h._model,d=h._scheduler,m=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__alive=!1;c?v.eachComponent(function(S,x){S!=="series"&&b(x)}):v.eachSeries(b);function b(S){var x=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,C=!x&&p[T];if(!C){var E=en(S.type),D=c?Or.getClass(E.main,E.sub):br.getClass(E.sub);process.env.NODE_ENV!=="production"&&K(D,E.sub+" does not exist."),C=new D,C.init(v,y),p[T]=C,m.push(C),g.add(C.group)}S.__viewId=C.__id=T,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(C,S,v,y)}for(var _=0;_<m.length;){var w=m[_];w.__alive?_++:(!c&&w.renderTask.dispose(),g.remove(w.group),w.dispose(v,y),m.splice(_,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},zf=function(h,c,v,d,m){var p=h._model;if(p.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),w);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var y={mainType:d,query:g};m&&(y.subType=m);var _=v.excludeSeriesId,b;_!=null&&(b=se(),A(xt(_),function(S){var x=Jr(S,null);x!=null&&b.set(x,!0)})),p&&p.eachComponent(y,function(S){var x=b&&b.get(S.id)!=null;if(!x)if(O_(v))if(S instanceof Nr)v.type===ra&&!v.notBlur&&!S.get(["emphasis","disabled"])&&gA(S,v,h._api);else{var T=Mv(S.mainType,S.componentIndex,v.name,h._api),C=T.focusSelf,E=T.dispatchers;v.type===ra&&C&&!v.notBlur&&Av(S.mainType,S.componentIndex,h._api),E&&A(E,function(D){v.type===ra?$u(D):Uu(D)})}else Iv(v)&&S instanceof Nr&&(_A(S,v,h._api),P_(S),wr(h))},h),p&&p.eachComponent(y,function(S){var x=b&&b.get(S.id)!=null;x||w(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function w(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},An={prepareAndUpdate:function(h){ga(this),An.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,m=this._zr,p=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(h),g.restoreData(v,h),g.performSeriesTasks(v),p.create(v,d),g.performDataProcessorTasks(v,h),Yd(this,v),p.update(v,d),n(v),g.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),qd(this,v,d,h,c),Rr.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var m=[];v.eachComponent(function(g,y){if(g!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,v,d,h);b&&b.update&&m.push(_)}else m.push(_)}});var p=se();v.eachSeries(function(g){var y=c._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,v,d,h);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),Gf(this,v,d,h,{},p),Rr.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),br.markUpdateMethod(h,"updateView"),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),qd(this,c,this._api,h,{}),Rr.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),br.markUpdateMethod(h,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,m){if(d!=="series"){var p=c.getViewOfComponentModel(m);p&&p.__alive&&p.updateVisual(m,v,c._api,h)}}),v.eachSeries(function(d){var m=c._chartsMap[d.__viewId];m.updateVisual(d,v,c._api,h)}),Rr.trigger("afterupdate",v,this._api))},updateLayout:function(h){An.update.call(this,h)}};function r(h,c,v,d,m){if(h._disposed){zt(h.id);return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,_=tv(p,v),b=0;b<g.length;b++){var w=g[b];if(w[c]&&(y=w[c](p,_,d,m))!=null)return y}process.env.NODE_ENV!=="production"&&pt("No coordinate system that supports "+c+" found by the given finder.")}Hf=r,Yd=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(m){d.updateStreamModes(m,v[m.__viewId])})},Xd=function(h,c){var v=this,d=this.getModel(),m=h.type,p=h.escapeConnect,g=Wf[m],y=(g.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&en(y[0]);this[qe]=!0,xo(this);var w=[h],S=!1;h.batch&&(S=!0,w=Z(h.batch,function(O){return O=xe(V({},O),h),O.batch=null,O}));var x=[],T,C=[],E=g.nonRefinedEventType,D=Iv(h),L=O_(h);if(L&&I_(this._api),A(w,function(O){var B=g.action(O,d,v._api);if(g.refineEvent?C.push(B):T=B,T=T||V({},O),T.type=E,x.push(T),L){var N=rv(h),R=N.queryOptionMap,z=N.mainTypeSpecified,H=z?R.keys()[0]:"series";zf(v,_,O,H),wr(v)}else D?(zf(v,_,O,"series"),wr(v)):b&&zf(v,_,O,b.main,b.sub)}),_!=="none"&&!L&&!D&&!b)try{this[nt]?(ga(this),An.update.call(this,h),this[nt]=null):An[_].call(this,h)}catch(O){throw this[qe]=!1,O}if(S?T={type:E,escapeConnect:p,batch:x}:T=x[0],this[qe]=!1,!c){var M=void 0;if(g.refineEvent){var P=g.refineEvent(C,h,d,this._api).eventContent;K(q(P)),M=xe({type:g.refinedEventType},P),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var k=this._messageCenter;k.trigger(T.type,T),M&&k.trigger(M.type,M)}},wo=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Xd.call(this,v,h)}},So=function(h){!h&&this.trigger("updated")},S1=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[nt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},x1=function(h,c){h.on("mouseover",function(v){var d=v.target,m=Xs(d,lo);m&&(mA(m,v,c._api),wr(c))}).on("mouseout",function(v){var d=v.target,m=Xs(d,lo);m&&(yA(m,v,c._api),wr(c))}).on("click",function(v){var d=v.target,m=Xs(d,function(y){return de(y).dataIndex!=null},!0);if(m){var p=m.selected?"unselect":"select",g=de(m);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var b=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(y==="series"?v:c).push({zlevel:b,z:w,idx:_.componentIndex,type:y,key:S})}),d){var m=c.concat(v),p,g;eu(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),A(m,function(y){var _=h.getComponent(y.type,y.idx),b=y.zlevel,w=y.key;p!=null&&(b=Math.max(p,b)),w?(b===p&&w!==g&&b++,g=w):g&&(b===p&&b++,g=""),p=b,_.setZLevel(b)})}}qd=function(h,c,v,d,m){i(c),T1(h,c,v,d,m),A(h._chartsViews,function(p){p.__alive=!1}),Gf(h,c,v,d,m),A(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},T1=function(h,c,v,d,m,p){A(p||h._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,c,v,d),l(y,g),f(y,g)})},Gf=function(h,c,v,d,m,p){var g=h._scheduler;m=V(m||{},{updatedSeries:c.getSeries()}),Rr.trigger("series:beforeupdate",c,v,m);var y=!1;c.eachSeries(function(_){var b=h._chartsMap[_.__viewId];b.__alive=!0;var w=b.renderTask;g.updatePayload(w,d),u(_,b),p&&p.get(_.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),P_(_)}),g.unfinished=y||g.unfinished,Rr.trigger("series:layoutlabels",c,v,m),Rr.trigger("series:transition",c,v,m),c.eachSeries(function(_){var b=h._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(h,c),Rr.trigger("series:afterupdate",c,v,m)},wr=function(h){h[Wd]=!0,h.getZr().wakeUp()},xo=function(h){h[Ff]=(h[Ff]+1)%1e3},E1=function(h){h[Wd]&&(h.getZr().storage.traverse(function(c){Cs(c)||a(c)}),h[Wd]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var m=v[d];m==="emphasis"||m==="blur"||m==="select"||c.push(m)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Vu&&h.states.emphasis?c.push("emphasis"):h.hoverState===Bu&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,m=0;d.traverse(function(p){p.isGroup||m++}),m>c.get("hoverLayerThreshold")&&!te.node&&!te.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(h,c){if(!h.preventAutoZ){var v=i0(h);c.eachRendered(function(d){return a0(d,v.z,v.zlevel),!0})}}function u(h,c){c.eachRendered(function(v){if(!Cs(v)){var d=v.getTextContent(),m=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),m=v.get("duration"),p=m>0?{duration:m,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Cs(g))return;if(g instanceof Ee&&CA(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),b=g.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}g.__dirty&&a(g)}})}C1=function(h){return new((function(c){J(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},v.prototype.enterEmphasis=function(d,m){$u(d,m),wr(h)},v.prototype.leaveEmphasis=function(d,m){Uu(d,m),wr(h)},v.prototype.enterBlur=function(d){pA(d),wr(h)},v.prototype.leaveBlur=function(d){E_(d),wr(h)},v.prototype.enterSelect=function(d){A_(d),wr(h)},v.prototype.leaveSelect=function(d){M_(d),wr(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[Ff]},v})(U0))(h)},D1=function(h){function c(v,d){for(var m=0;m<v.length;m++){var p=v[m];p[$d]=d}}A($f,function(v,d){h._messageCenter.on(d,function(m){if(L1[h.group]&&h[$d]!==g1){if(m&&m.escapeConnect)return;var p=h.makeActionFromEvent(m),g=[];A(Zs,function(y){y!==h&&y.group===h.group&&g.push(y)}),c(g,g1),A(g,function(y){y[$d]!==HI&&y.dispatchAction(p)}),c(g,GI)}})})}})(),e})(Xr),Zd=A1.prototype;Zd.on=m1("on"),Zd.off=m1("off"),Zd.one=function(t,e,r){var n=this;Sn("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var WI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function zt(t){process.env.NODE_ENV!=="production"&&pt("Instance "+t+" has been disposed")}var Wf={},$f={},Kd={},jd=[],Qd=[],Uf=[],M1={},Jd={},Zs={},L1={},$I=+new Date-0,ep="_echarts_instance_";function UI(t,e,r){{if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var n=YI(t);if(n)return process.env.NODE_ENV!=="production"&&pt("There is a chart instance already initialized on the dom."),n;process.env.NODE_ENV!=="production"&&za(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&!r||!t.clientHeight&&!r)&&pt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new A1(t,e,r);return i.id="ec_"+$I++,Zs[i.id]=i,Fy(t,ep,i.id),D1(i),Rr.trigger("afterinit",i),i}function YI(t){return Zs[iE(t,ep)]}function I1(t,e){M1[t]=e}function P1(t){me(Qd,t)<0&&Qd.push(t)}function k1(t,e){rp(jd,t,e,kI)}function XI(t){tp("afterinit",t)}function qI(t){tp("afterupdate",t)}function tp(t,e){Rr.on(t,e)}function To(t,e,r){var n,i,a,o,s;Q(e)&&(r=e,e=""),q(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Wf[n]||(K(p1.test(n)&&p1.test(i)),a&&K(i!==n),Wf[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Kd[i]=1,a&&s&&(Kd[u]=1),process.env.NODE_ENV!=="production"&&$f[u]&&De(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),$f[u]=n)}function ZI(t,e){cd.register(t,e)}function KI(t,e){rp(Uf,t,e,c1,"layout")}function ma(t,e){rp(Uf,t,e,v1,"visual")}var N1=[];function rp(t,e,r,n,i){if((Q(e)||q(e))&&(r=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");A(t,function(o){K(o.__raw!==r)})}if(!(me(N1,r)>=0)){N1.push(r);var a=Fb.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function O1(t,e){Jd[t]=e}function jI(t,e,r){var n=AI("registerMap");n&&n(t,e,r)}var QI=r2;ma(Gd,P2),ma(Vf,k2),ma(Vf,N2),ma(Gd,X2),ma(Vf,q2),ma(d1,DI),P1(Q0),k1(II,BL),O1("default",O2),To({type:ra,event:ra,update:ra},Nt),To({type:zu,event:zu,update:zu},Nt),To({type:Hu,event:Tv,update:Hu,action:Nt,refineEvent:np,publishNonRefinedEvent:!0}),To({type:xv,event:Tv,update:xv,action:Nt,refineEvent:np,publishNonRefinedEvent:!0}),To({type:Gu,event:Tv,update:Gu,action:Nt,refineEvent:np,publishNonRefinedEvent:!0});function np(t,e,r,n){return{eventContent:{selected:bA(r),isFromClick:e.isFromClick||!1}}}I1("default",{}),I1("dark",$b);function Ks(t){return t==null?0:t.length||1}function R1(t){return t}var JI=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||R1,this._newKeyGetter=i||R1,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Ks(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Ks(u),c=Ks(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Ks(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Ks(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),eP=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function tP(t,e){var r={},n=r.encode={},i=se(),a=[],o=[],s={};A(t.dimensions,function(c){var v=t.getDimensionInfo(c),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&K(gd.get(d)==null);var m=v.coordDimIndex;ip(n,d)[m]=c,v.isExtraCoord||(i.set(d,1),nP(v.type)&&(a[0]=c),ip(s,d)[m]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}gd.each(function(p,g){var y=ip(n,g),_=v.otherDims[g];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Z(l,function(c){return t.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new eP(s,e),r}function ip(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rP(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function nP(t){return!(t==="ordinal"||t==="time")}var Yf=(function(){function t(e){this.otherDims={},e!=null&&V(this,e)}return t})(),iP=Ve(),aP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},B1=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=z1(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return j(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=nb(this.source),n=!H1(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=r?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=aP[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function V1(t){return t instanceof B1}function F1(t){for(var e=se(),r=0;r<(t||[]).length;r++){var n=t[r],i=q(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function z1(t){var e=iP(t);return e.dimNameMap||(e.dimNameMap=F1(t.dimensionsDefine))}function H1(t){return t>30}var js=q,oi=Z,oP=typeof Int32Array>"u"?Array:Int32Array,sP="e\0\0",G1=-1,lP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uP=["_approximateExtent"],W1,Xf,Qs,Co,ap,Js,op,$1=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;V1(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=Y(h)?new Yf({name:h}):h instanceof Yf?h:new Yf(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]);var m=f;Ce(c.storeDimIndex)&&(m=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=m),d.itemId===0&&(this._idDimIdx=m),process.env.NODE_ENV!=="production"&&K(i||c.storeDimIndex>=0),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=se();A(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Ce(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof Ad&&(a=e),!a){var o=this.dimensions,s=xd(e)||kt(e)?new ob(e,o.length):e;a=new Ad;var l=oi(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=tP(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&op(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Dn&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xt;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&XD(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Jr(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Jr(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)op(this,f);W1(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){js(e)?V(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Qs(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Xf(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return W(e)?i.getValues(oi(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[r];return i==null||isNaN(i)?G1:i},t.prototype.each=function(e,r,n){Q(e)&&(n=r,r=e,e=[]);var i=n||this,a=oi(Co(e),this._getStoreDimIndex,this);this._store.each(a,i?Te(r,i):r)},t.prototype.filterSelf=function(e,r,n){Q(e)&&(n=r,r=e,e=[]);var i=n||this,a=oi(Co(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Te(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Pe(e);return A(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){Q(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=oi(Co(e),this._getStoreDimIndex,this),s=Js(this);return s._store=this._store.map(o,a?Te(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&A(Co(e),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=oi(Co(e),this._getStoreDimIndex,this);this._store.modify(s,o?Te(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=Js(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Js(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Js(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Fe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new JI(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xf(e,n)},function(n){return Xf(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},js(e)?V(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),W(a)?a=a.slice():js(a)&&(a=V({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,js(r)?V(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){js(e)?V(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?V(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;aA(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){A(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:oi(this.dimensions,this._getDimInfo,this),this.hostModel)),ap(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(jh(arguments)))})},t.internalField=(function(){W1=function(e){var r=e._invertedIndicesMap;A(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new oP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=G1;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Qs=function(e,r,n){return Jr(e._getCategory(r,n),null)},Xf=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Qs(e,e._idDimIdx,r)),n==null&&(n=sP+r),n},Co=function(e){return W(e)||(e=e!=null?[e]:[]),e},Js=function(e){var r=new t(e._schema?e._schema:oi(e.dimensions,e._getDimInfo,e),e.hostModel);return ap(r,e),r},ap=function(e,r){A(lP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,A(uP,function(n){e[n]=fe(r[n])}),e._calculationInfo=V({},r._calculationInfo)},op=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Qs(e,a,r)),l==null&&o!=null&&(i[r]=l=Qs(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function U1(t,e){xd(t)||(t=J0(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=se(),a=[],o=hP(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&H1(o),l=n===t.dimensionsDefine,u=l?z1(t):F1(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var h=se(f),c=new pb(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var E=c[C];if(E<0){var D=n[C],L=q(D)?D:{name:D},M=new Yf,P=L.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var k=a.length;return c[C]=k,M.storeDimIndex=C,a.push(M),M}return a[E]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,E){var D=xt(C).slice();if(D.length===1&&!Y(D[0])&&D[0]<0){h.set(E,!1);return}var L=h.set(E,[]);A(D,function(M,P){var k=Y(M)?u.get(M):M;k!=null&&k<o&&(L[P]=k,p(d(k),E,P))})});var m=0;A(r,function(C){var E,D,L,M;if(Y(C))E=C,M={};else{M=C,E=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=V({},M),M.ordinalMeta=P,D=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var k=h.get(E);if(k!==!1){if(k=xt(k),!k.length)for(var O=0;O<(D&&D.length||1);O++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&k.push(m++)}A(k,function(B,N){var R=d(B);if(l&&M.type!=null&&(R.type=M.type),p(xe(R,M),E,N),R.name==null&&D){var z=D[N];!q(z)&&(z={name:z}),R.name=R.displayName=z.name,R.defaultTooltip=z.defaultTooltip}L&&xe(R.otherDims,L)})}});function p(C,E,D){gd.get(E)!=null?C.otherDims[E]=D:(C.coordDim=E,C.coordDimIndex=D,i.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)A(a,function(C){w(C)}),a.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});else for(var S=0;S<o;S++){var x=d(S),T=x.coordDim;T==null&&(x.coordDim=cP(b,i,_),x.coordDimIndex=0,(!g||y<=0)&&(x.isExtraCoord=!0),y--),w(x),x.type==null&&(B0(t,S)===ut.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return fP(a),new B1({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function fP(t){for(var e=se(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function hP(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return A(e,function(a){var o;q(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function cP(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var vP=(function(){function t(e){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=e}return t})();function dP(t){var e=t.get("coordinateSystem"),r=new vP(e),n=pP[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var pP={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",fr).models[0],a=t.getReferringComponents("yAxis",fr).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Ga(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Ga(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Do(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Do(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",fr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",i),Do(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",fr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Do(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Do(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Do(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",fr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Do(t){return t.get("type")==="category"}function gP(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;mP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,h,c;if(A(a,function(y,_){Y(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,m=0;A(a,function(y){y.coordDim===v&&m++});var p={name:h,coordDim:v,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function mP(t){return!V1(t.schema)}function Eo(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function yP(t,e){return Eo(t,e)?t.getCalculationInfo("stackResultDimension"):e}function _P(t,e){var r=t.get("coordinateSystem"),n=cd.get(r),i;return e&&e.coordSysDims&&(i=Z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=rP(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function bP(t,e,r){var n,i;return r&&A(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function sp(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Xt;var o=dP(e),s=_P(e,o),l=r.useEncodeDefaulter,u=Q(l)?l:l?$e(fL,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=U1(i,f),c=bP(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=gP(e,{schema:h,store:v}),m=new $1(h,e);m.setCalculationInfo(d);var p=c!=null&&wP(i)?function(g,y,_,b){return b===c?_:this.defaultDimValueGetter(g,y,_,b)}:null;return m.hasItemOption=!1,m.initData(a?i:v,null,p),m}function wP(t){if(t.sourceFormat===Xt){var e=SP(t.data||[]);return!W(vs(e))}}function SP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function xP(t){var e=Math.pow(10,Cu(Math.abs(t))),r=Math.abs(t/e);return r===0||r===1||r===2||r===3||r===5}function lp(t){return t.type==="interval"||t.type==="log"}function TP(t,e,r,n,i){var a={},o=a.interval=Dy(e/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=el(o),l=a.niceTickExtent=[st(Math.ceil(t[0]/o)*o,s),st(Math.floor(t[1]/o)*o,s)];return CP(l,t),a}function up(t){var e=Math.pow(10,Cu(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,st(r*e)}function el(t){return wn(t)+2}function Y1(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function CP(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Y1(t,0,e),Y1(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fp(t,e){return t>=e[0]&&t<=e[1]}var DP=(function(){function t(){this.normalize=X1,this.scale=q1}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=Te(e.normalize,e),this.scale=Te(e.scale,e)):(this.normalize=X1,this.scale=q1)},t})();function X1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function q1(t,e){return t*(e[1]-e[0])+e[0]}function hp(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var si=(function(){function t(e){this._calculator=new DP,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Mu(si);var EP=0,cp=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++EP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&Z(n,AP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Y(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=se(this.categories))},t})();function AP(t){return q(t)&&t.value!=null?t.value:t+""}var Z1=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new cp({})),W(i)&&(i=new cp({categories:Z(i,function(a){return q(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Y(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return fp(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(si);si.registerClass(Z1);var li=st,Ao=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return fp(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=el(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=cf(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:li(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(d,m){return Math.round((m-d)/n)},h=a[0];h<=a[1];){if(l.push({value:h}),h=li(h+n,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=li(h+c*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:a[1];return i[1]>v&&(r.expandToNicedExtent?l.push({value:li(v+n,o)}):l.push({value:i[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],h=s.value-l.value,c=h/r,v=el(c);u<r-1;){var d=li(l.value+(u+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),u++}var m=cf();m&&m.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=wn(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=li(r.value,i,!0);return E0(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=TP(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=li(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=li(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(si);si.registerClass(Ao);var K1=typeof Float32Array<"u",MP=K1?Float32Array:Array;function Mn(t){return W(t)?K1?new Float32Array(t):t:new MP(t)}var LP="__ec_stack_";function j1(t){return t.get("stack")||LP+t.seriesIndex}function vp(t){return t.dim+t.index}function Q1(t,e){var r=[];return e.eachSeriesByType(t,function(n){ew(n)&&r.push(n)}),r}function IP(t){var e={};A(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),m=0,p=d.count();m<p;++m){var g=d.get(v,m);e[c]?e[c].push(g):e[c]=[g]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function J1(t){var e=IP(t),r=[];return A(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Be(n.get("barWidth"),s),m=Be(n.get("barMaxWidth"),s),p=Be(n.get("barMinWidth")||(tw(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:vp(a),stackId:j1(n)})}),PP(r)}function PP(t){var e={};A(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return A(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Pe(a).length;s=Math.max(35-l*4,15)+"%"}var u=Be(s,o),f=Be(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var b=g.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),g.width=b,h-=b+f*b,c--}else{var b=v;y&&y<b&&(b=Math.min(y,h)),_&&_>b&&(b=_),b!==v&&(g.width=b,h-=b+f*b,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,m;A(a,function(g,y){g.width||(g.width=v),m=g,d+=g.width*(1+f)}),m&&(d-=m.width*f);var p=-d/2;A(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function kP(t,e,r){if(t&&e){var n=t[vp(e)];return n}}function NP(t,e){var r=Q1(t,e),n=J1(r);A(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=j1(i),u=n[vp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function OP(t){return{seriesType:t,plan:kd(),reset:function(e){if(ew(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Eo(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=RP(i,a),d=tw(e),m=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var w=_.count,S=d&&Mn(w*3),x=d&&l&&Mn(w*3),T=d&&Mn(w),C=n.master.getRect(),E=c?C.width:C.height,D,L=b.getStore(),M=0;(D=_.next())!=null;){var P=L.get(h?p:o,D),k=L.get(s,D),O=v,B=void 0;h&&(B=+P-L.get(o,D));var N=void 0,R=void 0,z=void 0,H=void 0;if(c){var F=n.dataToPoint([P,k]);if(h){var $=n.dataToPoint([B,k]);O=$[0]}N=O,R=F[1]+y,z=F[0]-O,H=g,Math.abs(z)<m&&(z=(z<0?-1:1)*m)}else{var F=n.dataToPoint([k,P]);if(h){var $=n.dataToPoint([k,B]);O=$[1]}N=F[0]+y,R=O,z=g,H=F[1]-O,Math.abs(H)<m&&(H=(H<=0?-1:1)*m)}d?(S[M]=N,S[M+1]=R,S[M+2]=c?z:H,x&&(x[M]=c?C.x:N,x[M+1]=c?R:C.y,x[M+2]=E),T[D]=D):b.setItemLayout(D,{x:N,y:R,width:z,height:H}),M+=3}d&&b.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function ew(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function tw(t){return t.pipelineContext&&t.pipelineContext.large}function RP(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var BP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},rw=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pf(r.value,_0[UM(Ps(this._minLevelUnit))]||_0.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return YM(r,n,i,o,a)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=gf(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=UP(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=gf(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=oa.length-1,h=0;return A(a,function(c){f=Math.min(f,me(oa,c.time.upperTimeUnit)),h=Math.max(h,c.time.level)}),a},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=gr,n[1]+=gr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-gr}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=qf.length,s=Math.min(BP(qf,this._approxInterval,0,o),o-1);this._interval=qf[s][1],this._intervalPrecision=el(this._interval),this._minLevelUnit=qf[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return Ce(r)?r:+no(r)},e.prototype.contain=function(r){return fp(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(Ao),qf=[["second",ed],["minute",td],["hour",Is],["quarter-day",Is*6],["half-day",Is*12],["day",gr*1.2],["half-week",gr*3.5],["week",gr*7],["month",gr*31],["quarter",gr*95],["half-year",y0/2],["year",y0]];function VP(t,e,r,n){return rd(new Date(e),t,n).getTime()===rd(new Date(r),t,n).getTime()}function FP(t,e){return t/=gr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function zP(t){var e=30*gr;return t/=e,t>6?6:t>3?3:t>2?2:1}function HP(t){return t/=Is,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function nw(t,e){return t/=e?td:ed,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function GP(t){return Dy(t)}function WP(t,e,r){var n=Math.max(0,me(oa,e)-1);return rd(new Date(t),oa[n],r).getTime()}function $P(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function UP(t,e,r,n,i,a){var o=1e4,s=HM,l=0;function u(M,P,k,O,B,N,R){for(var z=$P(B,M),H=P,F=new Date(H);H<k&&H<=n[1];){if(R.push({value:H}),l++>o){process.env.NODE_ENV!=="production"&&pt("Exceed safe limit in time scale.");break}if(F[B](F[O]()+M),H=F.getTime(),a){var $=a.calcNiceTickMultiple(H,z);$>0&&(F[B](F[O]()+$*M),H=F.getTime())}}R.push({value:H,notAdd:!0})}function f(M,P,k){var O=[],B=!P.length;if(!VP(Ps(M),n[0],n[1],r)){B&&(P=[{value:WP(n[0],M,r)},{value:n[1]}]);for(var N=0;N<P.length-1;N++){var R=P[N].value,z=P[N+1].value;if(R!==z){var H=void 0,F=void 0,$=void 0,ie=!1;switch(M){case"year":H=Math.max(1,Math.round(e/gr/365)),F=b0(r),$=XM(r);break;case"half-year":case"quarter":case"month":H=zP(e),F=nd(r),$=w0(r);break;case"week":case"half-week":case"day":H=FP(e),F=id(r),$=S0(r),ie=!0;break;case"half-day":case"quarter-day":case"hour":H=HP(e),F=ad(r),$=x0(r);break;case"minute":H=nw(e,!0),F=od(r),$=T0(r);break;case"second":H=nw(e,!1),F=sd(r),$=C0(r);break;case"millisecond":H=GP(e),F=ld(r),$=D0(r);break}z>=n[0]&&R<=n[1]&&u(H,R,z,F,$,ie,O),M==="year"&&k.length>1&&N===0&&k.unshift({value:k[0].value-H})}}for(var N=0;N<O.length;N++)k.push(O[N])}}for(var h=[],c=[],v=0,d=0,m=0;m<s.length;++m){var p=Ps(s[m]);if($M(s[m])){f(s[m],h[h.length-1]||[],c);var g=s[m+1]?Ps(s[m+1]):null;if(p!==g){if(c.length){d=v,c.sort(function(M,P){return M.value-P.value});for(var y=[],_=0;_<c.length;++_){var b=c[_].value;(_===0||c[_-1].value!==b)&&(y.push(c[_]),b>=n[0]&&b<=n[1]&&v++)}var w=i/e;if(v>w*1.5&&d>w/1.5||(h.push(y),v>w||t===s[m]))break}c=[]}}}for(var S=et(Z(h,function(M){return et(M,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(M){return M.length>0}),x=[],T=S.length-1,m=0;m<S.length;++m)for(var C=S[m],E=0;E<C.length;++E){var D=gf(C[E].value,r);x.push({value:C[E].value,time:{level:T-m,upperTimeUnit:D,lowerTimeUnit:D}})}x.sort(function(M,P){return M.value-P.value});for(var L=[],m=0;m<x.length;++m)(m===0||x[m].value!==x[m-1].value)&&L.push(x[m]);return L}si.registerClass(rw);var dp=st,YP=Math.floor,XP=Math.ceil,Zf=Math.pow,Kf=Math.log,iw=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ao,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),Z(a,function(s){var l=s.value,u=null,f=Zf(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var h;return u!=null&&(f=pp(f,u)),{value:f,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=hp(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=Zf(r,n[0]),n[1]=Zf(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=pp(n[0],i[0])),this._fixMax&&(n[1]=pp(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=hp(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=WD(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[dp(XP(n[0]/a)*a),dp(YP(n[1]/a)*a)];this._interval=a,this._intervalPrecision=el(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=Kf(r)/Kf(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=Kf(r)/Kf(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),Zf(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(Ao);function pp(t,e){return dp(t,wn(e))}si.registerClass(iw);var qP=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Q(o)?this._modelMinNum=jf(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=jf(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(Q(s)?this._modelMaxNum=jf(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=jf(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=W(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Xn(u[0],1),Xn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ha(s)||Ha(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},t.prototype.modifyDataMinMax=function(e,r){process.env.NODE_ENV!=="production"&&K(!this.frozen),this[KP[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=ZP[e];process.env.NODE_ENV!=="production"&&K(!this.frozen&&this[n]==null),this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),ZP={min:"_determinedMin",max:"_determinedMax"},KP={min:"_dataMin",max:"_dataMax"};function jP(t,e,r){var n=t.rawExtentInfo;return n||(n=new qP(t,e,r),t.rawExtentInfo=n,n)}function jf(t,e){return e==null?null:Ha(e)?NaN:t.parse(e)}function aw(t,e){var r=t.type,n=jP(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=Q1("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=J1(s),f=QP(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function QP(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=kP(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,h=1-(s+l)/a,c=f/h-f;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}function ow(t,e){var r=e,n=aw(t,r),i=n.extent,a=r.get("splitNumber");t instanceof iw&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(lw(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function JP(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Z1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new rw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(si.getClass(e)||Ao)}}function ek(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function tl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=GM(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(Y(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(Q(e)){if(t.type==="category")return function(i,a){return e(Qf(t,i),i.value-t.scale.getExtent()[0],null)};var n=cf();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Qf(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Qf(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function gp(t){var e=t.get("interval");return e??"auto"}function sw(t){return t.type==="category"&&gp(t.getLabelModel())===0}function tk(t,e){var r={};return A(t.mapDimensionsAll(e),function(n){r[yP(t,n)]=!0}),Pe(r)}function Mo(t){return t==="middle"||t==="center"}function rl(t){return t.getShallow("show")}function lw(t){var e=t.get("breaks",!0);if(e!=null){process.env.NODE_ENV!=="production"&&De('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var rk=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),uw=[],nk={registerPreprocessor:P1,registerProcessor:k1,registerPostInit:XI,registerPostUpdate:qI,registerUpdateLifecycle:tp,registerAction:To,registerCoordinateSystem:ZI,registerLayout:KI,registerVisual:ma,registerTransform:QI,registerLoading:O1,registerMap:jI,registerImpl:EI,PRIORITY:zI,ComponentModel:ye,ComponentView:Or,SeriesModel:Nr,ChartView:br,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){Or.registerClass(t)},registerSeriesModel:function(t){Nr.registerClass(t)},registerChartView:function(t){br.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){RD(t,e)}};function ui(t){if(W(t)){A(t,function(e){ui(e)});return}me(uw,t)>=0||(uw.push(t),Q(t)&&(t={install:t}),t.install(nk))}var ik=Ve(),nl=Ve(),Br={estimate:1,determine:2};function Jf(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function fw(t,e){var r=Z(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function ak(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=tl(t),i=t.scale.getExtent(),a=fw(t,r),o=et(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:Z(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?sk(t,e):uk(t)}function ok(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=fw(t,n);return{ticks:et(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?lk(t,e):{ticks:Z(t.scale.getTicks(r),function(o){return o.value})}}function sk(t,e){var r=t.getLabelModel(),n=hw(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function hw(t,e,r){var n=hk(t),i=gp(e),a=r.kind===Br.estimate;if(!a){var o=vw(n,i);if(o)return o}var s,l;Q(i)?s=gw(t,i):(l=i==="auto"?ck(t,r):i,s=pw(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return mp(n,i,u),!0}):mp(n,i,u),u}function lk(t,e){var r=fk(t),n=gp(e),i=vw(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),Q(n))a=gw(t,n,!0);else if(n==="auto"){var s=hw(t,t.getLabelModel(),Jf(Br.determine));o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=pw(t,o,!0);return mp(r,n,{ticks:a,tickCategoryInterval:o})}function uk(t){var e=t.scale.getTicks(),r=tl(t);return{labels:Z(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var fk=cw("axisTick"),hk=cw("axisLabel");function cw(t){return function(r){return nl(r)[t]||(nl(r)[t]={list:[]})}}function vw(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function mp(t,e,r){return t.list.push({key:e,value:r}),r}function ck(t,e){if(e.kind===Br.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return nl(t).autoInterval=r,!0}),r}var n=nl(t).autoInterval;return n??(nl(t).autoInterval=t.calculateCategoryInterval(e))}function vk(t,e){var r=e.kind,n=pk(t),i=tl(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],c=t.dataToCoord(h+1)-t.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),m=0,p=0;h<=s[1];h+=u){var g=0,y=0,_=_y(i({value:h}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,m=Math.max(m,g,7),p=Math.max(p,y,7)}var b=m/v,w=p/d;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));if(r===Br.estimate)return e.out.noPxChangeTryDetermine.push(Te(dk,null,t,S,l)),S;var x=dw(t,S,l);return x??S}function dk(t,e,r){return dw(t,e,r)==null}function dw(t,e,r){var n=ik(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function pk(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function pw(t,e,r){var n=tl(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=sw(t),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);v&&d-l!==a[1]&&m(a[1]);function m(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p,time:void 0,break:void 0})}return s}function gw(t,e,r){var n=t.scale,i=tl(t),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var mw=[0,1],gk=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return FD(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),yw(n,i.count())),Kc(e,mw,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),yw(n,i.count()));var a=Kc(e,n,mw,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=ok(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return mk(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||Jf(Br.determine),ak(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||Jf(Br.determine),vk(this,e)},t})();function yw(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function mk(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;A(e,function(v){v.coord-=u/2,v.onBand=!0});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var h=a[0]>a[1];c(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&c(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&c(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function c(v,d){return v=st(v),d=st(d),h?v>d:v<d}}function _w(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,h=n-e,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;d*=c;var m=o[0]=t+d*f,p=o[1]=e+d*h;return Math.sqrt((m-i)*(m-i)+(p-a)*(p-a))}var fi=new ne,We=new ne,ft=new ne,hi=new ne,ln=new ne,eh=[],Dt=new ne;function yk(t,e){if(e<=180&&e>0){e=e/180*Math.PI,fi.fromArray(t[0]),We.fromArray(t[1]),ft.fromArray(t[2]),ne.sub(hi,fi,We),ne.sub(ln,ft,We);var r=hi.len(),n=ln.len();if(!(r<.001||n<.001)){hi.scale(1/r),ln.scale(1/n);var i=hi.dot(ln),a=Math.cos(e);if(a<i){var o=_w(We.x,We.y,ft.x,ft.y,fi.x,fi.y,eh);Dt.fromArray(eh),Dt.scaleAndAdd(ln,o/Math.tan(Math.PI-e));var s=ft.x!==We.x?(Dt.x-We.x)/(ft.x-We.x):(Dt.y-We.y)/(ft.y-We.y);if(isNaN(s))return;s<0?ne.copy(Dt,We):s>1&&ne.copy(Dt,ft),Dt.toArray(t[1])}}}}function _k(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,fi.fromArray(t[0]),We.fromArray(t[1]),ft.fromArray(t[2]),ne.sub(hi,We,fi),ne.sub(ln,ft,We);var n=hi.len(),i=ln.len();if(!(n<.001||i<.001)){hi.scale(1/n),ln.scale(1/i);var a=hi.dot(e),o=Math.cos(r);if(a<o){var s=_w(We.x,We.y,ft.x,ft.y,fi.x,fi.y,eh);Dt.fromArray(eh);var l=Math.PI/2,u=Math.acos(ln.dot(e)),f=l+u-r;if(f>=l)ne.copy(Dt,ft);else{Dt.scaleAndAdd(ln,s/Math.tan(Math.PI/2-f));var h=ft.x!==We.x?(Dt.x-We.x)/(ft.x-We.x):(Dt.y-We.y)/(ft.y-We.y);if(isNaN(h))return;h<0?ne.copy(Dt,We):h>1&&ne.copy(Dt,ft)}Dt.toArray(t[1])}}}}function yp(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function bk(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=nc(n[0],n[1]),a=nc(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=ic([],n[1],n[0],o/i),l=ic([],n[1],n[2],o/a),u=ic([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function wk(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Fu.length;l++){var u=Fu[l],f=e[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:j(i.states[u]&&i.states[u].ignore,s);if(v||!j(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&yp(n,!0,u,f);continue}n||(n=new Ts,t.setTextGuideLine(n),!h&&(s||!o)&&yp(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),yp(n,!1,u,f)}}if(n){xe(n.style,r),n.style.fill=null;var m=a.get("showAbove"),p=t.textGuideLineConfig=t.textGuideLineConfig||{};p.showAbove=m||!1,n.buildPath=bk}}function Sk(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<dr.length;n++){var i=dr[n];r[i]=t.getModel([i,e])}return r}var bw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],xk=1,th=2,ww=xk|th;function rh(t,e,r){r=r||ww,e?t.dirty|=r:t.dirty&=~r}function Sw(t,e){return e=e||ww,t.dirty==null||!!(t.dirty&e)}function ci(t){if(t)return Sw(t)&&xw(t,t.label,t),t}function xw(t,e,r){var n=e.getComputedTransform();t.transform=Zv(t.transform,n);var i=t.localRect=As(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=co.textMargin);for(var h=0;h<4;h++)_p[h]=f===co.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===co.textMargin&&rf(i,_p,!1,!1);var c=t.rect=As(t.rect,i);return n&&c.applyTransform(n),f===co.minMargin&&rf(c,_p,!1,!1),t.axisAligned=qv(n),(t.label=t.label||{}).ignore=e.ignore,rh(t,!1),rh(t,!0,th),t}var _p=[0,0,0,0];function Tk(t,e,r){return t.transform=Zv(t.transform,r),t.localRect=As(t.localRect,e),t.rect=As(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=qv(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function Ck(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Tw(t,e){for(var r=0;r<bw.length;r++){var n=bw[r];t[n]==null&&(t[n]=e[n])}return ci(t)}function Cw(t){var e=t.obb;return(!e||Sw(t,th))&&(t.obb=e=e||new Z_,e.fromBoundingRect(t.localRect,t.transform),rh(t,!1,th)),e}function Dk(t,e,r,n,i){var a=t.length,o=ei[e],s=ho[e];if(a<2)return!1;t.sort(function(x,T){return x.rect[o]-T.rect[o]});for(var l=0,u,f=!1,h=0;h<a;h++){var c=t[h],v=c.rect;u=v[o]-l,u<0&&(v[o]-=u,c.label[o]-=u,f=!0),l=v[o]+v[s]}var d=t[0],m=t[a-1],p,g;y(),p<0&&w(-p,.8),g<0&&w(g,.8),y(),_(p,g,1),_(g,p,-1),y(),p<0&&S(-p),g<0&&S(g);function y(){p=d.rect[o]-r,g=n-m.rect[o]-m.rect[s]}function _(x,T,C){if(x<0){var E=Math.min(T,-x);if(E>0){b(E*C,0,a);var D=E+x;D<0&&w(-D*C,1)}else w(-x*C,1)}}function b(x,T,C){x!==0&&(f=!0);for(var E=T;E<C;E++){var D=t[E],L=D.rect;L[o]+=x,D.label[o]+=x}}function w(x,T){for(var C=[],E=0,D=1;D<a;D++){var L=t[D-1].rect,M=Math.max(t[D].rect[o]-L[o]-L[s],0);C.push(M),E+=M}if(E){var P=Math.min(Math.abs(x)/E,T);if(x>0)for(var D=0;D<a-1;D++){var k=C[D]*P;b(k,0,D+1)}else for(var D=a-1;D>0;D--){var k=C[D-1]*P;b(-k,D,a)}}}function S(x){var T=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(a-1)),E=0;E<a-1;E++)if(T>0?b(C,0,E+1):b(-C,a-E-1,a),x-=C,x<=0)return}return f}function Ek(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=ci(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(bp(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function bp(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:Cw(t).intersect(Cw(e),r,n)}var Ak=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return sp(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new tt,i=bo("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=bo(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=X.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Nr);function wp(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=go(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(go(t,e,r[o]));return a.join(" ")}}function Dw(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Sp=(function(t){J(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=bo(r,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Mk,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$u(this.childAt(0))},e.prototype.downplay=function(){Uu(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,c)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?v.attr(d):Ct(v,d,s,n),Hv(v)}if(this._updateCommon(r,n,l,i,a),f){var v=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,pr(v,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,h,c,v,d,m,p,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,m=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),m=Ls(y),p=_.getShallow("scale"),g=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=Yb(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var S=r.getItemVisual(n,"style"),x=S.fill;if(s instanceof jn){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(V({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),E=this._z2;C!=null?E==null&&(this._z2=s.z2,s.z2+=C):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;Ms(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:x,defaultOpacity:S.opacity});function L(k){return D?r.getName(k):wp(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),bs(this,c,v,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=de(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&tf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();tf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return fI(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(tt);function Mk(t,e){this.parent.drift(t,e)}function xp(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Ew(t){return t!=null&&!q(t)&&(t={isIgnore:t}),t||{}}function Aw(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ls(e),cursorStyle:e.get("cursor")}}var Lk=(function(){function t(e){this.group=new tt,this._SymbolCtor=e||Sp}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Ew(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Aw(e),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var c=f(h);if(xp(e,c,h,r)){var v=new o(e,h,l,u);v.setPosition(c),e.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!xp(e,d,h,r)){n.remove(v);return}var m=e.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==m)n.remove(v),v=new o(e,h,l,u),v.setPosition(d);else{v.updateData(e,h,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Ct(v,g,i)}n.add(v),e.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Aw(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Ew(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(xp(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){af(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function Mw(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=Ik(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=Z(t.dimensions,function(d){return e.mapDimension(d)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return Eo(e,h[0])&&(c=!0,h[0]=v),Eo(e,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ik(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Ce(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Lw(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Pk(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function kk(t,e,r,n,i,a,o,s){for(var l=Pk(t,e),u=[],f=[],h=[],c=[],v=[],d=[],m=[],p=Mw(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],w=!0,S=void 0,x=void 0;switch(b.cmd){case"=":S=b.idx*2,x=b.idx1*2;var T=g[S],C=g[S+1],E=y[x],D=y[x+1];(isNaN(T)||isNaN(C))&&(T=E,C=D),u.push(T,C),f.push(E,D),h.push(r[S],r[S+1]),c.push(n[x],n[x+1]),m.push(e.getRawIndex(b.idx1));break;case"+":var L=b.idx,M=p.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);x=L*2,u.push(P[0],P[1]),f.push(y[x],y[x+1]);var k=Lw(p,i,e,L);h.push(k[0],k[1]),c.push(n[x],n[x+1]),m.push(e.getRawIndex(L));break;case"-":w=!1}w&&(v.push(b),d.push(d.length))}d.sort(function(Ae,ht){return m[Ae]-m[ht]});for(var O=u.length,B=Mn(O),N=Mn(O),R=Mn(O),z=Mn(O),H=[],_=0;_<d.length;_++){var F=d[_],$=_*2,ie=F*2;B[$]=u[ie],B[$+1]=u[ie+1],N[$]=f[ie],N[$+1]=f[ie+1],R[$]=h[ie],R[$+1]=h[ie+1],z[$]=c[ie],z[$+1]=c[ie+1],H[_]=v[F]}return{current:B,next:N,stackedOnCurrent:R,stackedOnNext:z,status:H}}var vi=Math.min,di=Math.max;function ya(t,e){return isNaN(t)||isNaN(e)}function Tp(t,e,r,n,i,a,o,s,l){for(var u,f,h,c,v,d,m=r,p=0;p<n;p++){var g=e[m*2],y=e[m*2+1];if(m>=i||m<0)break;if(ya(g,y)){if(l){m+=a;continue}break}if(m===r)t[a>0?"moveTo":"lineTo"](g,y),h=g,c=y;else{var _=g-u,b=y-f;if(_*_+b*b<.5){m+=a;continue}if(o>0){for(var w=m+a,S=e[w*2],x=e[w*2+1];S===g&&x===y&&p<n;)p++,w+=a,m+=a,S=e[w*2],x=e[w*2+1],g=e[m*2],y=e[m*2+1],_=g-u,b=y-f;var T=p+1;if(l)for(;ya(S,x)&&T<n;)T++,w+=a,S=e[w*2],x=e[w*2+1];var C=.5,E=0,D=0,L=void 0,M=void 0;if(T>=n||ya(S,x))v=g,d=y;else{E=S-u,D=x-f;var P=g-u,k=S-g,O=y-f,B=x-y,N=void 0,R=void 0;if(s==="x"){N=Math.abs(P),R=Math.abs(k);var z=E>0?1:-1;v=g-z*N*o,d=y,L=g+z*R*o,M=y}else if(s==="y"){N=Math.abs(O),R=Math.abs(B);var H=D>0?1:-1;v=g,d=y-H*N*o,L=g,M=y+H*R*o}else N=Math.sqrt(P*P+O*O),R=Math.sqrt(k*k+B*B),C=R/(R+N),v=g-E*o*(1-C),d=y-D*o*(1-C),L=g+E*o*C,M=y+D*o*C,L=vi(L,di(S,g)),M=vi(M,di(x,y)),L=di(L,vi(S,g)),M=di(M,vi(x,y)),E=L-g,D=M-y,v=g-E*N/R,d=y-D*N/R,v=vi(v,di(u,g)),d=vi(d,di(f,y)),v=di(v,vi(u,g)),d=di(d,vi(f,y)),E=g-v,D=y-d,L=g+E*R/N,M=y+D*R/N}t.bezierCurveTo(h,c,v,d,g,y),h=L,c=M}else t.lineTo(g,y)}u=g,f=y,m+=a}return p}var Iw=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),Nk=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:X.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Iw},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ya(i[o*2-2],i[o*2-1]);o--);for(;a<o&&ya(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Tp(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Qi.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,m=void 0,p=void 0,g=void 0,y=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=u?(r-s)/(v-s):(r-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(v-s)*_+s;return u?[r,b]:[b,r]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],m=a[h++],p=a[h++],g=a[h++],y=a[h++];var w=u?au(s,v,m,g,r,f):au(l,d,p,y,r,f);if(w>0)for(var S=0;S<w;S++){var x=f[S];if(x<=1&&x>=0){var b=u?ot(l,d,p,y,x):ot(s,v,m,g,x);return u?[r,b]:[b,r]}}s=g,l=y;break}}},e})(Ee),Ok=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Iw),Rk=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new Ok},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ya(i[s*2-2],i[s*2-1]);s--);for(;o<s&&ya(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Tp(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Tp(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(Ee);function Pw(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new He({shape:{x:o,y:s,width:l,height:u}});if(e){var c=t.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var m=Q(i)?function(p){i(p,h)}:null;pr(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return h}function kw(t,e,r){var n=t.getArea(),i=st(n.r0,1),a=st(n.r,1),o=new Qn({shape:{cx:st(t.cx,1),cy:st(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,pr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Bk(t,e,r,n,i){if(t){if(t.type==="polar")return kw(t,e,r);if(t.type==="cartesian2d")return Pw(t,e,r,n,i)}else return null;return null}function Cp(t,e){return t.type===e}function Nw(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Ow(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[e,r],[n,i]]}function Rw(t,e){var r=Ow(t),n=r[0],i=r[1],a=Ow(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Bw(t){return Ce(t)?t:t?.5:0}function Vk(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=Mn(n*2),a=0;a<n;a++){var o=Lw(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function pi(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],c=[];if(i){for(l=0;l<t.length;l+=2){var v=e||t;!isNaN(v[l])&&!isNaN(v[l+1])&&c.push(t[l],t[l+1])}t=c}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,m=[];u[o]=m[o]=d,u[1-o]=f[1-o],m[1-o]=h[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Fk(t,e){var r=[],n=t.length,i,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),m=uD(d,[f.color,h.color]);return{coord:c,color:m}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function zk(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=Z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=Fk(u,i==="x"?r.getWidth():r.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,m=c[0].coord-d,p=c[v-1].coord+d,g=p-m;if(g<.001)return"transparent";A(c,function(_){_.offset=(_.coord-m)/g}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new q_(0,0,0,0,c,!0);return y[i]=m,y[i+"2"]=p,y}}function Hk(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Gk(a,e))){var o=e.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Gk(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Sp.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function Wk(t,e){return isNaN(t)||isNaN(e)}function $k(t){for(var e=t.length/2;e>0&&Wk(t[e*2-2],t[e*2-1]);e--);return e-1}function Vw(t,e){return[t[e*2],t[e*2+1]]}function Uk(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Fw(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<dr.length;e++)if(t.get([dr[e],"endLabel","show"]))return!0;return!1}function Dp(t,e,r,n){if(Cp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Fw(n)?function(v,d){t._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Pw(e,r,n,function(){var v=t._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),kw(e,r,n)}function Yk(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var Xk=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new tt,n=new Lk;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Te(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,m=this._polygon,p=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=Mw(a,s,_),w=y&&Vk(a,s,b),S=r.get("showSymbol"),x=r.get("connectNulls"),T=S&&!h&&Hk(r,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Ae,ht){Ae.__temp&&(o.remove(Ae),C.setItemGraphicEl(ht,null))}),S||v.remove(),o.add(p);var E=h?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=zk(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&E===this._step))S&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(w&&(w=pi(w,f,a,E,x)),f=pi(f,null,a,E,x)),d=this._newPolyline(f),y?m=this._newPolygon(f,w):m&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,sa(L)),p.setClipPath(Dp(this,a,!0,r));else{y&&!m?m=this._newPolygon(f,w):m&&!y&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,sa(L));var M=p.getClipPath();if(M){var P=Dp(this,a,!1,r);pr(M,{shape:P.shape},r)}else p.setClipPath(Dp(this,a,!0,r));S&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),(!Nw(this._stackedOnPoints,w)||!Nw(this._points,f))&&(g?this._doUpdateAnimation(s,w,a,i,E,_,x):(E&&(w&&(w=pi(w,f,a,E,x)),f=pi(f,null,a,E,x)),d.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:w})))}var k=r.getModel("emphasis"),O=k.get("focus"),B=k.get("blurScope"),N=k.get("disabled");if(d.useStyle(xe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Yu(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var R=d.getState("emphasis").style;R.lineWidth=+d.style.lineWidth+1}de(d).seriesIndex=r.seriesIndex,bs(d,O,B,N);var z=Bw(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:H,connectNulls:x}),m){var F=s.getCalculationInfo("stackedOnSeries"),$=0;m.useStyle(xe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&($=Bw(F.get("smooth"))),m.setShape({smooth:z,stackedOnSmooth:$,smoothMonotone:H,connectNulls:x}),Yu(m,r,"areaStyle"),de(m).seriesIndex=r.seriesIndex,bs(m,O,B,N)}var ie=this._changePolyState;s.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=E,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),m&&this.packEventData(r,m))},e.prototype.packEventData=function(r,n){de(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=$i(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=r.get("zlevel")||0,v=r.get("z")||0;u=new Sp(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else br.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=$i(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else br.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;T_(this._polyline,r),n&&T_(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Nk({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Rk({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=Q(h)?h(null):h;r.eachItemGraphicEl(function(v,d){var m=v;if(m){var p=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,w=n.pointToCoord(p);a?(g=b.startAngle,y=b.endAngle,_=-w[1]/180*Math.PI):(g=b.r0,y=b.r,_=w[0])}else{var S=i;a?(g=S.x,y=S.x+S.width,_=v.x):(g=S.y+S.height,y=S.y,_=v.y)}var x=y===g?0:(_-g)/(y-g);l&&(x=1-x);var T=Q(h)?h(d):f*x+c,C=m.getSymbolPath(),E=C.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Fw(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new lt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=$k(l);f>=0&&(Ms(s,Ls(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?Dw(o,v):wp(o,h)},enableTextSetter:!0},Yk(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,_=n.shape,b=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?m:0)*(y?-1:1),S=(g?0:-m)*(y?-1:1),x=g?"x":"y",T=Uk(h,b,x),C=T.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!v){var L=Vw(h,C[0]);u.attr({x:L[0]+w,y:L[1]+S}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(b,x);L&&u.attr({x:L[0]+w,y:L[1]+S});var M=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=oE(i,d,M,P,T.t))}a.lastFrameIndex=C[0]}else{var k=r===1||a.lastFrameIndex>0?C[0]:0,L=Vw(h,k);o&&(D=c.getRawValue(k)),u.attr({x:L[0]+w,y:L[1]+S})}if(o){var O=lf(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=r.hostModel,c=kk(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,m=c.next,p=c.stackedOnNext;if(o&&(d=pi(c.stackedOnCurrent,c.current,i,o,l),v=pi(c.current,null,i,o,l),p=pi(c.stackedOnNext,c.next,i,o,l),m=pi(c.next,null,i,o,l)),Rw(v,m)>3e3||f&&Rw(d,p)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var g={shape:{points:m}};c.current!==v&&(g.shape.__points=c.next),u.stopAnimation(),Ct(u,g,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Ct(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=c.status,b=0;b<_.length;b++){var w=_[b].cmd;if(w==="="){var S=r.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,E=y[T].ptIdx*2;C.x=x[E],C.y=x[E+1],C.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(br);function qk(t,e){return{seriesType:t,plan:kd(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=Z(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Eo(n,a[0])&&(a[0]=s),Eo(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,c){for(var v=h.end-h.start,d=Mn(v*o),m=[],p=[],g=h.start,y=0;g<h.end;g++){var _=void 0;if(o===1){var b=l.get(u,g);_=i.dataToPoint(b,null,p)}else m[0]=l.get(u,g),m[1]=l.get(f,g),_=i.dataToPoint(m,null,p);d[y++]=_[0],d[y++]=_[1]}c.setLayout("points",d)}}}}}}var Zk={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Kk=function(t){return Math.round(t.length/2)};function zw(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Y(a)?d=Zk[a]:Q(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,Kk))}}}}}function jk(t){t.registerChartView(Xk),t.registerSeriesModel(Ak),t.registerLayout(qk("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,zw("line"))}var Ep=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return sp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),m=c.getTickModel().get("alignWithLabel"),p=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&!m&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,b=1,w=0;w<d.length;w++){var S=d[w].coord,x=w===d.length-1?d[w-1].tickValue+b:d[w].tickValue;if(x===p){_=S;break}else if(x<p)y=S;else if(y!=null&&x>p){_=(S+y)/2;break}w===1&&(b=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Nr);Nr.registerClass(Ep);var Qk=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return sp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=p0(Ep.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:X.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Ep),Jk=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Hw=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Jk},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var m=Math.cos(f),p=Math.sin(f),g=Math.cos(h),y=Math.sin(h);d?(r.moveTo(m*o+i,p*o+a),r.arc(m*u+i,p*u+a,l,-Math.PI+f,f,!c)):r.moveTo(m*s+i,p*s+a),r.arc(i,a,s,f,h,!c),r.arc(g*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&r.arc(i,a,o,h,f,c)},e})(Ee);function eN(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return wu(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,m=u.startAngle,p=u.endAngle,g=(m+p)/2,y=r?Math.abs(c-v)/2:0,_=Math.cos,b=Math.sin,w=f+c*_(m),S=h+c*b(m),x="left",T="top";switch(s){case"startArc":w=f+(v-l)*_(g),S=h+(v-l)*b(g),x="center",T="top";break;case"insideStartArc":w=f+(v+l)*_(g),S=h+(v+l)*b(g),x="center",T="bottom";break;case"startAngle":w=f+d*_(m)+nh(m,l+y,!1),S=h+d*b(m)+ih(m,l+y,!1),x="right",T="middle";break;case"insideStartAngle":w=f+d*_(m)+nh(m,-l+y,!1),S=h+d*b(m)+ih(m,-l+y,!1),x="left",T="middle";break;case"middle":w=f+d*_(g),S=h+d*b(g),x="center",T="middle";break;case"endArc":w=f+(c+l)*_(g),S=h+(c+l)*b(g),x="center",T="bottom";break;case"insideEndArc":w=f+(c-l)*_(g),S=h+(c-l)*b(g),x="center",T="top";break;case"endAngle":w=f+d*_(p)+nh(p,l+y,!0),S=h+d*b(p)+ih(p,l+y,!0),x="left",T="middle";break;case"insideEndAngle":w=f+d*_(p)+nh(p,-l+y,!0),S=h+d*b(p)+ih(p,-l+y,!0),x="right",T="middle";break;default:return wu(n,i,a)}return n=n||{},n.x=w,n.y=S,n.align=x,n.verticalAlign=T,n}}function tN(t,e,r,n){if(Ce(n)){t.setTextConfig({rotation:n});return}else if(W(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function nh(t,e,r){return e*Math.sin(t)*(r?-1:1)}function ih(t,e,r){return e*Math.cos(t)*(r?1:-1)}function il(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Z(n,function(a){return Xn(a,i)})}}var Ap=Math.max,Mp=Math.min;function rN(t,e){var r=t.getArea&&t.getArea();if(Cp(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var nN=(function(t){J(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a)):process.env.NODE_ENV!=="production"&&pt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){af(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=r.isAnimationEnabled()?r:null,v=iN(r,u);v&&this._enableRealtimeSort(v,s,i);var d=r.get("clip",!0)||v,m=rN(u,s);o.removeClipPath();var p=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],w=this._backgroundEls,S=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T(D){var L=ah[u.type](s,D);if(!L)return null;var M=hN(u,h,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),b[D]=M,M}s.diff(l).add(function(D){var L=s.getItemModel(D),M=ah[u.type](s,D,L);if(M&&(g&&T(D),!(!s.hasValue(D)||!Yw[u.type](M)))){var P=!1;d&&(P=Gw[u.type](m,M));var k=Ww[u.type](r,s,D,M,h,c,f.model,!1,p);v&&(k.forceLabelAnimation=!0),qw(k,s,D,L,M,r,h,u.type==="polar"),S?k.attr({shape:M}):v?$w(v,c,k,M,D,h,!1,!1):pr(k,{shape:M},r,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=P}}).update(function(D,L){var M=s.getItemModel(D),P=ah[u.type](s,D,M);if(P){if(g){var k=void 0;w.length===0?k=T(L):(k=w[L],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),b[D]=k);var O=ah[u.type](s,D),B=Qw(h,O,u);Ct(k,{shape:B},c,D)}var N=l.getItemGraphicEl(L);if(!s.hasValue(D)||!Yw[u.type](P)){o.remove(N);return}var R=!1;d&&(R=Gw[u.type](m,P),R&&o.remove(N));var z=N&&(N.type==="sector"&&p||N.type==="sausage"&&!p);if(z&&(N&&Ds(N,r,L),N=null),N?Hv(N):N=Ww[u.type](r,s,D,P,h,c,f.model,!0,p),v&&(N.forceLabelAnimation=!0),x){var H=N.getTextContent();if(H){var F=lf(H);F.prevValue!=null&&(F.prevValue=F.value)}}else qw(N,s,D,M,P,r,h,u.type==="polar");S?N.attr({shape:P}):v?$w(v,c,N,P,D,h,!0,x):Ct(N,{shape:P},r,D,null),s.setItemGraphicEl(D,N),N.ignore=R,o.add(N)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Ds(L,r,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new tt);C.removeAll();for(var E=0;E<b.length;++E)C.add(b[E]);o.add(C),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),Kw(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Kw(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Bk(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Z(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ds(a,r,de(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(br),Gw={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Ap(e.x,t.x),s=Mp(e.x+e.width,i),l=Ap(e.y,t.y),u=Mp(e.y+e.height,a),f=s<o,h=u<l;return e.x=f&&o>i?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Mp(e.r,t.r),a=Ap(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Ww={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new He({shape:V({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Hw:Qn,f=new u({shape:n,z2:1});f.name="item";var h=Xw(i);if(f.calculateTextPosition=eN(h,{isRoundCap:u===Hw}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ct:pr)(f,{shape:d},a)}return f}};function iN(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&pt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&pt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function $w(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ct:pr)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Ct:pr)(r,{shape:u},f,i)}function Uw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var aN=["x","y","width","height"],oN=["cx","cy","r","startAngle","endAngle"],Yw={cartesian2d:function(t){return!Uw(t,aN)},polar:function(t){return!Uw(t,oN)}},ah={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?lN(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function sN(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Xw(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function qw(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,h=il(n.getModel("itemStyle"),f,!0);V(f,h),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var c=n.getShallow("cursor");c&&t.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ls(n);Ms(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:wp(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var m=t.getTextContent();if(s&&m){var p=n.get(["label","position"]);t.textConfig.inside=p==="middle"?!0:null,tN(t,p==="outside"?v:p,Xw(o),n.get(["label","rotate"]))}xM(m,d,a.getRawValue(r),function(y){return Dw(e,y)});var g=n.getModel(["emphasis"]);bs(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Yu(t,n),sN(i)&&(t.style.fill="none",t.style.stroke="none",A(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function lN(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var uN=(function(){function t(){}return t})(),Zw=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new uN},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(Ee);function Kw(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Zw({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var h=new Zw({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,de(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",jw),h.on("mousemove",jw)),r&&r.push(h)}var jw=Nd(function(t){var e=this,r=fN(e,t.offsetX,t.offsetY);de(e).dataIndex=r>=0?r:null},30,!1);function fN(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Qw(t,e,r){if(Cp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function hN(t,e,r){var n=t.type==="polar"?Qn:He;return new n({shape:Qw(e,r,t),silent:!0,z2:0})}function cN(t){t.registerChartView(nN),t.registerSeriesModel(Qk),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,$e(NP,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,OP("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,zw("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Jw=Math.PI*2,oh=Math.PI/180;function vN(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=nL(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,h=o.viewRect,c=-n.get("startAngle")*oh,v=n.get("endAngle"),d=n.get("padAngle")*oh;v=v==="auto"?c-Jw:-v*oh;var m=n.get("minAngle")*oh,p=m+d,g=0;i.each(a,function(B){!isNaN(B)&&g++});var y=i.getSum(a),_=Math.PI/(y||g)*2,b=n.get("clockwise"),w=n.get("roseType"),S=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var T=b?1:-1,C=[c,v],E=T*d/2;r_(C,!b),c=C[0],v=C[1];var D=eS(n);D.startAngle=c,D.endAngle=v,D.clockwise=b,D.cx=s,D.cy=l,D.r=u,D.r0=f;var L=Math.abs(v-c),M=L,P=0,k=c;if(i.setLayout({viewRect:h,r:u}),i.each(a,function(B,N){var R;if(isNaN(B)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:f,r:w?NaN:u});return}w!=="area"?R=y===0&&S?_:B*_:R=L/g,R<p?(R=p,M-=p):P+=B;var z=k+T*R,H=0,F=0;d>R?(H=k+T*R/2,F=H):(H=k+E,F=z-E),i.setItemLayout(N,{angle:R,startAngle:H,endAngle:F,clockwise:b,cx:s,cy:l,r0:f,r:w?Kc(B,x,[f,u]):u}),k=z}),M<Jw&&g)if(M<=.001){var O=L/g;i.each(a,function(B,N){if(!isNaN(B)){var R=i.getItemLayout(N);R.angle=O;var z=0,H=0;O<d?(z=c+T*(N+.5)*O,H=z):(z=c+T*N*O+E,H=c+T*(N+1)*O-E),R.startAngle=z,R.endAngle=H}})}else _=M/P,k=c,i.each(a,function(B,N){if(!isNaN(B)){var R=i.getItemLayout(N),z=R.angle===p?p:B*_,H=0,F=0;z<d?(H=k+T*z/2,F=H):(H=k+E,F=k+T*z-E),R.startAngle=H,R.endAngle=F,k+=T*z}})})}var eS=Ve();function dN(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var pN=Math.PI/180;function tS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(m){for(var p=m.rB,g=p*p,y=0;y<m.list.length;y++){var _=m.list[y],b=Math.abs(_.label.y-r),w=n+_.len,S=w*w,x=Math.sqrt(Math.abs((1-b*b/g)*S)),T=e+(x+_.len2)*i,C=T-_.label.x,E=_.targetTextWidth-C*i;rS(_,E,!0),_.label.x=T}}function h(m){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<m.length;y++)if(m[y].labelAlignTo==="none"){var _=m[y],b=_.label.y>r?g:p,w=Math.abs(_.label.y-r);if(w>=b.maxY){var S=_.label.x-e-_.len2*i,x=n+_.len,T=Math.abs(S)<x?Math.sqrt(w*w/(1-S*S/x/x)):x;b.rB=T,b.maxY=w}b.list.push(_)}f(p),f(g)}for(var c=t.length,v=0;v<c;v++)if(t[v].position==="outer"&&t[v].labelAlignTo==="labelLine"){var d=t[v].label.x-u;t[v].linePoints[1][0]+=d,t[v].label.x=u}Dk(t,1,l,l+o)&&h(t)}function gN(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<t.length;c++){var v=t[c].label;Lp(t[c])||(v.x<e?(f=Math.min(f,v.x),l.push(t[c])):(h=Math.max(h,v.x),u.push(t[c])))}for(var c=0;c<t.length;c++){var d=t[c];if(!Lp(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,m=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<e?p=m[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-m[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:v.x<e?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,rS(d,p,!1)}}tS(u,e,r,n,1,i,a,o,s,h),tS(l,e,r,n,-1,i,a,o,s,f);for(var c=0;c<t.length;c++){var d=t[c];if(!Lp(d)&&d.linePoints){var v=d.label,m=d.linePoints,g=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,b=v.style.backgroundColor?0:_,w=d.rect.width+b,S=m[1][0]-m[2][0];g?v.x<e?m[2][0]=o+d.edgeDistance+w+d.labelDistance:m[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(v.x<e?m[2][0]=v.x+d.labelDistance:m[2][0]=v.x-d.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=v.y}}}function rS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,v=e<f?c:r?c>t.unconstrainedWidth?null:c:null;n.setStyle("width",v)}nS(a,n)}}}function nS(t,e){iS.rect=t,xw(iS,e,mN)}var mN={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},iS={};function Lp(t){return t.position==="center"}function yN(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*pN,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var x in S.states)if(S.states[x].ignore===!1)return!0;return!1}e.each(function(S){var x=e.getItemGraphicEl(S),T=x.shape,C=x.getTextContent(),E=x.getTextGuideLine(),D=e.getItemModel(S),L=D.getModel("label"),M=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),k=L.get("alignTo"),O=Be(L.get("edgeDistance"),u),B=L.get("bleedMargin");B==null&&(B=Math.min(u,c)>200?10:2);var N=D.getModel("labelLine"),R=N.get("length");R=Be(R,u);var z=N.get("length2");if(z=Be(z,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,v),C.ignore=!0,E&&(A(E.states,v),E.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,F=Math.cos(H),$=Math.sin(H),ie,Ae,ht,At;n=T.cx,i=T.cy;var _t=M==="inside"||M==="inner";if(M==="center")ie=T.cx,Ae=T.cy,At="center";else{var ct=(_t?(T.r+T.r0)/2*F:T.r*F)+n,Ye=(_t?(T.r+T.r0)/2*$:T.r*$)+i;if(ie=ct+F*3,Ae=Ye+$*3,!_t){var re=ct+F*(R+l-T.r),ue=Ye+$*(R+l-T.r),cn=re+(F<0?-1:1)*z,it=ue;k==="edge"?ie=F<0?f+O:f+u-O:ie=cn+(F<0?-P:P),Ae=it,ht=[[ct,Ye],[re,ue],[cn,it]]}At=_t?"center":k==="edge"?F>0?"right":"left":F>0?"left":"right"}var Si=Math.PI,Rn=0,yl=L.get("rotate");if(Ce(yl))Rn=yl*(Si/180);else if(M==="center")Rn=0;else if(yl==="radial"||yl===!0){var jR=F<0?-H+Si:-H;Rn=jR}else if(yl==="tangential"&&M!=="outside"&&M!=="outer"){var Vo=Math.atan2(F,$);Vo<0&&(Vo=Si*2+Vo);var QR=$>0;QR&&(Vo=Si+Vo),Rn=Vo-Si}if(a=!!Rn,C.x=ie,C.y=Ae,C.rotation=Rn,C.setStyle({verticalAlign:"middle"}),_t){C.setStyle({align:At});var ag=C.states.select;ag&&(ag.x+=C.x,ag.y+=C.y)}else{var ig=new oe(0,0,0,0);nS(ig,C),r.push({label:C,labelLine:E,position:M,len:R,len2:z,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new ne(F,$),linePoints:ht,textAlign:At,labelDistance:P,labelAlignTo:k,edgeDistance:O,bleedMargin:B,rect:ig,unconstrainedWidth:ig.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:_t})}}),!a&&t.get("avoidLabelOverlap")&&gN(r,n,i,l,u,c,f,h);for(var m=0;m<r.length;m++){var p=r[m],g=p.label,y=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(A(g.states,v),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(y){var w=p.linePoints;_||!w?(A(y.states,v),y.ignore=!0):(yk(w,p.minTurnAngle),_k(w,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new ne(w[0][0],w[0][1])})}}}var _N=(function(t){J(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new lt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),h=V(il(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(pr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,pr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),pr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ct(o,{shape:{endAngle:f.endAngle}},s,n))}else Hv(o),Ct(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),Yu(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),m=Math.cos(v)*d,p=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=V({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},il(u.getModel("itemStyle"),f)),V(o.ensureState("select"),{x:m,y:p,shape:il(l.getModel(["select","itemStyle"]),f)}),V(o.ensureState("blur"),{shape:il(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&V(y.ensureState("select"),{x:m,y:p}),V(_.ensureState("select"),{x:m,y:p}),bs(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Ms(a,Ls(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Ts,this.setTextGuideLine(v)),wk(this,Sk(o),{stroke:u,opacity:yn(s.get(["lineStyle","opacity"]),f,1)})}},e})(Qn),bN=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var c=eS(r),v=new Qn({shape:fe(c)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var m=new _N(o,d,u);o.setItemGraphicEl(d,m),l.add(m)}).update(function(d,m){var p=s.getItemGraphicEl(m);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var m=s.getItemGraphicEl(d);Ds(m,r,d)}).execute(),yN(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e})(br);function wN(t,e,r){e=W(e)&&{coordDimensions:e}||V({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=U1(n,e).dimensions,a=new $1(i,t);return a.initData(n,r),a}var SN=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),xN=Ve(),aS=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new SN(Te(this.getData,this),Te(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return wN(this,{coordDimensions:["value"],encodeDefaulter:$e(hL,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=xN(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=zD(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Jc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Nr);KM({fullType:aS.type,getCoord2:function(t){return t.getShallow("center")}});function TN(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Ce(o)&&!isNaN(o)&&o<0)})}}}function CN(t){t.registerChartView(bN),t.registerSeriesModel(aS),j2("pie",t.registerAction),t.registerLayout($e(vN,"pie")),t.registerProcessor(dN("pie")),t.registerProcessor(TN("pie"))}var oS={left:0,right:0,top:0,bottom:0},sh=["25%","25%"],DN=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Rs(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&ii(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ii(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:oS,outerBoundsContain:"all",outerBoundsClampWidth:sh[0],outerBoundsClampHeight:sh[1],backgroundColor:X.color.transparent,borderWidth:1,borderColor:X.color.neutral30},e})(ye),Ip=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fr).models[0]},e.type="cartesian2dAxis",e})(ye);Ur(Ip,rk);var sS={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:X.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:X.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:X.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[X.color.backgroundTint,X.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:X.color.neutral00,borderColor:X.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},EN=we({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},sS),Pp=we({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:X.color.axisMinorSplitLine,width:1}}},sS),AN=we({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pp),MN=xe({logBase:10},Pp);const LN={category:EN,value:Pp,time:AN,log:MN};var IN={value:1,category:1,time:1,log:1},PN=null;function kN(){return PN}function lS(t,e,r,n){A(IN,function(i,a){var o=we(we({},LN[a],!0),n,!0),s=(function(l){J(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Os(this),v=c?Rs(f):{},d=h.getTheme();we(f,d.get(a+"Axis")),we(f,this.getDefaultOption()),f.type=uS(f),c&&ii(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=cp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",uS)}function uS(t){return t.type||(t.data?"category":"value")}var NN=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),et(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),kp=["x","y"];function fS(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var ON=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=kp,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!fS(r)||!fS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=es([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new oe(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return or(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return or(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new oe(a,o,s,l)},e})(NN),RN=(function(t){J(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(gk),BN="expandAxisBreak",gi=Math.PI,VN=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],FN=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],al=Ve(),hS=Ve(),cS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function zN(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Op(t.axisName)&&Mo(t.nameLocation);A(n,function(d){var m=ci(d);if(!(!m||m.label.ignore)){o.push(m);var p=a.transGroup;l&&(p.transform?es(ol,p.transform):cc(ol),m.transform&&Jo(ol,ol,m.transform),oe.copy(lh,m.localRect),lh.applyTransform(ol),s?s.union(lh):oe.copy(s=new oe(0,0,0,0),lh))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,m){return Math.abs(d.label[u]-f)-Math.abs(m.label[u]-f)}),l&&s){var h=i.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new oe(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ol=_n(),lh=new oe(0,0,0,0),vS=function(t,e,r,n,i,a){if(Mo(t.nameLocation)){var o=a.stOccupiedRect;o&&dS(Tk({},o,a.transGroup.transform),n,i)}else pS(a.labelInfoList,a.dirVec,n,i)};function dS(t,e,r){var n=new ne;bp(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&Ck(e,n)}function pS(t,e,r,n){for(var i=ne.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||dS(s,r,n)}}var mi=(function(){function t(e,r,n,i){this.group=new tt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new cS(vS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var r=this._shared.ensureRecord(this._axisModel).ready;K(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=j(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=j(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:j(e.nameDirection,1),tickDirection:j(e.tickDirection,1),labelDirection:j(e.labelDirection,1),labelOffset:j(e.labelOffset,0),silent:j(e.silent,!0),axisName:i,nameLocation:yn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Op(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(K(o.position!=null),K(o.rotation!=null)),this._cfg=o;var s=new tt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ne(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(HN,function(i){e[i]&&GN[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=Cy(r-e),a,o;return Tu(i)?(o=n>0?"top":"bottom",a="center"):Tu(i-gi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<gi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),HN=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],GN={axisLine:function(t,e,r,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=r.ensureRecord(n).ready;K(!s.axisLine),s.axisLine=!0}var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=a.transform,h=[u[0],0],c=[u[1],0],v=h[0]>c[0];f&&(or(h,h,f),or(c,c,f));var d=V({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())kN().buildAxisBreakLine(n,i,a,m);else{var p=new Jn(V({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},m));Es(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);Y(g)&&(g=[g,g]),(Y(y)||Ce(y))&&(y=[y,y]);var _=Yb(n.get(["axisLine","symbolOffset"])||0,y),b=y[0],w=y[1];A([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(S,x){if(g[x]!=="none"&&g[x]!=null){var T=bo(g[x],-b/2,-w/2,b,w,d.stroke,!0),C=S.r+S.offset,E=v?c:h;T.attr({rotation:S.rotate,x:E[0]+C*Math.cos(t.rotation),y:E[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;K(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0}var u=yS(e,i,s);u&&gS(t,e,r,n,i,a,o,Br.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;l.axisTickLabelDetermine=!0}var u=yS(e,i,s);u&&gS(t,e,r,n,i,a,o,Br.determine);var f=YN(t,i,a,n);UN(t,e.labelLayoutList,f),XN(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var u=l.ready;K(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0}e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Op(f)){var h=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,m=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ne(0,0),y=new ne(0,0);h==="start"?(g.x=m[0]-p*d,y.x=-p):h==="end"?(g.x=m[1]+p*d,y.x=p):(g.x=(m[0]+m[1])/2,g.y=t.labelOffset+c*d,y.y=c);var _=_n();y.transform(dc(_,_,t.rotation));var b=n.get("nameRotate");b!=null&&(b=b*gi/180);var w,S;Mo(h)?w=mi.innerTextLayout(t.rotation,b??t.rotation,c):(w=WN(t.rotation,h,b||0,m),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(w.rotation)),!isFinite(S)&&(S=null)));var x=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,E=Ga(t.raw.nameTruncateMaxWidth,T.maxWidth,S),D=s.nameMarginLevel||0,L=new lt({x:g.x,y:g.y,rotation:w.rotation,silent:mi.isLabelSilent(n),style:ti(v,{text:f,font:x,overflow:"truncate",width:E,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(nf({el:L,componentModel:n,itemName:f}),L.__fullText=f,L.anid="name",n.get("triggerEvent")){var M=mi.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,de(L).eventData=M}a.add(L),L.updateTransform(),e.nameEl=L;var P=l.nameLayout=ci({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:Mo(h)?VN[D]:FN[D]});if(l.nameLocation=h,i.add(L),L.decomposeTransform(),t.shouldNameMoveOverlap&&P){var k=r.ensureRecord(n);process.env.NODE_ENV!=="production"&&K(k.labelInfoList),r.resolveAxisNameOverlap(t,r,n,P,y,k)}}}};function gS(t,e,r,n,i,a,o,s){_S(e)||qN(t,e,i,s,n,o);var l=e.labelLayoutList;ZN(t,n,l,a),t.rotation;var u=t.optionHideOverlap;$N(n,l,u),u&&Ek(et(l,function(f){return f&&!f.label.ignore})),zN(t,r,n,l)}function WN(t,e,r,n){var i=Cy(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Tu(i-gi/2)?(o=l?"bottom":"top",a="center"):Tu(i-gi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<gi*1.5&&i>gi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function $N(t,e,r){if(sw(t.axis))return;function n(s,l,u){var f=ci(e[l]),h=ci(e[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){sl(f.label);return}if(h.suggestIgnore){sl(h.label);return}var c=.1;if(!r){var v=[0,0,0,0];f=Tw({marginForce:v},f),h=Tw({marginForce:v},h)}bp(f,h,null,{touchThreshold:c})&&sl(s?h.label:f.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function UN(t,e,r){t.showMinorTicks||A(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=hS(a),s=al(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){sl(a);return}}})}function sl(t){t&&(t.ignore=!0)}function mS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(or(o,o,e),or(s,s,e));var f=new Jn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Es(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var h=hS(f);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return a}function YN(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=mS(u,r.transform,l,xe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}function XN(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=xe(l.getLineStyle(),xe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=mS(s[h],r.transform,u,f,"minorticks_"+h),v=0;v<c.length;v++)e.add(c[v])}}function yS(t,e,r){if(_S(t)){var n=t.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&K(t.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Np(t,null,null,null))}return!0}function qN(t,e,r,n,i,a){var o=i.axis,s=Ga(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new tt;r.add(l);var u=Jf(n);if(!s||o.scale.isBlank()){Np(e,[],l,u);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(u),c=(Ga(t.raw.labelRotate,f.get("rotate"))||0)*gi/180,v=mi.innerTextLayout(t.rotation,c,t.labelDirection),d=i.getCategories&&i.getCategories(!0),m=[],p=i.get("triggerEvent"),g=1/0,y=-1/0;A(h,function(b,w){var S,x=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,T=b.formattedLabel,C=b.rawLabel,E=f;if(d&&d[x]){var D=d[x];q(D)&&D.textStyle&&(E=new Fe(D.textStyle,f,i.ecModel))}var L=E.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=E.getShallow("align",!0)||v.textAlign,P=j(E.getShallow("alignMinLabel",!0),M),k=j(E.getShallow("alignMaxLabel",!0),M),O=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||v.textVerticalAlign,B=j(E.getShallow("verticalAlignMinLabel",!0),O),N=j(E.getShallow("verticalAlignMaxLabel",!0),O),R=10+(((S=b.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,R),y=Math.max(y,R);var z=new lt({x:0,y:0,rotation:0,silent:mi.isLabelSilent(i),z2:R,style:ti(E,{text:T,align:w===0?P:w===h.length-1?k:M,verticalAlign:w===0?B:w===h.length-1?N:O,fill:Q(L)?L(o.type==="category"?C:o.type==="value"?x+"":x,w):L})});z.anid="label_"+x;var H=al(z);if(H.break=b.break,H.tickValue=x,H.layoutRotation=v.rotation,nf({el:z,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:C,tickIndex:w}}),p){var F=mi.makeAxisEventDataBase(i);F.targetType="axisLabel",F.value=C,F.tickIndex=w,b.break&&(F.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(F.dataIndex=x),de(z).eventData=F,b.break&&jN(i,a,z,b.break)}m.push(z),l.add(z)});var _=Z(m,function(b){return{label:b,priority:al(b).break?b.z2+(y-g+1):b.z2,defaultAttr:{ignore:b.ignore}}});Np(e,_,l,u)}function _S(t){return!!t.labelLayoutList}function Np(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function ZN(t,e,r,n){var i=e.get(["axisLabel","margin"]);A(r,function(a,o){var s=ci(a);if(s){var l=s.label,u=al(l);s.suggestIgnore=l.ignore,l.ignore=!1,$c(Ln,KN),Ln.x=e.axis.dataToCoord(u.tickValue),Ln.y=t.labelOffset+t.labelDirection*i,Ln.rotation=u.layoutRotation,n.add(Ln),Ln.updateTransform(),n.remove(Ln),Ln.decomposeTransform(),$c(l,Ln),l.markRedraw(),rh(s,!0),ci(s)}})}var Ln=new He,KN=new He;function Op(t){return!!t}function jN(t,e,r,n){r.on("click",function(i){var a={type:BN,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function nB(t,e,r){}function uh(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,c=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}i.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ga(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-m:m,i.z2=1,i}function QN(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function bS(t){var e={xAxisModel:null,yAxisModel:null};return A(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,fr).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+yn(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[n]=a}),e}function JN(t,e,r,n,i,a){for(var o=uh(t,r),s=!1,l=!1,u=0;u<e.length;u++)lp(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new mi(r,n,o,i)}function eO(t,e,r){var n=uh(e,r);if(process.env.NODE_ENV!=="production"){var i=t.__getRawCfg();A(Pe(n),function(a){a!=="position"&&a!=="labelOffset"&&K(n[a]===i[a])})}t.updateCfg(n)}function tO(t,e,r){var n,i=Ao.prototype,a=i.getTicks.call(r),o=i.getTicks.call(r,{expandToNicedExtent:!0}),s=a.length-1,l=i.getInterval.call(r),u=aw(t,e),f=u.extent,h=u.fixMin,c=u.fixMax;t.type==="log"&&(f=hp(t.base,f,!0)),t.setBreaksFromOption(lw(e)),t.setExtent(f[0],f[1]),t.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:c});var v=i.getExtent.call(t);h&&(f[0]=v[0]),c&&(f[1]=v[1]);var d=i.getInterval.call(t),m=f[0],p=f[1];if(h&&c)d=(p-m)/s;else if(h)for(p=f[0]+d*s;p<f[1]&&isFinite(p)&&isFinite(f[1]);)d=up(d),p=f[0]+d*s;else if(c)for(m=f[1]-d*s;m>f[0]&&isFinite(m)&&isFinite(f[0]);)d=up(d),m=f[1]-d*s;else{var g=t.getTicks().length-1;g>s&&(d=up(d));var y=d*s;p=Math.ceil(f[1]/d)*d,m=st(p-y),m<0&&f[0]>=0?(m=0,p=st(y)):p>0&&f[1]<=0&&(p=0,m=-st(y))}var _=(a[0].value-o[0].value)/l,b=(a[s].value-o[s].value)/l;if(i.setExtent.call(t,m+d*_,p+d*b),i.setInterval.call(t,d),(_||b)&&i.setNiceExtent.call(t,m+d,p-d),process.env.NODE_ENV!=="production"){var w=i.getTicks.call(t);w[1]&&(!xP(d)||Qc(w[1].value)>Qc(d))&&pt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+(" and alignTicks: true. ("+((n=e.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+e.componentIndex+")"),!0)}}var wS=[[3,1],[0,2]],rO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kp,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Pe(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,m=v.scale;lp(m)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(ow(m,d),lp(m)&&(s=v))}f.length&&(s||(s=f.pop(),ow(s.scale,s.model)),A(f,function(p){tO(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){SS(n,"y",o,a)}),A(n.y,function(o){SS(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=wf(e,r),a=this._rect=ni(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(TS(o,a),!n){var u=iO(a,s,o,l,r),f=void 0;if(l)process.env.NODE_ENV!=="production"&&Py("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=DS(a.clone(),"axisLabel",null,a,o,u,i);else{var h=aO(e,a,i),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=DS(c,v,d,a,o,u,i))}ES(a,o,Br.determine,null,f,i)}A(this._coordsList,function(m){m.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}q(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",fr).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",fr).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,me(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,m=new ON(d);m.master=i,m.model=e,i._coordsMap[d]=m,i._coordsList.push(m),m.addAxis(f),m.addAxis(c)})});function u(f){return function(h,c){if(Rp(h,e)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new RN(f,JP(h),[0,0],h.get("type"),v),m=d.type==="category";d.onBand=m&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(QN(i)){var a=bS(i),o=a.xAxisModel,s=a.yAxisModel;if(!Rp(o,r)||!Rp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){A(tk(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return A(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);me(r,a)<0&&r.push(a),me(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){JM({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=bS(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!u)throw new Error('Grid "'+yn(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==l.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=kp,t})();function Rp(t,e){return t.getCoordSysModel()===e}function SS(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)xS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&xS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function xS(t){return t&&t.type!=="category"&&t.type!=="time"&&ek(t)}function nO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function TS(t,e){A(t.x,function(r){return CS(r,e.x,e.width)}),A(t.y,function(r){return CS(r,e.y,e.height)})}function CS(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),nO(t,e)}function DS(t,e,r,n,i,a,o){process.env.NODE_ENV!=="production"&&K(e==="all"||e==="axisLabel"),ES(n,i,Br.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=hC(s,function(c){return c>0})==null;return rf(n,s,!0,!0,r),TS(i,n),l;function u(c){A(i[ei[c]],function(v){if(rl(v.model)){var d=a.ensureRecord(v.model),m=d.labelInfoList;if(m)for(var p=0;p<m.length;p++){var g=m[p],y=v.scale.normalize(al(g.label).tickValue);y=c===1?1-y:y,f(g.rect,c,y),f(g.rect,1-c,NaN)}var _=d.nameLayout;if(_){var y=Mo(d.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var m=t[ei[v]]-c[ei[v]],p=c[ho[v]]+c[ei[v]]-(t[ho[v]]+t[ei[v]]);m=h(m,1-d),p=h(p,d);var g=wS[v][0],y=wS[v][1];s[g]=Yt(s[g],m),s[y]=Yt(s[y],p)}function h(c,v){return c>0&&!Ha(v)&&v>1e-4&&(c/=v),c}}function iO(t,e,r,n,i){var a=new cS(oO);return A(r,function(o){return A(o,function(s){if(rl(s.model)){var l=!n;s.axisBuilder=JN(t,e,s.model,i,a,l)}})}),a}function ES(t,e,r,n,i,a){var o=r===Br.determine;A(e,function(u){return A(u,function(f){rl(f.model)&&(eO(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ei[1-u]]=t[ho[u]]<=a.refContainer[ho[u]]*.5?0:1-u===1?2:1}A(e,function(u,f){return A(u,function(h){rl(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function aO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():i==null||i==="auto"?n=ni(t.get("outerBounds",!0)||oS,r.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&De("Invalid grid["+t.componentIndex+"].outerBoundsMode.");var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":me(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&De("Invalid grid["+t.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[jc(j(t.get("outerBoundsClampWidth",!0),sh[0]),e.width),jc(j(t.get("outerBoundsClampHeight",!0),sh[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var oO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";vS(t,e,r,n,i,a),Mo(t.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&pS(s.labelInfoList,s.dirVec,n,i)})};function sO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lO(r,t,e),r.seriesInvolved&&fO(r,t),r}function lO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ll(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(A(s.getAxes(),$e(m,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&A(d.baseAxes,$e(m,v?"cross":!0,c)),v&&A(d.otherAxes,$e(m,"cross",!1))}function m(p,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!Fp(_))){g==null&&(g=_.get("triggerTooltip")),_=p?uO(y,h,i,e,p,g):_;var w=_.get("snap"),S=_.get("triggerEmphasis"),x=ll(y.model),T=g||w||y.type==="category",C=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:T,snap:w,useHandle:Fp(_),seriesModels:[],linkGroup:null};u[x]=C,t.seriesInvolved=t.seriesInvolved||T;var E=hO(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[x]=C,D.mapper=a[E].mapper,C.linkGroup=D}}}})}function uO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=fe(o.get(c))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&xe(u,h.textStyle)}}return t.model.getModel("axisPointer",new Fe(l,r,n))}function fO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||A(t.coordSysAxesInfo[ll(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function hO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Bp(a[n+"AxisId"],r.id)||Bp(a[n+"AxisIndex"],r.componentIndex)||Bp(a[n+"AxisName"],r.name))return i}}function Bp(t,e){return t==="all"||W(t)&&me(t,e)>=0||t===e}function cO(t){var e=Vp(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Fp(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Vp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ll(t)]}function vO(t){var e=Vp(t);return e&&e.axisPointerModel}function Fp(t){return!!t.get(["handle","show"])}function ll(t){return t.type+"||"+t.id}var zp={},AS=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&cO(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=vO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&zp[r])throw new Error("axisPointer "+r+" exists");zp[r]=n},e.getAxisPointerClass=function(r){return r&&zp[r]},e.type="axis",e})(Or),Hp=Ve();function dO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=Hp(t).splitAreaColors,c=se(),v=0;if(h)for(var d=0;d<u.length;d++){var m=h.get(u[d].tickValue);if(m!=null){v=(m+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=p,b=l.y,w=y-_,S=l.height,p=_+w):(_=l.x,b=p,w=l.width,S=y-b,p=b+S);var x=u[d-1].tickValue;x!=null&&c.set(x,v),e.add(new He({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:w,height:S},style:xe({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Hp(t).splitAreaColors=c}}}function pO(t){Hp(t).splitAreaColors=null}var gO=["splitArea","splitLine","minorSplitLine","breakArea"],MS=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new tt,this.group.add(this._axisGroup),!!rl(r)){this._axisGroup.add(r.axis.axisBuilder.group),A(gO,function(l){r.get([l,"show"])&&mO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||t0(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){pO(this)},e.type="cartesianAxis",e})(AS),mO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var h=n.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],p=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var b=d[y].tickValue;c?(m[0]=_,m[1]=h.y,p[0]=_,p[1]=h.y+h.height):(m[0]=h.x,m[1]=_,p[0]=h.x+h.width,p[1]=_);var w=v++%l.length,S=new Jn({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:p[0],y2:p[1]},style:xe({stroke:l[w]},g),silent:!0});Es(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var m=0;m<f[d].length;m++){var p=a.toGlobalCoord(f[d][m].coord);u?(h[0]=p,h[1]=l.y,c[0]=p,c[1]=l.y+l.height):(h[0]=l.x,h[1]=p,c[0]=l.x+l.width,c[1]=p);var g=new Jn({anid:"minor_line_"+f[d][m].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});Es(g.shape,v.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){dO(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},LS=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(MS),yO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=LS.type,r}return e.type="yAxis",e})(MS),_O=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new He({shape:r.coordinateSystem.getRect(),style:xe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Or),IS={offset:0};function bO(t){t.registerComponentView(_O),t.registerComponentModel(DN),t.registerCoordinateSystem("cartesian2d",rO),lS(t,"x",Ip,IS),lS(t,"y",Ip,IS),t.registerComponentView(LS),t.registerComponentView(yO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var _a=Ve(),PS=fe,Gp=Te,wO=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new tt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var c=$e(kS,r,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,r)}RS(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Vp(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=_a(e).pointerEl=new yM[a.type](PS(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=_a(e).labelEl=new lt(PS(r.label));e.add(a),OS(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=_a(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=_a(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),OS(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Uv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Lm(u.event)},onmousedown:Gp(this._onHandleDragMove,this,0,0),drift:Gp(this._onHandleDragMove,this),ondragend:Gp(this._onHandleDragEnd,this)}),n.add(i)),RS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");W(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Nb(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){kS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Wp(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Wp(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Wp(i)),_a(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Od(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function kS(t,e,r,n){NS(_a(r).lastProp,n)||(_a(r).lastProp=n,e?Ct(r,n,t):(r.stopAnimation(),r.attr(n)))}function NS(t,e){if(q(t)&&q(e)){var r=!0;return A(e,function(n,i){r=r&&NS(t[i],n)}),!!r}else return t===e}function OS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Wp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function RS(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function SO(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function xO(t,e,r,n,i){var a=r.get("value"),o=BS(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mf(s.get("padding")||0),u=s.getFont(),f=_y(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var m=i.verticalAlign;m==="bottom"&&(h[1]-=v),m==="middle"&&(h[1]-=v/2),TO(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:ti(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function TO(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function BS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Qf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Y(o)?a=o.replace("{value}",a):Q(o)&&(a=o(s))}return a}function VS(t,e,r){var n=_n();return dc(n,n,r.rotation),vc(n,n,r.position),$v([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function CO(t,e,r,n,i,a){var o=mi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),xO(e,n,i,a,{position:VS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DO(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function EO(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var AO=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=FS(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=SO(a),v=MO[u](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=uh(l.getRect(),i);CO(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=uh(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=VS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=FS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(wO);function FS(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var MO={line:function(t,e,r){var n=DO([e,r[0]],[e,r[1]],zS(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:EO([e-n/2,r[0]],[n,i],zS(t))}}};function zS(t){return t.dim==="x"?0:1}var LO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:X.color.border,width:1,type:"dashed"},shadowStyle:{color:X.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:X.color.neutral00,padding:[5,7,5,7],backgroundColor:X.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:X.color.accent40,throttle:40}},e})(ye),In=Ve(),IO=A;function HS(t,e,r){if(!te.node){var n=e.getZr();In(n).records||(In(n).records={}),PO(n,e);var i=In(n).records[t]||(In(n).records[t]={});i.handler=r}}function PO(t,e){if(In(t).initialized)return;In(t).initialized=!0,r("click",$e(GS,"click")),r("mousemove",$e(GS,"mousemove")),r("globalout",NO);function r(n,i){t.on(n,function(a){var o=OO(e);IO(In(t).records,function(s){s&&i(s,a,o.dispatchAction)}),kO(o.pendings,e)})}}function kO(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function NO(t,e,r){t.handler("leave",null,r)}function GS(t,e,r,n){e.handler(t,r,n)}function OO(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function $p(t,e){if(!te.node){var r=e.getZr(),n=(In(r).records||{})[t];n&&(In(r).records[t]=null)}}var RO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";HS("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){$p("axisPointer",n)},e.prototype.dispose=function(r,n){$p("axisPointer",n)},e.type="axisPointer",e})(Or);function WS(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=$i(a,t);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),m=[];m[v]=a.get(d,o),m[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var $S=Ve();function BO(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Te(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fh(i)&&(i=WS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=fh(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||fh(i),c={},v={},d={list:[],map:{}},m={showPointer:$e(FO,v),showTooltip:$e(zO,d)};A(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);A(s.coordSysAxesInfo[y],function(b,w){var S=b.axis,x=$O(u,b);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(i)),T!=null&&US(b,T,m,!1,c)}})});var p={};return A(f,function(g,y){var _=g.linkGroup;_&&!v[y]&&A(_.axesInfo,function(b,w){var S=v[w];if(b!==g&&S){var x=S.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,YS(b),YS(g)))),p[g.key]=x}})}),A(p,function(g,y){US(f[y],g,m,!0,c)}),HO(v,f,c),GO(d,i,t,o),WO(f,o,r),c}}function US(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=VO(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function VO(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,t,r);c=v.dataIndices,h=v.nestestValue}else{if(c=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=t-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,i=h,a.length=0),A(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function FO(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function zO(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=ll(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function HO(t,e,r){var n=r.axesInfo=[];A(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function GO(t,e,r,n){if(fh(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function WO(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=$S(n)[i]||{},o=$S(n)[i]={};A(t,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $O(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function YS(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function fh(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function XS(t){AS.registerAxisPointerClass("CartesianAxisPointer",AO),t.registerComponentModel(LO),t.registerComponentView(RO),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=sO(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BO)}function UO(t){ui(bO),ui(XS)}function YO(t,e){var r=mf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new He({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var XO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:X.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:X.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:X.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:X.color.tertiary,fontSize:14}},e})(ye);function qS(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ZS(t){if(te.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var KS=ZS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qO=ZS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function jS(t,e){if(!t)return e;e=A0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function ZO(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var KO=jS(qO,"transition"),Up=jS(KS,"transform"),jO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(te.transform3dSupported?"will-change:transform;":"");function QO(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function JO(t,e,r){if(!Y(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=sa(e);var a=QO(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Up+":",u;me(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function eR(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(te.transformSupported?""+Up+i:",left"+i+",top"+i)),KO+":"+a}function QS(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!te.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=te.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Up+":"+o+";":[["top",0],["left",0],[KS,o]]}function tR(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=j(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),A(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function rR(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=Db(t,"html"),v=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+v),e&&a>0&&i.push(eR(a,r,n)),o&&i.push("background-color:"+o),A(["width","color","radius"],function(d){var m="border-"+d,p=A0(m),g=t.get(p);g!=null&&i.push(m+":"+g+(d==="color"?"":"px"))}),i.push(tR(h)),c!=null&&i.push("padding:"+mf(c).join("px ")+"px"),i.join(";")+";"}function JS(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&AC(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nR=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,te.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(Y(a)?document.querySelector(a):za(a)?a:Q(a)&&a(e.getDom()));JS(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();sr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=ZO(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=jO+rR(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+QS(a[0],a[1],!0)+("border-color:"+sa(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Y(a)&&n.get("trigger")==="item"&&!qS(n)&&(s=JO(n,i,a)),Y(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)za(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(JS(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=QS(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",te.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;MC(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),iR=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),tx(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;q(e)&&Bt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new lt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Db(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=ex(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;tx(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=yi(a.borderWidth||0),s=ex(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function yi(t){return Math.max(0,t)}function ex(t){var e=yi(t.shadowBlur||0),r=yi(t.shadowOffsetX||0),n=yi(t.shadowOffsetY||0);return{left:yi(e-r),right:yi(e+r),top:yi(e-n),bottom:yi(e+n)}}function tx(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var aR=new He({shape:{x:-1,y:-1,width:2,height:2}}),oR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(te.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=aE(i.get("renderMode"));this._tooltipContent=a==="richText"?new iR(n):new nR(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(te.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Nb(this,"_updatePosition",50,"fixRate"):Od(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");HS("itemTooltip",this._api,Te(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||te.node||!i.getDom())){var o=rx(a,i);this._ticket="";var s=a.dataByCoordSys,l=fR(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=aR;f.x=a.x,f.y=a.y,f.update(),de(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=WS(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(rx(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ul([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=de(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Xs(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(de(f).dataIndex!=null?l=f:de(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Te(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ul([n.tooltipOption],a),l=this._renderMode,u=[],f=Ws("section",{blocks:[],noHeader:!0}),h=[],c=new Id;A(r,function(y){A(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!b||w==null)){var S=BS(w,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Ws("section",{header:S,noHeader:!Yr(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,D=C.getDataParams(E);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Qf(b.axis,{value:w}),D.axisValueLabel=S,D.marker=c.makeTooltipMarker("item",sa(D.color),l);var L=cb(C.formatTooltip(E,!0,null)),M=L.frag;if(M){var P=ul([C],a).get("valueFormatter");x.blocks.push(P?V({valueFormatter:P},M):M)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),m=Tb(f,c,l,d,i.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var p=l==="richText"?`
58
+ `];function $s(t,e){return e.type=t,e}function Id(t){return t.type==="section"}function C1(t){return Id(t)?Mk:Lk}function D1(t){if(Id(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return L(t.blocks,function(i){var a=D1(i);a>=e&&(e=a+ +(n&&(!a||Id(i)&&!i.noHeader)))}),e}return 0}function Mk(t,e,r,n){var i=e.noHeader,a=kk(D1(e)),o=[],s=e.blocks||[];Sn(!s||U(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mr(u,l)){var f=new hk(u[l],null);s.sort(function(m,p){return f.evaluate(m.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(m,p){var g=e.valueFormatter,y=C1(m)(g?V(V({},t),{valueFormatter:g}):t,m,p>0?a.html:0,n);y!=null&&o.push(y)});var h=t.renderMode==="richText"?o.join(a.richText):Pd(n,o.join(""),i?r:a.html);if(i)return h;var v=vd(e.header,"ordinal",t.useUTC),c=T1(n,t.renderMode).nameStyle,d=x1(n);return t.renderMode==="richText"?M1(t,v,c)+a.richText+h:Pd(n,'<div style="'+c+";"+d+';">'+Bt(v)+"</div>"+h,r)}function Lk(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(b){return b=U(b)?b:[b],j(b,function(S,w){return vd(S,U(c)?c[w]:c,u)})};if(!(a&&o)){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||q.color.secondary,i),v=a?"":vd(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value,e.dataIndex),m=!s||!a,p=!s&&a,g=T1(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":M1(t,v,y))+(o?"":Ek(t,d,m,p,_)):Pd(n,(s?"":h)+(a?"":Ik(v,!s,y))+(o?"":Pk(d,m,p,_)),r)}}function A1(t,e,r,n,i,a){if(t){var o=C1(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function kk(t){return{html:Dk[t],richText:Ak[t]}}function Pd(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=x1(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function Ik(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Bt(t)+"</span>"}function Pk(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=U(t)?t:[t],'<span style="'+a+";"+n+'">'+j(t,function(o){return Bt(o)}).join("&nbsp;&nbsp;")+"</span>"}function M1(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Ek(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(U(e)?e.join(" "):e,a)}function Rk(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return va(n)}function L1(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Ed=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Py()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=v2({color:r,type:e,renderMode:n,markerId:i});return X(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};U(r)?L(r,function(a){return V(n,a)}):V(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function Ok(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=U(s),u=Rk(e,r),f,h,v,c;if(o>1||l&&!o){var d=Nk(s,e,r,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);c=f=mo(i,r,a[0]),h=m.type}else c=f=l?s[0]:s;var p=nv(e),g=p&&e.name||"",y=i.getName(r),_=n?g:y;return $s("section",{header:g,noHeader:n||!p,sortParam:c,blocks:[$s("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Yr(_),value:f,valueType:h,dataIndex:r})].concat(v||[])})}function Nk(t,e,r,n,i){var a=e.getData(),o=qn(t,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?L(n,function(h){f(mo(a,r,h),h)}):L(t,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push($s("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var hi=Ue();function Lf(t,e){return t.getName(e)||t.getId(e)}var Bk="__universalTransitionEnabled",Rr=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ws({count:zk,reset:Hk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=hi(this).sourceManager=new Tk(this);a.prepareSource();var o=this.getInitialData(r,i);I1(o,this),this.dataTask.context.data=o,hi(this).dataBeforeProcessed=o,k1(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Bs(this),a=i?Fs(r):{},o=this.subType;Pe.hasClass(o)&&(o+="Series"),De(r,n.getTheme().get(this.subType)),De(r,this.getDefaultOption()),rv(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ui(r,a,i)},e.prototype.mergeOption=function(r,n){r=De(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Bs(this);i&&ui(this.option,r,i);var a=hi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);I1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,hi(this).dataBeforeProcessed=o,k1(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Ot(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&rv(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Rd(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return hi(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Rd(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}hi(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return he(r)},e.prototype.getSourceManager=function(){return hi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return hi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,v=-1,c=0;return o.each(n,function(d,m){var p=l.dataToCoord(d),g=u-p,y=Math.abs(g);y<=a&&((y<h||y===h&&g>=0&&v<0)&&(h=y,v=g,c=0),g===v&&(f[c++]=m))}),f.length=c,f},e.prototype.formatTooltip=function(r,n,i){return Ok({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(oe.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=bd.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Lf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=We(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Lf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Bk])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=Lf(r,h);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=Lf(r,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(c),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Pe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(Pe);Ur(Rr,uk),Ur(Rr,bd),Vy(Rr,Pe);function k1(t){var e=t.name;nv(t)||(t.name=Fk(t)||e)}function Fk(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return L(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function zk(t){return t.model.getRawData().count()}function Hk(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Gk}function Gk(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function I1(t,e){L(RC(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Qe(Vk,e))})}function Vk(t,e){var r=Rd(t);return r&&r.setOutputEnd((e||this).count()),e}function Rd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Or=(function(){function t(){this.group=new ut,this.uid=ff("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();ov(Or),ku(Or);function Od(){var t=Ue();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var P1=Ue(),Wk=Od(),_r=(function(){function t(){this.group=new ut,this.uid=ff("viewChart"),this.renderTask=Ws({plan:$k,reset:Uk}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&R1(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&R1(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){of(this.group,e)},t.markUpdateMethod=function(e,r){P1(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function E1(t,e,r){t&&Rv(t)&&(e==="emphasis"?Uu:Yu)(t,r)}function R1(t,e,r){var n=Ki(t,e),i=e&&e.highlightKey!=null?WM(e.highlightKey):null;n!=null?L(Dt(n),function(a){E1(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){E1(a,r,i)})}ov(_r),ku(_r);function $k(t){return Wk(t.model)}function Uk(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&P1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),Yk[l]}var Yk={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},kf="\0__throttleOriginMethod",O1="\0__throttleRate",N1="\0__throttleType";function Nd(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var m=f||e,p=f||r;f=null,s=n-(p?i:a)-m,clearTimeout(o),p?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function B1(t,e,r,n){var i=t[e];if(i){var a=i[kf]||i,o=i[N1],s=i[O1];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Nd(a,r,n==="debounce"),i[kf]=a,i[N1]=n,i[O1]=r}return i}}function Bd(t,e){var r=t[e];r&&r[kf]&&(r.clear&&r.clear(),t[e]=r[kf])}var F1=Ue(),z1={itemStyle:ys(p_,!0),lineStyle:ys(d_,!0)},Xk={lineStyle:"stroke",itemStyle:"fill"};function H1(t,e){var r=t.visualStyleMapper||z1[e];return r||(console.warn("Unknown style type '"+e+"'."),z1.itemStyle)}function G1(t,e){var r=t.visualDrawType||Xk[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var qk={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=H1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=G1(t,n),u=o[l],f=ie(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var m=t.getDataParams(d),p=V({},o);p[l]=f(m),c.setItemVisual(d,"style",p)}}}},Us=new Ye,Zk={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=H1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Us.option=l[n];var u=i(Us),f=o.ensureUniqueItemVisual(s,"style");V(f,u),Us.option.decal&&(o.setItemVisual(s,"decal",Us.option.decal),Us.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Kk={performRawSeries:!0,overallReset:function(t){var e=he();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),F1(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=F1(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=G1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(c,o,d)}})}})}},If=Math.PI;function jk(t,e){e=e||{},Me(e,{text:"loading",textColor:q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ut,n=new Ze({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new gt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ze({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Qu({shape:{startAngle:-If/2,endAngle:-If/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:If*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:If*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var V1=(function(){function t(e,r,n,i){this._stageTaskMap=he(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=he();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;L(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Sn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;L(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var m=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(m)}),v.perform(m)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=he(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ws({plan:rI,reset:nI,count:aI}));c.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,c)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ws({reset:Qk});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=he(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";Sn(!e.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,L(n.getSeries(),d));function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(v=!0,Ws({reset:Jk,onDirty:tI})));g.context={model:m,overallProgress:h},g.agent=o,g.__block=h,a._pipe(m,g)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ie(e)&&(e={overallReset:e,seriesType:oI(e)}),e.uid=ff("stageHandler"),r&&(e.visualType=r),e},t})();function Qk(t){t.overallReset(t.ecModel,t.api,t.payload)}function Jk(t){return t.overallProgress&&eI}function eI(){this.agent.dirty(),this.getDownstream().dirty()}function tI(){this.agent&&this.agent.dirty()}function rI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function nI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Dt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?j(e,function(r,n){return W1(n)}):iI}var iI=W1(0);function W1(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function aI(t){return t.data.count()}function oI(t){Pf=null;try{t(Ys,$1)}catch{}return Pf}var Ys={},$1={},Pf;U1(Ys,wd),U1($1,q_),Ys.eachSeriesByType=Ys.eachRawSeriesByType=function(t){Pf=t},Ys.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Pf=t.subType)};function U1(t,e){for(var r in e.prototype)t[r]=Nt}var $=q.darkColor,sI=$.background,Xs=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Y1={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},X1={darkMode:!0,color:$.theme,backgroundColor:sI,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:Y1,y:Y1,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:Xs(),logAxis:Xs(),valueAxis:Xs(),categoryAxis:Xs(),line:{symbol:"circle"},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:$.background}},radar:(function(){var t=Xs();return t.axisName={color:$.axisLabel},t.axisLine.lineStyle.color=$.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};X1.categoryAxis.splitLine.show=!1;var lI=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(X(e)){var a=en(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Fd=["symbol","symbolSize","symbolRotate","symbolOffset"],q1=Fd.concat(["symbolKeepAspect"]),uI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Fd.length;o++){var s=Fd[o],l=t.get(s);ie(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(V({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=We(i);function f(h,v){for(var c=t.getRawValue(v),d=t.getDataParams(v),m=0;m<u.length;m++){var p=u[m];h.setItemVisual(v,p,i[p](c,d))}}return{dataEach:a?f:null}}},fI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<q1.length;s++){var l=q1[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function hI(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function cI(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function vI(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}L([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=V({},i),o.dispatchAction(V(i,{type:n[1],seriesIndex:r(a,i)}))})})}function bo(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=Ki(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:U(v)?h.getName(v[0]):h.getName(v),selected:X(l)?l:V({},l)})}})}function dI(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(bo("map","selectchanged",e,i,n),bo("pie","selectchanged",e,i,n)):n.fromAction==="select"?(bo("map","selected",e,i,n),bo("pie","selected",e,i,n)):n.fromAction==="unselect"&&(bo("map","unselected",e,i,n),bo("pie","unselected",e,i,n))})}function qs(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var pI=Math.round(Math.random()*9),gI=typeof Object.defineProperty=="function",mI=(function(){function t(){this._id="__ec_inner_"+pI++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return gI?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),yI=Ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),_I=Ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),bI=Ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-h*c,l+s+v*c,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+h*c,l+s+v*c,r-f,l+s),t.closePath()}}),wI=Ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),SI={line:ii,rect:Ze,roundRect:Ze,square:Ze,circle:Ku,diamond:_I,pin:bI,arrow:wI,triangle:yI},xI={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},zd={};L(SI,function(t,e){zd[e]=new t});var TI=Ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Tu(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=zd[n];i||(n="rect",i=zd[n]),xI[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function CI(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||q.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function wo(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Q0(t.slice(8),new fe(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Xv(t.slice(7),{},new fe(e,r,n,i),o?"center":"cover"):l=new TI({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=CI,a&&l.setColor(a),l}function DI(t){return U(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Z1(t,e){if(t!=null)return U(t)||(t=[t,t]),[$e(t[0],e[0])||0,$e(Q(t[1],t[0]),e[1])||0]}function ba(t){return isFinite(t)}function AI(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=ba(n)?n:0,i=ba(i)?i:1,a=ba(a)?a:0,o=ba(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function MI(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=ba(o)?o:.5,s=ba(s)?s:.5,l=l>=0&&ba(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Hd(t,e,r){for(var n=e.type==="radial"?MI(t,e,r):AI(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function LI(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Ef(t){return parseInt(t,10)}function Rf(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Ef(s[n])||Ef(t.style[n]))-(Ef(s[a])||0)-(Ef(s[o])||0)|0}function kI(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ke(t)?[t]:U(t)?t:null}function K1(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&kI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=j(r,function(a){return a/i}),n/=i)}return[r,n]}var II=new ia(!0);function Of(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function j1(t){return typeof t=="string"&&t!=="none"}function Nf(t){var e=t.fill;return e!=null&&e!=="none"}function Q1(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function J1(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Gd(t,e,r){var n=Wy(e.image,e.__image,r);if(Iu(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*OC),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function PI(t,e,r,n){var i,a=Of(r),o=Nf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||II,h=e.__dirty;if(!n){var v=r.fill,c=r.stroke,d=o&&!!v.colorStops,m=a&&!!c.colorStops,p=o&&!!v.image,g=a&&!!c.image,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(d||m)&&(w=e.getBoundingRect()),d&&(y=h?Hd(t,v,w):e.__canvasFillGradient,e.__canvasFillGradient=y),m&&(_=h?Hd(t,c,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(b=h||!e.__canvasFillPattern?Gd(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=b),g&&(S=h||!e.__canvasStrokePattern?Gd(t,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?t.fillStyle=y:p&&(b?t.fillStyle=b:o=!1),m?t.strokeStyle=_:g&&(S?t.strokeStyle=S:a=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var x,D;t.setLineDash&&r.lineDash&&(i=K1(e),x=i[0],D=i[1]);var A=!0;(u||h&Qa)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),A=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(t,l?s:1),x&&(t.setLineDash(x),t.lineDashOffset=D),n||(r.strokeFirst?(a&&J1(t,r),o&&Q1(t,r)):(o&&Q1(t,r),a&&J1(t,r))),x&&t.setLineDash([])}function EI(t,e,r){var n=e.__image=Wy(r.image,e.__image,e,e.onload);if(!(!n||!Iu(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,v=s-f;t.drawImage(n,u,f,h,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function RI(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Xn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=K1(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Of(r)&&t.strokeText(i,r.x,r.y),Nf(r)&&t.fillText(i,r.x,r.y)):(Nf(r)&&t.fillText(i,r.x,r.y),Of(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var eb=["shadowBlur","shadowOffsetX","shadowOffsetY"],tb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Gt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Qi.opacity:o}(n||e.blend!==r.blend)&&(a||(Gt(t,i),a=!0),t.globalCompositeOperation=e.blend||Qi.blend);for(var s=0;s<eb.length;s++){var l=eb[s];(n||e[l]!==r[l])&&(a||(Gt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Gt(t,i),a=!0),t.shadowColor=e.shadowColor||Qi.shadowColor),a}function nb(t,e,r,n,i){var a=Zs(e,i.inHover),o=n?null:r&&Zs(r,i.inHover)||{};if(a===o)return!1;var s=rb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Gt(t,i),s=!0),j1(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Gt(t,i),s=!0),j1(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Gt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Gt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<tb.length;f++){var h=tb[f],v=h[0];(n||a[v]!==o[v])&&(s||(Gt(t,i),s=!0),t[v]=a[v]||h[1])}return s}function OI(t,e,r,n,i){return rb(t,Zs(e,i.inHover),r&&Zs(r,i.inHover),n,i)}function ib(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function NI(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),ib(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function BI(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var ab=1,ob=2,sb=3,lb=4;function FI(t){var e=Nf(t),r=Of(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Gt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Zs(t,e){return e&&t.__hoverStyle||t.style}function ub(t,e){wa(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function wa(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ut,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||LI(a,o))&&(o&&o.length&&(Gt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Gt(t,r),t.save(),NI(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ie&&e.autoBatch&&FI(e.style);s||BI(i,u.transform)?(Gt(t,r),ib(t,e)):f||Gt(t,r);var h=Zs(e,r.inHover);e instanceof Ie?(r.lastDrawType!==ab&&(l=!0,r.lastDrawType=ab),nb(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),PI(t,e,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):e instanceof Bu?(r.lastDrawType!==sb&&(l=!0,r.lastDrawType=sb),nb(t,e,u,l,r),RI(t,e,h)):e instanceof ri?(r.lastDrawType!==ob&&(l=!0,r.lastDrawType=ob),OI(t,e,u,l,r),EI(t,e,h)):e.getTemporalDisplayables&&(r.lastDrawType!==lb&&(l=!0,r.lastDrawType=lb),zI(t,e,r)),f&&n&&Gt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function zI(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),wa(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),wa(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Vd=new mI,fb=new eo(100),hb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Wd(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Vd.delete(t);var a=Vd.get(t);if(a)return a;var o=Me(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Vd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],h=!0,v=0;v<hb.length;++v){var c=o[hb[v]];if(c!=null&&!U(c)&&!X(c)&&!ke(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var m=fb.get(d);m&&(i?u.svgElement=m:u.image=m)}var p=vb(o.dashArrayX),g=HI(o.dashArrayY),y=cb(o.symbol),_=GI(p),b=db(g),S=!i&&wn.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),x;S&&(S.width=T.width*r,S.height=T.height*r,x=S.getContext("2d")),A(),h&&fb.put(d,S||w),u.image=S,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var C=1,k=0,M=_.length;k<M;++k)C=Ry(C,_[k]);for(var P=1,k=0,M=y.length;k<M;++k)P=Ry(P,y[k].length);C*=P;var I=b*_.length*y.length;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function A(){x&&(x.clearRect(0,0,S.width,S.height),o.backgroundColor&&(x.fillStyle=o.backgroundColor,x.fillRect(0,0,S.width,S.height)));for(var C=0,k=0;k<g.length;++k)C+=g[k];if(C<=0)return;for(var M=-b,P=0,I=0,O=0;M<T.height;){if(P%2===0){for(var G=I/2%y.length,N=0,B=0,H=0;N<T.width*2;){for(var z=0,k=0;k<p[O].length;++k)z+=p[O][k];if(z<=0)break;if(B%2===0){var F=(1-o.symbolSize)*.5,W=N+p[O][B]*F,J=M+g[P]*F,we=p[O][B]*o.symbolSize,it=g[P]*o.symbolSize,_t=H/2%y[G].length;Be(W,J,we,it,y[G][_t])}N+=p[O][B],++H,++B,B===p[O].length&&(B=0)}++O,O===p.length&&(O=0)}M+=g[P],++I,++P,P===g.length&&(P=0)}function Be(Xe,et,ae,de,cn){var ct=i?1:r,Mi=wo(cn,Xe*ct,et*ct,ae*ct,de*ct,o.color,o.symbolKeepAspect);if(i){var Fn=n.painter.renderOneToVNode(Mi);Fn&&w.children.push(Fn)}else ub(x,Mi)}}}}function cb(t){if(!t||t.length===0)return[["rect"]];if(X(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!X(t[r])){e=!1;break}if(e)return cb([t]);for(var n=[],r=0;r<t.length;++r)X(t[r])?n.push([t[r]]):n.push(t[r]);return n}function vb(t){if(!t||t.length===0)return[[0,0]];if(ke(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ke(t[n])){r=!1;break}if(r)return vb([t]);for(var i=[],n=0;n<t.length;++n)if(ke(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=j(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function HI(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ke(t)){var e=Math.ceil(t);return[e,e]}var r=j(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function GI(t){return j(t,function(e){return db(e)})}function db(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function VI(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Wd(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Wd(i,e)}}})}var Nr=new Xr,pb={};function WI(t,e){pb[t]=e}function $I(t){return pb[t]}var UI=1,YI=800,XI=900,qI=1e3,ZI=2e3,KI=5e3,gb=1e3,jI=1100,$d=2e3,mb=3e3,QI=4e3,Bf=4500,JI=4600,eP=5e3,tP=6e3,yb=7e3,rP={PROCESSOR:{FILTER:qI,SERIES_FILTER:YI,STATISTIC:KI},VISUAL:{LAYOUT:gb,PROGRESSIVE_LAYOUT:jI,GLOBAL:$d,CHART:mb,POST_CHART_LAYOUT:JI,COMPONENT:QI,BRUSH:eP,CHART_ITEM:Bf,ARIA:tP,DECAL:yb}},tt="__flagInMainProcess",Ff="__mainProcessVersion",ht="__pendingUpdate",Ud="__needsUpdateStatus",_b=/^[a-zA-Z0-9_]+$/,Yd="__connectUpdateStatus",bb=0,nP=1,iP=2;function wb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return xb(this,t,e)}}function Sb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return xb(this,t,e)}}function xb(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Xr.prototype[e].apply(t,r)}var Tb=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Xr),Cb=Tb.prototype;Cb.on=Sb("on"),Cb.off=Sb("off");var Sa,Xd,zf,kn,Hf,qd,Zd,So,xo,Db,Ab,Kd,Mb,Gf,Lb,kb,br,Ib,To,Pb=(function(t){re(e,t);function e(r,n,i){var a=t.call(this,new lI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;a[Ff]=1,i.ssr;var u=a._zr=Ay(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Q(i.useDirtyRect,l),useCoarsePointer:Q(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Nd(Le(u.flush,u),17),a._updateTheme(n),a._locale=e2(i.locale||m_),a._coordSysMgr=new gd;var f=a._api=Lb(a);function h(v,c){return v.__prio-c.__prio}return nu(Wf,h),nu(ep,h),a._scheduler=new V1(a,f,ep,Wf),a._messageCenter=new Tb,a._initEvents(),a.resize=Le(a.resize,a),u.animation.on("frame",a._onframe,a),Db(u,a),Ab(u,a),rc(a),a}return e.prototype._onframe=function(){if(!this._disposed){Ib(this);var r=this._scheduler;if(this[ht]){var n=this[ht].silent;this[tt]=!0,To(this);try{Sa(this),kn.update.call(this,null,this[ht].updateParams)}catch(l){throw this[tt]=!1,this[ht]=null,l}this._zr.flush(),this[tt]=!1,this[ht]=null,So.call(this,n),xo.call(this,n)}else if(r.unfinished){var i=UI,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),qd(this,a),r.performVisualTasks(a),Gf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[tt]){if(this._disposed){this.id;return}var a,o,s;if(K(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[tt]=!0,To(this),!this._model||n){var l=new V2(this._api),u=this._theme,f=this._model=new wd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},tp);var h={seriesTransition:s,optionChanged:!0};if(i)this[ht]={silent:a,updateParams:h},this[tt]=!1,this.getZr().wakeUp();else{try{Sa(this),kn.update.call(this,null,h)}catch(v){throw this[ht]=null,this[tt]=!1,v}this._ssr||this._zr.flush(),this[ht]=null,this[tt]=!1,So.call(this,a),xo.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[tt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[ht]&&(a==null&&(a=this[ht].silent),o=this[ht].updateParams,this[ht]=null),this[tt]=!0,To(this);try{this._updateTheme(r),i.setTheme(this._theme),Sa(this),kn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[tt]=!1,s}this[tt]=!1,So.call(this,a),xo.call(this,a)}}},e.prototype._updateTheme=function(r){X(r)&&(r=Eb[r]),r&&(r=pe(r),r&&t1(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return L(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;L(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return L(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Rb[i]){var l=s,u=s,f=-s,h=-s,v=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();L(Ks,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(pe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),v.push({dom:S,left:w.left,top:w.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,m=h-u,p=wn.createCanvas(),g=Ay(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:m}),n){var y="";return L(v,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ze({shape:{x:0,y:0,width:d,height:m},style:{fill:r.connectedBackgroundColor}})),L(v,function(_){var b=new ri({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});g.add(b)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Hf(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Hf(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Hf(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=iv(i,r);return L(o,function(s,l){l.indexOf("Models")>=0&&L(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=iv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?hI(s,l,n):cI(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;L(aP,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&qs(l,function(m){var p=be(m);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=V({},p.eventData),!0},!0),u){var h=u.componentType,v=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",v=u.seriesIndex);var c=h&&v!=null&&s.getComponent(h,v),d=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:c,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;L(Jd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),dI(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Hy(this.getDom(),np,"");var n=this,i=n._api,a=n._model;L(n._componentsViews,function(o){o.dispose(a,i)}),L(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ks[n.id]},e.prototype.resize=function(r){if(!this[tt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[ht]&&(a==null&&(a=this[ht].silent),i=!0,this[ht]=null),this[tt]=!0,To(this);try{i&&Sa(this),kn.update.call(this,{type:"resize",animation:V({duration:0},r&&r.animation)})}catch(o){throw this[tt]=!1,o}this[tt]=!1,So.call(this,a),xo.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!rp[r]){var i=rp[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=V({},r);return n.type=Qd[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(K(n)||(n={silent:!!n}),!!Vf[r.type]&&this._model){if(this[tt]){this._pendingActions.push(r);return}var i=n.silent;Zd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&oe.browser.weChat&&this._throttledZrFlush(),So.call(this,i),xo.call(this,i)}},e.prototype.updateLabelLayout=function(){Nr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Sa=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Xd(h,!0),Xd(h,!1),v.plan()},Xd=function(h,v){for(var c=h._model,d=h._scheduler,m=v?h._componentsViews:h._chartsViews,p=v?h._componentsMap:h._chartsMap,g=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__alive=!1;v?c.eachComponent(function(w,T){w!=="series"&&b(T)}):c.eachSeries(b);function b(w){var T=w.__requireNewView;w.__requireNewView=!1;var x="_ec_"+w.id+"_"+w.type,D=!T&&p[x];if(!D){var A=en(w.type),C=v?Or.getClass(A.main,A.sub):_r.getClass(A.sub);D=new C,D.init(c,y),p[x]=D,m.push(D),g.add(D.group)}w.__viewId=D.__id=x,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(D,w,c,y)}for(var _=0;_<m.length;){var S=m[_];S.__alive?_++:(!v&&S.renderTask.dispose(),g.remove(S.group),S.dispose(c,y),m.splice(_,1),p[S.__id]===S&&delete p[S.__id],S.__id=S.group.__ecComponentInfo=null)}},zf=function(h,v,c,d,m){var p=h._model;if(p.setUpdatePayload(c),!d){L([].concat(h._componentsViews).concat(h._chartsViews),S);return}var g={};g[d+"Id"]=c[d+"Id"],g[d+"Index"]=c[d+"Index"],g[d+"Name"]=c[d+"Name"];var y={mainType:d,query:g};m&&(y.subType=m);var _=c.excludeSeriesId,b;_!=null&&(b=he(),L(Dt(_),function(w){var T=Jr(w,null);T!=null&&b.set(T,!0)})),p&&p.eachComponent(y,function(w){var T=b&&b.get(w.id)!=null;if(!T)if(N0(c))if(w instanceof Rr)c.type===la&&!c.notBlur&&!w.get(["emphasis","disabled"])&&OM(w,c,h._api);else{var x=Pv(w.mainType,w.componentIndex,c.name,h._api),D=x.focusSelf,A=x.dispatchers;c.type===la&&D&&!c.notBlur&&Iv(w.mainType,w.componentIndex,h._api),A&&L(A,function(C){c.type===la?Uu(C):Yu(C)})}else Ov(c)&&w instanceof Rr&&(FM(w,c,h._api),E0(w),br(h))},h),p&&p.eachComponent(y,function(w){var T=b&&b.get(w.id)!=null;T||S(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function S(w){w&&w.__alive&&w[v]&&w[v](w.__model,p,h._api,c)}},kn={prepareAndUpdate:function(h){Sa(this),kn.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,m=this._zr,p=this._coordSysMgr,g=this._scheduler;if(c){c.setUpdatePayload(h),g.restoreData(c,h),g.performSeriesTasks(c),p.create(c,d),g.performDataProcessorTasks(c,h),qd(this,c),p.update(c,d),n(c),g.performVisualTasks(c,h);var y=c.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=c.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),Kd(this,c,d,h,v),Nr.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var m=[];c.eachComponent(function(g,y){if(g!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,c,d,h);b&&b.update&&m.push(_)}else m.push(_)}});var p=he();c.eachSeries(function(g){var y=v._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,c,d,h);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:p}),Gf(this,c,d,h,{},p),Nr.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),_r.markUpdateMethod(h,"updateView"),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Kd(this,v,this._api,h,{}),Nr.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),_r.markUpdateMethod(h,"updateVisual"),n(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,m){if(d!=="series"){var p=v.getViewOfComponentModel(m);p&&p.__alive&&p.updateVisual(m,c,v._api,h)}}),c.eachSeries(function(d){var m=v._chartsMap[d.__viewId];m.updateVisual(d,c,v._api,h)}),Nr.trigger("afterupdate",c,this._api))},updateLayout:function(h){kn.update.call(this,h)}};function r(h,v,c,d,m){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,_=iv(p,c),b=0;b<g.length;b++){var S=g[b];if(S[v]&&(y=S[v](p,_,d,m))!=null)return y}}Hf=r,qd=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(m){d.updateStreamModes(m,c[m.__viewId])})},Zd=function(h,v){var c=this,d=this.getModel(),m=h.type,p=h.escapeConnect,g=Vf[m],y=(g.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&en(y[0]);this[tt]=!0,To(this);var S=[h],w=!1;h.batch&&(w=!0,S=j(h.batch,function(O){return O=Me(V({},O),h),O.batch=null,O}));var T=[],x,D=[],A=g.nonRefinedEventType,C=Ov(h),k=N0(h);if(k&&P0(this._api),L(S,function(O){var G=g.action(O,d,c._api);if(g.refineEvent?D.push(G):x=G,x=x||V({},O),x.type=A,T.push(x),k){var N=av(h),B=N.queryOptionMap,H=N.mainTypeSpecified,z=H?B.keys()[0]:"series";zf(c,_,O,z),br(c)}else C?(zf(c,_,O,"series"),br(c)):b&&zf(c,_,O,b.main,b.sub)}),_!=="none"&&!k&&!C&&!b)try{this[ht]?(Sa(this),kn.update.call(this,h),this[ht]=null):kn[_].call(this,h)}catch(O){throw this[tt]=!1,O}if(w?x={type:A,escapeConnect:p,batch:T}:x=T[0],this[tt]=!1,!v){var M=void 0;if(g.refineEvent){var P=g.refineEvent(D,h,d,this._api).eventContent;Sn(K(P)),M=Me({type:g.refinedEventType},P),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var I=this._messageCenter;I.trigger(x.type,x),M&&I.trigger(M.type,M)}},So=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Zd.call(this,c,h)}},xo=function(h){!h&&this.trigger("updated")},Db=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[ht]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Ab=function(h,v){h.on("mouseover",function(c){var d=c.target,m=qs(d,Rv);m&&(NM(m,c,v._api),br(v))}).on("mouseout",function(c){var d=c.target,m=qs(d,Rv);m&&(BM(m,c,v._api),br(v))}).on("click",function(c){var d=c.target,m=qs(d,function(y){return be(y).dataIndex!=null},!0);if(m){var p=m.selected?"unselect":"select",g=be(m);v._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function i(h){var v=[],c=[],d=!1;if(h.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?c:v).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),d){var m=v.concat(c),p,g;nu(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),L(m,function(y){var _=h.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;p!=null&&(b=Math.max(p,b)),S?(b===p&&S!==g&&b++,g=S):g&&(b===p&&b++,g=""),p=b,_.setZLevel(b)})}}Kd=function(h,v,c,d,m){i(v),Mb(h,v,c,d,m),L(h._chartsViews,function(p){p.__alive=!1}),Gf(h,v,c,d,m),L(h._chartsViews,function(p){p.__alive||p.remove(v,c)})},Mb=function(h,v,c,d,m,p){L(p||h._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,v,c,d),l(y,g),f(y,g)})},Gf=function(h,v,c,d,m,p){var g=h._scheduler;m=V(m||{},{updatedSeries:v.getSeries()}),Nr.trigger("series:beforeupdate",v,c,m);var y=!1;v.eachSeries(function(_){var b=h._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;g.updatePayload(S,d),u(_,b),p&&p.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),E0(_)}),g.unfinished=y||g.unfinished,Nr.trigger("series:layoutlabels",v,c,m),Nr.trigger("series:transition",v,c,m),v.eachSeries(function(_){var b=h._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(h,v),Nr.trigger("series:afterupdate",v,c,m)},br=function(h){h[Ud]=!0,h.getZr().wakeUp()},To=function(h){h[Ff]=(h[Ff]+1)%1e3},Ib=function(h){h[Ud]&&(h.getZr().storage.traverse(function(v){As(v)||a(v)}),h[Ud]=!1)};function a(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var m=c[d];m==="emphasis"||m==="blur"||m==="select"||v.push(m)}h.selected&&h.states.select&&v.push("select"),h.hoverState===zu&&h.states.emphasis?v.push("emphasis"):h.hoverState===Fu&&h.states.blur&&v.push("blur"),h.useStates(v)}function o(h,v){var c=h._zr,d=c.storage,m=0;d.traverse(function(p){p.isGroup||m++}),m>v.get("hoverLayerThreshold")&&!oe.node&&!oe.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function l(h,v){if(!h.preventAutoZ){var c=a_(h);v.eachRendered(function(d){return o_(d,c.z,c.zlevel),!0})}}function u(h,v){v.eachRendered(function(c){if(!As(c)){var d=c.getTextContent(),m=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),m=c.get("duration"),p=m>0?{duration:m,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(As(g))return;if(g instanceof Ie&&$M(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),b=g.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}g.__dirty&&a(g)}})}Lb=function(h){return new((function(v){re(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},c.prototype.enterEmphasis=function(d,m){Uu(d,m),br(h)},c.prototype.leaveEmphasis=function(d,m){Yu(d,m),br(h)},c.prototype.enterBlur=function(d){RM(d),br(h)},c.prototype.leaveBlur=function(d){M0(d),br(h)},c.prototype.enterSelect=function(d){L0(d),br(h)},c.prototype.leaveSelect=function(d){k0(d),br(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c.prototype.getMainProcessVersion=function(){return h[Ff]},c})(q_))(h)},kb=function(h){function v(c,d){for(var m=0;m<c.length;m++){var p=c[m];p[Yd]=d}}L(Qd,function(c,d){h._messageCenter.on(d,function(m){if(Rb[h.group]&&h[Yd]!==bb){if(m&&m.escapeConnect)return;var p=h.makeActionFromEvent(m),g=[];L(Ks,function(y){y!==h&&y.group===h.group&&g.push(y)}),v(g,bb),L(g,function(y){y[Yd]!==nP&&y.dispatchAction(p)}),v(g,iP)}})})}})(),e})(Xr),jd=Pb.prototype;jd.on=wb("on"),jd.off=wb("off"),jd.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var aP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function QB(t){}var Vf={},Qd={},Jd={},ep=[],tp=[],Wf=[],Eb={},rp={},Ks={},Rb={},oP=+new Date-0,np="_echarts_instance_";function sP(t,e,r){{var n=lP(t);if(n)return n}var i=new Pb(t,e,r);return i.id="ec_"+oP++,Ks[i.id]=i,Hy(t,np,i.id),kb(i),Nr.trigger("afterinit",i),i}function lP(t){return Ks[xA(t,np)]}function Ob(t,e){Eb[t]=e}function Nb(t){Te(tp,t)<0&&tp.push(t)}function Bb(t,e){ap(ep,t,e,ZI)}function uP(t){ip("afterinit",t)}function fP(t){ip("afterupdate",t)}function ip(t,e){Nr.on(t,e)}function Co(t,e,r){var n,i,a,o,s;ie(e)&&(r=e,e=""),K(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Vf[n]||(Sn(_b.test(n)&&_b.test(i)),a&&Sn(i!==n),Vf[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Jd[i]=1,a&&s&&(Jd[u]=1),Qd[u]=n)}function hP(t,e){gd.register(t,e)}function cP(t,e){ap(Wf,t,e,gb,"layout")}function xa(t,e){ap(Wf,t,e,mb,"visual")}var Fb=[];function ap(t,e,r,n,i){if((ie(e)||K(e))&&(r=e,e=n),!(Te(Fb,r)>=0)){Fb.push(r);var a=V1.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function zb(t,e){rp[t]=e}function vP(t,e,r){var n=$I("registerMap");n&&n(t,e,r)}var dP=yk;xa($d,qk),xa(Bf,Zk),xa(Bf,Kk),xa($d,uI),xa(Bf,fI),xa(yb,VI),Nb(t1),Bb(XI,ek),zb("default",jk),Co({type:la,event:la,update:la},Nt),Co({type:Gu,event:Gu,update:Gu},Nt),Co({type:Vu,event:Av,update:Vu,action:Nt,refineEvent:op,publishNonRefinedEvent:!0}),Co({type:Dv,event:Av,update:Dv,action:Nt,refineEvent:op,publishNonRefinedEvent:!0}),Co({type:Wu,event:Av,update:Wu,action:Nt,refineEvent:op,publishNonRefinedEvent:!0});function op(t,e,r,n){return{eventContent:{selected:zM(r),isFromClick:e.isFromClick||!1}}}Ob("default",{}),Ob("dark",X1);function js(t){return t==null?0:t.length||1}function Hb(t){return t}var pP=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Hb,this._newKeyGetter=i||Hb,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=js(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=js(u),v=js(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=js(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=js(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),gP=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function mP(t,e){var r={},n=r.encode={},i=he(),a=[],o=[],s={};L(t.dimensions,function(v){var c=t.getDimensionInfo(v),d=c.coordDim;if(d){var m=c.coordDimIndex;sp(n,d)[m]=v,c.isExtraCoord||(i.set(d,1),_P(c.type)&&(a[0]=v),sp(s,d)[m]=t.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}B_.each(function(p,g){var y=sp(n,g),_=c.otherDims[g];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};i.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=j(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new gP(s,e),r}function sp(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function yP(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function _P(t){return!(t==="ordinal"||t==="time")}var $f=(function(){function t(e){this.otherDims={},e!=null&&V(this,e)}return t})(),bP=Ue(),wP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gb=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=$b(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Q(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=o1(this.source),n=!Ub(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=wP[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Vb(t){return t instanceof Gb}function Wb(t){for(var e=he(),r=0;r<(t||[]).length;r++){var n=t[r],i=K(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function $b(t){var e=bP(t);return e.dimNameMap||(e.dimNameMap=Wb(t.dimensionsDefine))}function Ub(t){return t>30}var Qs=K,ci=j,SP=typeof Int32Array>"u"?Array:Int32Array,xP="e\0\0",Yb=-1,TP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CP=["_approximateExtent"],Xb,Uf,Js,el,lp,tl,up,qb=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Vb(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=X(h)?new $f({name:h}):h instanceof $f?h:new $f(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]);var m=f;ke(v.storeDimIndex)&&(m=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=m),d.itemId===0&&(this._idDimIdx=m),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=he();L(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ke(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof kd&&(a=e),!a){var o=this.dimensions,s=Td(e)||Rt(e)?new u1(e,o.length):e;a=new kd;var l=ci(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=mP(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&up(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==fi&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xt;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&cA(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=Jr(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Jr(c,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)up(this,f);Xb(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Qs(e)?V(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Js(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Uf(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return U(e)?i.getValues(ci(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?Yb:i},t.prototype.each=function(e,r,n){ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=ci(el(e),this._getStoreDimIndex,this);this._store.each(a,i?Le(r,i):r)},t.prototype.filterSelf=function(e,r,n){ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=ci(el(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Le(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=We(e);return L(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ie(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=ci(el(e),this._getStoreDimIndex,this),s=tl(this);return s._store=this._store.map(o,a?Le(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=ci(el(e),this._getStoreDimIndex,this);this._store.modify(o,a?Le(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=tl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=tl(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=tl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ye(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new pP(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Uf(e,n)},function(n){return Uf(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Qs(e)?V(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),U(a)?a=a.slice():Qs(a)&&(a=V({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Qs(r)?V(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Qs(e)?V(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?V(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;TM(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){L(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ci(this.dimensions,this._getDimInfo,this),this.hostModel)),lp(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ec(arguments)))})},t.internalField=(function(){Xb=function(e){var r=e._invertedIndicesMap;L(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new SP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Yb;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Js=function(e,r,n){return Jr(e._getCategory(r,n),null)},Uf=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Js(e,e._idDimIdx,r)),n==null&&(n=xP+r),n},el=function(e){return U(e)||(e=e!=null?[e]:[]),e},tl=function(e){var r=new t(e._schema?e._schema:ci(e.dimensions,e._getDimInfo,e),e.hostModel);return lp(r,e),r},lp=function(e,r){L(TP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,L(CP,function(n){e[n]=pe(r[n])}),e._calculationInfo=V({},r._calculationInfo)},up=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Js(e,a,r)),l==null&&o!=null&&(i[r]=l=Js(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function Zb(t,e){Td(t)||(t=r1(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=he(),a=[],o=AP(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ub(o),l=n===t.dimensionsDefine,u=l?$b(t):Wb(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var h=he(f),v=new y1(o),c=0;c<v.length;c++)v[c]=-1;function d(D){var A=v[D];if(A<0){var C=n[D],k=K(C)?C:{name:C},M=new $f,P=k.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),k.type!=null&&(M.type=k.type),k.displayName!=null&&(M.displayName=k.displayName);var I=a.length;return v[D]=I,M.storeDimIndex=D,a.push(M),M}return a[A]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(D,A){var C=Dt(D).slice();if(C.length===1&&!X(C[0])&&C[0]<0){h.set(A,!1);return}var k=h.set(A,[]);L(C,function(M,P){var I=X(M)?u.get(M):M;I!=null&&I<o&&(k[P]=I,p(d(I),A,P))})});var m=0;L(r,function(D){var A,C,k,M;if(X(D))A=D,M={};else{M=D,A=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=V({},M),M.ordinalMeta=P,C=M.dimsDef,k=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var I=h.get(A);if(I!==!1){if(I=Dt(I),!I.length)for(var O=0;O<(C&&C.length||1);O++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&I.push(m++)}L(I,function(G,N){var B=d(G);if(l&&M.type!=null&&(B.type=M.type),p(Me(B,M),A,N),B.name==null&&C){var H=C[N];!K(H)&&(H={name:H}),B.name=B.displayName=H.name,B.defaultTooltip=H.defaultTooltip}k&&Me(B.otherDims,k)})}});function p(D,A,C){B_.get(A)!=null?D.otherDims[A]=C:(D.coordDim=A,D.coordDimIndex=C,i.set(A,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)L(a,function(D){S(D)}),a.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),x=T.coordDim;x==null&&(T.coordDim=MP(b,i,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),S(T),T.type==null&&(H_(t,w)===mt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return DP(a),new Gb({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function DP(t){for(var e=he(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function AP(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return L(e,function(a){var o;K(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function MP(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var LP=(function(){function t(e){this.coordSysDims=[],this.axisMap=he(),this.categoryAxisMap=he(),this.coordSysName=e}return t})();function kP(t){var e=t.get("coordinateSystem"),r=new LP(e),n=IP[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var IP={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",fr).models[0],a=t.getReferringComponents("yAxis",fr).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Do(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Do(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",fr).models[0];e.coordSysDims=["single"],r.set("single",i),Do(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",fr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Do(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Do(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Do(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",fr).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Do(t){return t.get("type")==="category"}function PP(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;EP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,h,v;if(L(a,function(y,_){X(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,m=0;L(a,function(y){y.coordDim===c&&m++});var p={name:h,coordDim:c,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function EP(t){return!Vb(t.schema)}function Ao(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function RP(t,e){return Ao(t,e)?t.getCalculationInfo("stackResultDimension"):e}function OP(t,e){var r=t.get("coordinateSystem"),n=gd.get(r),i;return e&&e.coordSysDims&&(i=j(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=yP(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function NP(t,e,r){var n,i;return r&&L(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function fp(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Xt;var o=kP(e),s=OP(e,o),l=r.useEncodeDefaulter,u=ie(l)?l:l?Qe(L2,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Zb(i,f),v=NP(h.dimensions,r.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=PP(e,{schema:h,store:c}),m=new qb(h,e);m.setCalculationInfo(d);var p=v!=null&&BP(i)?function(g,y,_,b){return b===v?_:this.defaultDimValueGetter(g,y,_,b)}:null;return m.hasItemOption=!1,m.initData(a?i:c,null,p),m}function BP(t){if(t.sourceFormat===Xt){var e=FP(t.data||[]);return!U(ds(e))}}function FP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function hp(t){return t.type==="interval"||t.type==="log"}function zP(t,e,r,n,i){var a={},o=a.interval=Iy(e/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=rl(o),l=a.niceTickExtent=[pt(Math.ceil(t[0]/o)*o,s),pt(Math.floor(t[1]/o)*o,s)];return HP(l,t),a}function cp(t){var e=Math.pow(10,tv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,pt(r*e)}function rl(t){return Cn(t)+2}function Kb(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function HP(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Kb(t,0,e),Kb(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function vp(t,e){return t>=e[0]&&t<=e[1]}var GP=(function(){function t(){this.normalize=jb,this.scale=Qb}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=Le(e.normalize,e),this.scale=Le(e.scale,e)):(this.normalize=jb,this.scale=Qb)},t})();function jb(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Qb(t,e){return t*(e[1]-e[0])+e[0]}function dp(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var vi=(function(){function t(e){this._calculator=new GP,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();ku(vi);var VP=0,pp=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++VP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&j(n,WP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!X(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=he(this.categories))},t})();function WP(t){return K(t)&&t.value!=null?t.value:t+""}var Jb=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new pp({})),U(i)&&(i=new pp({categories:j(i,function(a){return K(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:X(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return vp(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(vi);vi.registerClass(Jb);var di=pt,Mo=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return vp(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=rl(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=vf(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:di(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(d,m){return Math.round((m-d)/n)},h=a[0];h<=a[1];){if(l.push({value:h}),h=di(h+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(h,f);v>=0&&(h=di(h+v*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var c=l.length?l[l.length-1].value:a[1];return i[1]>c&&(r.expandToNicedExtent?l.push({value:di(c+n,o)}):l.push({value:i[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],h=s.value-l.value,v=h/r,c=rl(v);u<r-1;){var d=di(l.value+(u+1)*v,c);d>a[0]&&d<a[1]&&f.push(d),u++}var m=vf();m&&m.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Cn(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=di(r.value,i,!0);return M_(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=zP(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=di(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=di(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(vi);vi.registerClass(Mo);var ew=typeof Float32Array<"u",$P=ew?Float32Array:Array;function In(t){return U(t)?ew?new Float32Array(t):t:new $P(t)}var UP="__ec_stack_";function tw(t){return t.get("stack")||UP+t.seriesIndex}function gp(t){return t.dim+t.index}function rw(t,e){var r=[];return e.eachSeriesByType(t,function(n){iw(n)&&r.push(n)}),r}function YP(t){var e={};L(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),m=0,p=d.count();m<p;++m){var g=d.get(c,m);e[v]?e[v].push(g):e[v]=[g]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function nw(t){var e=YP(t),r=[];return L(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=$e(n.get("barWidth"),s),m=$e(n.get("barMaxWidth"),s),p=$e(n.get("barMinWidth")||(aw(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:gp(a),stackId:tw(n)})}),XP(r)}function XP(t){var e={};L(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return L(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=We(a).length;s=Math.max(35-l*4,15)+"%"}var u=$e(s,o),f=$e(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),L(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var b=g.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),g.width=b,h-=b+f*b,v--}else{var b=c;y&&y<b&&(b=Math.min(y,h)),_&&_>b&&(b=_),b!==c&&(g.width=b,h-=b+f*b,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,m;L(a,function(g,y){g.width||(g.width=c),m=g,d+=g.width*(1+f)}),m&&(d-=m.width*f);var p=-d/2;L(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function qP(t,e,r){if(t&&e){var n=t[gp(e)];return n}}function ZP(t,e){var r=rw(t,e),n=nw(r);L(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=tw(i),u=n[gp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function KP(t){return{seriesType:t,plan:Od(),reset:function(e){if(iw(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Ao(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=jP(i,a),d=aw(e),m=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=d&&In(S*3),T=d&&l&&In(S*3),x=d&&In(S),D=n.master.getRect(),A=v?D.width:D.height,C,k=b.getStore(),M=0;(C=_.next())!=null;){var P=k.get(h?p:o,C),I=k.get(s,C),O=c,G=void 0;h&&(G=+P-k.get(o,C));var N=void 0,B=void 0,H=void 0,z=void 0;if(v){var F=n.dataToPoint([P,I]);if(h){var W=n.dataToPoint([G,I]);O=W[0]}N=O,B=F[1]+y,H=F[0]-O,z=g,Math.abs(H)<m&&(H=(H<0?-1:1)*m)}else{var F=n.dataToPoint([I,P]);if(h){var W=n.dataToPoint([I,G]);O=W[1]}N=F[0]+y,B=O,H=g,z=F[1]-O,Math.abs(z)<m&&(z=(z<=0?-1:1)*m)}d?(w[M]=N,w[M+1]=B,w[M+2]=v?H:z,T&&(T[M]=v?D.x:N,T[M+1]=v?B:D.y,T[M+2]=A),x[C]=C):b.setItemLayout(C,{x:N,y:B,width:H,height:z}),M+=3}d&&b.setLayout({largePoints:w,largeDataIndices:x,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function iw(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function aw(t){return t.pipelineContext&&t.pipelineContext.large}function jP(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var QP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},ow=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return gf(r.value,b_[f2(Rs(this._minLevelUnit))]||b_.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return h2(r,n,i,o,a)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=mf(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=oE(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=mf(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=ca.length-1,h=0;return L(a,function(v){f=Math.min(f,Te(ca,v.time.upperTimeUnit)),h=Math.max(h,v.time.level)}),a},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=gr,n[1]+=gr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-gr}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=Yf.length,s=Math.min(QP(Yf,this._approxInterval,0,o),o-1);this._interval=Yf[s][1],this._intervalPrecision=rl(this._interval),this._minLevelUnit=Yf[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return ke(r)?r:+oo(r)},e.prototype.contain=function(r){return vp(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(Mo),Yf=[["second",id],["minute",ad],["hour",Es],["quarter-day",Es*6],["half-day",Es*12],["day",gr*1.2],["half-week",gr*3.5],["week",gr*7],["month",gr*31],["quarter",gr*95],["half-year",__/2],["year",__]];function JP(t,e,r,n){return od(new Date(e),t,n).getTime()===od(new Date(r),t,n).getTime()}function eE(t,e){return t/=gr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function tE(t){var e=30*gr;return t/=e,t>6?6:t>3?3:t>2?2:1}function rE(t){return t/=Es,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function sw(t,e){return t/=e?ad:id,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function nE(t){return Iy(t)}function iE(t,e,r){var n=Math.max(0,Te(ca,e)-1);return od(new Date(t),ca[n],r).getTime()}function aE(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function oE(t,e,r,n,i,a){var o=1e4,s=o2,l=0;function u(M,P,I,O,G,N,B){for(var H=aE(G,M),z=P,F=new Date(z);z<I&&z<=n[1]&&(B.push({value:z}),!(l++>o));)if(F[G](F[O]()+M),z=F.getTime(),a){var W=a.calcNiceTickMultiple(z,H);W>0&&(F[G](F[O]()+W*M),z=F.getTime())}B.push({value:z,notAdd:!0})}function f(M,P,I){var O=[],G=!P.length;if(!JP(Rs(M),n[0],n[1],r)){G&&(P=[{value:iE(n[0],M,r)},{value:n[1]}]);for(var N=0;N<P.length-1;N++){var B=P[N].value,H=P[N+1].value;if(B!==H){var z=void 0,F=void 0,W=void 0,J=!1;switch(M){case"year":z=Math.max(1,Math.round(e/gr/365)),F=w_(r),W=c2(r);break;case"half-year":case"quarter":case"month":z=tE(e),F=sd(r),W=S_(r);break;case"week":case"half-week":case"day":z=eE(e),F=ld(r),W=x_(r),J=!0;break;case"half-day":case"quarter-day":case"hour":z=rE(e),F=ud(r),W=T_(r);break;case"minute":z=sw(e,!0),F=fd(r),W=C_(r);break;case"second":z=sw(e,!1),F=hd(r),W=D_(r);break;case"millisecond":z=nE(e),F=cd(r),W=A_(r);break}H>=n[0]&&B<=n[1]&&u(z,B,H,F,W,J,O),M==="year"&&I.length>1&&N===0&&I.unshift({value:I[0].value-z})}}for(var N=0;N<O.length;N++)I.push(O[N])}}for(var h=[],v=[],c=0,d=0,m=0;m<s.length;++m){var p=Rs(s[m]);if(u2(s[m])){f(s[m],h[h.length-1]||[],v);var g=s[m+1]?Rs(s[m+1]):null;if(p!==g){if(v.length){d=c,v.sort(function(M,P){return M.value-P.value});for(var y=[],_=0;_<v.length;++_){var b=v[_].value;(_===0||v[_-1].value!==b)&&(y.push(v[_]),b>=n[0]&&b<=n[1]&&c++)}var S=i/e;if(c>S*1.5&&d>S/1.5||(h.push(y),c>S||t===s[m]))break}v=[]}}}for(var w=lt(j(h,function(M){return lt(M,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(M){return M.length>0}),T=[],x=w.length-1,m=0;m<w.length;++m)for(var D=w[m],A=0;A<D.length;++A){var C=mf(D[A].value,r);T.push({value:D[A].value,time:{level:x-m,upperTimeUnit:C,lowerTimeUnit:C}})}T.sort(function(M,P){return M.value-P.value});for(var k=[],m=0;m<T.length;++m)(m===0||T[m].value!==T[m-1].value)&&k.push(T[m]);return k}vi.registerClass(ow);var mp=pt,sE=Math.floor,lE=Math.ceil,Xf=Math.pow,qf=Math.log,lw=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Mo,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),j(a,function(s){var l=s.value,u=null,f=Xf(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var h;return u!=null&&(f=yp(f,u)),{value:f,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=dp(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=Xf(r,n[0]),n[1]=Xf(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=yp(n[0],i[0])),this._fixMax&&(n[1]=yp(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=dp(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=oA(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[mp(lE(n[0]/a)*a),mp(sE(n[1]/a)*a)];this._interval=a,this._intervalPrecision=rl(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=qf(r)/qf(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=qf(r)/qf(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),Xf(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(Mo);function yp(t,e){return mp(t,Cn(e))}vi.registerClass(lw);var uE=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ie(o)?this._modelMinNum=Zf(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Zf(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ie(s)?this._modelMaxNum=Zf(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Zf(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=U(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Qn(u[0],1),Qn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Jo(s)||Jo(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},t.prototype.modifyDataMinMax=function(e,r){this[hE[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=fE[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),fE={min:"_determinedMin",max:"_determinedMax"},hE={min:"_dataMin",max:"_dataMax"};function cE(t,e,r){var n=t.rawExtentInfo;return n||(n=new uE(t,e,r),t.rawExtentInfo=n,n)}function Zf(t,e){return e==null?null:Jo(e)?NaN:t.parse(e)}function uw(t,e){var r=t.type,n=cE(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=rw("bar",o),l=!1;if(L(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=nw(s),f=vE(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function vE(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=qP(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;L(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;L(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,h=1-(s+l)/a,v=f/h-f;return e+=v*(l/u),t-=v*(s/u),{min:t,max:e}}function fw(t,e){var r=e,n=uw(t,r),i=n.extent,a=r.get("splitNumber");t instanceof lw&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(cw(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function dE(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Jb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new ow({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(vi.getClass(e)||Mo)}}function pE(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function nl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=s2(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(X(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ie(e)){if(t.type==="category")return function(i,a){return e(Kf(t,i),i.value-t.scale.getExtent()[0],null)};var n=vf();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Kf(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Kf(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function _p(t){var e=t.get("interval");return e??"auto"}function hw(t){return t.type==="category"&&_p(t.getLabelModel())===0}function gE(t,e){var r={};return L(t.mapDimensionsAll(e),function(n){r[RP(t,n)]=!0}),We(r)}function Lo(t){return t==="middle"||t==="center"}function il(t){return t.getShallow("show")}function cw(t){var e=t.get("breaks",!0);e==null}var mE=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),vw=[],yE={registerPreprocessor:Nb,registerProcessor:Bb,registerPostInit:uP,registerPostUpdate:fP,registerUpdateLifecycle:ip,registerAction:Co,registerCoordinateSystem:hP,registerLayout:cP,registerVisual:xa,registerTransform:dP,registerLoading:zb,registerMap:vP,registerImpl:WI,PRIORITY:rP,ComponentModel:Pe,ComponentView:Or,SeriesModel:Rr,ChartView:_r,registerComponentModel:function(t){Pe.registerClass(t)},registerComponentView:function(t){Or.registerClass(t)},registerSeriesModel:function(t){Rr.registerClass(t)},registerChartView:function(t){_r.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){Pe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){QD(t,e)}};function pi(t){if(U(t)){L(t,function(e){pi(e)});return}Te(vw,t)>=0||(vw.push(t),ie(t)&&(t={install:t}),t.install(yE))}var _E=Ue(),al=Ue(),Br={estimate:1,determine:2};function jf(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function dw(t,e){var r=j(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function bE(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=nl(t),i=t.scale.getExtent(),a=dw(t,r),o=lt(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:j(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?SE(t,e):TE(t)}function wE(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=dw(t,n);return{ticks:lt(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?xE(t,e):{ticks:j(t.scale.getTicks(r),function(o){return o.value})}}function SE(t,e){var r=t.getLabelModel(),n=pw(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function pw(t,e,r){var n=DE(t),i=_p(e),a=r.kind===Br.estimate;if(!a){var o=mw(n,i);if(o)return o}var s,l;ie(i)?s=bw(t,i):(l=i==="auto"?AE(t,r):i,s=_w(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return bp(n,i,u),!0}):bp(n,i,u),u}function xE(t,e){var r=CE(t),n=_p(e),i=mw(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ie(n))a=bw(t,n,!0);else if(n==="auto"){var s=pw(t,t.getLabelModel(),jf(Br.determine));o=s.labelCategoryInterval,a=j(s.labels,function(l){return l.tickValue})}else o=n,a=_w(t,o,!0);return bp(r,n,{ticks:a,tickCategoryInterval:o})}function TE(t){var e=t.scale.getTicks(),r=nl(t);return{labels:j(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var CE=gw("axisTick"),DE=gw("axisLabel");function gw(t){return function(r){return al(r)[t]||(al(r)[t]={list:[]})}}function mw(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function bp(t,e,r){return t.list.push({key:e,value:r}),r}function AE(t,e){if(e.kind===Br.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return al(t).autoInterval=r,!0}),r}var n=al(t).autoInterval;return n??(al(t).autoInterval=t.calculateCategoryInterval(e))}function ME(t,e){var r=e.kind,n=kE(t),i=nl(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],v=t.dataToCoord(h+1)-t.dataToCoord(h),c=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),m=0,p=0;h<=s[1];h+=u){var g=0,y=0,_=Ty(i({value:h}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,m=Math.max(m,g,7),p=Math.max(p,y,7)}var b=m/c,S=p/d;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S)));if(r===Br.estimate)return e.out.noPxChangeTryDetermine.push(Le(LE,null,t,w,l)),w;var T=yw(t,w,l);return T??w}function LE(t,e,r){return yw(t,e,r)==null}function yw(t,e,r){var n=_E(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function kE(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _w(t,e,r){var n=nl(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=hw(t),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);c&&d-l!==a[1]&&m(a[1]);function m(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p,time:void 0,break:void 0})}return s}function bw(t,e,r){var n=t.scale,i=nl(t),a=[];return L(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var ww=[0,1],IE=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return rA(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sw(n,i.count())),Jc(e,ww,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sw(n,i.count()));var a=Jc(e,n,ww,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=wE(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=j(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return PE(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=j(n,function(a){return j(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||jf(Br.determine),bE(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||jf(Br.determine),ME(this,e)},t})();function Sw(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function PE(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;L(e,function(c){c.coord-=u/2,c.onBand=!0});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var h=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function v(c,d){return c=pt(c),d=pt(d),h?c>d:c<d}}function xw(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,h=n-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;d*=v;var m=o[0]=t+d*f,p=o[1]=e+d*h;return Math.sqrt((m-i)*(m-i)+(p-a)*(p-a))}var gi=new se,je=new se,yt=new se,mi=new se,ln=new se,Qf=[],Lt=new se;function EE(t,e){if(e<=180&&e>0){e=e/180*Math.PI,gi.fromArray(t[0]),je.fromArray(t[1]),yt.fromArray(t[2]),se.sub(mi,gi,je),se.sub(ln,yt,je);var r=mi.len(),n=ln.len();if(!(r<.001||n<.001)){mi.scale(1/r),ln.scale(1/n);var i=mi.dot(ln),a=Math.cos(e);if(a<i){var o=xw(je.x,je.y,yt.x,yt.y,gi.x,gi.y,Qf);Lt.fromArray(Qf),Lt.scaleAndAdd(ln,o/Math.tan(Math.PI-e));var s=yt.x!==je.x?(Lt.x-je.x)/(yt.x-je.x):(Lt.y-je.y)/(yt.y-je.y);if(isNaN(s))return;s<0?se.copy(Lt,je):s>1&&se.copy(Lt,yt),Lt.toArray(t[1])}}}}function RE(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,gi.fromArray(t[0]),je.fromArray(t[1]),yt.fromArray(t[2]),se.sub(mi,je,gi),se.sub(ln,yt,je);var n=mi.len(),i=ln.len();if(!(n<.001||i<.001)){mi.scale(1/n),ln.scale(1/i);var a=mi.dot(e),o=Math.cos(r);if(a<o){var s=xw(je.x,je.y,yt.x,yt.y,gi.x,gi.y,Qf);Lt.fromArray(Qf);var l=Math.PI/2,u=Math.acos(ln.dot(e)),f=l+u-r;if(f>=l)se.copy(Lt,yt);else{Lt.scaleAndAdd(ln,s/Math.tan(Math.PI/2-f));var h=yt.x!==je.x?(Lt.x-je.x)/(yt.x-je.x):(Lt.y-je.y)/(yt.y-je.y);if(isNaN(h))return;h<0?se.copy(Lt,je):h>1&&se.copy(Lt,yt)}Lt.toArray(t[1])}}}}function wp(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function OE(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=oc(n[0],n[1]),a=oc(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=sc([],n[1],n[0],o/i),l=sc([],n[1],n[2],o/a),u=sc([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function NE(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Hu.length;l++){var u=Hu[l],f=e[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:Q(i.states[u]&&i.states[u].ignore,s);if(c||!Q(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&wp(n,!0,u,f);continue}n||(n=new Ds,t.setTextGuideLine(n),!h&&(s||!o)&&wp(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),wp(n,!1,u,f)}}if(n){Me(n.style,r),n.style.fill=null;var m=a.get("showAbove"),p=t.textGuideLineConfig=t.textGuideLineConfig||{};p.showAbove=m||!1,n.buildPath=OE}}function BE(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<dr.length;n++){var i=dr[n];r[i]=t.getModel([i,e])}return r}var Tw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],FE=1,Jf=2,Cw=FE|Jf;function eh(t,e,r){r=r||Cw,e?t.dirty|=r:t.dirty&=~r}function Dw(t,e){return e=e||Cw,t.dirty==null||!!(t.dirty&e)}function yi(t){if(t)return Dw(t)&&Aw(t,t.label,t),t}function Aw(t,e,r){var n=e.getComputedTransform();t.transform=Jv(t.transform,n);var i=t.localRect=ks(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=vo.textMargin);for(var h=0;h<4;h++)Sp[h]=f===vo.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===vo.textMargin&&nf(i,Sp,!1,!1);var v=t.rect=ks(t.rect,i);return n&&v.applyTransform(n),f===vo.minMargin&&nf(v,Sp,!1,!1),t.axisAligned=Qv(n),(t.label=t.label||{}).ignore=e.ignore,eh(t,!1),eh(t,!0,Jf),t}var Sp=[0,0,0,0];function zE(t,e,r){return t.transform=Jv(t.transform,r),t.localRect=ks(t.localRect,e),t.rect=ks(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Qv(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function HE(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Mw(t,e){for(var r=0;r<Tw.length;r++){var n=Tw[r];t[n]==null&&(t[n]=e[n])}return yi(t)}function Lw(t){var e=t.obb;return(!e||Dw(t,Jf))&&(t.obb=e=e||new K0,e.fromBoundingRect(t.localRect,t.transform),eh(t,!1,Jf)),e}function GE(t,e,r,n,i){var a=t.length,o=ai[e],s=co[e];if(a<2)return!1;t.sort(function(T,x){return T.rect[o]-x.rect[o]});for(var l=0,u,f=!1,h=0;h<a;h++){var v=t[h],c=v.rect;u=c[o]-l,u<0&&(c[o]-=u,v.label[o]-=u,f=!0),l=c[o]+c[s]}var d=t[0],m=t[a-1],p,g;y(),p<0&&S(-p,.8),g<0&&S(g,.8),y(),_(p,g,1),_(g,p,-1),y(),p<0&&w(-p),g<0&&w(g);function y(){p=d.rect[o]-r,g=n-m.rect[o]-m.rect[s]}function _(T,x,D){if(T<0){var A=Math.min(x,-T);if(A>0){b(A*D,0,a);var C=A+T;C<0&&S(-C*D,1)}else S(-T*D,1)}}function b(T,x,D){T!==0&&(f=!0);for(var A=x;A<D;A++){var C=t[A],k=C.rect;k[o]+=T,C.label[o]+=T}}function S(T,x){for(var D=[],A=0,C=1;C<a;C++){var k=t[C-1].rect,M=Math.max(t[C].rect[o]-k[o]-k[s],0);D.push(M),A+=M}if(A){var P=Math.min(Math.abs(T)/A,x);if(T>0)for(var C=0;C<a-1;C++){var I=D[C]*P;b(I,0,C+1)}else for(var C=a-1;C>0;C--){var I=D[C-1]*P;b(-I,C,a)}}}function w(T){var x=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(a-1)),A=0;A<a-1;A++)if(x>0?b(D,0,A+1):b(-D,a-A-1,a),T-=D,T<=0)return}return f}function VE(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=yi(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(xp(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function xp(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:Lw(t).intersect(Lw(e),r,n)}var WE=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return fp(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new ut,i=wo("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=wo(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=q.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Rr);function Tp(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=mo(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(mo(t,e,r[o]));return a.join(" ")}}function kw(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Cp=(function(t){re(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=wo(r,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=$E,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Uu(this.childAt(0))},e.prototype.downplay=function(){Yu(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var c=this.childAt(0);c.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?c.attr(d):Mt(c,d,s,n),Uv(c)}if(this._updateCommon(r,n,l,i,a),f){var c=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,pr(c,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,h,v,c,d,m,p,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,m=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),m=Ps(y),p=_.getShallow("scale"),g=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=Z1(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof ri){var x=s.style;s.useStyle(V({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},w))}else s.__isEmptyBrush?s.useStyle(V({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var C=o&&o.useNameLabel;Is(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:T,defaultOpacity:w.opacity});function k(I){return C?r.getName(I):Tp(r,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Ss(this,v,c,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=be(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&rf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();rf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return DI(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(ut);function $E(t,e){this.parent.drift(t,e)}function Dp(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Iw(t){return t!=null&&!K(t)&&(t={isIgnore:t}),t||{}}function Pw(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ps(e),cursorStyle:e.get("cursor")}}var UE=(function(){function t(e){this.group=new ut,this._SymbolCtor=e||Cp}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Iw(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Pw(e),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var v=f(h);if(Dp(e,v,h,r)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!Dp(e,d,h,r)){n.remove(c);return}var m=e.getItemVisual(h,"symbol")||"circle",p=c&&c.getSymbolType&&c.getSymbolType();if(!c||p&&p!==m)n.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var g={x:d[0],y:d[1]};s?c.attr(g):Mt(c,g,i)}n.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Pw(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Iw(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Dp(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){of(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function Ew(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=YE(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=j(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return Ao(e,h[0])&&(v=!0,h[0]=c),Ao(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function YE(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:ke(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Rw(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function XE(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function qE(t,e,r,n,i,a,o,s){for(var l=XE(t,e),u=[],f=[],h=[],v=[],c=[],d=[],m=[],p=Ew(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],S=!0,w=void 0,T=void 0;switch(b.cmd){case"=":w=b.idx*2,T=b.idx1*2;var x=g[w],D=g[w+1],A=y[T],C=y[T+1];(isNaN(x)||isNaN(D))&&(x=A,D=C),u.push(x,D),f.push(A,C),h.push(r[w],r[w+1]),v.push(n[T],n[T+1]),m.push(e.getRawIndex(b.idx1));break;case"+":var k=b.idx,M=p.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],k),e.get(M[1],k)]);T=k*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var I=Rw(p,i,e,k);h.push(I[0],I[1]),v.push(n[T],n[T+1]),m.push(e.getRawIndex(k));break;case"-":S=!1}S&&(c.push(b),d.push(d.length))}d.sort(function(we,it){return m[we]-m[it]});for(var O=u.length,G=In(O),N=In(O),B=In(O),H=In(O),z=[],_=0;_<d.length;_++){var F=d[_],W=_*2,J=F*2;G[W]=u[J],G[W+1]=u[J+1],N[W]=f[J],N[W+1]=f[J+1],B[W]=h[J],B[W+1]=h[J+1],H[W]=v[J],H[W+1]=v[J+1],z[_]=c[F]}return{current:G,next:N,stackedOnCurrent:B,stackedOnNext:H,status:z}}var _i=Math.min,bi=Math.max;function Ta(t,e){return isNaN(t)||isNaN(e)}function Ap(t,e,r,n,i,a,o,s,l){for(var u,f,h,v,c,d,m=r,p=0;p<n;p++){var g=e[m*2],y=e[m*2+1];if(m>=i||m<0)break;if(Ta(g,y)){if(l){m+=a;continue}break}if(m===r)t[a>0?"moveTo":"lineTo"](g,y),h=g,v=y;else{var _=g-u,b=y-f;if(_*_+b*b<.5){m+=a;continue}if(o>0){for(var S=m+a,w=e[S*2],T=e[S*2+1];w===g&&T===y&&p<n;)p++,S+=a,m+=a,w=e[S*2],T=e[S*2+1],g=e[m*2],y=e[m*2+1],_=g-u,b=y-f;var x=p+1;if(l)for(;Ta(w,T)&&x<n;)x++,S+=a,w=e[S*2],T=e[S*2+1];var D=.5,A=0,C=0,k=void 0,M=void 0;if(x>=n||Ta(w,T))c=g,d=y;else{A=w-u,C=T-f;var P=g-u,I=w-g,O=y-f,G=T-y,N=void 0,B=void 0;if(s==="x"){N=Math.abs(P),B=Math.abs(I);var H=A>0?1:-1;c=g-H*N*o,d=y,k=g+H*B*o,M=y}else if(s==="y"){N=Math.abs(O),B=Math.abs(G);var z=C>0?1:-1;c=g,d=y-z*N*o,k=g,M=y+z*B*o}else N=Math.sqrt(P*P+O*O),B=Math.sqrt(I*I+G*G),D=B/(B+N),c=g-A*o*(1-D),d=y-C*o*(1-D),k=g+A*o*D,M=y+C*o*D,k=_i(k,bi(w,g)),M=_i(M,bi(T,y)),k=bi(k,_i(w,g)),M=bi(M,_i(T,y)),A=k-g,C=M-y,c=g-A*N/B,d=y-C*N/B,c=_i(c,bi(u,g)),d=_i(d,bi(f,y)),c=bi(c,_i(u,g)),d=bi(d,_i(f,y)),A=g-c,C=y-d,k=g+A*B/N,M=y+C*B/N}t.bezierCurveTo(h,v,c,d,g,y),h=k,v=M}else t.lineTo(g,y)}u=g,f=y,m+=a}return p}var Ow=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),ZE=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Ow},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Ta(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Ta(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Ap(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=ia.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,m=void 0,p=void 0,g=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=u?(r-s)/(c-s):(r-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(c-s)*_+s;return u?[r,b]:[b,r]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],m=a[h++],p=a[h++],g=a[h++],y=a[h++];var S=u?lu(s,c,m,g,r,f):lu(l,d,p,y,r,f);if(S>0)for(var w=0;w<S;w++){var T=f[w];if(T<=1&&T>=0){var b=u?dt(l,d,p,y,T):dt(s,c,m,g,T);return u?[r,b]:[b,r]}}s=g,l=y;break}}},e})(Ie),KE=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Ow),jE=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new KE},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ta(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Ta(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Ap(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Ap(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(Ie);function Nw(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Ze({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var m=ie(i)?function(p){i(p,h)}:null;pr(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return h}function Bw(t,e,r){var n=t.getArea(),i=pt(n.r0,1),a=pt(n.r,1),o=new ni({shape:{cx:pt(t.cx,1),cy:pt(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,pr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function QE(t,e,r,n,i){if(t){if(t.type==="polar")return Bw(t,e,r);if(t.type==="cartesian2d")return Nw(t,e,r,n,i)}else return null;return null}function Mp(t,e){return t.type===e}function Fw(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function zw(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[e,r],[n,i]]}function Hw(t,e){var r=zw(t),n=r[0],i=r[1],a=zw(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Gw(t){return ke(t)?t:t?.5:0}function JE(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=In(n*2),a=0;a<n;a++){var o=Rw(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function wi(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],v=[];if(i){for(l=0;l<t.length;l+=2){var c=e||t;!isNaN(c[l])&&!isNaN(c[l+1])&&v.push(t[l],t[l+1])}t=v}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,m=[];u[o]=m[o]=d,u[1-o]=f[1-o],m[1-o]=h[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function eR(t,e){var r=[],n=t.length,i,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),m=CD(d,[f.color,h.color]);return{coord:v,color:m}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function tR(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=j(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=eR(u,i==="x"?r.getWidth():r.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,m=v[0].coord-d,p=v[c-1].coord+d,g=p-m;if(g<.001)return"transparent";L(v,function(_){_.offset=(_.coord-m)/g}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var y=new Z0(0,0,0,0,v,!0);return y[i]=m,y[i+"2"]=p,y}}}function rR(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&nR(a,e))){var o=e.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function nR(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Cp.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function iR(t,e){return isNaN(t)||isNaN(e)}function aR(t){for(var e=t.length/2;e>0&&iR(t[e*2-2],t[e*2-1]);e--);return e-1}function Vw(t,e){return[t[e*2],t[e*2+1]]}function oR(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Ww(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<dr.length;e++)if(t.get([dr[e],"endLabel","show"]))return!0;return!1}function Lp(t,e,r,n){if(Mp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Ww(n)?function(c,d){t._endLabelOnDuring(c,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Nw(e,r,n,function(){var c=t._endLabel;c&&r&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return Bw(e,r,n)}function sR(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var lR=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new ut,n=new UE;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Le(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,c=this._symbolDraw,d=this._polyline,m=this._polygon,p=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=Ew(a,s,_),S=y&&JE(a,s,b),w=r.get("showSymbol"),T=r.get("connectNulls"),x=w&&!h&&rR(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(we,it){we.__temp&&(o.remove(we),D.setItemGraphicEl(it,null))}),w||c.remove(),o.add(p);var A=h?!1:r.get("step"),C;a&&a.getArea&&r.get("clip",!0)&&(C=a.getArea(),C.width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var k=tR(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&A===this._step))w&&c.updateData(s,{isIgnore:x,clipShape:C,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,C),A&&(S&&(S=wi(S,f,a,A,T)),f=wi(f,null,a,A,T)),d=this._newPolyline(f),y?m=this._newPolygon(f,S):m&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,va(k)),p.setClipPath(Lp(this,a,!0,r));else{y&&!m?m=this._newPolygon(f,S):m&&!y&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,va(k));var M=p.getClipPath();if(M){var P=Lp(this,a,!1,r);pr(M,{shape:P.shape},r)}else p.setClipPath(Lp(this,a,!0,r));w&&c.updateData(s,{isIgnore:x,clipShape:C,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),(!Fw(this._stackedOnPoints,S)||!Fw(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,i,A,_,T):(A&&(S&&(S=wi(S,f,a,A,T)),f=wi(f,null,a,A,T)),d.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:S})))}var I=r.getModel("emphasis"),O=I.get("focus"),G=I.get("blurScope"),N=I.get("disabled");if(d.useStyle(Me(l.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Xu(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}be(d).seriesIndex=r.seriesIndex,Ss(d,O,G,N);var H=Gw(r.get("smooth")),z=r.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:z,connectNulls:T}),m){var F=s.getCalculationInfo("stackedOnSeries"),W=0;m.useStyle(Me(u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&(W=Gw(F.get("smooth"))),m.setShape({smooth:H,stackedOnSmooth:W,smoothMonotone:z,connectNulls:T}),Xu(m,r,"areaStyle"),be(m).seriesIndex=r.seriesIndex,Ss(m,O,G,N)}var J=this._changePolyState;s.eachItemGraphicEl(function(we){we&&(we.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=A,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),m&&this.packEventData(r,m))},e.prototype.packEventData=function(r,n){be(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Ki(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=r.get("zlevel")||0,c=r.get("z")||0;u=new Cp(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else _r.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Ki(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else _r.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;C0(this._polyline,r),n&&C0(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new ZE({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new jE({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ie(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=ie(h)?h(null):h;r.eachItemGraphicEl(function(c,d){var m=c;if(m){var p=[c.x,c.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,S=n.pointToCoord(p);a?(g=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(g=b.r0,y=b.r,_=S[0])}else{var w=i;a?(g=w.x,y=w.x+w.width,_=c.x):(g=w.y+w.height,y=w.y,_=c.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var x=ie(h)?h(d):f*T+v,D=m.getSymbolPath(),A=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:x}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Ww(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new gt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=aR(l);f>=0&&(Is(s,Ps(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?kw(o,c):Tp(o,h)},enableTextSetter:!0},sR(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,_=n.shape,b=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?m:0)*(y?-1:1),w=(g?0:-m)*(y?-1:1),T=g?"x":"y",x=oR(h,b,T),D=x.range,A=D[1]-D[0],C=void 0;if(A>=1){if(A>1&&!c){var k=Vw(h,D[0]);u.attr({x:k[0]+S,y:k[1]+w}),o&&(C=v.getRawValue(D[0]))}else{var k=f.getPointOn(b,T);k&&u.attr({x:k[0]+S,y:k[1]+w});var M=v.getRawValue(D[0]),P=v.getRawValue(D[1]);o&&(C=CA(i,d,M,P,x.t))}a.lastFrameIndex=D[0]}else{var I=r===1||a.lastFrameIndex>0?D[0]:0,k=Vw(h,I);o&&(C=v.getRawValue(I)),u.attr({x:k[0]+S,y:k[1]+w})}if(o){var O=uf(u);typeof O.setLabelText=="function"&&O.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=r.hostModel,v=qE(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,m=v.next,p=v.stackedOnNext;if(o&&(d=wi(v.stackedOnCurrent,v.current,i,o,l),c=wi(v.current,null,i,o,l),p=wi(v.stackedOnNext,v.next,i,o,l),m=wi(v.next,null,i,o,l)),Hw(c,m)>3e3||f&&Hw(d,p)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=c;var g={shape:{points:m}};v.current!==c&&(g.shape.__points=v.next),u.stopAnimation(),Mt(u,g,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S==="="){var w=r.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,x=0;x<y.length;x++){var D=y[x].el,A=y[x].ptIdx*2;D.x=T[A],D.y=T[A+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(_r);function uR(t,e){return{seriesType:t,plan:Od(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=j(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Ao(n,a[0])&&(a[0]=s),Ao(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,v){for(var c=h.end-h.start,d=In(c*o),m=[],p=[],g=h.start,y=0;g<h.end;g++){var _=void 0;if(o===1){var b=l.get(u,g);_=i.dataToPoint(b,null,p)}else m[0]=l.get(u,g),m[1]=l.get(f,g),_=i.dataToPoint(m,null,p);d[y++]=_[0],d[y++]=_[1]}v.setLayout("points",d)}}}}}}var fR={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},hR=function(t){return Math.round(t.length/2)};function $w(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var d=void 0;X(a)?d=fR[a]:ie(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,d,hR))}}}}}function cR(t){t.registerChartView(lR),t.registerSeriesModel(WE),t.registerLayout(uR("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$w("line"))}var kp=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return fp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)L(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),m=v.getTickModel().get("alignWithLabel"),p=o[c],g=n[c]==="x1"||n[c]==="y1";if(g&&!m&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<d.length;S++){var w=d[S].coord,T=S===d.length-1?d[S-1].tickValue+b:d[S].tickValue;if(T===p){_=w;break}else if(T<p)y=w;else if(y!=null&&T>p){_=(w+y)/2;break}S===1&&(b=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Rr);Rr.registerClass(kp);var vR=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return fp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=g_(kp.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:q.color.primary,borderWidth:2}},realtimeSort:!1}),e})(kp),dR=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Uw=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new dR},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var m=Math.cos(f),p=Math.sin(f),g=Math.cos(h),y=Math.sin(h);d?(r.moveTo(m*o+i,p*o+a),r.arc(m*u+i,p*u+a,l,-Math.PI+f,f,!v)):r.moveTo(m*s+i,p*s+a),r.arc(i,a,s,f,h,!v),r.arc(g*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&r.arc(i,a,o,h,f,v)},e})(Ie);function pR(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Tu(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,m=u.startAngle,p=u.endAngle,g=(m+p)/2,y=r?Math.abs(v-c)/2:0,_=Math.cos,b=Math.sin,S=f+v*_(m),w=h+v*b(m),T="left",x="top";switch(s){case"startArc":S=f+(c-l)*_(g),w=h+(c-l)*b(g),T="center",x="top";break;case"insideStartArc":S=f+(c+l)*_(g),w=h+(c+l)*b(g),T="center",x="bottom";break;case"startAngle":S=f+d*_(m)+th(m,l+y,!1),w=h+d*b(m)+rh(m,l+y,!1),T="right",x="middle";break;case"insideStartAngle":S=f+d*_(m)+th(m,-l+y,!1),w=h+d*b(m)+rh(m,-l+y,!1),T="left",x="middle";break;case"middle":S=f+d*_(g),w=h+d*b(g),T="center",x="middle";break;case"endArc":S=f+(v+l)*_(g),w=h+(v+l)*b(g),T="center",x="bottom";break;case"insideEndArc":S=f+(v-l)*_(g),w=h+(v-l)*b(g),T="center",x="top";break;case"endAngle":S=f+d*_(p)+th(p,l+y,!0),w=h+d*b(p)+rh(p,l+y,!0),T="left",x="middle";break;case"insideEndAngle":S=f+d*_(p)+th(p,-l+y,!0),w=h+d*b(p)+rh(p,-l+y,!0),T="right",x="middle";break;default:return Tu(n,i,a)}return n=n||{},n.x=S,n.y=w,n.align=T,n.verticalAlign=x,n}}function gR(t,e,r,n){if(ke(n)){t.setTextConfig({rotation:n});return}else if(U(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function th(t,e,r){return e*Math.sin(t)*(r?-1:1)}function rh(t,e,r){return e*Math.cos(t)*(r?1:-1)}function ol(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:j(n,function(a){return Qn(a,i)})}}var Ip=Math.max,Pp=Math.min;function mR(t,e){var r=t.getArea&&t.getArea();if(Mp(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var yR=(function(t){re(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){of(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,c=_R(r,u);c&&this._enableRealtimeSort(c,s,i);var d=r.get("clip",!0)||c,m=mR(u,s);o.removeClipPath();var p=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function x(C){var k=nh[u.type](s,C);if(!k)return null;var M=DR(u,h,k);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),b[C]=M,M}s.diff(l).add(function(C){var k=s.getItemModel(C),M=nh[u.type](s,C,k);if(M&&(g&&x(C),!(!s.hasValue(C)||!Kw[u.type](M)))){var P=!1;d&&(P=Yw[u.type](m,M));var I=Xw[u.type](r,s,C,M,h,v,f.model,!1,p);c&&(I.forceLabelAnimation=!0),Qw(I,s,C,k,M,r,h,u.type==="polar"),w?I.attr({shape:M}):c?qw(c,v,I,M,C,h,!1,!1):pr(I,{shape:M},r,C),s.setItemGraphicEl(C,I),o.add(I),I.ignore=P}}).update(function(C,k){var M=s.getItemModel(C),P=nh[u.type](s,C,M);if(P){if(g){var I=void 0;S.length===0?I=x(k):(I=S[k],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),b[C]=I);var O=nh[u.type](s,C),G=rS(h,O,u);Mt(I,{shape:G},v,C)}var N=l.getItemGraphicEl(k);if(!s.hasValue(C)||!Kw[u.type](P)){o.remove(N);return}var B=!1;d&&(B=Yw[u.type](m,P),B&&o.remove(N));var H=N&&(N.type==="sector"&&p||N.type==="sausage"&&!p);if(H&&(N&&Ms(N,r,k),N=null),N?Uv(N):N=Xw[u.type](r,s,C,P,h,v,f.model,!0,p),c&&(N.forceLabelAnimation=!0),T){var z=N.getTextContent();if(z){var F=uf(z);F.prevValue!=null&&(F.prevValue=F.value)}}else Qw(N,s,C,M,P,r,h,u.type==="polar");w?N.attr({shape:P}):c?qw(c,v,N,P,C,h,!0,T):Mt(N,{shape:P},r,C,null),s.setItemGraphicEl(C,N),N.ignore=B,o.add(N)}}).remove(function(C){var k=l.getItemGraphicEl(C);k&&Ms(k,r,C)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new ut);D.removeAll();for(var A=0;A<b.length;++A)D.add(b[A]);o.add(D),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),eS(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),eS(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&QE(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:j(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ms(a,r,be(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(_r),Yw={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Ip(e.x,t.x),s=Pp(e.x+e.width,i),l=Ip(e.y,t.y),u=Pp(e.y+e.height,a),f=s<o,h=u<l;return e.x=f&&o>i?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Pp(e.r,t.r),a=Ip(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Xw={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Ze({shape:V({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Uw:ni,f=new u({shape:n,z2:1});f.name="item";var h=jw(i);if(f.calculateTextPosition=pR(h,{isRoundCap:u===Uw}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?Mt:pr)(f,{shape:d},a)}return f}};function _R(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function qw(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Mt:pr)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Mt:pr)(r,{shape:u},f,i)}function Zw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var bR=["x","y","width","height"],wR=["cx","cy","r","startAngle","endAngle"],Kw={cartesian2d:function(t){return!Zw(t,bR)},polar:function(t){return!Zw(t,wR)}},nh={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?xR(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function SR(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function jw(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function Qw(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,h=ol(n.getModel("itemStyle"),f,!0);V(f,h),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ps(n);Is(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:Tp(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var m=t.getTextContent();if(s&&m){var p=n.get(["label","position"]);t.textConfig.inside=p==="middle"?!0:null,gR(t,p==="outside"?c:p,jw(o),n.get(["label","rotate"]))}VL(m,d,a.getRawValue(r),function(y){return kw(e,y)});var g=n.getModel(["emphasis"]);Ss(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Xu(t,n),SR(i)&&(t.style.fill="none",t.style.stroke="none",L(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function xR(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var TR=(function(){function t(){}return t})(),Jw=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new TR},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(Ie);function eS(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Jw({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var h=new Jw({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,be(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",tS),h.on("mousemove",tS)),r&&r.push(h)}var tS=Nd(function(t){var e=this,r=CR(e,t.offsetX,t.offsetY);be(e).dataIndex=r>=0?r:null},30,!1);function CR(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function rS(t,e,r){if(Mp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function DR(t,e,r){var n=t.type==="polar"?ni:Ze;return new n({shape:rS(e,r,t),silent:!0,z2:0})}function AR(t){t.registerChartView(yR),t.registerSeriesModel(vR),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Qe(ZP,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,KP("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$w("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var nS=Math.PI*2,ih=Math.PI/180;function MR(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=S2(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,h=o.viewRect,v=-n.get("startAngle")*ih,c=n.get("endAngle"),d=n.get("padAngle")*ih;c=c==="auto"?v-nS:-c*ih;var m=n.get("minAngle")*ih,p=m+d,g=0;i.each(a,function(G){!isNaN(G)&&g++});var y=i.getSum(a),_=Math.PI/(y||g)*2,b=n.get("clockwise"),S=n.get("roseType"),w=n.get("stillShowZeroSum"),T=i.getDataExtent(a);T[0]=0;var x=b?1:-1,D=[v,c],A=x*d/2;n0(D,!b),v=D[0],c=D[1];var C=iS(n);C.startAngle=v,C.endAngle=c,C.clockwise=b,C.cx=s,C.cy=l,C.r=u,C.r0=f;var k=Math.abs(c-v),M=k,P=0,I=v;if(i.setLayout({viewRect:h,r:u}),i.each(a,function(G,N){var B;if(isNaN(G)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:f,r:S?NaN:u});return}S!=="area"?B=y===0&&w?_:G*_:B=k/g,B<p?(B=p,M-=p):P+=G;var H=I+x*B,z=0,F=0;d>B?(z=I+x*B/2,F=z):(z=I+A,F=H-A),i.setItemLayout(N,{angle:B,startAngle:z,endAngle:F,clockwise:b,cx:s,cy:l,r0:f,r:S?Jc(G,T,[f,u]):u}),I=H}),M<nS&&g)if(M<=.001){var O=k/g;i.each(a,function(G,N){if(!isNaN(G)){var B=i.getItemLayout(N);B.angle=O;var H=0,z=0;O<d?(H=v+x*(N+.5)*O,z=H):(H=v+x*N*O+A,z=v+x*(N+1)*O-A),B.startAngle=H,B.endAngle=z}})}else _=M/P,I=v,i.each(a,function(G,N){if(!isNaN(G)){var B=i.getItemLayout(N),H=B.angle===p?p:G*_,z=0,F=0;H<d?(z=I+x*H/2,F=z):(z=I+A,F=I+x*H-A),B.startAngle=z,B.endAngle=F,I+=x*H}})})}var iS=Ue();function LR(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var kR=Math.PI/180;function aS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(m){for(var p=m.rB,g=p*p,y=0;y<m.list.length;y++){var _=m.list[y],b=Math.abs(_.label.y-r),S=n+_.len,w=S*S,T=Math.sqrt(Math.abs((1-b*b/g)*w)),x=e+(T+_.len2)*i,D=x-_.label.x,A=_.targetTextWidth-D*i;oS(_,A,!0),_.label.x=x}}function h(m){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<m.length;y++)if(m[y].labelAlignTo==="none"){var _=m[y],b=_.label.y>r?g:p,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-e-_.len2*i,T=n+_.len,x=Math.abs(w)<T?Math.sqrt(S*S/(1-w*w/T/T)):T;b.rB=x,b.maxY=S}b.list.push(_)}f(p),f(g)}for(var v=t.length,c=0;c<v;c++)if(t[c].position==="outer"&&t[c].labelAlignTo==="labelLine"){var d=t[c].label.x-u;t[c].linePoints[1][0]+=d,t[c].label.x=u}GE(t,1,l,l+o)&&h(t)}function IR(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<t.length;v++){var c=t[v].label;Ep(t[v])||(c.x<e?(f=Math.min(f,c.x),l.push(t[v])):(h=Math.max(h,c.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Ep(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,m=d.linePoints,p=void 0;d.labelAlignTo==="edge"?c.x<e?p=m[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-m[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<e?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:c.x<e?p=c.x-o-d.bleedMargin:p=o+i-c.x-d.bleedMargin,d.targetTextWidth=p,oS(d,p,!1)}}aS(u,e,r,n,1,i,a,o,s,h),aS(l,e,r,n,-1,i,a,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!Ep(d)&&d.linePoints){var c=d.label,m=d.linePoints,g=d.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,b=c.style.backgroundColor?0:_,S=d.rect.width+b,w=m[1][0]-m[2][0];g?c.x<e?m[2][0]=o+d.edgeDistance+S+d.labelDistance:m[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(c.x<e?m[2][0]=c.x+d.labelDistance:m[2][0]=c.x-d.labelDistance,m[1][0]=m[2][0]+w),m[1][1]=m[2][1]=c.y}}}function oS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,c=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",c)}sS(a,n)}}}function sS(t,e){lS.rect=t,Aw(lS,e,PR)}var PR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},lS={};function Ep(t){return t.position==="center"}function ER(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*kR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),x=T.shape,D=T.getTextContent(),A=T.getTextGuideLine(),C=e.getItemModel(w),k=C.getModel("label"),M=k.get("position")||C.get(["emphasis","label","position"]),P=k.get("distanceToLabelLine"),I=k.get("alignTo"),O=$e(k.get("edgeDistance"),u),G=k.get("bleedMargin");G==null&&(G=Math.min(u,v)>200?10:2);var N=C.getModel("labelLine"),B=N.get("length");B=$e(B,u);var H=N.get("length2");if(H=$e(H,u),Math.abs(x.endAngle-x.startAngle)<o){L(D.states,c),D.ignore=!0,A&&(L(A.states,c),A.ignore=!0);return}if(d(D)){var z=(x.startAngle+x.endAngle)/2,F=Math.cos(z),W=Math.sin(z),J,we,it,_t;n=x.cx,i=x.cy;var Be=M==="inside"||M==="inner";if(M==="center")J=x.cx,we=x.cy,_t="center";else{var Xe=(Be?(x.r+x.r0)/2*F:x.r*F)+n,et=(Be?(x.r+x.r0)/2*W:x.r*W)+i;if(J=Xe+F*3,we=et+W*3,!Be){var ae=Xe+F*(B+l-x.r),de=et+W*(B+l-x.r),cn=ae+(F<0?-1:1)*H,ct=de;I==="edge"?J=F<0?f+O:f+u-O:J=cn+(F<0?-P:P),we=ct,it=[[Xe,et],[ae,de],[cn,ct]]}_t=Be?"center":I==="edge"?F>0?"right":"left":F>0?"left":"right"}var Mi=Math.PI,Fn=0,Tl=k.get("rotate");if(ke(Tl))Fn=Tl*(Mi/180);else if(M==="center")Fn=0;else if(Tl==="radial"||Tl===!0){var YB=F<0?-z+Mi:-z;Fn=YB}else if(Tl==="tangential"&&M!=="outside"&&M!=="outer"){var Fo=Math.atan2(F,W);Fo<0&&(Fo=Mi*2+Fo);var XB=W>0;XB&&(Fo=Mi+Fo),Fn=Fo-Mi}if(a=!!Fn,D.x=J,D.y=we,D.rotation=Fn,D.setStyle({verticalAlign:"middle"}),Be){D.setStyle({align:_t});var ng=D.states.select;ng&&(ng.x+=D.x,ng.y+=D.y)}else{var rg=new fe(0,0,0,0);sS(rg,D),r.push({label:D,labelLine:A,position:M,len:B,len2:H,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new se(F,W),linePoints:it,textAlign:_t,labelDistance:P,labelAlignTo:I,edgeDistance:O,bleedMargin:G,rect:rg,unconstrainedWidth:rg.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:Be})}}),!a&&t.get("avoidLabelOverlap")&&IR(r,n,i,l,u,v,f,h);for(var m=0;m<r.length;m++){var p=r[m],g=p.label,y=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(L(g.states,c),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(y){var S=p.linePoints;_||!S?(L(y.states,c),y.ignore=!0):(EE(S,p.minTurnAngle),RE(S,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new se(S[0][0],S[0][1])})}}}var RR=(function(t){re(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new gt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),h=V(ol(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(pr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,pr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),pr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Mt(o,{shape:{endAngle:f.endAngle}},s,n))}else Uv(o),Mt(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),Xu(o,l);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),m=Math.cos(c)*d,p=Math.sin(c)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=V({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ol(u.getModel("itemStyle"),f)),V(o.ensureState("select"),{x:m,y:p,shape:ol(l.getModel(["select","itemStyle"]),f)}),V(o.ensureState("blur"),{shape:ol(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&V(y.ensureState("select"),{x:m,y:p}),V(_.ensureState("select"),{x:m,y:p}),Ss(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Is(a,Ps(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Ds,this.setTextGuideLine(c)),NE(this,BE(o),{stroke:u,opacity:Hi(s.get(["lineStyle","opacity"]),f,1)})}},e})(ni),OR=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=iS(r),c=new ni({shape:pe(v)});c.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(d){var m=new RR(o,d,u);o.setItemGraphicEl(d,m),l.add(m)}).update(function(d,m){var p=s.getItemGraphicEl(m);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var m=s.getItemGraphicEl(d);Ms(m,r,d)}).execute(),ER(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e})(_r);function NR(t,e,r){e=U(e)&&{coordDimensions:e}||V({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Zb(n,e).dimensions,a=new qb(i,t);return a.initData(n,r),a}var BR=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),FR=Ue(),uS=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new BR(Le(this.getData,this),Le(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return NR(this,{coordDimensions:["value"],encodeDefaulter:Qe(k2,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=FR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=nA(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){rv(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Rr);p2({fullType:uS.type,getCoord2:function(t){return t.getShallow("center")}});function zR(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ke(o)&&!isNaN(o)&&o<0)})}}}function HR(t){t.registerChartView(OR),t.registerSeriesModel(uS),vI("pie",t.registerAction),t.registerLayout(Qe(MR,"pie")),t.registerProcessor(LR("pie")),t.registerProcessor(zR("pie"))}var fS={left:0,right:0,top:0,bottom:0},ah=["25%","25%"],GR=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Fs(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&ui(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ui(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:fS,outerBoundsContain:"all",outerBoundsClampWidth:ah[0],outerBoundsClampHeight:ah[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},e})(Pe),Rp=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fr).models[0]},e.type="cartesian2dAxis",e})(Pe);Ur(Rp,mE);var hS={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:q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},VR=De({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},hS),Op=De({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:q.color.axisMinorSplitLine,width:1}}},hS),WR=De({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Op),$R=Me({logBase:10},Op);const UR={category:VR,value:Op,time:WR,log:$R};var YR={value:1,category:1,time:1,log:1},XR=null;function qR(){return XR}function cS(t,e,r,n){L(YR,function(i,a){var o=De(De({},UR[a],!0),n,!0),s=(function(l){re(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Bs(this),c=v?Fs(f):{},d=h.getTheme();De(f,d.get(a+"Axis")),De(f,this.getDefaultOption()),f.type=vS(f),v&&ui(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=pp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",vS)}function vS(t){return t.type||(t.data?"category":"value")}var ZR=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return j(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),lt(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Np=["x","y"];function dS(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var KR=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Np,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dS(r)||!dS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=rs([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new fe(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return or(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return or(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new fe(a,o,s,l)},e})(ZR),jR=(function(t){re(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(IE),QR="expandAxisBreak",Si=Math.PI,JR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],eO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],sl=Ue(),pS=Ue(),gS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function tO(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Fp(t.axisName)&&Lo(t.nameLocation);L(n,function(d){var m=yi(d);if(!(!m||m.label.ignore)){o.push(m);var p=a.transGroup;l&&(p.transform?rs(ll,p.transform):pc(ll),m.transform&&ts(ll,ll,m.transform),fe.copy(oh,m.localRect),oh.applyTransform(ll),s?s.union(oh):fe.copy(s=new fe(0,0,0,0),oh))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,m){return Math.abs(d.label[u]-f)-Math.abs(m.label[u]-f)}),l&&s){var h=i.getExtent(),v=Math.min(h[0],h[1]),c=Math.max(h[0],h[1])-v;s.union(new fe(v,0,c,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ll=xn(),oh=new fe(0,0,0,0),mS=function(t,e,r,n,i,a){if(Lo(t.nameLocation)){var o=a.stOccupiedRect;o&&yS(zE({},o,a.transGroup.transform),n,i)}else _S(a.labelInfoList,a.dirVec,n,i)};function yS(t,e,r){var n=new se;xp(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&HE(e,n)}function _S(t,e,r,n){for(var i=se.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||yS(s,r,n)}}var xi=(function(){function t(e,r,n,i){this.group=new ut,this._axisModel=e,this._api=r,this._local={},this._shared=i||new gS(mS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Q(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:i,nameLocation:Hi(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Fp(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ut({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new se(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),L(rO,function(i){e[i]&&nO[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=ky(r-e),a,o;return Mu(i)?(o=n>0?"top":"bottom",a="center"):Mu(i-Si)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Si?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),rO=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],nO={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],h=[l[1],0],v=f[0]>h[0];u&&(or(f,f,u),or(h,h,u));var c=V({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())qR().buildAxisBreakLine(n,i,a,d);else{var m=new ii(V({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));Ls(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var p=n.get(["axisLine","symbol"]);if(p!=null){var g=n.get(["axisLine","symbolSize"]);X(p)&&(p=[p,p]),(X(g)||ke(g))&&(g=[g,g]);var y=Z1(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],b=g[1];L([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(S,w){if(p[w]!=="none"&&p[w]!=null){var T=wo(p[w],-_/2,-b/2,_,b,c.stroke,!0),x=S.r+S.offset,D=v?h:f;T.attr({rotation:S.rotate,x:D[0]+x*Math.cos(t.rotation),y:D[1]-x*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=SS(e,i,s);l&&bS(t,e,r,n,i,a,o,Br.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=SS(e,i,s);l&&bS(t,e,r,n,i,a,o,Br.determine);var u=sO(t,i,a,n);oO(t,e.labelLayoutList,u),lO(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Fp(u)){var f=t.nameLocation,h=t.nameDirection,v=n.getModel("nameTextStyle"),c=n.get("nameGap")||0,d=n.axis.getExtent(),m=n.axis.inverse?-1:1,p=new se(0,0),g=new se(0,0);f==="start"?(p.x=d[0]-m*c,g.x=-m):f==="end"?(p.x=d[1]+m*c,g.x=m):(p.x=(d[0]+d[1])/2,p.y=t.labelOffset+h*c,g.y=h);var y=xn();g.transform(mc(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Si/180);var b,S;Lo(f)?b=xi.innerTextLayout(t.rotation,_??t.rotation,h):(b=iO(t.rotation,f,_||0,d),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},x=T.ellipsis,D=eu(t.raw.nameTruncateMaxWidth,T.maxWidth,S),A=s.nameMarginLevel||0,C=new gt({x:p.x,y:p.y,rotation:b.rotation,silent:xi.isLabelSilent(n),style:oi(v,{text:u,font:w,overflow:"truncate",width:D,ellipsis:x,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(af({el:C,componentModel:n,itemName:u}),C.__fullText=u,C.anid="name",n.get("triggerEvent")){var k=xi.makeAxisEventDataBase(n);k.targetType="axisName",k.name=u,be(C).eventData=k}a.add(C),C.updateTransform(),e.nameEl=C;var M=l.nameLayout=yi({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:Lo(f)?JR[A]:eO[A]});if(l.nameLocation=f,i.add(C),C.decomposeTransform(),t.shouldNameMoveOverlap&&M){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,M,g,P)}}}};function bS(t,e,r,n,i,a,o,s){xS(e)||uO(t,e,i,s,n,o);var l=e.labelLayoutList;fO(t,n,l,a),t.rotation;var u=t.optionHideOverlap;aO(n,l,u),u&&VE(lt(l,function(f){return f&&!f.label.ignore})),tO(t,r,n,l)}function iO(t,e,r,n){var i=ky(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Mu(i-Si/2)?(o=l?"bottom":"top",a="center"):Mu(i-Si*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Si*1.5&&i>Si/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function aO(t,e,r){if(hw(t.axis))return;function n(s,l,u){var f=yi(e[l]),h=yi(e[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){ul(f.label);return}if(h.suggestIgnore){ul(h.label);return}var v=.1;if(!r){var c=[0,0,0,0];f=Mw({marginForce:c},f),h=Mw({marginForce:c},h)}xp(f,h,null,{touchThreshold:v})&&ul(s?h.label:f.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function oO(t,e,r){t.showMinorTicks||L(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=pS(a),s=sl(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){ul(a);return}}})}function ul(t){t&&(t.ignore=!0)}function wS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(or(o,o,e),or(s,s,e));var f=new ii({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ls(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var h=pS(f);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return a}function sO(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=wS(u,r.transform,l,Me(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}function lO(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=Me(l.getLineStyle(),Me(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var v=wS(s[h],r.transform,u,f,"minorticks_"+h),c=0;c<v.length;c++)e.add(v[c])}}function SS(t,e,r){if(xS(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Bp(t,null,null,null))}return!0}function uO(t,e,r,n,i,a){var o=i.axis,s=eu(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ut;r.add(l);var u=jf(n);if(!s||o.scale.isBlank()){Bp(e,[],l,u);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(u),v=(eu(t.raw.labelRotate,f.get("rotate"))||0)*Si/180,c=xi.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),m=[],p=i.get("triggerEvent"),g=1/0,y=-1/0;L(h,function(b,S){var w,T=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,x=b.formattedLabel,D=b.rawLabel,A=f;if(d&&d[T]){var C=d[T];K(C)&&C.textStyle&&(A=new Ye(C.textStyle,f,i.ecModel))}var k=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=A.getShallow("align",!0)||c.textAlign,P=Q(A.getShallow("alignMinLabel",!0),M),I=Q(A.getShallow("alignMaxLabel",!0),M),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,G=Q(A.getShallow("verticalAlignMinLabel",!0),O),N=Q(A.getShallow("verticalAlignMaxLabel",!0),O),B=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);g=Math.min(g,B),y=Math.max(y,B);var H=new gt({x:0,y:0,rotation:0,silent:xi.isLabelSilent(i),z2:B,style:oi(A,{text:x,align:S===0?P:S===h.length-1?I:M,verticalAlign:S===0?G:S===h.length-1?N:O,fill:ie(k)?k(o.type==="category"?D:o.type==="value"?T+"":T,S):k})});H.anid="label_"+T;var z=sl(H);if(z.break=b.break,z.tickValue=T,z.layoutRotation=c.rotation,af({el:H,componentModel:i,itemName:x,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:D,tickIndex:S}}),p){var F=xi.makeAxisEventDataBase(i);F.targetType="axisLabel",F.value=D,F.tickIndex=S,b.break&&(F.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(F.dataIndex=T),be(H).eventData=F,b.break&&cO(i,a,H,b.break)}m.push(H),l.add(H)});var _=j(m,function(b){return{label:b,priority:sl(b).break?b.z2+(y-g+1):b.z2,defaultAttr:{ignore:b.ignore}}});Bp(e,_,l,u)}function xS(t){return!!t.labelLayoutList}function Bp(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function fO(t,e,r,n){var i=e.get(["axisLabel","margin"]);L(r,function(a,o){var s=yi(a);if(s){var l=s.label,u=sl(l);s.suggestIgnore=l.ignore,l.ignore=!1,Xc(Pn,hO),Pn.x=e.axis.dataToCoord(u.tickValue),Pn.y=t.labelOffset+t.labelDirection*i,Pn.rotation=u.layoutRotation,n.add(Pn),Pn.updateTransform(),n.remove(Pn),Pn.decomposeTransform(),Xc(l,Pn),l.markRedraw(),eh(s,!0),yi(s)}})}var Pn=new Ze,hO=new Ze;function Fp(t){return!!t}function cO(t,e,r,n){r.on("click",function(i){var a={type:QR,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function JB(t,e,r){}function sh(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var c=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(c,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),eu(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-m:m,i.z2=1,i}function vO(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function TS(t){var e={xAxisModel:null,yAxisModel:null};return L(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,fr).models[0];e[n]=a}),e}function dO(t,e,r,n,i,a){for(var o=sh(t,r),s=!1,l=!1,u=0;u<e.length;u++)hp(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new xi(r,n,o,i)}function pO(t,e,r){var n=sh(e,r);t.updateCfg(n)}function gO(t,e,r){var n=Mo.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(r),l=uw(t,e),u=l.extent,f=l.fixMin,h=l.fixMax;t.type==="log"&&(u=dp(t.base,u,!0)),t.setBreaksFromOption(cw(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(t);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var c=n.getInterval.call(t),d=u[0],m=u[1];if(f&&h)c=(m-d)/o;else if(f)for(m=u[0]+c*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)c=cp(c),m=u[0]+c*o;else if(h)for(d=u[1]-c*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)c=cp(c),d=u[1]-c*o;else{var p=t.getTicks().length-1;p>o&&(c=cp(c));var g=c*o;m=Math.ceil(u[1]/c)*c,d=pt(m-g),d<0&&u[0]>=0?(d=0,m=pt(g)):m>0&&u[1]<=0&&(m=0,d=-pt(g))}var y=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(t,d+c*y,m+c*_),n.setInterval.call(t,c),(y||_)&&n.setNiceExtent.call(t,d+c,m-c)}var CS=[[3,1],[0,2]],mO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Np,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=We(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,m=c.scale;hp(m)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(fw(m,d),hp(m)&&(s=c))}f.length&&(s||(s=f.pop(),fw(s.scale,s.model)),L(f,function(p){gO(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};L(n.x,function(o){DS(n,"y",o,a)}),L(n.y,function(o){DS(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Sf(e,r),a=this._rect=li(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(MS(o,a),!n){var u=_O(a,s,o,l,r),f=void 0;if(l)f=kS(a.clone(),"axisLabel",null,a,o,u,i);else{var h=bO(e,a,i),v=h.outerBoundsRect,c=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;v&&(f=kS(v,c,d,a,o,u,i))}IS(a,o,Br.determine,null,f,i)}L(this._coordsList,function(m){m.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}K(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",fr).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",fr).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Te(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,L(s.x,function(f,h){L(s.y,function(v,c){var d="x"+h+"y"+c,m=new KR(d);m.master=i,m.model=e,i._coordsMap[d]=m,i._coordsList.push(m),m.addAxis(f),m.addAxis(v)})});function u(f){return function(h,v){if(zp(h,e)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new jR(f,dE(h),[0,0],h.get("type"),c),m=d.type==="category";d.onBand=m&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){L(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(vO(i)){var a=TS(i),o=a.xAxisModel,s=a.yAxisModel;if(!zp(o,r)||!zp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){L(gE(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return L(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Te(r,a)<0&&r.push(a),Te(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){y2({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=TS(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=Np,t})();function zp(t,e){return t.getCoordSysModel()===e}function DS(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)AS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&AS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function AS(t){return t&&t.type!=="category"&&t.type!=="time"&&pE(t)}function yO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function MS(t,e){L(t.x,function(r){return LS(r,e.x,e.width)}),L(t.y,function(r){return LS(r,e.y,e.height)})}function LS(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),yO(t,e)}function kS(t,e,r,n,i,a,o){IS(n,i,Br.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=MC(s,function(v){return v>0})==null;return nf(n,s,!0,!0,r),MS(i,n),l;function u(v){L(i[ai[v]],function(c){if(il(c.model)){var d=a.ensureRecord(c.model),m=d.labelInfoList;if(m)for(var p=0;p<m.length;p++){var g=m[p],y=c.scale.normalize(sl(g.label).tickValue);y=v===1?1-y:y,f(g.rect,v,y),f(g.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=Lo(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,c,d){var m=t[ai[c]]-v[ai[c]],p=v[co[c]]+v[ai[c]]-(t[co[c]]+t[ai[c]]);m=h(m,1-d),p=h(p,d);var g=CS[c][0],y=CS[c][1];s[g]=Yt(s[g],m),s[y]=Yt(s[y],p)}function h(v,c){return v>0&&!Jo(c)&&c>1e-4&&(v/=c),v}}function _O(t,e,r,n,i){var a=new gS(wO);return L(r,function(o){return L(o,function(s){if(il(s.model)){var l=!n;s.axisBuilder=dO(t,e,s.model,i,a,l)}})}),a}function IS(t,e,r,n,i,a){var o=r===Br.determine;L(e,function(u){return L(u,function(f){il(f.model)&&(pO(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ai[1-u]]=t[co[u]]<=a.refContainer[co[u]]*.5?0:1-u===1?2:1}L(e,function(u,f){return L(u,function(h){il(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function bO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=li(t.get("outerBounds",!0)||fS,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||Te(["all","axisLabel"],a)<0?o="all":o=a;var s=[ev(Q(t.get("outerBoundsClampWidth",!0),ah[0]),e.width),ev(Q(t.get("outerBoundsClampHeight",!0),ah[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var wO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";mS(t,e,r,n,i,a),Lo(t.nameLocation)||L(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&_S(s.labelInfoList,s.dirVec,n,i)})};function SO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xO(r,t,e),r.seriesInvolved&&CO(r,t),r}function xO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];L(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fl(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(L(s.getAxes(),Qe(m,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&L(d.baseAxes,Qe(m,c?"cross":!0,v)),c&&L(d.otherAxes,Qe(m,"cross",!1))}function m(p,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!Vp(_))){g==null&&(g=_.get("triggerTooltip")),_=p?TO(y,h,i,e,p,g):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),T=fl(y.model),x=g||S||y.type==="category",D=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:x,snap:S,useHandle:Vp(_),seriesModels:[],linkGroup:null};u[T]=D,t.seriesInvolved=t.seriesInvolved||x;var A=DO(a,y);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[T]=D,C.mapper=a[A].mapper,D.linkGroup=C}}}})}function TO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(v){l[v]=pe(o.get(v))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&Me(u,h.textStyle)}}return t.model.getModel("axisPointer",new Ye(l,r,n))}function CO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||L(t.coordSysAxesInfo[fl(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function DO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Hp(a[n+"AxisId"],r.id)||Hp(a[n+"AxisIndex"],r.componentIndex)||Hp(a[n+"AxisName"],r.name))return i}}function Hp(t,e){return t==="all"||U(t)&&Te(t,e)>=0||t===e}function AO(t){var e=Gp(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Vp(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Gp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fl(t)]}function MO(t){var e=Gp(t);return e&&e.axisPointerModel}function Vp(t){return!!t.get(["handle","show"])}function fl(t){return t.type+"||"+t.id}var PS={},ES=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&AO(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=MO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){PS[r]=n},e.getAxisPointerClass=function(r){return r&&PS[r]},e.type="axis",e})(Or),Wp=Ue();function LO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=Wp(t).splitAreaColors,v=he(),c=0;if(h)for(var d=0;d<u.length;d++){var m=h.get(u[d].tickValue);if(m!=null){c=(m+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=p,b=l.y,S=y-_,w=l.height,p=_+S):(_=l.x,b=p,S=l.width,w=y-b,p=b+w);var T=u[d-1].tickValue;T!=null&&v.set(T,c),e.add(new Ze({anid:T!=null?"area_"+T:null,shape:{x:_,y:b,width:S,height:w},style:Me({fill:s[c]},g),autoBatch:!0,silent:!0})),c=(c+1)%f}Wp(t).splitAreaColors=v}}}function kO(t){Wp(t).splitAreaColors=null}var IO=["splitArea","splitLine","minorSplitLine","breakArea"],RS=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ut,this.group.add(this._axisGroup),!!il(r)){this._axisGroup.add(r.axis.axisBuilder.group),L(IO,function(l){r.get([l,"show"])&&PO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||r_(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){kO(this)},e.type="cartesianAxis",e})(ES),PO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var h=n.coordinateSystem.getRect(),v=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],p=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var b=d[y].tickValue;v?(m[0]=_,m[1]=h.y,p[0]=_,p[1]=h.y+h.height):(m[0]=h.x,m[1]=_,p[0]=h.x+h.width,p[1]=_);var S=c++%l.length,w=new ii({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:p[0],y2:p[1]},style:Me({stroke:l[S]},g),silent:!0});Ls(w.shape,g.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],v=[],c=s.getLineStyle(),d=0;d<f.length;d++)for(var m=0;m<f[d].length;m++){var p=a.toGlobalCoord(f[d][m].coord);u?(h[0]=p,h[1]=l.y,v[0]=p,v[1]=l.y+l.height):(h[0]=l.x,h[1]=p,v[0]=l.x+l.width,v[1]=p);var g=new ii({anid:"minor_line_"+f[d][m].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:c,silent:!0});Ls(g.shape,c.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){LO(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},OS=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(RS),EO=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=OS.type,r}return e.type="yAxis",e})(RS),RO=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ze({shape:r.coordinateSystem.getRect(),style:Me({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Or),NS={offset:0};function OO(t){t.registerComponentView(RO),t.registerComponentModel(GR),t.registerCoordinateSystem("cartesian2d",mO),cS(t,"x",Rp,NS),cS(t,"y",Rp,NS),t.registerComponentView(OS),t.registerComponentView(EO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Ca=Ue(),BS=pe,$p=Le,NO=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new ut,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=Qe(FS,r,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}GS(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Gp(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=Ca(e).pointerEl=new BL[a.type](BS(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=Ca(e).labelEl=new gt(BS(r.label));e.add(a),HS(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=Ca(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=Ca(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),HS(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Zv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Om(u.event)},onmousedown:$p(this._onHandleDragMove,this,0,0),drift:$p(this._onHandleDragMove,this),ondragend:$p(this._onHandleDragEnd,this)}),n.add(i)),GS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,B1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){FS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Up(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Up(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Up(i)),Ca(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Bd(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function FS(t,e,r,n){zS(Ca(r).lastProp,n)||(Ca(r).lastProp=n,e?Mt(r,n,t):(r.stopAnimation(),r.attr(n)))}function zS(t,e){if(K(t)&&K(e)){var r=!0;return L(e,function(n,i){r=r&&zS(t[i],n)}),!!r}else return t===e}function HS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Up(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function GS(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function BO(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function FO(t,e,r,n,i){var a=r.get("value"),o=VS(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=yf(s.get("padding")||0),u=s.getFont(),f=Ty(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var m=i.verticalAlign;m==="bottom"&&(h[1]-=c),m==="middle"&&(h[1]-=c/2),zO(h,v,c,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:oi(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function zO(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function VS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Kf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),X(o)?a=o.replace("{value}",a):ie(o)&&(a=o(s))}return a}function WS(t,e,r){var n=xn();return mc(n,n,r.rotation),gc(n,n,r.position),qv([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function HO(t,e,r,n,i,a){var o=xi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),FO(e,n,i,a,{position:WS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function GO(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function VO(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var WO=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=$S(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=BO(a),c=$O[u](s,h,f);c.style=v,r.graphicKey=c.type,r.pointer=c}var d=sh(l.getRect(),i);HO(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=sh(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=WS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=$S(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:c,tooltipOption:d[f]}},e})(NO);function $S(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var $O={line:function(t,e,r){var n=GO([e,r[0]],[e,r[1]],US(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:VO([e-n/2,r[0]],[n,i],US(t))}}};function US(t){return t.dim==="x"?0:1}var UO=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:"dashed"},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:q.color.accent40,throttle:40}},e})(Pe),En=Ue(),YO=L;function YS(t,e,r){if(!oe.node){var n=e.getZr();En(n).records||(En(n).records={}),XO(n,e);var i=En(n).records[t]||(En(n).records[t]={});i.handler=r}}function XO(t,e){if(En(t).initialized)return;En(t).initialized=!0,r("click",Qe(XS,"click")),r("mousemove",Qe(XS,"mousemove")),r("globalout",ZO);function r(n,i){t.on(n,function(a){var o=KO(e);YO(En(t).records,function(s){s&&i(s,a,o.dispatchAction)}),qO(o.pendings,e)})}}function qO(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function ZO(t,e,r){t.handler("leave",null,r)}function XS(t,e,r,n){e.handler(t,r,n)}function KO(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function Yp(t,e){if(!oe.node){var r=e.getZr(),n=(En(r).records||{})[t];n&&(En(r).records[t]=null)}}var jO=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";YS("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){Yp("axisPointer",n)},e.prototype.dispose=function(r,n){Yp("axisPointer",n)},e.type="axisPointer",e})(Or);function qS(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Ki(a,t);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),m=[];m[c]=a.get(d,o),m[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(j(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var ZS=Ue();function QO(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Le(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){lh(i)&&(i=qS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=lh(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||lh(i),v={},c={},d={list:[],map:{}},m={showPointer:Qe(eN,c),showTooltip:Qe(tN,d)};L(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);L(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,T=aN(u,b);if(!h&&_&&(!u||T)){var x=T&&T.value;x==null&&!l&&(x=w.pointToData(i)),x!=null&&KS(b,x,m,!1,v)}})});var p={};return L(f,function(g,y){var _=g.linkGroup;_&&!c[y]&&L(_.axesInfo,function(b,S){var w=c[S];if(b!==g&&w){var T=w.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,jS(b),jS(g)))),p[g.key]=T}})}),L(p,function(g,y){KS(f[y],g,m,!0,v)}),rN(c,f,v),nN(d,i,t,o),iN(f,o,r),v}}function KS(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=JO(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function JO(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return L(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,t,r);v=c.dataIndices,h=c.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=t-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,i=h,a.length=0),L(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function eN(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function tN(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=fl(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function rN(t,e,r){var n=r.axesInfo=[];L(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function nN(t,e,r,n){if(lh(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function iN(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=ZS(n)[i]||{},o=ZS(n)[i]={};L(t,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&L(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];L(a,function(u,f){!o[f]&&l.push(u)}),L(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function aN(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function jS(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function lh(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function QS(t){ES.registerAxisPointerClass("CartesianAxisPointer",WO),t.registerComponentModel(UO),t.registerComponentView(jO),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!U(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=SO(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},QO)}function oN(t){pi(OO),pi(QS)}function sN(t,e){var r=yf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ze({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var lN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},e})(Pe);function JS(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ex(t){if(oe.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var tx=ex(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),uN=ex(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rx(t,e){if(!t)return e;e=L_(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function fN(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var hN=rx(uN,"transition"),Xp=rx(tx,"transform"),cN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function vN(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function dN(t,e,r){if(!X(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=va(e);var a=vN(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Xp+":",u;Te(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=e+" solid "+i+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function pN(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(oe.transformSupported?""+Xp+i:",left"+i+",top"+i)),hN+":"+a}function nx(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!oe.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=oe.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Xp+":"+o+";":[["top",0],["left",0],[tx,o]]}function gN(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Q(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),L(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function mN(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),h=t.getModel("textStyle"),v=L1(t,"html"),c=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+c),e&&a>0&&i.push(pN(a,r,n)),o&&i.push("background-color:"+o),L(["width","color","radius"],function(d){var m="border-"+d,p=L_(m),g=t.get(p);g!=null&&i.push(m+":"+g+(d==="color"?"":"px"))}),i.push(gN(h)),v!=null&&i.push("padding:"+yf(v).join("px ")+"px"),i.join(";")+";"}function ix(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&$C(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var yN=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(X(a)?document.querySelector(a):Qo(a)?a:ie(a)&&a(e.getDom()));ix(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();sr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=fN(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=cN+mN(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+nx(a[0],a[1],!0)+("border-color:"+va(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(X(a)&&n.get("trigger")==="item"&&!JS(n)&&(s=dN(n,i,a)),X(e))o.innerHTML=e+s;else if(e){o.innerHTML="",U(e)||(e=[e]);for(var l=0;l<e.length;l++)Qo(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(ix(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=nx(n[0],n[1]);L(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",oe.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Le(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;UC(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),_N=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),ox(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;K(e)&&zt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new gt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:L1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),L(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=ax(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;ox(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Ti(a.borderWidth||0),s=ax(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Le(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Ti(t){return Math.max(0,t)}function ax(t){var e=Ti(t.shadowBlur||0),r=Ti(t.shadowOffsetX||0),n=Ti(t.shadowOffsetY||0);return{left:Ti(e-r),right:Ti(e+r),top:Ti(e-n),bottom:Ti(e+n)}}function ox(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var bN=new Ze({shape:{x:-1,y:-1,width:2,height:2}}),wN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(oe.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=TA(i.get("renderMode"));this._tooltipContent=a==="richText"?new _N(n):new yN(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(oe.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?B1(this,"_updatePosition",50,"fixRate"):Bd(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");YS("itemTooltip",this._api,Le(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||oe.node||!i.getDom())){var o=sx(a,i);this._ticket="";var s=a.dataByCoordSys,l=CN(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=bN;f.x=a.x,f.y=a.y,f.update(),be(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=qS(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(sx(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=hl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=be(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;qs(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(be(f).dataIndex!=null?l=f:be(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Le(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hl([n.tooltipOption],a),l=this._renderMode,u=[],f=$s("section",{blocks:[],noHeader:!0}),h=[],v=new Ed;L(r,function(y){L(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var w=VS(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),T=$s("section",{header:w,noHeader:!Yr(w),sortBlocks:!0,blocks:[]});f.blocks.push(T),L(_.seriesDataIndices,function(x){var D=i.getSeriesByIndex(x.seriesIndex),A=x.dataIndexInside,C=D.getDataParams(A);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=Kf(b.axis,{value:S}),C.axisValueLabel=w,C.marker=v.makeTooltipMarker("item",va(C.color),l);var k=p1(D.formatTooltip(A,!0,null)),M=k.frag;if(M){var P=hl([D],a).get("valueFormatter");T.blocks.push(P?V({valueFormatter:P},M):M)}k.text&&h.push(k.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),m=A1(f,v,l,d,i.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var p=l==="richText"?`
65
59
 
66
- `:"<br/>",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=de(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=r.positionDefault,m=ul([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,h),y=new Id;g.marker=y.makeTooltipMarker("item",sa(g.color),v);var _=cb(u.formatTooltip(f,!1,h)),b=m.get("order"),w=m.get("valueFormatter"),S=_.frag,x=S?Tb(w?V({valueFormatter:w},S):S,y,v,b,a.get("useUTC"),m.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,x,g,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=de(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=fe(l),l.content=Ot(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=r.positionDefault,d=ul(h,this._tooltipModel,v?{position:v}:null),m=d.get("content"),p=Math.random()+"",g=new Id;this._showOrMove(d,function(){var y=fe(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,p,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),m=d.color;if(c)if(Y(c)){var p=r.ecModel.get("useUTC"),g=W(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,y&&(v=pf(g.axisValue,v,p)),v=L0(v,i,!0)}else if(Q(c)){var _=Te(function(b,w){b===this._ticket&&(h.setContent(w,f,r,m,l),this._updatePosition(r,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,r,m,l),h.show(r,m),this._updatePosition(r,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),W(n))i=Be(n[0],u),a=Be(n[1],f);else if(q(n)){var m=n;m.width=h[0],m.height=h[1];var p=ni(m,{width:u,height:f});i=p.x,a=p.y,c=null,v=null}else if(Y(n)&&l){var g=uR(n,d,h,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=sR(i,a,o,u,f,c?null:20,v?null:20);i=g[0],a=g[1]}if(c&&(i-=nx(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=nx(v)?h[1]/2:v==="bottom"?h[1]:0),qS(r)){var g=lR(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},m=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&m.length===p.length,o&&A(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){te.node||!n.getDom()||(Od(this,"_updatePosition"),this._tooltipContent.dispose(),$p("itemTooltip",n))},e.type="tooltip",e})(Or);function ul(t,e,r){var n=e.ecModel,i;r?(i=new Fe(r,n,n),i=new Fe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Fe&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(i=new Fe(o,i,n)))}return i}function rx(t,e){return t.dispatchAction||Te(e.dispatchAction,e)}function sR(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function lR(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function uR(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function nx(t){return t==="center"||t==="middle"}function fR(t,e,r){var n=rv(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ps(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=de(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function hR(t){ui(XS),t.registerComponentModel(XO),t.registerComponentView(oR),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nt)}var cR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:X.size.m,backgroundColor:X.color.transparent,borderColor:X.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:X.color.primary},subtextStyle:{fontSize:12,color:X.color.quaternary}},e})(ye),vR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=j(r.get("textBaseline"),r.get("textVerticalAlign")),f=new lt({style:ti(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new lt({style:ti(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),m=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!m&&!p,d&&f.on("click",function(){I0(d,"_"+r.get("target"))}),m&&v.on("click",function(){I0(m,"_"+r.get("subtarget"))}),de(f).eventData=de(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),c&&a.add(v);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=wf(r,i),b=ni(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};f.setStyle(w),v.setStyle(w),g=a.getBoundingRect();var S=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new He({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e})(Or);function dR(t){t.registerComponentModel(cR),t.registerComponentView(vR)}var pR=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Yp=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),W(n)&&A(n,function(a,o){Y(a)&&(a={type:a}),n[o]=we(a,pR(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&ev(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=se(),s=Z(a,function(l){return(Y(l)||Ce(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Fe(l,this,this.ecModel))},this);this._data=et(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&me(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:X.size.m,align:"auto",backgroundColor:X.color.transparent,borderColor:X.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:X.color.disabled,inactiveBorderColor:X.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:X.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:X.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:X.color.tertiary,borderWidth:1,borderColor:X.color.border},emphasis:{selectorLabel:{show:!0,color:X.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ye),Lo=$e,Xp=A,hh=tt,ix=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new hh),this.group.add(this._selectorGroup=new hh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=wf(r,i).refContainer,h=r.getBoxLayoutParams(),c=r.get("padding"),v=ni(h,f,c),d=this.layoutInner(r,o,v,a,l,u),m=ni(xe({width:d.width,height:d.height},h),f,c);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YO(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=se(),h=n.get("selectedMode"),c=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Xp(n.getData(),function(d,m){var p=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
67
- `)){var y=new hh;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g)){if(_){var b=_.getData(),w=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),x=b.getVisual("style"),T=this._createItem(_,g,m,d,n,r,w,x,S,h,a);T.on("click",Lo(ax,g,null,a,v)).on("mouseover",Lo(qp,_.name,null,a,v)).on("mouseout",Lo(Zp,_.name,null,a,v)),i.ssr&&T.eachChild(function(C){var E=de(C);E.seriesIndex=_.seriesIndex,E.dataIndex=m,E.ssrType="legend"}),c&&T.eachChild(function(C){p.packEventData(C,n,_,m,g)}),f.set(g,!0)}else i.eachRawSeries(function(C){var E=this;if(!f.get(g)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(g))return;var L=D.indexOfName(g),M=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),k=Zr(M.fill);k&&k[3]===0&&(k[3]=.2,M=V(V({},M),{fill:ss(k,"rgba")}));var O=this._createItem(C,g,m,d,n,r,{},M,P,h,a);O.on("click",Lo(ax,null,g,a,v)).on("mouseover",Lo(qp,null,g,a,v)).on("mouseout",Lo(Zp,null,g,a,v)),i.ssr&&O.eachChild(function(B){var N=de(B);N.seriesIndex=C.seriesIndex,N.dataIndex=m,N.ssrType="legend"}),c&&O.eachChild(function(B){E.packEventData(B,n,C,m,g)}),f.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};de(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Xp(r,function(u){var f=u.type,h=new lt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ms(h,{normal:c,emphasis:v},{defaultText:u.title}),Lv(h)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,h,c){var v=r.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=gR(f,a,l,u,v,p,c),w=new hh,S=a.getModel("textStyle");if(Q(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:m,icon:f,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(mR({itemWidth:d,itemHeight:m,icon:f,iconRotate:x,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,E=o.get("formatter"),D=n;Y(E)&&E?D=E.replace("{name}",n??""):Q(E)&&(D=E(n));var L=p?S.getTextColor():a.get("inactiveColor");w.add(new lt({style:ti(S,{text:D,x:T,y:m/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var M=new He({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&nf({el:M,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(M),w.eachChild(function(k){k.silent=!0}),M.silent=!h,this.getContentGroup().add(w),Lv(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ks(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ks("horizontal",u,r.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=r.get("selectorButtonGap",!0),m=r.getOrient().index,p=m===0?"width":"height",g=m===0?"height":"width",y=m===0?"y":"x";s==="end"?v[m]+=f[p]+d:h[m]+=c[p]+d,v[1-m]+=f[g]/2-c[g]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[g]=Math.max(f[g],c[g]),_[y]=Math.min(0,c[y]+v[1-m]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Or);function gR(t,e,r,n,i,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Xp(p,function(y,_){p[_]==="inherit"&&(p[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Hd(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var c=e.getModel("lineStyle"),v=c.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),m=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function mR(t){var e=t.icon||"roundRect",r=bo(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=X.color.neutral00,r.style.lineWidth=2),r}function ax(t,e,r,n){Zp(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),qp(t,e,r,n)}function ox(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function qp(t,e,r,n){ox(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Zp(t,e,r,n){ox(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function yR(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function fl(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),sx(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){A(i,function(l,u){s[l?"select":"unSelect"](u)}),sx(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function sx(t,e){var r=e||{};return A(t.getData(),function(n){var i=n.get("name");if(!(i===`
68
- `||i==="")){var a=t.isSelected(i);Mr(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function _R(t){t.registerAction("legendToggleSelect","legendselectchanged",$e(fl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",$e(fl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",$e(fl,"inverseSelect")),t.registerAction("legendSelect","legendselected",$e(fl,"select")),t.registerAction("legendUnSelect","legendunselected",$e(fl,"unSelect"))}function lx(t){t.registerComponentModel(Yp),t.registerComponentView(ix),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,yR),t.registerSubTypeDefaulter("legend",function(){return"plain"}),_R(t)}var bR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Rs(r);t.prototype.init.call(this,r,n,i),ux(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),ux(this,this.option,r)},e.type="legend.scroll",e.defaultOption=p0(Yp.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:X.color.accent50,pageIconInactiveColor:X.color.accent10,pageIconSize:15,pageTextStyle:{color:X.color.tertiary},animationDurationUpdate:800}),e})(Yp);function ux(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,ii(e,r,{type:"box",ignoreSize:!!i})}var fx=tt,Kp=["width","height"],jp=["x","y"],wR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new fx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new fx)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=W(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new lt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,p){var g=m+"DataIndex",y=Uv(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Te(u._pageGo,u,g,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=m,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Kp[u],h=jp[u],c=Kp[1-u],v=jp[1-u];o&&ks("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),p=[-m.x,-m.y],g=fe(i);o&&(g[f]=i[f]-m[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,c,v,h);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=m[f]+d;p[u]-=_,y[h]-=_}y[f]+=m[f]+d,p[1-u]+=y[v]+y[c]/2-m[c]/2,y[c]=Math.max(y[c],m[c]),y[v]=Math.min(y[v],m[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;ks(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),ks("horizontal",c,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),m=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=j(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(g),c.setPosition(y);var w={x:0,y:0};if(w[o]=m?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],m){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new He({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Ct(f,{x:x.contentPosition[0],y:x.contentPosition[1]},m?r:null),this._updatePageInfoView(r,x),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Kp[o],l=jp[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var m=b(h);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=c;++p)_=b(f[p]),(!_&&y.e>g.s+a||_&&!w(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var p=u-1,g=m,y=m,_=null;p>=-1;--p)_=b(f[p]),(!_||!w(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function b(S){if(S){var x=S.getBoundingRect(),T=x[l]+S[l];return{s:T,e:T+x[s],i:S.__legendDataIndex}}}function w(S,x){return S.e>=x&&S.s<=x+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(ix);function SR(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function xR(t){ui(lx),t.registerComponentModel(bR),t.registerComponentView(wR),SR(t)}function TR(t){ui(lx),ui(xR)}function hx(t,e,r){var n=mn.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var Qp=(function(t){Me(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||yu,typeof r=="string"?o=hx(r,n,i):q(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Cm(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=hx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new oe(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new oe(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,w=1/0,S=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(y)){var C=new oe(0,0,0,0);C.copy(T),C.union(y),o[x]=C,b=!0;break}else if(l){u.copy(y),u.union(T);var E=y.width*y.height,D=T.width*T.height,L=u.width*u.height,M=L-E-D;M<w&&(w=M,S=x)}}if(l&&(o[S].union(y),b=!0),!b){var _=new oe(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&Ut||!v)?c.getPrevPaintRect():null;d&&f(d);var m=v&&(c.__dirty&Ut||!c.__isRendered)?c.getPaintRect():null;m&&f(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(m,p,g,y){if(o.clearRect(m,p,g,y),n&&n!=="transparent"){var _=void 0;if(jl(n)){var b=n.global||n.__width===g&&n.__height===y;_=b&&n.__canvasGradient||Vd(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else vC(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Fd(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,p,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,m,p,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},e})(Xr),cx=1e5,ba=314159,ch=.01,CR=.001;function DR(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function ER(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var AR=(function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||yu,this._singleCanvas=a,this.root=e;var o=e.style;o&&(Cm(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Qp(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[ba]=v,v.zlevel=ba,s.push(ba),this._domRoot=e}else{this._width=Nf(e,0,n),this._height=Nf(e,1,n);var u=this._domRoot=ER(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(cx)),a||(a=n.ctx,a.save()),pa(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(cx)},t.prototype.paintOne=function(e,r){o1(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;tu(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(ba).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,c=function(m){var p=a[m],g=p.ctx,y=o&&p.createRepaintRects(e,r,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,w=b&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,y);else if(_===p.__startIndex){var x=e[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,S,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(M){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var k=e[T];if(k.__inHover&&(h=!0),i._doPaintEl(k,p,o,M,P,T===p.__endIndex-1),b){var O=Date.now()-w;if(O>15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var E=v.dpr,D=0;D<y.length;++D){var L=y[D];g.save(),g.beginPath(),g.rect(L.x*E,L.y*E,L.width*E,L.height*E),g.clip(),C(L),g.restore()}else g.save(),C(),g.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return te.wxa&&A(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(pa(s,e,a,o),e.setPrevPaintRect(l))}else pa(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ba);var n=this._layers[e];return n||(n=new Qp("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?we(n,this._layerConfig[e],!0):this._layerConfig[e-ch]&&we(n,this._layerConfig[e-ch],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Ni("ZLevel "+e+" has been used already");return}if(!DR(r)){process.env.NODE_ENV!=="production"&&Ni("Layer of zlevel "+e+" is not valid");return}if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+CR,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?ch:0),this._needsManuallyCompositing),f.__builtin__||Ni("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ut&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?we(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+ch){var o=this._layers[a];we(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(me(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=Nf(a,0,i),r=Nf(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(ba).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ba].dom;var r=new Qp("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];pa(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function MR(t){t.registerPainter("canvas",AR)}var LR=Xe('<div class="chart svelte-p6m4jy" role="img" aria-label="Saiku embed chart"></div>');const IR={hash:"svelte-p6m4jy",code:`
69
- /* The chart needs a concrete height to render ECharts measures
70
- * its container synchronously. The :host's min-height in
71
- * SaikuEmbed.svelte already supplies one for the outer shell; we
72
- * just fill it. */.chart.svelte-p6m4jy {width:100%;height:100%;min-height:240px;}`};function Jp(t,e){Wo(e,!0),Ul(t,IR),ui([cN,jk,CN,UO,TR,dR,hR,MR]);let r=Wt(e,"rows"),n=Wt(e,"mode",7,"bar"),i=dt(void 0),a=null;NT(()=>{if(!U(i))return;a=UI(U(i));const f=new ResizeObserver(()=>a?.resize());return f.observe(U(i)),()=>{f.disconnect(),a?.dispose(),a=null}}),Fl(()=>{if(!a)return;const f=s(r(),n());a.setOption(f,{notMerge:!0})});function o(f,h){for(const c of f){const v=c[h]?.value;if(v!=null&&(typeof v!="number"||Number.isNaN(v)))return!1}return!0}function s(f,h){if(f.length===0)return{title:{text:"No data",left:"center",top:"middle",textStyle:{fontSize:12}}};const c=Object.keys(f[0]),v=c.filter(p=>o(f,p)),d=c.find(p=>!o(f,p))??c[0],m=f.map(p=>p[d]?.formatted??"");if(h==="pie"){const p=v[0];return p?{tooltip:{trigger:"item"},legend:{bottom:0},series:[{type:"pie",radius:["40%","70%"],label:{show:!0,formatter:"{b}: {d}%"},data:f.map(g=>({name:g[d]?.formatted??"",value:g[p]?.value??0}))}]}:{title:{text:"No numeric series"}}}return{tooltip:{trigger:"axis",formatter:p=>{const g=Array.isArray(p)?p:[p],y=g[0].axisValue??"",_=g.map(b=>{const w=b.dataIndex,S=b.seriesName,T=f[w]?.[S]?.formatted??String(b.value??"");return`${S}: ${T}`}).join("<br/>");return`<b>${y}</b><br/>${_}`}},legend:{bottom:0},grid:{left:40,right:16,top:24,bottom:36,containLabel:!0},xAxis:{type:"category",data:m,axisLabel:{interval:0,rotate:m.length>8?-30:0}},yAxis:{type:"value"},series:v.map(p=>({name:p,type:h==="line"?"line":"bar",data:f.map(g=>g[p]?.value??null)}))}}var l={get rows(){return r()},set rows(f){r(f),It()},get mode(){return n()},set mode(f="bar"){n(f),It()}},u=LR();return HT(u,f=>ge(i,f),()=>U(i)),Ie(t,u),$o(l)}Xl(Jp,{rows:{},mode:{}},[],[],{mode:"open"});async function PR(t,e,r){const i=`${eg(t)}/rest/saiku/api/embed/query/${tg(e)}`,a={Accept:"application/json"};r&&(a["X-Saiku-Embed-Token"]=r);const o=await fetch(i,{headers:a,credentials:"omit"});if(!o.ok)throw await ng(o);return await o.json()}function eg(t){return t.endsWith("/")?t.slice(0,-1):t}function tg(t){return t.split("/").map(e=>encodeURIComponent(e)).join("/")}class rg extends Error{constructor(e,r){super(r.error??`Embed fetch failed: HTTP ${e}`),this.status=e,this.body=r,this.name="EmbedFetchError"}}async function ng(t){let e={status:"ERROR"};try{e=await t.json()}catch{e={status:"ERROR",error:`HTTP ${t.status}`}}return new rg(t.status,e)}async function kR(t,e,r){const i=`${eg(t)}/rest/saiku/api/embed/dashboard/${tg(e)}`,a={Accept:"application/json"};r&&(a["X-Saiku-Embed-Token"]=r);const o=await fetch(i,{headers:a,credentials:"omit"});if(!o.ok)throw await ng(o);return await o.json()}async function NR(t,e,r,n){const a=`${eg(t)}/rest/saiku/api/embed/dashboard/${tg(e)}/tile/${encodeURIComponent(r)}/query`,o={Accept:"application/json"};n&&(o["X-Saiku-Embed-Token"]=n);const s=await fetch(a,{method:"POST",headers:o,credentials:"omit"});if(!s.ok)throw await ng(s);return await s.json()}var OR=Xe('<div class="state svelte-icx34q">Loading dashboard…</div>'),RR=Xe('<div class="state error svelte-icx34q" role="alert"> </div>'),BR=Xe('<header class="svelte-icx34q"> </header>'),VR=Xe('<p class="svelte-icx34q"> </p>'),FR=Xe('<div class="kpi svelte-icx34q"> </div>'),zR=Xe('<div class="state muted svelte-icx34q">Loading…</div>'),HR=Xe('<div class="state muted svelte-icx34q">No data</div>'),GR=Xe('<div class="state muted svelte-icx34q">Unsupported tile</div>'),WR=Xe('<div class="tile svelte-icx34q"><!> <div class="body svelte-icx34q"><!></div></div>'),$R=Xe('<div class="grid svelte-icx34q"></div>');const UR={hash:"svelte-icx34q",code:".grid.svelte-icx34q {display:grid;gap:12px;padding:12px;width:100%;box-sizing:border-box;}.tile.svelte-icx34q {background:var(--saiku-embed-tile-bg, #ffffff);border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:8px;display:flex;flex-direction:column;overflow:hidden;min-height:0; /* let chart fill, not push */}.tile.svelte-icx34q header:where(.svelte-icx34q) {padding:8px 12px;font-weight:600;font-size:13px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);color:var(--saiku-embed-fg, #1f2937);font-family:system-ui, sans-serif;}.tile.svelte-icx34q .body:where(.svelte-icx34q) {flex:1;min-height:0;display:flex;flex-direction:column;}.tile.svelte-icx34q .body:where(.svelte-icx34q) p:where(.svelte-icx34q) {padding:8px 12px;margin:0;font-family:system-ui, sans-serif;font-size:13px;white-space:pre-wrap;color:var(--saiku-embed-fg, #1f2937);}.kpi.svelte-icx34q {flex:1;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--saiku-embed-fg, #1f2937);font-family:system-ui, sans-serif;}.state.svelte-icx34q {padding:12px;font-family:system-ui, sans-serif;font-size:13px;}.state.muted.svelte-icx34q {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-icx34q {color:var(--saiku-embed-error, #b91c1c);}"};function vx(t,e){Wo(e,!0),Ul(t,UR);let r=Wt(e,"server"),n=Wt(e,"token"),i=Wt(e,"path"),a=dt(null),o=dt(null),s=dt(!1),l=dt(Ra({}));Fl(()=>{const _=r().trim(),b=i().trim(),w=n().trim();if(!_||!b){ge(a,null),ge(o,null);return}let S=!1;return ge(s,!0),ge(o,null),ge(a,null),ge(l,{},!0),kR(_,b,w||void 0).then(x=>{if(!S){ge(a,x,!0);for(const T of x.layout?.tiles??[])u(T)&&NR(_,b,T.id,w||void 0).then(C=>{S||ge(l,{...U(l),[T.id]:C.data??[]},!0)}).catch(()=>{S||ge(l,{...U(l),[T.id]:[]},!0)})}}).catch(x=>{S||ge(o,f(x),!0)}).finally(()=>{S||ge(s,!1)}),()=>{S=!0}});function u(_){return _.type==="chart"||_.type==="kpi"}function f(_){return _ instanceof rg?_.status===401?"This embed is unavailable.":_.body.error??`Embed failed (${_.status}).`:"Embed failed to load."}let h=Rl(()=>U(a)?.layout?.cols??12);function c(_,b){if(!_||_.length===0)return"-";const w=_[0],S=b.kpi?.measureCaption??b.kpi?.measure;if(S&&w[S]?.formatted)return w[S].formatted;for(const x of Object.keys(w)){const T=w[x];if(T?.value!==null&&typeof T?.value=="number")return T.formatted}return"-"}var v={get server(){return r()},set server(_){r(_),It()},get token(){return n()},set token(_){n(_),It()},get path(){return i()},set path(_){i(_),It()}},d=Gl(),m=Vl(d);{var p=_=>{var b=OR();Ie(_,b)},g=_=>{var b=RR(),w=tr(b,!0);vt(b),Wr(()=>Pi(w,U(o))),Ie(_,b)},y=_=>{var b=$R();$l(b,21,()=>U(a).layout.tiles,w=>w.id,(w,S)=>{var x=WR(),T=tr(x);{var C=B=>{var N=BR(),R=tr(N,!0);vt(N),Wr(()=>Pi(R,U(S).title)),Ie(B,N)};ki(T,B=>{U(S).title&&B(C)})}var E=Wg(T,2),D=tr(E);{var L=B=>{var N=VR(),R=tr(N,!0);vt(N),Wr(()=>Pi(R,U(S).text??"")),Ie(B,N)},M=B=>{var N=FR(),R=tr(N,!0);vt(N),Wr(z=>Pi(R,z),[()=>c(U(l)[U(S).id],U(S))]),Ie(B,N)},P=B=>{var N=Gl(),R=Vl(N);{var z=$=>{var ie=zR();Ie($,ie)},H=$=>{var ie=HR();Ie($,ie)},F=$=>{{let ie=Rl(()=>U(S).chartType??"bar");Jp($,{get rows(){return U(l)[U(S).id]},get mode(){return U(ie)}})}};ki(R,$=>{U(l)[U(S).id]===void 0?$(z):U(l)[U(S).id].length===0?$(H,1):$(F,-1)})}Ie(B,N)},k=B=>{},O=B=>{var N=GR();Ie(B,N)};ki(D,B=>{U(S).type==="text"?B(L):U(S).type==="kpi"?B(M,1):U(S).type==="chart"?B(P,2):U(S).type==="filter"?B(k,3):B(O,-1)})}vt(E),vt(x),Wr(()=>Uh(x,`
73
- grid-column: ${U(S).x+1} / span ${U(S).w??""};
74
- grid-row: ${U(S).y+1} / span ${U(S).h??""};
75
- `)),Ie(w,x)}),vt(b),Wr(()=>Uh(b,`
76
- grid-template-columns: repeat(${U(h)??""}, minmax(0, 1fr));
60
+ `:"<br/>",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=be(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=r.positionDefault,m=hl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,h),y=new Ed;g.marker=y.makeTooltipMarker("item",va(g.color),c);var _=p1(u.formatTooltip(f,!1,h)),b=m.get("order"),S=m.get("valueFormatter"),w=_.frag,T=w?A1(S?V({valueFormatter:S},w):w,y,c,b,a.get("useUTC"),m.get("textStyle")):_.text,x="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,T,g,x,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=be(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(X(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=pe(l),l.content=Bt(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=r.positionDefault,d=hl(h,this._tooltipModel,c?{position:c}:null),m=d.get("content"),p=Math.random()+"",g=new Ed;this._showOrMove(d,function(){var y=pe(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,p,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var c=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),m=d.color;if(v)if(X(v)){var p=r.ecModel.get("useUTC"),g=U(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=v,y&&(c=gf(g.axisValue,c,p)),c=I_(c,i,!0)}else if(ie(v)){var _=Le(function(b,S){b===this._ticket&&(h.setContent(S,f,r,m,l),this._updatePosition(r,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,r,m,l),h.show(r,m),this._updatePosition(r,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||U(n))return{color:a||o};if(!U(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),v=r.get("align"),c=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ie(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),U(n))i=$e(n[0],u),a=$e(n[1],f);else if(K(n)){var m=n;m.width=h[0],m.height=h[1];var p=li(m,{width:u,height:f});i=p.x,a=p.y,v=null,c=null}else if(X(n)&&l){var g=TN(n,d,h,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=SN(i,a,o,u,f,v?null:20,c?null:20);i=g[0],a=g[1]}if(v&&(i-=lx(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=lx(c)?h[1]/2:c==="bottom"?h[1]:0),JS(r)){var g=xN(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&L(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&L(u,function(v,c){var d=h[c]||{},m=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&m.length===p.length,o&&L(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&L(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){oe.node||!n.getDom()||(Bd(this,"_updatePosition"),this._tooltipContent.dispose(),Yp("itemTooltip",n))},e.type="tooltip",e})(Or);function hl(t,e,r){var n=e.ecModel,i;r?(i=new Ye(r,n,n),i=new Ye(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ye&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(i=new Ye(o,i,n)))}return i}function sx(t,e){return t.dispatchAction||Le(e.dispatchAction,e)}function SN(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function xN(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function TN(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function lx(t){return t==="center"||t==="middle"}function CN(t,e,r){var n=av(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ms(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=be(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function DN(t){pi(QS),t.registerComponentModel(lN),t.registerComponentView(wN),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nt)}var AN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:q.size.m,backgroundColor:q.color.transparent,borderColor:q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:q.color.primary},subtextStyle:{fontSize:12,color:q.color.quaternary}},e})(Pe),MN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Q(r.get("textBaseline"),r.get("textVerticalAlign")),f=new gt({style:oi(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=r.get("subtext"),c=new gt({style:oi(s,{text:v,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),m=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,c.silent=!m&&!p,d&&f.on("click",function(){P_(d,"_"+r.get("target"))}),m&&c.on("click",function(){P_(m,"_"+r.get("subtarget"))}),be(f).eventData=be(c).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(c);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Sf(r,i),b=li(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),g=a.getBoundingRect();var w=b.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var x=new Ze({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(x)}},e.type="title",e})(Or);function LN(t){t.registerComponentModel(AN),t.registerComponentView(MN)}var kN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},qp=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&L(n,function(a,o){X(a)&&(a={type:a}),n[o]=De(a,kN(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&nv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=he(),s=j(a,function(l){return(X(l)||ke(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ye(l,this,this.ecModel))},this);this._data=lt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;L(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Te(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:q.size.m,align:"auto",backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Pe),ko=Qe,Zp=L,uh=ut,ux=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new uh),this.group.add(this._selectorGroup=new uh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Sf(r,i).refContainer,h=r.getBoxLayoutParams(),v=r.get("padding"),c=li(h,f,v),d=this.layoutInner(r,o,c,a,l,u),m=li(Me({width:d.width,height:d.height},h),f,v);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=sN(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=he(),h=n.get("selectedMode"),v=n.get("triggerEvent"),c=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&c.push(d.id)}),Zp(n.getData(),function(d,m){var p=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
61
+ `)){var y=new uh;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),T=b.getVisual("style"),x=this._createItem(_,g,m,d,n,r,S,T,w,h,a);x.on("click",ko(fx,g,null,a,c)).on("mouseover",ko(Kp,_.name,null,a,c)).on("mouseout",ko(jp,_.name,null,a,c)),i.ssr&&x.eachChild(function(D){var A=be(D);A.seriesIndex=_.seriesIndex,A.dataIndex=m,A.ssrType="legend"}),v&&x.eachChild(function(D){p.packEventData(D,n,_,m,g)}),f.set(g,!0)}else i.eachRawSeries(function(D){var A=this;if(!f.get(g)&&D.legendVisualProvider){var C=D.legendVisualProvider;if(!C.containName(g))return;var k=C.indexOfName(g),M=C.getItemVisual(k,"style"),P=C.getItemVisual(k,"legendIcon"),I=Zr(M.fill);I&&I[3]===0&&(I[3]=.2,M=V(V({},M),{fill:us(I,"rgba")}));var O=this._createItem(D,g,m,d,n,r,{},M,P,h,a);O.on("click",ko(fx,null,g,a,c)).on("mouseover",ko(Kp,null,g,a,c)).on("mouseout",ko(jp,null,g,a,c)),i.ssr&&O.eachChild(function(G){var N=be(G);N.seriesIndex=D.seriesIndex,N.dataIndex=m,N.ssrType="legend"}),v&&O.eachChild(function(G){A.packEventData(G,n,D,m,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};be(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Zp(r,function(u){var f=u.type,h=new gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);Is(h,{normal:v,emphasis:c},{defaultText:u.title}),Ev(h)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,h,v){var c=r.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=IN(f,a,l,u,c,p,v),S=new uh,w=a.getModel("textStyle");if(ie(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:m,icon:f,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(PN({itemWidth:d,itemHeight:m,icon:f,iconRotate:T,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var x=s==="left"?d+5:-5,D=s,A=o.get("formatter"),C=n;X(A)&&A?C=A.replace("{name}",n??""):ie(A)&&(C=A(n));var k=p?w.getTextColor():a.get("inactiveColor");S.add(new gt({style:oi(w,{text:C,x,y:m/2,fill:k,align:D,verticalAlign:"middle"},{inheritColor:k})}));var M=new Ze({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&af({el:M,componentModel:o,itemName:n,itemTooltipOption:P.option}),S.add(M),S.eachChild(function(I){I.silent=!0}),M.silent=!h,this.getContentGroup().add(S),Ev(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Os(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Os("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),m=r.getOrient().index,p=m===0?"width":"height",g=m===0?"height":"width",y=m===0?"y":"x";s==="end"?c[m]+=f[p]+d:h[m]+=v[p]+d,c[1-m]+=f[g]/2-v[g]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[g]=Math.max(f[g],v[g]),_[y]=Math.min(0,v[y]+c[1-m]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Or);function IN(t,e,r,n,i,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Zp(p,function(y,_){p[_]==="inherit"&&(p[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Wd(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),m=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function PN(t){var e=t.icon||"roundRect",r=wo(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=q.color.neutral00,r.style.lineWidth=2),r}function fx(t,e,r,n){jp(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Kp(t,e,r,n)}function hx(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Kp(t,e,r,n){hx(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function jp(t,e,r,n){hx(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function EN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function cl(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),cx(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){L(i,function(l,u){s[l?"select":"unSelect"](u)}),cx(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function cx(t,e){var r=e||{};return L(t.getData(),function(n){var i=n.get("name");if(!(i===`
62
+ `||i==="")){var a=t.isSelected(i);Mr(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function RN(t){t.registerAction("legendToggleSelect","legendselectchanged",Qe(cl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Qe(cl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Qe(cl,"inverseSelect")),t.registerAction("legendSelect","legendselected",Qe(cl,"select")),t.registerAction("legendUnSelect","legendunselected",Qe(cl,"unSelect"))}function vx(t){t.registerComponentModel(qp),t.registerComponentView(ux),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,EN),t.registerSubTypeDefaulter("legend",function(){return"plain"}),RN(t)}var ON=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Fs(r);t.prototype.init.call(this,r,n,i),dx(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),dx(this,this.option,r)},e.type="legend.scroll",e.defaultOption=g_(qp.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:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),e})(qp);function dx(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,ui(e,r,{type:"box",ignoreSize:!!i})}var px=ut,Qp=["width","height"],Jp=["x","y"],NN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new px),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new px)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=U(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new gt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,p){var g=m+"DataIndex",y=Zv(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Le(u._pageGo,u,g,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=m,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Qp[u],h=Jp[u],v=Qp[1-u],c=Jp[1-u];o&&Os("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),p=[-m.x,-m.y],g=pe(i);o&&(g[f]=i[f]-m[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,v,c,h);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=m[f]+d;p[u]-=_,y[h]-=_}y[f]+=m[f]+d,p[1-u]+=y[c]+y[v]/2-m[v]/2,y[v]=Math.max(y[v],m[v]),y[c]=Math.min(y[c],m[c]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Os(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Os("horizontal",v,r.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),m=this._showController=c[o]>i[o],p=[-c.x,-c.y];n||(p[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=Q(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,f.setPosition(p),h.setPosition(g),v.setPosition(y);var S={x:0,y:0};if(S[o]=m?i[o]:c[o],S[s]=Math.max(c[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],m){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=S[s],h.setClipPath(new Ze({shape:w})),h.__rectSize=w[o]}else v.eachChild(function(x){x.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Mt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},m?r:null),this._updatePageInfoView(r,T),S},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;L(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",X(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Qp[o],l=Jp[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var m=b(h);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=v;++p)_=b(f[p]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var p=u-1,g=m,y=m,_=null;p>=-1;--p)_=b(f[p]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function b(w){if(w){var T=w.getBoundingRect(),x=T[l]+w[l];return{s:x,e:x+T[s],i:w.__legendDataIndex}}}function S(w,T){return w.e>=T&&w.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(ux);function BN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function FN(t){pi(vx),t.registerComponentModel(ON),t.registerComponentView(NN),BN(t)}function zN(t){pi(vx),pi(FN)}function gx(t,e,r){var n=wn.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var eg=(function(t){Oe(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||wu,typeof r=="string"?o=gx(r,n,i):K(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(km(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=gx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new fe(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new fe(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,w=0,T=0;T<o.length;++T){var x=o[T];if(x.intersect(y)){var D=new fe(0,0,0,0);D.copy(x),D.union(y),o[T]=D,b=!0;break}else if(l){u.copy(y),u.union(x);var A=y.width*y.height,C=x.width*x.height,k=u.width*u.height,M=k-A-C;M<S&&(S=M,w=T)}}if(l&&(o[w].union(y),b=!0),!b){var _=new fe(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=r[h];if(v){var c=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&Ut||!c)?v.getPrevPaintRect():null;d&&f(d);var m=c&&(v.__dirty&Ut||!v.__isRendered)?v.getPaintRect():null;m&&f(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function d(m,p,g,y){if(o.clearRect(m,p,g,y),n&&n!=="transparent"){var _=void 0;if(Jl(n)){var b=n.global||n.__width===g&&n.__height===y;_=b&&n.__canvasGradient||Hd(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else kC(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Gd(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,p,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,m,p,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&L(i,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},e})(Xr),mx=1e5,Da=314159,fh=.01,HN=.001;function GN(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function VN(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var WN=(function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||wu,this._singleCanvas=a,this.root=e;var o=e.style;o&&(km(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,h=f.width,v=f.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new eg(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Da]=c,c.zlevel=Da,s.push(Da),this._domRoot=e}else{this._width=Rf(e,0,n),this._height=Rf(e,1,n);var u=this._domRoot=VN(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(mx)),a||(a=n.ctx,a.save()),wa(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(mx)},t.prototype.paintOne=function(e,r){ub(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;iu(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Da).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,v=function(m){var p=a[m],g=p.ctx,y=o&&p.createRepaintRects(e,r,c._width,c._height),_=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,S=b&&Date.now(),w=p.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,w,y);else if(_===p.__startIndex){var T=e[_];(!T.incremental||!T.notClear||n)&&p.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var x,D=function(M){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(x=_;x<p.__endIndex;x++){var I=e[x];if(I.__inHover&&(h=!0),i._doPaintEl(I,p,o,M,P,x===p.__endIndex-1),b){var O=Date.now()-S;if(O>15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)x=p.__endIndex;else for(var A=c.dpr,C=0;C<y.length;++C){var k=y[C];g.save(),g.beginPath(),g.rect(k.x*A,k.y*A,k.width*A,k.height*A),g.clip(),D(k),g.restore()}else g.save(),D(),g.restore();p.__drawIndex=x,p.__drawIndex<p.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return oe.wxa&&L(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(wa(s,e,a,o),e.setPrevPaintRect(l))}else wa(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Da);var n=this._layers[e];return n||(n=new eg("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?De(n,this._layerConfig[e],!0):this._layerConfig[e-fh]&&De(n,this._layerConfig[e-fh],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&GN(r)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+HN,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?fh:0),this._needsManuallyCompositing),f.__builtin__||Qh("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ut&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?De(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+fh){var o=this._layers[a];De(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(Te(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=Rf(a,0,i),r=Rf(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(Da).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Da].dom;var r=new eg("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];wa(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function $N(t){t.registerPainter("canvas",WN)}function UN(t){const e=[];for(let i=1;i<=8;i++){const a=(t(`--saiku-embed-chart-${i}`)||"").trim();if(!a)break;e.push(a)}const r=(t("--saiku-embed-fg")||"").trim()||void 0,n=(t("--saiku-embed-muted")||"").trim()||void 0;return{palette:e,fg:r,axisLine:n}}function yx(t,e){for(const r of t){const n=r[e]?.value;if(n!=null&&(typeof n!="number"||Number.isNaN(n)))return!1}return!0}function YN(t,e,r){const n=r.fg,i=r.axisLine,a=r.palette.length?{color:r.palette}:{},o={bottom:0,...n?{textStyle:{color:n}}:{}},s=n?{color:n}:{},l=i?{axisLine:{lineStyle:{color:i}}}:{};if(t.length===0)return{title:{text:"No data",left:"center",top:"middle",textStyle:{fontSize:12,...s}}};const u=Object.keys(t[0]),f=u.filter(c=>yx(t,c)),h=u.find(c=>!yx(t,c))??u[0],v=t.map(c=>c[h]?.formatted??"");if(e==="pie"){const c=f[0];return c?{...a,tooltip:{trigger:"item"},legend:o,series:[{type:"pie",radius:["40%","70%"],label:{show:!0,formatter:"{b}: {d}%",...s},data:t.map(d=>({name:d[h]?.formatted??"",value:d[c]?.value??0}))}]}:{title:{text:"No numeric series",textStyle:{...s}}}}return{...a,tooltip:{trigger:"axis",formatter:c=>{const d=Array.isArray(c)?c:[c],m=d[0].axisValue??"",p=d.map(g=>{const y=g.dataIndex,_=g.seriesName,S=t[y]?.[_]?.formatted??String(g.value??"");return`${_}: ${S}`}).join("<br/>");return`<b>${m}</b><br/>${p}`}},legend:o,grid:{left:40,right:16,top:24,bottom:36,containLabel:!0},xAxis:{type:"category",data:v,axisLabel:{interval:0,rotate:v.length>8?-30:0,...s},...l},yAxis:{type:"value",...n?{axisLabel:{color:n}}:{},...l,...i?{splitLine:{lineStyle:{color:i}}}:{}},series:f.map(c=>({name:c,type:e==="line"?"line":"bar",data:t.map(d=>d[c]?.value??null)}))}}var XN=te('<div class="chart svelte-p6m4jy" role="img" aria-label="Saiku embed chart"></div>');const qN={hash:"svelte-p6m4jy",code:`
63
+ /* ECharts measures its container synchronously on init, so the div MUST have a
64
+ * concrete height before init runs. Tailwind classes aren't in the embed
65
+ * bundle CSS (only the SvelteKit app has them), so we set width+height in
66
+ * scoped shadow-DOM CSS. Min-height covers the case where the host page's
67
+ * layout provides no explicit height. */.chart.svelte-p6m4jy {width:100%;height:100%;min-height:240px;}`};function tg(t,e){pn(e,!0),Un(t,qN),pi([AR,cR,HR,oN,zN,LN,DN,$N]);let r=xe(e,"rows"),n=xe(e,"mode",7,"bar"),i=Ee(void 0),a=null;YT(()=>{if(!R(i))return;a=sP(R(i));const l=new ResizeObserver(()=>a?.resize());return l.observe(R(i)),()=>{l.disconnect(),a?.dispose(),a=null}}),Va(()=>{if(!a)return;const l=R(i),u=l?UN(h=>getComputedStyle(l).getPropertyValue(h)):{palette:[]},f=YN(r(),n(),u);a.setOption(f,{notMerge:!0})});var o={get rows(){return r()},set rows(l){r(l),ye()},get mode(){return n()},set mode(l="bar"){n(l),ye()}},s=XN();return bm(s,l=>Y(i,l),()=>R(i)),Z(t,s),gn(o)}Yn(tg,{rows:{},mode:{}},[],[],{mode:"open"});var ZN=te('<div class="empty svelte-1r1n8l4">No measure to display</div>'),KN=te('<span class="unit svelte-1r1n8l4"> </span>'),jN=te('<div> <span class="vs svelte-1r1n8l4">vs prior</span></div>'),QN=te('<div class="kpi svelte-1r1n8l4" role="figure"><div class="cap svelte-1r1n8l4"> <!></div> <div class="num svelte-1r1n8l4"> </div> <!></div>');const JN={hash:"svelte-1r1n8l4",code:'.kpi.svelte-1r1n8l4 {font-family:system-ui, -apple-system, "Segoe UI", sans-serif;padding:16px 18px;color:var(--saiku-embed-fg, #1f2937);}.cap.svelte-1r1n8l4 {font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:var(--saiku-embed-muted, #6b7280);}.unit.svelte-1r1n8l4 {text-transform:none;letter-spacing:0;}.num.svelte-1r1n8l4 {margin-top:8px;font-size:34px;font-weight:650;letter-spacing:-0.5px;font-variant-numeric:tabular-nums;line-height:1.05;}.delta.svelte-1r1n8l4 {margin-top:8px;font-size:13px;font-weight:600;color:var(--saiku-embed-positive, #12a67a);}.delta.down.svelte-1r1n8l4 {color:var(--saiku-embed-negative, #b91c1c);}.delta.svelte-1r1n8l4 .vs:where(.svelte-1r1n8l4) {color:var(--saiku-embed-muted, #6b7280);font-weight:500;}.empty.svelte-1r1n8l4 {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}'};function _x(t,e){pn(e,!0),Un(t,JN);let r=xe(e,"rows"),n=xe(e,"label");function i(p){return p.length===0?[]:Object.keys(p[0]).filter(y=>p.every(_=>{const b=_[y]?.value;return b==null||typeof b=="number"&&!Number.isNaN(b)})).filter(y=>p.some(_=>typeof _[y]?.value=="number"))}function a(p,g){return p.reduce((y,_)=>y+(typeof _[g]?.value=="number"?_[g].value:0),0)}const o=er(()=>i(r())),s=er(()=>R(o).length>0?R(o)[R(o).length-1]:null),l=er(()=>R(o).length>1?R(o)[R(o).length-2]:null),u=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),f=er(()=>{if(!R(s)||r().length===0)return null;const p=r().length===1,g=p?r()[0][R(s)]?.value??0:a(r(),R(s)),y=p?r()[0][R(s)]?.formatted??u.format(g):u.format(g),_=r()[0][R(s)]?.unit;let b=null;if(R(l)){const S=p?r()[0][R(l)]?.value??0:a(r(),R(l));S!==0&&(b=(g-S)/Math.abs(S)*100)}return{label:n()??R(s),display:y,unit:_,deltaPct:b}});var h={get rows(){return r()},set rows(p){r(p),ye()},get label(){return n()},set label(p){n(p),ye()}},v=zi(),c=Wn(v);{var d=p=>{var g=ZN();Z(p,g)},m=p=>{var g=QN(),y=ue(g),_=ue(y,!0),b=bt(_);{var S=A=>{var C=KN(),k=ue(C);ee(C),Re(()=>Fe(k,`· ${R(f).unit??""}`)),Z(A,C)};st(b,A=>{R(f).unit&&A(S)})}ee(y);var w=bt(y,2),T=ue(w,!0);ee(w);var x=bt(w,2);{var D=A=>{var C=jN();let k;var M=ue(C);bg(),ee(C),Re(P=>{k=Ua(C,1,"delta svelte-1r1n8l4",null,k,{down:R(f).deltaPct<0}),Fe(M,`${R(f).deltaPct>=0?"▲":"▼"}
68
+ ${P??""}%`)},[()=>Math.abs(R(f).deltaPct).toFixed(1)]),Z(A,C)};st(x,A=>{R(f).deltaPct!==null&&A(D)})}ee(g),Re(()=>{Ko(g,"aria-label",R(f).label),Fe(_,R(f).label),Fe(T,R(f).display)}),Z(p,g)};st(c,p=>{R(f)?p(m,-1):p(d)})}return Z(t,v),gn(h)}Yn(_x,{rows:{},label:{}},[],[],{mode:"open"});async function eB(t,e,r,n="records",i){const a=vl(t),o=n==="matrix"?"?format=matrix":"",s=`${a}/rest/saiku/api/embed/query/${dl(e)}${o}`,l={Accept:"application/json"};r&&(l["X-Saiku-Embed-Token"]=r);const u=Array.isArray(i)&&i.length>0,f={headers:l,credentials:"omit"};u&&(l["Content-Type"]="application/json",f.method="POST",f.body=JSON.stringify({filters:i}));const h=await fetch(s,f);if(!h.ok)throw await gl(h);return await h.json()}function vl(t){return t.endsWith("/")?t.slice(0,-1):t}function dl(t){return t.split("/").map(e=>encodeURIComponent(e)).join("/")}class pl extends Error{constructor(e,r){super(r.error??`Embed fetch failed: HTTP ${e}`),this.status=e,this.body=r,this.name="EmbedFetchError"}}async function gl(t){let e={status:"ERROR"};try{e=await t.json()}catch{e={status:"ERROR",error:`HTTP ${t.status}`}}return new pl(t.status,e)}async function tB(t,e,r){const i=`${vl(t)}/rest/saiku/api/embed/dashboard/${dl(e)}`,a={Accept:"application/json"};r&&(a["X-Saiku-Embed-Token"]=r);const o=await fetch(i,{headers:a,credentials:"omit"});if(!o.ok)throw await gl(o);return await o.json()}async function rB(t,e,r,n,i){const o=`${vl(t)}/rest/saiku/api/embed/dashboard/${dl(e)}/tile/${encodeURIComponent(r)}/query`,s={Accept:"application/json"};n&&(s["X-Saiku-Embed-Token"]=n);const l=i&&i.length>0?JSON.stringify({filters:i}):void 0;l&&(s["Content-Type"]="application/json");const u=await fetch(o,{method:"POST",headers:s,credentials:"omit",body:l});if(!u.ok)throw await gl(u);return await u.json()}async function nB(t,e,r,n,i,a=50){const o=vl(t),s=new URLSearchParams;s.set("limit",String(a));const l=`${o}/rest/saiku/api/embed/dashboard/${dl(e)}/tile/${encodeURIComponent(r)}/members?${s.toString()}`,u={Accept:"application/json"};n&&(u["X-Saiku-Embed-Token"]=n);const f=await fetch(l,{headers:u,credentials:"omit"});if(!f.ok)throw await gl(f);return await f.json()}async function iB(t,e,r,n,i,a){const s=`${vl(t)}/rest/saiku/api/embed/ai/${dl(e)}/ask`,l={Accept:"application/json","Content-Type":"application/json"};r&&(l["X-Saiku-Embed-Token"]=r);const u=(a??"").trim(),f=JSON.stringify(u?{question:n,history:[],space:u}:{question:n,history:[]}),h=await fetch(s,{method:"POST",headers:l,credentials:"omit",body:f});if(!h.ok)throw await gl(h);return await h.json()}var aB=te('<div class="state muted svelte-1wyd0zw">Filter tile has no target</div>'),oB=te('<div class="state error svelte-1wyd0zw"> </div>'),sB=te('<div class="state muted svelte-1wyd0zw">Loading members…</div>'),lB=te('<div class="state muted svelte-1wyd0zw">No members</div>'),uB=te("<option> </option>"),fB=te('<select class="svelte-1wyd0zw"><option> </option><!></select>'),hB=te('<label class="checkbox svelte-1wyd0zw"><input type="checkbox" class="svelte-1wyd0zw"/> <span> </span></label>'),cB=te('<button type="button" class="clear svelte-1wyd0zw"> </button>'),vB=te('<div class="multi svelte-1wyd0zw"><!> <!></div>'),dB=te('<div class="filter-tile svelte-1wyd0zw"><!></div>');const pB={hash:"svelte-1wyd0zw",code:".filter-tile.svelte-1wyd0zw {padding:8px 10px;font-family:system-ui, sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);}.state.svelte-1wyd0zw {padding:4px 0;}.state.muted.svelte-1wyd0zw {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-1wyd0zw {color:var(--saiku-embed-error, #b91c1c);}select.svelte-1wyd0zw {width:100%;padding:4px 6px;font-size:13px;border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:4px;background:var(--saiku-embed-bg, #ffffff);color:inherit;}.multi.svelte-1wyd0zw {display:flex;flex-direction:column;gap:4px;max-height:220px;overflow-y:auto;}.checkbox.svelte-1wyd0zw {display:flex;align-items:center;gap:6px;cursor:pointer;padding:2px 0;}.checkbox.svelte-1wyd0zw input:where(.svelte-1wyd0zw) {margin:0;}.clear.svelte-1wyd0zw {margin-top:4px;padding:3px 8px;font-size:12px;background:transparent;border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:4px;color:var(--saiku-embed-fg, #1f2937);cursor:pointer;}.clear.svelte-1wyd0zw:hover {background:var(--saiku-embed-row-hover, #f3f4f6);}"};function bx(t,e){pn(e,!0),Un(t,pB);let r=xe(e,"server"),n=xe(e,"token"),i=xe(e,"dashboardPath"),a=xe(e,"tile"),o=xe(e,"onChange"),s=Ee(null),l=Ee(null),u=Ee(Gr(new Set)),f=er(()=>(a().widget||"multi-select").toLowerCase());Va(()=>{const x=r().trim(),D=i().trim();if(!D||!a().target){Y(s,null);return}let A=!1;return Y(s,null),Y(l,null),nB(x,D,a().id,n()||void 0).then(C=>{A||Y(s,C,!0)}).catch(C=>{A||Y(l,C instanceof pl?C.body.error??"Members unavailable":"Members unavailable",!0)}),()=>{A=!0}});function h(){if(!a().target)return;const x=Array.from(R(u));if(x.length===0){o()(null);return}o()({dimension:a().target.dimension,hierarchy:a().target.hierarchy??null,level:a().target.level,members:x})}function v(x){const D=x.target.value;Y(u,D?new Set([D]):new Set,!0),h()}function c(x,D){const A=new Set(R(u));D?A.add(x):A.delete(x),Y(u,A,!0),h()}function d(){Y(u,new Set,!0),h()}var m={get server(){return r()},set server(x){r(x),ye()},get token(){return n()},set token(x){n(x),ye()},get dashboardPath(){return i()},set dashboardPath(x){i(x),ye()},get tile(){return a()},set tile(x){a(x),ye()},get onChange(){return o()},set onChange(x){o(x),ye()}},p=dB(),g=ue(p);{var y=x=>{var D=aB();Z(x,D)},_=x=>{var D=oB(),A=ue(D,!0);ee(D),Re(()=>Fe(A,R(l))),Z(x,D)},b=x=>{var D=sB();Z(x,D)},S=x=>{var D=lB();Z(x,D)},w=x=>{var D=fB(),A=ue(D),C=ue(A);ee(A),A.value=A.__value="";var k=bt(A);bn(k,17,()=>R(s),M=>M.uniqueName,(M,P)=>{var I=uB(),O=ue(I,!0);ee(I);var G={};Re(N=>{rC(I,N),Fe(O,R(P).caption),G!==(G=R(P).uniqueName)&&(I.value=(I.__value=R(P).uniqueName)??"")},[()=>R(u).has(R(P).uniqueName)]),Z(M,I)}),ee(D),Re(()=>{Ko(D,"aria-label",a().title??a().target.level),Fe(C,`All ${a().target.level??""}`)}),ql("change",D,v),Z(x,D)},T=x=>{var D=vB(),A=ue(D);bn(A,17,()=>R(s),M=>M.uniqueName,(M,P)=>{var I=hB(),O=ue(I);mm(O);var G=bt(O,2),N=ue(G,!0);ee(G),ee(I),Re(B=>{tC(O,B),Fe(N,R(P).caption)},[()=>R(u).has(R(P).uniqueName)]),ql("change",O,B=>c(R(P).uniqueName,B.target.checked)),Z(M,I)});var C=bt(A,2);{var k=M=>{var P=cB(),I=ue(P);ee(P),Re(()=>Fe(I,`Clear (${R(u).size??""})`)),ql("click",P,d),Z(M,P)};st(C,M=>{R(u).size>0&&M(k)})}ee(D),Z(x,D)};st(g,x=>{a().target?R(l)?x(_,1):R(s)===null?x(b,2):R(s).length===0?x(S,3):R(f)==="single-select"?x(w,4):x(T,-1):x(y)})}return ee(p),Z(t,p),gn(m)}hm(["change","click"]),Yn(bx,{server:{},token:{},dashboardPath:{},tile:{},onChange:{}},[],[],{mode:"open"});var gB=te('<div class="state svelte-icx34q">Loading dashboard…</div>'),mB=te('<div class="state error svelte-icx34q" role="alert"> </div>'),yB=te('<header class="svelte-icx34q"> </header>'),_B=te('<p class="svelte-icx34q"> </p>'),bB=te('<div class="kpi svelte-icx34q"> </div>'),wB=te('<div class="state muted svelte-icx34q">Loading…</div>'),SB=te('<div class="state muted svelte-icx34q">No data</div>'),xB=te('<div class="state muted svelte-icx34q">Unsupported tile</div>'),TB=te('<div class="tile svelte-icx34q"><!> <div class="body svelte-icx34q"><!></div></div>'),CB=te('<div class="grid gap-3 p-3 w-full box-border"></div>');const DB={hash:"svelte-icx34q",code:".tile.svelte-icx34q {background:var(--saiku-embed-tile-bg, #ffffff);border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:8px;display:flex;flex-direction:column;overflow:hidden;min-height:0; /* let chart fill, not push */}.tile.svelte-icx34q header:where(.svelte-icx34q) {padding:8px 12px;font-weight:600;font-size:13px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);color:var(--saiku-embed-fg, #1f2937);font-family:system-ui, sans-serif;}.tile.svelte-icx34q .body:where(.svelte-icx34q) {flex:1;min-height:0;display:flex;flex-direction:column;}.tile.svelte-icx34q .body:where(.svelte-icx34q) p:where(.svelte-icx34q) {padding:8px 12px;margin:0;font-family:system-ui, sans-serif;font-size:13px;white-space:pre-wrap;color:var(--saiku-embed-fg, #1f2937);}.kpi.svelte-icx34q {flex:1;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--saiku-embed-fg, #1f2937);font-family:system-ui, sans-serif;}.state.svelte-icx34q {padding:12px;font-family:system-ui, sans-serif;font-size:13px;}.state.muted.svelte-icx34q {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-icx34q {color:var(--saiku-embed-error, #b91c1c);}"};function Sx(t,e){pn(e,!0),Un(t,DB);let r=xe(e,"server"),n=xe(e,"token"),i=xe(e,"path"),a=Ee(null),o=Ee(null),s=Ee(!1),l=Ee(Gr({})),u=Ee(Gr({})),f=er(()=>Object.values(R(u)).filter(x=>x!==null));Va(()=>{const x=r().trim(),D=i().trim(),A=n().trim();if(!D){Y(a,null),Y(o,null);return}let C=!1;return Y(s,!0),Y(o,null),Y(a,null),Y(l,{},!0),tB(x,D,A||void 0).then(k=>{C||(Y(a,k,!0),v(k,x,D,A,C,[]))}).catch(k=>{C||Y(o,m(k),!0)}).finally(()=>{C||Y(s,!1)}),()=>{C=!0}});function h(x){return x.type==="chart"||x.type==="kpi"}function v(x,D,A,C,k,M){for(const P of x.layout?.tiles??[])h(P)&&(Y(l,{...R(l),[P.id]:null},!0),rB(D,A,P.id,C||void 0,M).then(I=>{k||Y(l,{...R(l),[P.id]:I.data??[]},!0)}).catch(()=>{k||Y(l,{...R(l),[P.id]:[]},!0)}))}Va(()=>{const x=R(f),D=r().trim(),A=i().trim(),C=n().trim();!R(a)||!A||x.length===0&&!c.current||(c.current=c.current||x.length>0,v(R(a),D,A,C,!1,x))});const c={current:!1};function d(x,D){Y(u,{...R(u),[x]:D},!0)}function m(x){return x instanceof pl?x.status===401?"This embed is unavailable.":x.body.error??`Embed failed (${x.status}).`:"Embed failed to load."}let p=er(()=>R(a)?.layout?.cols??12);function g(x,D){if(!x||x.length===0)return"-";const A=x[0],C=D.kpi?.measureCaption??D.kpi?.measure;if(C&&A[C]?.formatted)return A[C].formatted;for(const k of Object.keys(A)){const M=A[k];if(M?.value!==null&&typeof M?.value=="number")return M.formatted}return"-"}var y={get server(){return r()},set server(x){r(x),ye()},get token(){return n()},set token(x){n(x),ye()},get path(){return i()},set path(x){i(x),ye()}},_=zi(),b=Wn(_);{var S=x=>{var D=gB();Z(x,D)},w=x=>{var D=mB(),A=ue(D,!0);ee(D),Re(()=>Fe(A,R(o))),Z(x,D)},T=x=>{var D=CB();bn(D,21,()=>R(a).layout.tiles,A=>A.id,(A,C)=>{var k=TB(),M=ue(k);{var P=F=>{var W=yB(),J=ue(W,!0);ee(W),Re(()=>Fe(J,R(C).title)),Z(F,W)};st(M,F=>{R(C).title&&F(P)})}var I=bt(M,2),O=ue(I);{var G=F=>{var W=_B(),J=ue(W,!0);ee(W),Re(()=>Fe(J,R(C).text??"")),Z(F,W)},N=F=>{var W=bB(),J=ue(W,!0);ee(W),Re(we=>Fe(J,we),[()=>g(R(l)[R(C).id],R(C))]),Z(F,W)},B=F=>{var W=zi(),J=Wn(W);{var we=Be=>{var Xe=wB();Z(Be,Xe)},it=Be=>{var Xe=SB();Z(Be,Xe)},_t=Be=>{{let Xe=er(()=>R(C).chartType??"bar");tg(Be,{get rows(){return R(l)[R(C).id]},get mode(){return R(Xe)}})}};st(J,Be=>{R(l)[R(C).id]===void 0?Be(we):R(l)[R(C).id].length===0?Be(it,1):Be(_t,-1)})}Z(F,W)},H=F=>{bx(F,{get server(){return r()},get token(){return n()},get dashboardPath(){return i()},get tile(){return R(C)},onChange:W=>d(R(C).id,W)})},z=F=>{var W=xB();Z(F,W)};st(O,F=>{R(C).type==="text"?F(G):R(C).type==="kpi"?F(N,1):R(C).type==="chart"?F(B,2):R(C).type==="filter"?F(H,3):F(z,-1)})}ee(I),ee(k),Re(()=>$h(k,`
69
+ grid-column: ${R(C).x+1} / span ${R(C).w??""};
70
+ grid-row: ${R(C).y+1} / span ${R(C).h??""};
71
+ `)),Z(A,k)}),ee(D),Re(()=>$h(D,`
72
+ grid-template-columns: repeat(${R(p)??""}, minmax(0, 1fr));
77
73
  grid-auto-rows: 60px;
78
- `)),Ie(_,b)};ki(m,_=>{U(s)&&!U(a)?_(p):U(o)?_(g,1):U(a)&&_(y,2)})}return Ie(t,d),$o(v)}Xl(vx,{server:{},token:{},path:{}},[],[],{mode:"open"});var YR=Xe('<div class="state svelte-17xdsuh">Loading…</div>'),XR=Xe('<div class="state error svelte-17xdsuh" role="alert"> </div>'),qR=Xe('<div class="state muted svelte-17xdsuh">Configure the embed: <code class="svelte-17xdsuh">server</code> + <code class="svelte-17xdsuh">path</code>.</div>'),ZR=Xe('<div class="saiku-embed-root svelte-17xdsuh"><!></div>');const KR={hash:"svelte-17xdsuh",code:`
79
- /* Shadow-DOM scoped — host page CSS can't leak in and vice versa.
74
+ `)),Z(x,D)};st(b,x=>{R(s)&&!R(a)?x(S):R(o)?x(w,1):R(a)&&x(T,2)})}return Z(t,_),gn(y)}Yn(Sx,{server:{},token:{},path:{}},[],[],{mode:"open"});var AB=te('<div class="empty svelte-wdnagx">No rows returned</div>'),MB=te("<th> </th>"),LB=te("<td> </td>"),kB=te('<tr class="svelte-wdnagx"><th class="row-header svelte-wdnagx"> </th><!></tr>'),IB=te('<table class="svelte-wdnagx"><thead><tr><th class="row-header svelte-wdnagx"></th><!></tr></thead><tbody class="svelte-wdnagx"></tbody></table>');const PB={hash:"svelte-wdnagx",code:`table.svelte-wdnagx {border-collapse:collapse;width:100%;font-family:system-ui,
75
+ -apple-system,
76
+ Segoe UI,
77
+ sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);}th.svelte-wdnagx,
78
+ td.svelte-wdnagx {padding:6px 10px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);text-align:left;white-space:nowrap;}th.svelte-wdnagx {background:var(--saiku-embed-header-bg, #f9fafb);font-weight:600;}
79
+ /* Row-axis headers live in the first column — sticky-left in wide tables
80
+ so the axis label stays visible when the caller wraps us in a scroller. */th.row-header.svelte-wdnagx {position:sticky;left:0;background:var(--saiku-embed-header-bg, #f9fafb);z-index:1;}th.numeric.svelte-wdnagx,
81
+ td.numeric.svelte-wdnagx {text-align:right;font-variant-numeric:tabular-nums;}td.negative.svelte-wdnagx {color:var(--saiku-embed-negative, #b91c1c);}tbody.svelte-wdnagx tr:where(.svelte-wdnagx):hover {background:var(--saiku-embed-row-hover, #f3f4f6);}.empty.svelte-wdnagx {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}`};function xx(t,e){pn(e,!0),Un(t,PB);let r=xe(e,"rows"),n=xe(e,"rowCaptions"),i=xe(e,"columnCaptions");function a(v){for(const c of r()){const d=c[String(v)]?.value;if(d!=null&&(typeof d!="number"||Number.isNaN(d)))return!1}return!0}function o(v,c){return v[String(c)]}var s={get rows(){return r()},set rows(v){r(v),ye()},get rowCaptions(){return n()},set rowCaptions(v){n(v),ye()},get columnCaptions(){return i()},set columnCaptions(v){i(v),ye()}},l=zi(),u=Wn(l);{var f=v=>{var c=AB();Z(v,c)},h=v=>{var c=IB(),d=ue(c),m=ue(d),p=bt(ue(m));bn(p,17,i,y=>y.name,(y,_)=>{const b=er(()=>i().indexOf(R(_)));var S=MB();let w;var T=ue(S,!0);ee(S),Re(x=>{w=Ua(S,1,"svelte-wdnagx",null,w,x),Fe(T,R(_).caption)},[()=>({numeric:a(R(b))})]),Z(y,S)}),ee(m),ee(d);var g=bt(d);bn(g,21,r,Vh,(y,_,b)=>{var S=kB(),w=ue(S),T=ue(w,!0);ee(w);var x=bt(w);bn(x,17,i,Vh,(D,A,C)=>{const k=er(()=>o(R(_),C));var M=LB();let P;var I=ue(M,!0);ee(M),Re(O=>{P=Ua(M,1,"svelte-wdnagx",null,P,O),Fe(I,R(k)?.formatted??"")},[()=>({numeric:a(C),negative:R(k)&&R(k).value!==null&&R(k).value<0})]),Z(D,M)}),ee(S),Re(()=>Fe(T,n()[b]?.caption??"")),Z(y,S)}),ee(g),ee(c),Z(v,c)};st(u,v=>{r().length===0?v(f):v(h,-1)})}return Z(t,l),gn(s)}Yn(xx,{rows:{},rowCaptions:{},columnCaptions:{}},[],[],{mode:"open"});var EB=te('<div class="state error svelte-1850173" role="alert"> </div>'),RB=te('<div class="state warn svelte-1850173"> </div>'),OB=te('<div class="answer svelte-1850173"> </div>'),NB=te('<div class="narrative svelte-1850173"> </div>'),BB=te('<details class="mdx svelte-1850173"><summary class="svelte-1850173">Generated MDX</summary> <pre class="svelte-1850173"> </pre></details>'),FB=te("<!> <!> <!>",1),zB=te('<div class="ask-widget svelte-1850173"><form class="row svelte-1850173"><input type="text" aria-label="Ask a question" class="svelte-1850173"/> <button type="submit" class="svelte-1850173"> </button></form> <!></div>');const HB={hash:"svelte-1850173",code:'.ask-widget.svelte-1850173 {font-family:system-ui, sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);display:flex;flex-direction:column;gap:10px;padding:10px 12px;}.row.svelte-1850173 {display:flex;gap:8px;}input[type="text"].svelte-1850173 {flex:1;padding:6px 10px;font-size:13px;border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:6px;background:var(--saiku-embed-bg, #ffffff);color:inherit;}input[type="text"].svelte-1850173:focus {outline:2px solid var(--saiku-embed-accent, #b3170f);outline-offset:1px;}button.svelte-1850173 {padding:6px 14px;font-size:13px;font-weight:600;color:#ffffff;background:var(--saiku-embed-accent, #b3170f);border:none;border-radius:6px;cursor:pointer;}button.svelte-1850173:disabled {opacity:0.5;cursor:not-allowed;}.answer.svelte-1850173 {padding:8px 10px;background:var(--saiku-embed-header-bg, #f9fafb);border-radius:6px;line-height:1.5;white-space:pre-wrap;}.narrative.svelte-1850173 {padding:4px 2px;color:var(--saiku-embed-muted, #6b7280);font-size:12px;line-height:1.4;white-space:pre-wrap;}.mdx.svelte-1850173 summary:where(.svelte-1850173) {cursor:pointer;font-size:12px;color:var(--saiku-embed-muted, #6b7280);}.mdx.svelte-1850173 pre:where(.svelte-1850173) {margin:6px 0 0;padding:8px;background:var(--saiku-embed-header-bg, #f9fafb);border-radius:4px;overflow-x:auto;font-family:ui-monospace, monospace;font-size:11px;line-height:1.4;}.state.svelte-1850173 {padding:8px 10px;border-radius:6px;font-size:12px;line-height:1.4;}.state.error.svelte-1850173 {color:var(--saiku-embed-error, #b91c1c);background:rgba(185, 28, 28, 0.06);}.state.warn.svelte-1850173 {color:#a25400;background:rgba(162, 84, 0, 0.06);}'};function Tx(t,e){pn(e,!0),Un(t,HB);let r=xe(e,"server"),n=xe(e,"token"),i=xe(e,"cubeId"),a=xe(e,"placeholder",7,"Ask a question about this cube..."),o=xe(e,"space",7,""),s=xe(e,"onResult"),l=Ee(""),u=Ee(!1),f=Ee(null),h=Ee(null);async function v(w){w.preventDefault();const T=R(l).trim();if(T){Y(u,!0),Y(f,null),Y(h,null);try{Y(h,await iB(r(),i(),n()||void 0,T,void 0,o()||void 0),!0),s()?.({question:T,degraded:R(h)?.degraded===!0})}catch(x){x instanceof pl?Y(f,x.status===401?"This embed is unavailable.":x.body.error??"Ask failed.",!0):Y(f,"Ask failed to reach the server.")}finally{Y(u,!1)}}}var c={get server(){return r()},set server(w){r(w),ye()},get token(){return n()},set token(w){n(w),ye()},get cubeId(){return i()},set cubeId(w){i(w),ye()},get placeholder(){return a()},set placeholder(w="Ask a question about this cube..."){a(w),ye()},get space(){return o()},set space(w=""){o(w),ye()},get onResult(){return s()},set onResult(w){s(w),ye()}},d=zB(),m=ue(d),p=ue(m);mm(p);var g=bt(p,2),y=ue(g,!0);ee(g),ee(m);var _=bt(m,2);{var b=w=>{var T=EB(),x=ue(T,!0);ee(T),Re(()=>Fe(x,R(f))),Z(w,T)},S=w=>{var T=zi(),x=Wn(T);{var D=C=>{var k=RB(),M=ue(k,!0);ee(k),Re(()=>Fe(M,R(h).reason??"AI ask is not configured on this deployment.")),Z(C,k)},A=C=>{var k=FB(),M=Wn(k);{var P=B=>{var H=OB(),z=ue(H,!0);ee(H),Re(()=>Fe(z,R(h).answer)),Z(B,H)};st(M,B=>{R(h).answer&&B(P)})}var I=bt(M,2);{var O=B=>{var H=NB(),z=ue(H,!0);ee(H),Re(()=>Fe(z,R(h).narrative)),Z(B,H)};st(I,B=>{R(h).narrative&&R(h).narrative!==R(h).answer&&B(O)})}var G=bt(I,2);{var N=B=>{var H=BB(),z=bt(ue(H),2),F=ue(z,!0);ee(z),ee(H),Re(()=>Fe(F,R(h).mdx)),Z(B,H)};st(G,B=>{R(h).mdx&&B(N)})}Z(C,k)};st(x,C=>{R(h).degraded?C(D):C(A,-1)})}Z(w,T)};st(_,w=>{R(f)?w(b):R(h)&&w(S,1)})}return ee(d),Re(w=>{Ko(p,"placeholder",a()),p.disabled=R(u),g.disabled=w,Fe(y,R(u)?"Asking…":"Ask")},[()=>R(u)||!R(l).trim()]),BT("submit",m,v),iC(p,()=>R(l),w=>Y(l,w)),Z(t,d),gn(c)}Yn(Tx,{server:{},token:{},cubeId:{},placeholder:{},space:{},onResult:{}},[],[],{mode:"open"});var GB=te('<div class="state svelte-17xdsuh">Loading…</div>'),VB=te('<div class="state error svelte-17xdsuh" role="alert"> </div>'),WB=te('<div class="state muted svelte-17xdsuh">Configure the embed: <code class="svelte-17xdsuh">server</code> + <code class="svelte-17xdsuh">path</code>.</div>'),$B=te('<div class="w-full h-full overflow-auto"><!></div>');const UB={hash:"svelte-17xdsuh",code:`
82
+ /* Shadow-DOM scoped — host page CSS can't leak in and vice versa.
80
83
  * Host page can recolour via the --saiku-embed-* CSS variables we
81
- * surface on :host. */:host {display:block;color:var(--saiku-embed-fg, #1f2937);background:var(--saiku-embed-bg, transparent);}.saiku-embed-root.svelte-17xdsuh {width:100%;height:100%;overflow:auto;}.state.svelte-17xdsuh {padding:16px;font-family:system-ui, sans-serif;font-size:13px;}.state.muted.svelte-17xdsuh {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-17xdsuh {color:var(--saiku-embed-error, #b91c1c);}code.svelte-17xdsuh {background:rgba(0, 0, 0, 0.05);padding:1px 4px;border-radius:3px;font-family:ui-monospace, monospace;}`};function dx(t,e){Wo(e,!0),Ul(t,KR);let r=Wt(e,"server",7,""),n=Wt(e,"token",7,""),i=Wt(e,"kind",7,"query"),a=Wt(e,"path",7,""),o=Wt(e,"render",7,"table"),s=Wt(e,"mode",7,"bar"),l=Wt(e,"height",7,"400px"),u=dt(null),f=dt(null),h=dt(!1);Fl(()=>{const w=r().trim(),S=a().trim(),x=n().trim();if((i().trim()||"query")!=="query"){ge(u,null),ge(f,null);return}if(!w||!S){ge(u,null),ge(f,null);return}let C=!1;return ge(h,!0),ge(f,null),PR(w,S,x||void 0).then(E=>{C||ge(u,E.data??[],!0)}).catch(E=>{C||(ge(f,c(E),!0),ge(u,null))}).finally(()=>{C||ge(h,!1)}),()=>{C=!0}});function c(w){return w instanceof rg?w.status===401?"This embed is unavailable.":w.body.error??`Embed failed (${w.status}).`:"Embed failed to load."}var v={get server(){return r()},set server(w=""){r(w),It()},get token(){return n()},set token(w=""){n(w),It()},get kind(){return i()},set kind(w="query"){i(w),It()},get path(){return a()},set path(w=""){a(w),It()},get render(){return o()},set render(w="table"){o(w),It()},get mode(){return s()},set mode(w="bar"){s(w),It()},get height(){return l()},set height(w="400px"){l(w),It()}},d=ZR(),m=tr(d);{var p=w=>{vx(w,{get server(){return r()},get token(){return n()},get path(){return a()}})},g=w=>{var S=YR();Ie(w,S)},y=w=>{var S=XR(),x=tr(S,!0);vt(S),Wr(()=>Pi(x,U(f))),Ie(w,S)},_=w=>{var S=Gl(),x=Vl(S);{var T=E=>{Jp(E,{get rows(){return U(u)},get mode(){return s()}})},C=E=>{mm(E,{get rows(){return U(u)}})};ki(x,E=>{o()==="chart"?E(T):E(C,-1)})}Ie(w,S)},b=w=>{var S=qR();Ie(w,S)};ki(m,w=>{i()==="dashboard"?w(p):U(h)?w(g,1):U(f)?w(y,2):U(u)!==null?w(_,3):w(b,-1)})}return vt(d),Wr(()=>Uh(d,`min-height: ${l()??""};`)),Ie(t,d),$o(v)}return customElements.define("saiku-embed",Xl(dx,{server:{attribute:"server",type:"String"},token:{attribute:"token",type:"String"},kind:{attribute:"kind",type:"String"},path:{attribute:"path",type:"String"},render:{attribute:"render",type:"String"},mode:{attribute:"mode",type:"String"},height:{attribute:"height",type:"String"}},[],[],{mode:"open"})),dx})();
84
+ * surface on :host. */:host {display:block;color:var(--saiku-embed-fg, #1f2937);background:var(--saiku-embed-bg, transparent);}
85
+
86
+ /* theme="dark" forces the dark palette; theme="auto" adopts it only when
87
+ * the viewer's OS is in dark mode. Unset / theme="light" keep the original
88
+ * light defaults so existing embeds don't shift. Host per-var overrides still
89
+ * work in the light theme; in dark, the palette below wins. */:host([theme="dark"]) {--saiku-embed-fg: #e6e8f0;--saiku-embed-bg: #0f1420;--saiku-embed-muted: #9aa2b4;--saiku-embed-border: #2a3140;--saiku-embed-header-bg: #171d2a;--saiku-embed-row-hover: #1b2230;--saiku-embed-error: #f87171;--saiku-embed-negative: #f87171;--saiku-embed-positive: #34d399;--saiku-embed-accent: #6d7dff;}
90
+ @media (prefers-color-scheme: dark) {:host([theme="auto"]) {--saiku-embed-fg: #e6e8f0;--saiku-embed-bg: #0f1420;--saiku-embed-muted: #9aa2b4;--saiku-embed-border: #2a3140;--saiku-embed-header-bg: #171d2a;--saiku-embed-row-hover: #1b2230;--saiku-embed-error: #f87171;--saiku-embed-negative: #f87171;--saiku-embed-positive: #34d399;--saiku-embed-accent: #6d7dff;}
91
+ }.state.svelte-17xdsuh {padding:16px;font-family:system-ui, sans-serif;font-size:13px;}.state.muted.svelte-17xdsuh {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-17xdsuh {color:var(--saiku-embed-error, #b91c1c);}code.svelte-17xdsuh {background:rgba(0, 0, 0, 0.05);padding:1px 4px;border-radius:3px;font-family:ui-monospace, monospace;}`};function Cx(t,e){pn(e,!0),Un(t,UB);let r=xe(e,"server",7,""),n=xe(e,"token",7,""),i=xe(e,"kind",7,"query"),a=xe(e,"path",7,""),o=xe(e,"render",7,"table"),s=xe(e,"mode",7,"bar"),l=xe(e,"height",7,"400px"),u=xe(e,"space",7,""),f=xe(e,"filter",7,""),h=Ee(null),v=Ee(null),c=Ee(Gr([])),d=Ee(Gr([])),m=Ee(null),p=Ee(!1),g=Ee(void 0);function y(I,O){R(g)?.dispatchEvent(new CustomEvent(I,{detail:O,bubbles:!0,composed:!0}))}function _(I){const O=I.trim();if(!O)return[];try{const G=JSON.parse(O);return Array.isArray(G)?G:[]}catch{return[]}}Va(()=>{const I=r().trim(),O=a().trim(),G=n().trim(),N=i().trim()||"query",B=(o()||"").trim().toLowerCase(),H=_(f());if(N!=="query"){Y(h,null),Y(v,null),Y(m,null);return}if(!O){Y(h,null),Y(v,null),Y(m,null);return}let z=!1;Y(p,!0),Y(m,null);const F=B==="matrix";return eB(I,O,G||void 0,F?"matrix":"records",H).then(W=>{z||(F?(Y(v,W.matrix??[],!0),Y(c,W.metadata?.rows??[],!0),Y(d,W.metadata?.columns??[],!0),Y(h,null),y("saiku:load",{kind:"matrix",rows:R(v).length})):(Y(h,W.data??[],!0),Y(v,null),y("saiku:load",{kind:B==="kpi"?"kpi":B||"records",rows:R(h).length})))}).catch(W=>{if(z)return;const J=b(W);Y(m,J,!0),Y(h,null),Y(v,null),y("saiku:error",{message:J})}).finally(()=>{z||Y(p,!1)}),()=>{z=!0}});function b(I){return I instanceof pl?I.status===401?"This embed is unavailable.":I.body.error??`Embed failed (${I.status}).`:"Embed failed to load."}var S={get server(){return r()},set server(I=""){r(I),ye()},get token(){return n()},set token(I=""){n(I),ye()},get kind(){return i()},set kind(I="query"){i(I),ye()},get path(){return a()},set path(I=""){a(I),ye()},get render(){return o()},set render(I="table"){o(I),ye()},get mode(){return s()},set mode(I="bar"){s(I),ye()},get height(){return l()},set height(I="400px"){l(I),ye()},get space(){return u()},set space(I=""){u(I),ye()},get filter(){return f()},set filter(I=""){f(I),ye()}},w=$B(),T=ue(w);{var x=I=>{Sx(I,{get server(){return r()},get token(){return n()},get path(){return a()}})},D=I=>{Tx(I,{get server(){return r()},get token(){return n()},get cubeId(){return a()},get space(){return u()},onResult:O=>y("saiku:ai-query",O)})},A=I=>{var O=GB();Z(I,O)},C=I=>{var O=VB(),G=ue(O,!0);ee(O),Re(()=>Fe(G,R(m))),Z(I,O)},k=I=>{xx(I,{get rows(){return R(v)},get rowCaptions(){return R(c)},get columnCaptions(){return R(d)}})},M=I=>{var O=zi(),G=Wn(O);{var N=z=>{tg(z,{get rows(){return R(h)},get mode(){return s()}})},B=z=>{_x(z,{get rows(){return R(h)}})},H=z=>{Sm(z,{get rows(){return R(h)},onSelect:F=>y("saiku:select",{row:F})})};st(G,z=>{o()==="chart"?z(N):o()==="kpi"?z(B,1):z(H,-1)})}Z(I,O)},P=I=>{var O=WB();Z(I,O)};st(T,I=>{i()==="dashboard"?I(x):i()==="ai"?I(D,1):R(p)?I(A,2):R(m)?I(C,3):R(v)!==null?I(k,4):R(h)!==null?I(M,5):I(P,-1)})}return ee(w),bm(w,I=>Y(g,I),()=>R(g)),Re(()=>$h(w,`min-height: ${l()??""};`)),Z(t,w),gn(S)}return customElements.define("saiku-embed",Yn(Cx,{server:{attribute:"server",type:"String"},token:{attribute:"token",type:"String"},kind:{attribute:"kind",type:"String"},path:{attribute:"path",type:"String"},render:{attribute:"render",type:"String"},mode:{attribute:"mode",type:"String"},height:{attribute:"height",type:"String"},space:{attribute:"space",type:"String"},filter:{attribute:"filter",type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"}},[],[],{mode:"open"})),Cx})();
82
92
  //# sourceMappingURL=saiku-embed.js.map